• 0 Posts
  • 47 Comments
Joined 2 years ago
cake
Cake day: July 22nd, 2024

help-circle



  • After writing this comment I noticed it became a bit ranty, sorry for that. Something about this article rubbed a bit in the wrong way.

    The relevant section seems to be this:

    Browser engines and garbage-collected runtimes are classic examples of code that fights the borrow checker. You’re constantly juggling different memory regions: per-page arenas, shared caches, temporary buffers, objects with complex interdependencies. These patterns don’t map cleanly to Rust’s ownership model. You end up either paying performance costs (using indices instead of pointers, unnecessary clones) or diving into unsafe code where raw pointer ergonomics are poor and Miri becomes your constant companion.

    The first half is obviously correct, this kind of data model doesn’t work well for the ownership model rust uses for its borrowchecker. I don’t like the conclusion though. Rust makes you pay the performance costs necessary to make your code safe. You would need to pay similar costs in other languages if you intend on writing safe code.

    Sure, if you are fine with potential memory corruption bugs, you don’t need these costs, but that’s not how I would want to code.

    The other thing bugging me is how miri being your companion is framed as something bad. Why? Miri is one the best things about rusts unsafe code tooling. It’s like valgrind, or sanitisers but better.

    Now, the raw pointer ergonomics could be better, I’ll give them that. But if you dive deep into what rust does with raw pointers, or rather what they are planning to do, is really really cool. Provenance and supporting cheri natively is just not possible for languages that chose the ergonomic of a raw integer over what rust does.








  • I’m not convinced he wouldn’t try it. There have been repeated violations of the airspace of Lithuania, with live explosives.

    NATO is expecting Russia to be able to do it as soon as 2029. That’s the deadline it set itself to become war-ready. 4-5 years seems like a good time to start shaping laws and law enforcement to handle a war too.

    I also vividly remember everyone, me included, being very convinced that he wouldn’t start a war on Ukraine mainland outside of the krim. I think the same was the case before the Krim was taken. I don’t think we should do that error a third time.

    I’m also not really knowledgeable enough to know if there is somebody ready to take over when Putin hits the curb. Common tales are that he doesn’t build up a successor out of fear of being replaced before he wants to. But I’m not gambling on that being the case. And I’m also not sure if it would be such a good thing if Russia falls into a deep power vacuum. A Russian civil war leading to multiple warlords taking over could potentially be even worse for the neighbouring regions than Putin.

    Anyways: yeah UK does have big problems on it’s own. I don’t think it’s really important what exactly is the motivation if the current lawmakers for the drive towards more authoritarian laws. It’s important to recognize that that is a global phenomenon and that is driven by the current and coming economic crises.






  • killingspark@feddit.orgtoAutism@lemmy.worldWho is in this meme?
    link
    fedilink
    English
    arrow-up
    17
    ·
    edit-2
    6 months ago

    And then you get an invite from a person you would have thought you aren’t friends with, based on their behavior. Time to start a game I like to call: “Is it an invite out of politeness/because of a social norm I’m missing or is this an actual invite because we are friends and I missed that”


  • killingspark@feddit.orgtoProgramming@programming.devWhat Git clients do you use?
    link
    fedilink
    English
    arrow-up
    23
    arrow-down
    1
    ·
    edit-2
    6 months ago

    The only thing I’m missing in the CLI is easy picking and choosing which change to include in a commit on a more fine grained basis than files. I sometimes have a changed file and the changes fix different issues and thus should get separate commits but with the CLI I can’t easily select the changes to be staged. At least not AFAIK.

    Edit: Richards law of posting something wrong to get fast correct answers seems to stay true, even on lemmy. Thanks for teaching me something today <3




  • killingspark@feddit.orgtoMemes@lemmy.mlLazy moochers
    link
    fedilink
    English
    arrow-up
    3
    arrow-down
    1
    ·
    7 months ago

    You are not great at logic and analogies, are you?

    Well if there can be good tenants and bad tenants, surely there can be good landlords and bad landlords, or is that not possible, all of them are automatically evil?

    All of them do earn money just by owning property. I’m not calling that evil or good or bad. It is what it is. And I’m sure many landlords are nice enough people. I am against it though.

    So by that logic, VPNs and Bitcoin should both be illegal because they can be used by criminals (even though they have legitimate uses too) because the underlying mechanism is the same

    I’m not even sure where to begin. Neither of those, VPN nor Bitcoin, allow you to earn money simply by owning property. Both of them can be used legally and illegally, but that has nothing to do with landlords which are always able to rent out their property completly legally but are still always being a parasite. I’m not saying renting should be banned because one kind of landlords are evil and the others aren’t. I’m saying the mechanism of profiting off of property while exploiting the need for housing puts all of them on a spectrum between siphoning off a little or siphoning off a lot of the workers income.