Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I started messing around with zig in earnest https://github.com/agentultra/zig8 and I have to say that the development experience is great so far. The compile times are fast, the tooling is minimal in the unix sense, and it's been nice to play around with.

Highlights:

- compile-time evaluation

- integrated testing through scoped blocks

- prevents some implicit casts that we take for granted in C

- catches allocation errors

- explicit error return handling

I appreciate it trying to make a better C.



Compile times of the stage1 zig compiler may seem fast compared to e.g. rust or C++ but they are slow compared to what the WIP stage2 compiler can do :)


I can't complain as I mostly write Haskell these days and trade off compile time for other things.

That sounds excellent though, I'll check it out when it lands.




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

Search: