Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
I spent 181 minutes waiting for the Zig compiler this week (zackoverflow.dev)
24 points by ingve 4 months ago | hide | past | favorite | 3 comments


> Bun’s codebase is massive. It is currently at ~850k lines of Zig code.

I’m an ignorant in zig, but wouldn’t breaking the code up in libraries help?


That does not really work, in many cases, because Zig doesn't have native libraries. Or rather, native Zig libraries are pure source code, compiled together with the app. And if you use C libraries, you end missing many Zig features. That is even more problematic if you depend on comptime parameters a lot.


Ah I see. Thank you for clarifying this point




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

Search: