• 0 Posts
  • 93 Comments
Joined 11 months ago
cake
Cake day: August 2nd, 2023

help-circle

  • There’s a story in the Talmud about Hillel the elder, a rabbi who died in 10 CE:

    There was another incident involving one gentile who came before Shammai and said to Shammai: Convert me on condition that you teach me the entire Torah while I am standing on one foot. Shammai pushed him away with the builder’s cubit in his hand. This was a common measuring stick and Shammai was a builder by trade. The same gentile came before Hillel. He converted him and said to him: That which is hateful to you do not do to another; that is the entire Torah, and the rest is its interpretation. Go study.




  • Apparently that might or might not be a mistranslation?

    https://www.etymonline.com/word/checkmate

    mid-14c., in chess, said of a king when it is in check and cannot escape it, from Old French eschec mat (Modern French échec et mat), which (with Spanish jaque y mate, Italian scacco-matto) is from Arabic shah mat “the king died” (see check (n.1)), which according to Barnhart is a misinterpretation of Persian mat “be astonished” as mata “to die,” mat “he is dead.” Hence Persian shah mat, if it is the ultimate source of the word, would be literally “the king is left helpless, the king is stumped.”




  • Inflation is calculated off of the cost of some particular basket of goods, and tends not to be even across those goods.

    Yeah, if you eat a lot of corporate fast food, prices have skyrocketed recently. At a rate that far outpaces the local pizzeria and Chinese restaurant down the street, or the cost of chicken and eggs from the grocery store.



  • Yeah, projects also exist in the real world and practical considerations matter.

    The legacy C/C++ code base might slowly and strategically have components refactored into rust, or you might leave it.

    The C/C++ team might be interested in trying Rust, but have to code urgent projects in C/C++.

    In the same way that if you have a perfectly good felling axe and someone just invented the chain saw, you’re better off felling that tree with your axe than going into town, buying a chainsaw and figuring out how to use it. The axe isn’t really the right tool for the job anymore, but it still works.


  • Pipoca@lemmy.worldtoProgrammer Humor@lemmy.mlSTOP WRITING C
    link
    fedilink
    arrow-up
    8
    ·
    edit-2
    5 months ago

    C is not how a computer truly works.

    If you want to know how computers work, learn assembly and circuit design. You can learn C without ever thinking about registers, register allocation, the program counter, etc.

    Although you can learn assembly without ever learning about e.g. branch prediction. There’s tons of levels of abstraction in computers, and many of the lower level ones try to pretend you’ve still got a computer from the 80s even though CPUs are a lot more complex than they used to be.

    As an aside, I’ve anecdotally heard of some schools teaching Rust instead of C as a systems language in courses. Rust has a different model than C, but will still teach you about static memory vs the stack vs the heap, pointers, etc.

    Honestly, if I had to write some systems software, I’d be way more confident in any Rust code I wrote than C/C++ code. Nasal demons scare me.


  • Pipoca@lemmy.worldtoProgrammer Humor@lemmy.mlSTOP WRITING C
    link
    fedilink
    arrow-up
    11
    arrow-down
    2
    ·
    5 months ago

    Right tool for the job, sure, but that evolves over time.

    Like, years back carpenters didn’t have access to table saws that didn’t have safety features that prevent you from cutting off your fingers by stopping the blade as soon as it touches them. Now we do. Are old table saws still the “right tool for the job”, or are they just a dangerous version of a modern tool that results in needless accidents?

    Is C still the right tool for the job in places where Rust is a good option?







  • Pipoca@lemmy.worldtoTwoXChromosomes@slrpnk.netFlaw or intent?
    link
    fedilink
    English
    arrow-up
    12
    ·
    7 months ago

    Not quite. To quote from the opinion:

    Though the statute affords physicians discretion, it requires more than a doctor’s mere subjective belief. By requiring the doctor to exercise “reasonable medical judgment,” the Legislature determined that the medical judgment involved must meet an objective standard. Dr. Karsan asserted that she has a “good faith belief” that Ms. Cox meets the exception’s requirements. Certainly, a doctor cannot exercise “reasonable medical judgment” if she does not hold her judgment in good faith. But the statute requires that judgment be a “reasonable medical” judgment, and Dr. Karsan has not asserted that her “good faith belief” about Ms. Cox’s condition meets that standard. …

    Nothing in this opinion prevents a physician from acting if, in that physician’s reasonable medical judgment, she determines that Ms. Cox has a “life-threatening physical condition” that places her “at risk of death” or “poses a serious risk of substantial impairment of a major bodily function unless the abortion is performed or induced.”

    Basically, the opinion is a fairly legalistic argument that the physician didn’t use the right magic words, but that the ruling doesn’t matter because there’s no de jure requirement for court preapproval. It completely misses the point of why doctors are unwilling to perform abortions without that approval.



  • The US parties are weird.

    Because there’s no PR, anyone who wants to be effective has to join one of the parties. Because of that, diversity in each party is way higher than you see in places that use party list PR.

    For example, the Democrats have both Alrxandria Ocasio Cortez, who describes herself as a democratic socialist, and Joe Manchin, a fairly conservative former coal exec from West Virginia.

    The real interesting bit of American elections tends to be the primaries, where all the voters registered with a party vote on who their candidate should be. Alexandria Ocasio Cortez got elected because she defeated the incumbent Democrat in the primary.

    In 2020, everyone from Bernie Sanders to billionaire Michael Bloomberg ran in the Democratic primary. There was some real choice there until Biden won and it became just Trump vs Biden.