Hacker News new | past | comments | ask | show | jobs | submit | showsomerespect's comments login

Running a blank .js file in node took 66 milliseconds. An optimized binary I wrote in rust takes 2 milliseconds to execute. So, I think there's a cap there on how fast JavaScript tools can be

This is addressed in the article. Node doesn't cache an JS compilation data by default. There's an environment flag to turn that on, and the startup time drastically reduces with it on (on the second+ run of the file).

Also both Deno and Bun have more optimized startup times in general by default, some of that startup time is just Node, not a reflection of the language itself.


until you delete something you didn't mean to delete...

I'm struggling to see the advantage of this over, for example, `trash-cli`

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: