|
|
|
|
|
by lunar_mycroft
17 days ago
|
|
Bun has about twice the density of `unsafe` compared to deno, which does roughly the same job (wrap a c/c++ javascript engine to make a server side runtime written in rust). So not as massive a difference as the linked post's comparison, but still significantly more unsafe than we'd expect. |
|
For a file-by-file close to literal translation of a memory-unsafe language to Rust, isn't that pretty good?
I was expecting the post-rewrite Bun's unsafe usages to be in the order of magnitude of C2Rust (https://c2rust.com/). I was _not_ expecting it to be in the same ballpark as hand-written Rust.