Hacker News new | ask | show | jobs
by brundolf 1397 days ago
Worth clarifying that Bun isn't a from-scratch JS runtime, it's a wrapper around JavaScriptCore (WebKit's JS engine), like Node is around V8

As you say, there's still plenty of room for vulnerabilities in the parts it does implement, and Zig isn't strictly memory-safe. However, Zig has lots of modern features like optional-types that help quite a bit with avoiding memory errors: https://www.scattered-thoughts.net/writing/how-safe-is-zig/

Which is to say your question is definitely valid, but there are also reasons to think this isn't as huge a concern as it might seem

1 comments

> Worth clarifying that Bun isn't a from-scratch JS runtime, it's a wrapper around JavaScriptCore (WebKit's JS engine)

Does this mean you could potentially run some Node code on iOS?