Hacker News new | ask | show | jobs
by azakai 2083 days ago
> Eventually this might make it into browsers and web servers

I'm skeptical at least for browsers. Browser JS VMs have integration between their parsers and their interpreter and their JITs, at minimum. You wouldn't really be able to drop in a standalone project like this.

But I agree it's not a bad thing to have more JS parsers out there!

Many are already written in a safe language, though, so this isn't new, for example several are written in JS and TS, there is Rhino in Java, Otto in Go, Esprima .NET in C#, etc. etc. But it's natural to want one in Rust as well.

1 comments

>several are written in JS and TS, there is Rhino in Java, Otto in Go, Esprima .NET in C#

All of those have a mandatory GC.

Indeed, and that may matter in some cases.

As I said, it's natural to want a JS parser in Rust. Each language has its own benefits, and Rust's are quite unique.