• 8 Posts
  • 134 Comments
Joined 6 years ago
cake
Cake day: May 31st, 2020

help-circle






  • Ephera@lemmy.mltoProgrammer Humor@lemmy.mlOp doesn't have time for interviews
    link
    fedilink
    English
    arrow-up
    19
    arrow-down
    1
    ·
    18 days ago

    The problem is that it sounds like a riddle. In a riddle, you’re traditionally supposed to work within the rules that you’ve been told. So, not thinking outside the box here is not an indication that the person isn’t capable of doing so.

    Of course, if I encountered this problem in real life, I’d ask Carol from accounting to check the other room, while I flip the switches. But my instinctive answer was that it is not possible, because I assumed it to be a riddle and the provided rules did not allow a solution.











  • I mean, yeah, I studied computer science. Presumably, I’ve been taught the majority of these at some point. I just absolutely fucking hate mathematical notation.

    Due to your comment, I’m guessing, top-left is multiplication then, even though I was also taught in school to use × for multiplication.
    Top-center might be logical AND? Top-right might be function composition? Center-left and center-right might be ranges, unless those dots indicate multiplication, then no fucking clue. Bottom left is set intersection. And one of these circles or crosses is probably the Cartesian product.

    So, I mean, I do know some of this shit. In truth, I was just deriding mathematical notation with that meme, because well, “Set” is the only actual word in all that mathematical notation… 😵‍💫



  • Lots of “modern” languages don’t interop terribly well with other languages, because they need a runtime environment to be executed.
    So, if you want to call a Python function from Java, you need to start a Python runtime and somehow pass the arguments and the result back and forth (e.g. via CLI or network communication).

    C, C++, Rust and a few other languages don’t need a runtime environment, because they get compiled down to machine code directly.
    As such, you can call functions written in them directly, from virtually any programming language. You just need to agree how the data is laid out in memory. Well, and the general agreement for that memory layout is the C ABI. Basically, C has stayed the same for long enough that everyone just uses its native memory layout for interoperability.

    And yeah, the Rust designers weren’t dumb, so they made sure that Rust can also use this C ABI pretty seamlessly. As such, you can call Rust-functions from C and C-functions from Rust, with just a bit of boilerplate in between.
    This has also been battle-tested quite well already, as Mozilla used this to rewrite larger chunks of Firefox, where you have C++ using its C capabilities to talk to Rust and vice versa.



  • Ephera@lemmy.mltoScience Memes@mander.xyzPeas plz
    link
    fedilink
    English
    arrow-up
    7
    ·
    1 month ago

    I believe, the problem is mainly white bread, which is what people typically have in mind for feeding ducks.

    As opposed to wholegrain, it only retains the endosperm, which is mostly just carbohydrates without many nutrients:

    I think, the lack of fiber is also particularly problematic. At least, I’ve heard that it gives them diarrhea, which probably means their guts don’t have time to extract the few remaining nutrients.