• 0 Posts
  • 82 Comments
Joined 1 year ago
cake
Cake day: July 9th, 2023

help-circle



  • It’s a massive win, and I would question the credibility of any systems programmer that doesn’t recognize that as soon as they understand the wrapper arrangement. I would have to assume that such people are going around making egregious errors in how they’re using mutexes in their C-like code, and are the reason Rust is such an important language to roll out everywhere.

    The only time I’ve ever needed a Mutex<()> so far with Rust is when I had to interop with a C library which itself was not thread safe (unprotected use of global variables), so I needed to lock the placeholder mutex each time I called one of the C functions.



  • The ideas in the article are great, I’m just a little confused by some aspects of the author’s tone where it sounds like there’s an assumption that the Rust community isn’t interested in expanding the scope of the language to every conceivable use case domain and height.

    For the 4 years that I’ve been paying attention the Rust language is advancing faster than I ever thought a language is able to, but more importantly that advancement has been sound and sensible. So far I haven’t seen a language feature make it into Rust stable and thought “Oh no that was a mistake”, even as features roll in at an incredible rate.

    Compare that to the C++ ecosystem where I feel like almost every new language feature is arriving very slowly while also being poorly executed (not that I think the ISO committee is doing their job badly; I just think it’s effectively impossible to make new language features in C++ without gross problems so long as you demand backwards compatibility).

    I fully expect everything in this very sensible list to make it into the language at a reasonable pace. I don’t object to the “bikeshedding” as much as the author here seems to because I’d appreciate if Rust can avoid painting itself into a corner with bad language design choices the way C++ has. If we’re talking about language ergonomics, I’d rather suffer some tedium now while waiting for a feature to be polished than be stuck in a corner forever in the future because a bad decision was made.

    One example I can think of is I’m not convinced that his proposal around kwargs for function arguments is a good thing, at least not without some serious thinking. For example should it support the ability to reduce foo(a, b, x: x) to just foo(a, b, x) like what’s done for struct construction? If so then the optional arguments start to look too much like positional arguments and the syntax starts to get questionable to me. On the other hand if that simplification isn’t supported then that becomes inconsistent with other parts of the language. So this is something that I believe requires a lot of serious thought, and maybe the better answer is to have built-in macros for generating builder structs

    That being said, the edition system of Rust could afford us some leeway on not being forever trapped with a bad language design choice, but I don’t think we want to rely too much on that.


  • You’d be right if the cavity is only compressing other organs inside the body without changing the overall volume, but I don’t know why you seem to insist on making that assumption.

    I thought it would be clear from my original description, via the analogy with lungs, that the cavity would not squish the internal organs but rather expand the overall volume of the body.


  • My head canon for sea-based Kaiju is they have a sack of muscles somewhere inside their body that can expand a cavity, kind of like the diaphragm expands the lungs, except instead of taking in air or water it just creates a volume of vacuum inside of them. This makes them extremely bouyant relative to the surrounding sea pressure, so they rapidly ascend and can casually float like a boat near the surface.

    But if they ever want to dive again, they just let that cavity collapse and all their bouyancy goes away.


  • I think it’s specifically meant to debunk the idea that meat is the only affordable source of protein-dense food, when in reality there are vegan protein-dense foods that are even more affordable.

    That doesn’t conflict with the fact that a well balanced diet is important; it’s just addressing one sticking point that tends to come up in these conversations.


  • “what could I have done as Winston Churchill or (I think it was) Truman.”

    These people were influential but did not have unilateral power. In their position I would have tried to establish refuge for Jewish people and grant them protective status. Then because of how racist and dumb society was, I would have lost my political position and my influence.


  • 5C5C5C@programming.devtoMemes@lemmy.mlIsrael’s imminent fate
    link
    fedilink
    arrow-up
    17
    arrow-down
    1
    ·
    5 months ago

    Everything you’re saying really just supports the fact that the nations of the time were handling the situation in a wildly immoral way, and the creation of Israel as an ethnostate was part and parcel of that immorality, and remains highly consequential to this date.

    There’s no point asking me as an individual how I would personally have solved the crisis if I could travel back in time, because one person can’t unilaterally force a nation to do anything without being a dictator, and people don’t become dictators without doing horrible things.

    What matters is recognizing that the Israel of today came to exist out of two factors:

    1. Wealthy and influential Zionists wanted to claim Palestinian land by any means possible to further enrich themselves.
    2. Other nations wanted somewhere to send as many Jewish people as possible because they were antisemitic and didn’t like refugees.

    Now we’re stuck dealing with the consequences of our idiot racist ancestors. Let’s just try our best to not be overtly idiotic or racist ourselves (racist, for example, by turning a blind eye to the genocide happening to Palestinians, as if they’re not even human beings, or idiotic by thinking that there’s any justification for Israel’s insanely disproportionate use of force).

    Just to be clear, I’m not accusing you specifically of being racist or idiotic, I’m just describing my general position on things.





  • Weird how this notion of “personal responsibility” applies to every person except for those people who choose to intentionally misrepresenting the product by branding it in ways that are misleading. The people running this company aren’t responsible for their role in misleading the public, just because the fine print happens to indicate that the product isn’t actually what it’s marketed as?

    Now you’ll probably say something to the effect of “I never said that! You’re putting words in my mouth!” except what other motivation can you have to jump to the defense of the liar and blame people for being misled, except that you want to put all the responsibility on individuals for being misled and not on the company that is systematically and intentionally misleading them? Maybe you just manage to derive a smug sense of superiority thinking of yourself as someone who is invulnerable to this kind of tactic so blaming the victims lets you feel good about yourself.




  • 5C5C5C@programming.devtoMemes@lemmy.mlThe signs are aligned.
    link
    fedilink
    arrow-up
    4
    arrow-down
    3
    ·
    edit-2
    6 months ago

    I mean scientists tried being polite and give gentle nudges with the climate crisis for decades and look where it got us. Civilization is driving towards a cliff and we’ve thrown away the steering wheel.

    When I was younger I used to think that being nice to people and engaging them on their own terms is the best way to win people over to your cause, but at the end of the day people don’t actually bother to change unless they realize that they need to for their own survival. So I’m done putting all my eggs into the respectability politics basket, and I’m not going beat around the bush on what a fucking cataclysmic crisis we’re being faced with.

    I certainly won’t win anyone’s affection, but if I can get at least one person to pause and ask themselves “…Am I in danger…?” then I’ll take that as a win. If others think they can win people over with kindness, they’re welcome to try.


  • 5C5C5C@programming.devtoMemes@lemmy.mlThe signs are aligned.
    link
    fedilink
    arrow-up
    2
    arrow-down
    1
    ·
    edit-2
    6 months ago

    Weird take on morality.

    I’m eager to acknowledge the systemic challenges of being veg_n since those were barriers for me in the past myself. I’m privileged to not have those issues anymore, but I still recognize the premium that I pay to be veg_n (my partner and I refer to it as “the vegetarian tax”).

    I harbor no animosity towards people who can acknowledge the sustainability crisis of the meat industry but aren’t in a position to personally separate from it. The expectation that I have for decent and informed people, in order from the bare minimum to the absolute most is:

    1. Don’t pointlessly disparage veg_ns or spread misinformed agrobusiness propaganda. This in fact takes negative effort.
    2. Occasionally examine whether you have any opportunities to reduce your meat consumption.
    3. Talk to people you personally know about the sustainability crisis and see if you can find others in your circle who are interested in reducing their meat consumption. Work together to figure out effective strategies for doing so in your situation.

  • 5C5C5C@programming.devtoMemes@lemmy.mlThe signs are aligned.
    link
    fedilink
    arrow-up
    3
    arrow-down
    5
    ·
    edit-2
    6 months ago

    I find that meat eaters’ reactionary indignation to the facts of the harm caused by eating meat is way more aggressive than veg_ns trying to point out to people that we’re literally killing ourselves as a species.

    It’s somehow even stupider when people who are veg_n like yourself act like it’s offensive to promote the importance of veg_nism to a world that will otherwise die.

    I really don’t care how many people like me when it comes at the cost of the continued existence of humanity. I have no remorse about shoving an uncomfortable message into the faces of people who need to hear it.