News for hackers. Stuff that matters.
Re:Porffor: A from-scratch ahead-of-time JS engine by jitl on Wednesday July 31, 2024 @11:32AM (#41120097)
In my mind, the big room for improvement is eliminating the cost to call from JS into other native languages. In node/V8 you pay a memcopy when you pass or return a string from C++ land. If an ahead of time compiler for JS can use escape analysis or other lifetime analysis for string or byte array data, you could make I/0 or at least writes from JavaScript to, for example, sqlite, about twice as fast.

There are no comments on this comment yet.