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

IIRC the zig compiler compiles C. There is some work being done on making zig compile the Linux kernel (I think someone already succeeded).

zig currently uses LLVM but it wants to move away from that:

https://www.reddit.com/r/Zig/comments/18x1wce/is_it_true_tha...

Once zig compiles Linux there are basically 3 compilers that can do so gcc, clang (llvm) and zig (less and less llvm).

I expect there to be good tools to port C code to zig (much hard for C->Rust), especially with the advancements in LLMs lately. I would not be surprised if that would result in a zig-linux code base in the coming 5 years. Sure the C based kernel may be the hot bed for innovation for years to come.




Qurious: will zig still compile C after it moves off LLVM?


Yes, but the LLVM integration will be moved to a package so you only need to include it if you want to do that.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

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

Search: