←back to thread

169 points signa11 | 2 comments | | HN request time: 0.001s | source
Show context
stonethrowaway ◴[] No.41876123[source]
Anyone who wants to do kernel-level development should first do Embedded hardware/software interfacing. No RTOS, plain “Embedded C”, with some bit banging and dealing with voltage spikesc transients and people doing stupid shit to hardware (yes, really) and other things. Know the memory map and recite it from memory. Some might think I’m joking or being facetious - no, I’m pretty serious actually. I’d rather have an embedded person writing kernel drivers in slapped-together C than a Rustacian that complains about unsafe code and being an idiot about it. See [0] for detailed explanation.

People need to learn the niceness of safety and perfect execution is a continuum of tolerances and flimsy guarantees from unmarked silicon that could be made in US, but is most likely a knock off made in China that will fail in 1/3rd of the expected time and gives a false reading if you so much as look at it the wrong way.

[0] https://www.usenix.org/system/files/1311_05-08_mickens.pdf

replies(3): >>41876437 #>>41876508 #>>41877525 #
jendjdndn ◴[] No.41876508[source]
You sound a lot like "kids these days!"

What applicable skills would someone writing a kernel driver gain from reciting a memory map? Abstractions exist for a reason.

The skill is in creating useful an performant abstractions.

replies(3): >>41876670 #>>41877153 #>>41877811 #
1. a5c11 ◴[] No.41877811[source]
The problem starts when the abstraction fails and you have to dive deeper, but no one taught you how to dive, only swim with a head above the water level. Those who can dive can also swim, it doesn't work the other way round, though.
replies(1): >>41902452 #
2. saagarjha ◴[] No.41902452[source]
And who is to say that the people writing Rust are worse at swimming than you are?