Comment

Comment by AndyKelley

If you're starting a new operating system project, you might consider using Zig[1] instead of C.

It does all the low level stuff that C does but it has some safety features as well as generics.

The standard library is usable in freestanding mode, even the data structures that allocate memory, because everything takes an allocator as a parameter.

Here are some examples:

* i386 OS: https://github.com/AndreaOrru/zen

* ARM (raspberry pi) OS: https://github.com/andrewrk/clashos

[1]: http://ziglang.org/

parent AndyKelley 8 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton