logoalt Hacker News

Jweb_Guruyesterday at 2:37 PM2 repliesview on HN

Respectfully, for browser-based work, simplicity is absolutely not a good enough reason to use a memory-unsafe language. Your claim that Zig is in some way safer than Rust for something like this is flat out untrue.


Replies

dnauticsyesterday at 6:37 PM

What is your attack model here? Each request lives in its own arena allocator, so there is no way for any potentially malicious JavaScript to escape and read memory owned by any other request, even if there is a miscode. otherwise, VM safety is delegated to the V8 core.

hello_motoyesterday at 3:52 PM

In that blog post, the author said safer than C not Rust.