Hacker News new | past | comments | ask | show | jobs | submit login

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.




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


Yes, contrary to C myths, any language can have those primitives as Assembly libs, which ISO C also requires anyway.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: