Hacker News new | ask | show | jobs
by djoldman 1063 days ago
Going to 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++?

1 comments

Many 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