News for hackers. Stuff that matters.
Re:ISO C became unusable for operating systems development by GoblinSlayer on Friday January 21, 2022 @10:21AM (#30024696)
There are operating systems written in other languages than C.

A driver doesn't need to be implemented in C, but the kernel API is likely written in C, your code needs to talk to it somehow. If your driver is written in C, it's as simple as #include.

Re:ISO C became unusable for operating systems development by wruza on Friday January 21, 2022 @01:52PM (#30028196)
Isn’t this sort of circular? If very low-level, I mean in/out, lgdt, etc, were exposed as v8-bare-metal modules, it would be as simple as require() then.

  t = require(“awesome-8253”)
  p = require(“pio-node”)
  // cast your usual 0x42, 0x43, 0x61 spells
Re:ISO C became unusable for operating systems development by pjmlp on Saturday January 22, 2022 @08:51AM (#30036594)
Yes, contrary to C myths, any language can have those primitives as Assembly libs, which ISO C also requires anyway.