Hacker News new | ask | show | jobs
by davemp 75 days ago
Have you written anything low level in Zig? If anything, Zig is lower level than C.

A lot of the “high level assembly” parts of C are actually compiler extensions and not from the C spec.

libc is even worse.

1 comments

C wasn't meant to fully replace low-level languages like Assembly. Context switching still isn't possible in C (nor in Zig).

And most C library calls are actually Unix system calls. Malloc() is an operating system call and not a library call. Yes, they made it a library call later on to facilitate usage in other operating systems but it was originally an integral part of the Unix OS.