@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 rust
@lily@glaceon.social avatar

one odd problem with rust i often have is i get so many nested if statements.

C would let you do some fancy formatting tricks with ternaries or short-circuit logic (or even goto), but rust heavily encourages just nesting if statements to express your logic. early returns also don't feel very rusty.

i suppose there's other factors too

  1. rust neatly abstracts away other stuff, like string manipulation and lists checking, so what might've been two if statements and 7 function calls is instead two if statements and two chained method calls.
  2. rust adds two more kinds of if statements: if let and let else. additionally, if statements can yield values, absorbing the conditional ternary operator.

lily, to random
@lily@glaceon.social avatar

i just had an extraordinary silly idea.

level-two compiler optimizations.

if the compiler detects you're compiling a compiler, it optimizes your code generator to produce optimized code

this sounds awful for deterministic builds

lily, to random
@lily@glaceon.social avatar

inexplicable power outage while i'm programming, suddenly really glad all the commands i need have a global cache and an --offline flag

lily, to random
@lily@glaceon.social avatar

god you could do so many stupid things if you bypassed the standard filesystem abstractions and parsed inodes manually.

lily, to random
@lily@glaceon.social avatar

load bearing metadata

not because it's necessary, but because the process of trying to choose a default causes everything to break

lily, to random
@lily@glaceon.social avatar

call me vvvvvv the way i run my commands with maximum verbosity

lily, to random
@lily@glaceon.social avatar

they should make wine but for running solaris executibles on openbsd, i think that would be funny.

lily, to random
@lily@glaceon.social avatar

imports you from a derivation

lily, to random
@lily@glaceon.social avatar

32 bit kernel with 64 bit userspace

lily, to random
@lily@glaceon.social avatar

"why isn't my post doing numbers"

the post in question:

lorum ipsun

lily, to random
@lily@glaceon.social avatar

nix-collect-garbage

now replace "garbage" with "women", not so funny now, is it?

lily, to random
@lily@glaceon.social avatar

45G free 👀

i really need to delete some older generations lol

astrid, to random
@astrid@fedi.astrid.tech avatar

back in my day we had FIRST PERSON SHOOTERS. now we have FIRST PERSON PRONOUNS. This is Bidens America.

lily,
@lily@glaceon.social avatar

@astrid
read this in a german accent for some fucken reason (probably because it was surrounded by german posts)

lily, to random
@lily@glaceon.social avatar

u went to the grocery store and they were playing who can it be now????

why is this song everywhere again.

lily, to random
@lily@glaceon.social avatar

this latest shitpost asmr trend is gonna cause so many people to start watching asmr unironically in 2-3 weeks i feel like.

lily, to random
@lily@glaceon.social avatar

remember!

nix: declarative package manager

*nix: unix-like systems

nyx: god of the night and/or cool nonbinary friend

lily, to random
@lily@glaceon.social avatar

just prepened a broken url with
!nixpkgs instead of !wayback

dgar, to random
@dgar@aus.social avatar
lily,
@lily@glaceon.social avatar

@dgar
who is this man and why

lily, to random
@lily@glaceon.social avatar

friendly reminder that reverse weebs are extremely real

just had a japanese guy say his favorite movie is Forrest Gump.

astrid, to random
@astrid@fedi.astrid.tech avatar

rj45 is such a funny connector if you think about it. it was designed for telephone switching in the 70s and 80s and it actually is fairly reasonably designed for a telephone signal connector. But it became used for Ethernet, and more Ethernet, and faster signals, and now we're able to send 10gbps down this little 8 pin jack from the 70s, and I'm surprised that it still works for this purpose

lily,
@lily@glaceon.social avatar

@astrid
you can do a lot of silly things when you're mainly limited by the speed of light :p
@rail_

astrid, to random
@astrid@fedi.astrid.tech avatar

did you know? rust has a do while loop! you can use it with this syntax:

while { 
    statements();
    statements();
    more statements();
    condition
} {}

here’s an example:

fn main() {
    let mut i = 0;
    
    while {
        println!("{i}");
        i = i + 1;
        i < 5
    } {}
    
    // Expected output:
    // 0
    // 1
    // 2
    // 3
    // 4
}

rust playground: https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=2a8cba777fdeb14cb75b33e1672a9aa6

lily,
@lily@glaceon.social avatar

@astrid
cursed

semicolon elision for semantics is a cool idea but quite cursed in practice (suddenly the thing you always ignore actually matters)

lily, to random
@lily@glaceon.social avatar

zig comptime is a lazy functional language

lily,
@lily@glaceon.social avatar

@astrid
rust traits are a lazy functional language.

as is the haskell type system but that's honestly to be expected.

lazy functional languages are the crabs of type systems.

lily, to random
@lily@glaceon.social avatar

c programs are often criticized for using too much global state.

but in the case of argc and argv, it's an interesting inversion, as most modern languages actually allow any function access to the command line arguments.

astrid, to random
@astrid@fedi.astrid.tech avatar

bgp (big gock protocol

lily,
@lily@glaceon.social avatar

@astrid
"how can those be related"

"oh thats how"

lol
@astrid

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