3 ms·
> 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?
by jiehong 2y ago
> 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?
- lukaslalinsky 2y agoThat 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.
- jiehong 2y agoAh I see. Thank you for clarifying this point