arthropod_shift

u/arthropod_shift@programming.dev
0 posts · 20 comments

Recent posts

No posts.

Recent comments

That smells a little like folk etymology to me, are you sure about that? My understanding is that since the word is older than computers and can refer to any group of 8 things, "octet" in computing just came from the need to communicate a group of exactly 8 bits given that bytes aren't always that size.

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.

I've had some not so good pig intestine and some phenomenal, and the worse ones were similar to how you described it. If you ever decide you'd try it again, I think it's so much better when crispy. The texture reminds me of bacon with a gelatinous, melt in your mouth center almost like burnt ends.

on me_irl · c/me_irl · 4 pts · 53d

Canonical's hiring process is wild. The number of stages is a deal breaker in itself, but the bizarre questions and the tests you mentioned don't do them any favors either.

I lost interest in the first stage with them asking for an essay about things like what kind of student I was in high school. The full email was massive.

on Um, actually · c/microblogmemes · -1 pts · 69d

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.

  • How can iodéOS (Lineage fork) be installed on phones with bootloaders locked?

I just don't understand how they can create an installer that works with bootloader locked phones, and then the OS remain completely secure.

Barring exploits, phones with a locked bootloader can't be flashed with a different OS by design.

on The Simpsons · c/microblogmemes · 21 pts · 106d

Thanks for calling out the bullshit, friend. Mainstream science literacy is in a sad state.

on ;DR blame the dev · c/programmer_humor · 1 pts · 218d

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.

on ;DR blame the dev · c/programmer_humor · 2 pts · 218d

Again, those aren't universally required. You can make an embedded device that reads the ambient light levels and turns on an LED when it's dark without thread stacks, privileges, or interrupts. Don't make your system more complicated than it needs to be.

on ;DR blame the dev · c/programmer_humor · 2 pts · 218d

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.

on ;DR blame the dev · c/programmer_humor · 3 pts · 218d

My point is that assembly isn't strictly required. You can do memory-mapped reads and writes from C all you want, which is enough for plenty of I/O: storage, serial, sensors, GPIOs.... You can build quite a few things with these without touching system registers.

I'm not saying we should abolish assembly. Just that it isn't a universal requirement.

on ;DR blame the dev · c/programmer_humor · 4 pts · 218d

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.

Reminds me of not long after I started using Linux. I thought the kernel was "just a program" like cat and tried to run the kernel from the terminal, only to be disappointed when a new kernel in fact did not start running inside the terminal window.