2 ms·
Going to https://github.com/oven-sh/bun https://github.com/oven-sh/bun It seems bun is: Zig 52.0% C++ 19.2% JavaScript 14.6% TypeScript 12.1% ... which i
by djoldman 3y ago
Going to https://github.com/oven-sh/bun https://github.com/oven-sh/bun
It seems bun is:
Zig
52.0%
C++
19.2%
JavaScript
14.6%
TypeScript
12.1%
...
which is an interesting mix. I assume the JS is intended to be TS eventually or actually is right now. But why all the C++?
- Jarred 3y agoMany of the web APIs in Bun are generated code from WebKit/Safari, which uses C++. We copy them into Bun, comment out the web browser parts, and ship them in the runtime. This is great for web compatibility because it’s literally from a web browser