• 0 Posts
  • 21 Comments
Joined 9 months ago
cake
Cake day: December 28th, 2025

help-circle


  • There’s a lot of folklore around cast iron, so be careful when taking advice on what to do. Please wash your pan even if people yell at you for doing it; it’s hygienic and won’t strip the pan unless you have soap with lye in it. If your soap does have lye, you’ll probably want some that doesn’t.

    Also, don’t feel like you need to coddle it. It’s a big chunk of iron. It’ll be fine despite people insisting you need to follow their way or your pan will explode. It can get weirdly cult-like. If you mess up too badly, you’ll just need to strip the pan and put a new layer of seasoning on it, which isn’t that difficult.

    That said, you’ll probably need to use more fat than you thought you’d need while cooking when you’re building up the seasoning. Eventually, things will stop sticking as much, though.






  • Slow depends on the use case. If your main bottlenecks are in code that people have written highly optimized lower-level libraries for, it could be slower to roll your own implementation or use a less mature library in a different language. And in some cases it might not matter if you take 1 ms or 100 ms to do something.

    It works the other way too, and you have to weigh the pros and cons of your specific case when you choose a language. What level of abstraction do you want to work at, how stable do you need the toolchain to be, how familiar you are with the language, what’s supported in the language, how easy is it to do what you want, what’s the norm in the domain you’re working in, etc.






  • arthropod_shift@programming.devtoMicroblog Memes@lemmy.worldUm, actually
    link
    fedilink
    English
    arrow-up
    1
    arrow-down
    2
    ·
    4 months ago

    I don’t think this paints all of atheism as a bad thing, just satirizes militant atheists who struggle with the fact that others can peacefully hold beliefs that are incompatible with their own. Reddit’s full of them, and they’re the equivalent of the evangelizing Christian that jumps on the “you need Jesus” spiel at the first whiff of non-Christian views.

    In my (atheist) opinion, the two are equally obnoxious.




  • Not moving the goalposts at all, you’re just missing the forest for the trees. The main point is that there are plenty of use cases that can use pure C with no assembly. I went with a simple example because I thought you’d have an issue with more complex examples like sending a notification over SMS via modem or providing a serial interface for sensor data.

    I don’t feel like arguing for the sake of arguing, though, and I feel like we’re in a pedantry spiral, so I’ll leave the conversation at that. Hope you enjoy your day.



  • Not necessarily. Let’s say that…

    • The stack pointer is defined in the vector table to point somewhere into RAM.
    • The reset vector points to some function _entry(), with a linker script to take care of its memory placement.
    • All other interrupt handlers are arbitrary C functions.

    You can compile only your C source file that defines _entry() and interrupt vectors, then flash the resulting firmware. No assembly involved, no external linkage, and no stdlib required.



  • Yeah, if your bootloader is expected to handle that you’re going to need assembly. That can also be delegated to the kernel, RTOS, or bare metal reset vector later on in the boot sequence, though. I had to write a bootloader for an embedded system like this once and it basically just applied firmware updates, validated the firmware, and handed control over to the firmware.