logoalt Hacker News

pikertoday at 10:13 AM3 repliesview on HN

Wow, it's unsafe Rust? That seems... like the worst of all worlds.

If nobody knows why the unsafe is required there's no way they'll be able to unwind it. If they can't unwind it then they're in a worse version of C (+ cargo).


Replies

fnandstoday at 10:56 AM

Not a lot of it is unsafe, I think they said 4%?

It's practically impossible to write safe Rust when you are calling external libs written in C/C++, like they do for the Javascript engine.

show 1 reply
kawogitoday at 10:29 AM

IIUC that was meant as an intermediate step (which isn't uncommon), which IMO makes the translation way less exciting.

The interesting part will be whether they can transform that "mechanical Rust" into something idiomatic. I'm waiting ...

show 1 reply
bigcityslidertoday at 10:31 AM

Unsafe Rust makes me think they did this entirely because LLMs are better at Rust than at Zig, but let's see what happens next.