Hi!

My previous/alt account is yetAnotherUser@feddit.de which will be abandoned soon.

  • 0 Posts
  • 26 Comments
Joined 2 years ago
cake
Cake day: June 1st, 2024

help-circle


  • Even though this isn’t C, but if we take from the C11 draft §6.8.5 point 6 (https://www.open-std.org/jtc1/sc22/wg14/www/docs/n1570.pdf):

    An iteration statement whose controlling expression is not a constant expression, that performs no input/output operations, does not access volatile objects, and performs no synchronization or atomic operations in its body, controlling expression, or (in the case of a for statement) its expression-3, may be assumed by the implementation to terminate

    “new Random().nextInt()” might perform I/O though so it could still be defined behavior. Or the compiler does not assume this assumption.

    But an aggressive compiler could realize the loop would not terminate if x does not become 10 so x must be 10 because the loop can be assumed to terminate.




  • I really like bash when dealing with even somewhat advanced scripting. Like the 300 LOC scraper I have written over the past two days which horribly parses HTML files using grep | sed.

    It’s genuinely so much more fun to do this with Bash than, say, Python. I have once written a scraper using Beautifulsoup and I have no desire to do so ever again.

    Honestly, only Haskell manages to beat Bash in how satisfying it feels when you manage to get something working well.








  • Then the allegory wouldn’t make sense though, would it?

    The main character would have less reason to want to stay in the real world if they received the “wrong” body. They lived their whole life in the “right” body in the simulation and then wake up just to feel gender dysphoria? It would just be confusing and uncomfortable as fuck for them.


  • To be honest, DNA is stupid anyway. Worst data format ever invented.

    I mean, a single mutation to get sickle cell anemia? Use fucking error correction codes, dammit! No, having everything twice is not error correction. It’s only error detection and the detected error is just silently ignored and randomly passed on to your offspring.

    Where are the damn backups? 3-2-1 should hold for every data format! How would an offsite backup be designed? I don’t know I’m not evolution incorporated.

    Why are viruses even a thing??? There is no reason EVER to be able to insert new DNA into your genome. Make it read only! With checksums! Why is there no Denuvo DNA-DRM?

    Slightly unrelated but even worse, your immune system is literally only controlled by the equivalent of HTTP. Deactivate completely? Attack everything on sight? No authorization required whatsoever! Just use the public API! Surely nothing could exploit this, right??


    Small Edit as a response to everyone mentioning the need to change for evolution:

    Maybe, just maybe use a test environment? You don’t just push to production the moment you make a change. Move fast and break things my ass. Since women already have the production environment just create a similar structure in men! They already have TESTicles after all.