hachyderm.io is one of the many independent Mastodon servers you can use to participate in the fediverse.
Hachyderm is a safe space, LGBTQIA+ and BLM, primarily comprised of tech industry professionals world wide. Note that many non-user account types have restrictions - please see our About page.

Administered by:

Server stats:

9.6K
active users

@f4grx @pkhuong Can you explain how code is executed? The i386 opcodes are implemented by microcode. The microcode is executed by transistors. How far down do we have to go before we "understand" how code is executed?

Andy Gocke

@nedbat @f4grx @pkhuong When you no longer have problems at that layer, that's when you can stop caring about that layer. I don't think there's a universal level of knowledge that people need or is sufficient.

@agocke @nedbat @f4grx @pkhuong This is a great heuristic IMHO. If you're running into trouble with a layer, that's a sign you may need to learn more about it. If not, don't bother (unless it's for fun).

Of course you can have trouble with a layer without realizing that's what you're struggling with. Unknown unknowns etc. That's why it's helpful to have a community to ask - though if they just say "learn C" when your problems are caused by something else (as they likely are) how helpful is it.

@shauna @agocke @nedbat @f4grx @pkhuong Re: unknown unknowns: it's hard to write efficient code if you don't have at least some idea of lower layers.
See frontend devs who only know React and have no clue about standard HTML elements.
You might not need C itself, but you should know about how native code is executed and how the kernel works. You can get that from Rust or C++ too.

@shauna @agocke @nedbat @f4grx @pkhuong Sadly it's all too easy to keep lower layers shrouded in mystery if all you care about is supporting a narrow niche of users that are similar to you.
If you want your code to run on lower powered devices or to be accessible to others, you need to dig into lower layers.

There's a big difference between "everyone should know this" and "someone should know this" that seems to get glossed over in these kinds of discussions.

@csepp
@shauna @agocke @nedbat @f4grx @pkhuong