Formerly u/CanadaPlus101 on Reddit.

  • 53 Posts
  • 8.91K Comments
Joined 2 years ago
cake
Cake day: June 12th, 2023

help-circle



  • No. Although “turning evil” isn’t what happens to those guys, exactly.

    Dictators, in the sense of one man rule, don’t actually exist. What an autocracy does have is a first among equals in a system where everyone is “looking over their shoulder”. Even if someone who genuinely wants to make life great for the people takes power, there’s severe limits to how they can do that.

    Gorbachev is a great example of this. He was an idealistic person, and thought it would be good if the USSR switched to real democracy. Pretty immediately there were multiple coups until he was out of power, because anybody remotely high up the hierarchy had too many skeletons in their closet to allow that.

    In the end, a dictator only gets to choose what kind of nightmarish dictatorship they want.


  • Just in case you missed it, that was unsafe rust that lacks the overheads.

    It says some overheads. It’s different overheads, because Rust does not have reference counting garbage collection, even when safe.

    Either you should go back and read what I said about reference counting being a runtime garbage collecting algorithm, or I think we’re just done. Why say more if it’s ignored anyway?

    I don’t think I’m the zealot here.





  • Did you think rust doesn’t free up memory for you? That would be the biggest memory leak in history! No! Rust does reference counting, it just makes sure that that number is always one! What did you think the borrow checker was for?

    There is no runtime garbage collection in Rust. Given a legal program, it can detect where free-type instructions are needed at compile time, and adds them. From there on it works like C, but with no memory leaks or errors because machines are good at being exactly correct. If you want to say that’s just a reference counting algorithm that’s so simple it’s not there, sure, I guess you can do that.

    Roc has runtime overhead to do garbage collection, it says so right on their own page. It might be a post-Rust language but this feels like the same conversation I’ve had about D and… I can’t even remember now. Maybe Roc is a cool, innovative language. It’s new to me. But, it doesn’t sound like it’s doing anything fundamentally new on that specific part.

    Edit: Reading your follow up to the other person, it sounds like it has both a Rust-style compile time algorithm of some sort, and then (reference count-based) garbage collection at run time for parts of the program that would just be illegal in Rust.






  • Yeah, you might be able to make ghetto saline with distilled water and the ocean and not become emergently ill, but you shouldn’t actually do it. Even if you collect from an immaculate site and dodge any human (or mammal? This is the kind of weird situation where zoonosis could happen) pathogens, foreign bodies in the bloodstream won’t make you healthier.

    I haven’t seen much evidence OP thinks this is a good idea and not just a thought experiment, though. That would be weird.



  • That sounds pretty great. My impression is that relatively little code actually runs that often.

    but with none of the footguns of manual memory management, no garbage collection pauses, but yet also no evil stepparent style borrow checker to be beaten by.

    That part sounds implausible, though. What kind of memory management are they doing?




  • It sounds like there’s special compositions sometimes, which are supposed to be more healing - I was given Ringer’s lactate a bit ago - but that the default is literally just salt and pure water at that magic 0.9%.

    The bacteria in seawater are generally going to be the kind that like seawater, not people. Unless someone dumped sewage nearby…

    The living nasties to be aware of are more parasitic worms like swimmer’s itch and toxic algaes, and unless you’re very unlucky with the algae concentration, neither are a pressing problem in the context that you have concentrated salt water spreading up a damn limb.