@lily@glaceon.social avatar

lily

@lily@glaceon.social

member of a plural system.

programmer

forth fangirl

"sexy nyan nyan goddesses"

This profile is from a federated server and may be incomplete. Browse more on the original instance.

lily, to random
@lily@glaceon.social avatar

fucked up the the mushroom kingdom just has holes that go down forever.

lily, to random
@lily@glaceon.social avatar

is there a conventional name for a file that contains the sha256sum of all the other files in the same directory?

lily, to rust
@lily@glaceon.social avatar

here's an interesting way of expressing logic in a rust program:

match statements where the patterns are produced by a local macro.

one of the main problems with rust pattern matching imo is just how large the match statements often are, and local macros fix that.

it's much nicer to write key!('q') instead of Event::Key(KeyEvent{ code: KeyCode::Char($code), .. }

lily, to random
@lily@glaceon.social avatar

ratagui

lily, to rust
@lily@glaceon.social avatar

the rust "impl" keywork is kinda weird.

usually, it is used to define methods, but in function arguments, it serves as syntactic sugar so you don't have to name generic types... but in a return type, it has a meaning that is slightly different, and actually expresses a semantic not even vanilla haskell can represent!

basically, instead of being able to return any type implementing a trait, it states that it can return at least one type that implements a trait.

in haskell terminology, specifying a generic type parameter is "forall a", while returning an "impl" is "exists a".

lily, to random
@lily@glaceon.social avatar

"this tin is Christmas themed, so i'm gonna put it away"

now i have a bunch of loose items on the counter.

thanks???

lily, to random
@lily@glaceon.social avatar

video game soundtracks whenever there's a desert

doo doot do doot do do-dooooooooo

lily, to random
@lily@glaceon.social avatar

it's not really a question of if unauthorized AI training is copyright infringement, it pretty obviously is, expecially with models that are large enough to just embed a subset of their training data.

the question is if they will reach the same critical mass as video game livestreams, where the backlash of trying to shut it down is too much

lily,
@lily@glaceon.social avatar

@The_T
when broke artists do it to megacorps, yes. when megacorps do it to broke artists... not so much.

lily, to random
@lily@glaceon.social avatar

sylveon canonically meows

lily, to random
@lily@glaceon.social avatar

the interesting thing about the domain-specific bytecodes of a lot of retro games is they're surprising resilient to segfaults, due to not having a null pointer check.

like, if you found something like the minus world glitch in a modern game, it would almost certainly just crash immediately.

lily, to random
@lily@glaceon.social avatar

a YouTube channel can put itself in its list of featured channels.

lily, to linux
@lily@glaceon.social avatar

here's a tip if a command is taking a long time and you want a notification when it's done:

^Z fg; notify-send 'done'

pressing Ctrl-Z in a terminal emulator will pause the current running command. running "fg" will resume it in the foreground, but returning to the shell has the added benefit of allowing you to queue up multiple commands in a single line (technically you can do this by blindly typing the command while something else is running (as long as that command doesn't read from stdin), but i think this is more elegant.

notify-send is from libnotify, it allows sending a desktop notification from the command line.

lily, to random
@lily@glaceon.social avatar

one skill that i don't think is taught enough: given an unfamiliar codebase, how to find the code that handles a specific behavior.

one thing i do a lot in this romhack is go "ok, i want this thing to have effect X", then search the codebase for the name of an existing move/ability that does something similar, since it will probably appear within the function that i want to modify.

lily, to random
@lily@glaceon.social avatar

frequency can be used to measure things that really feel like they should use different units.

"how often should my OS check the state of the keyboard"

"middle C"

this is technically a coherent answer

lily,
@lily@glaceon.social avatar

@astrid
one problem of this is it could be confused for transistor size

lily,
@lily@glaceon.social avatar

@astrid
"what's your favorite color"

"middle C"

lily,
@lily@glaceon.social avatar

@tryst
isn't that like... a few millimeters?
@astrid

lily, to random
@lily@glaceon.social avatar

they call it a 555 timer because you can't call it with your telephone

lily, to random
@lily@glaceon.social avatar

the rust attribute syntax was undoubtedly inspired by haskell

it even allows you to enable experimental compiler features like you can do with ghc

lily, to random
@lily@glaceon.social avatar

linux hardware support is actually like, so insanely good? like i can pull a 10 year old laptop out of the trash and slap the newest 6.7 kernel on it and it runs fine.

you're not getting that from windows, and you're certainly not getting that from apple.

ellie, to random
@ellie@yearning.gay avatar

this is what heaven looks like

lily,
@lily@glaceon.social avatar

@ellie
this just looks like they gentrified the windows xp background?
@astrid

lily, to random
@lily@glaceon.social avatar

nix is by far the best at what it does

that doesn't mean its good at it

lily, to random
@lily@glaceon.social avatar

amending tagged commits breaks nix build.

it will keep using the un-amended version

lily,
@lily@glaceon.social avatar

@astrid overzealous caching, that's how.

lily,
@lily@glaceon.social avatar

@astrid oh my god it got so much worse

after running sudo nix build --repair and deleting .cache/nix

it's still broken

this is no longer "lol nix is broken" this is "wtf do i even do???"

  • All
  • Subscribed
  • Moderated
  • Favorites
  • provamag3
  • thenastyranch
  • magazineikmin
  • ngwrru68w68
  • mdbf
  • rosin
  • Youngstown
  • vwfavf
  • slotface
  • modclub
  • khanakhh
  • cubers
  • kavyap
  • DreamBathrooms
  • cisconetworking
  • PowerRangers
  • everett
  • Durango
  • InstantRegret
  • osvaldo12
  • tester
  • normalnudes
  • tacticalgear
  • ethstaker
  • GTA5RPClips
  • anitta
  • Leos
  • megavids
  • All magazines