Partner at rocicorp.dev, building zero.rocicorp.dev
Ex V8, Chrome, TC39, Gmail, Gears

@arv.tools
Partner at rocicorp.dev, building zero.rocicorp.dev
Ex V8, Chrome, TC39, Gmail, Gears
If you work for a company or an organization, consider signing this open letter by @open-web-advocacy.org to @vonderleyen.ec.europa.eu to demand a competitive web for a stronger Europe. But you can also sign as an individual. action.open-web-advocacy.org 🇪🇺🌐
Also MDV wen?
Blast from the past!
Intuitively speaking... Where Node is going to win is long running monomorphic code that is optimized all the way to TurboFan. Interpreting and optomizing code is not free and that is why short running programs end up faster with Porffor.
We've had 11 years to fix those cases...
It's 11 years later and we are still using module.exports?
On my way to Amsterdam for @perfnow.nl
On my way to Amsterdam for @perfnow.nl
Having to provide the source code for the GreenThread is unfortunate. Can the argument be a module specifier instead? Maybe that would be confusing since the green thread has its own module loader? (I didn't read the PR)
I implemented a new type of lightweight worker for Node.js ... scratching a long time itch... www.jasnell.me/posts/green-...
Aggregates and JSON filters were the most wanted features this year!
Zero 1.12 is out 🎉 • Synced aggregates: count(), sum(), avg(), min(), max() • groupBy() and distinct() • JSON path filters • React Native cold start about 3x faster • zero-cache uses up to 1.8x less CPU zero.rocicorp.dev/docs/release...
But the ergonomics of actors (new Worker) is terrible. The thing that shared memory unlocks is to actually create ergonomic actors. Another path forward would be to add actors to the language somehow?
I don't understand your point. Multi threading unlocks better performance. It is true that actors with message passing are a simpler and safer solution. The problem with message passing is the price of copying data. Threads or shared structs both solve this.
The only reason I still check on x is to read Jared Sumner's explorations of the JavaScript language.
More Hermes optimizations.
Implementing TimSort in JS is about 17-25x faster than the builtin Array.prototype.sort.
TIL Hermes does not support async generators natively. Refactor the code to use callbacks for a 29x speedup!
Workers are already actors. Expensive AF actors, but still actors. What makes Erlang stand out is immutable data, so copying is safe and invisible. JS can’t retrofit that. With shared memory you can build efficient Erlang-like actors. Workers won’t give you that.
I haven’t been able to stop thinking about multithreaded JavaScript, so I built it three times: shared-everything threads in Porffor, an ownership checker for TypeScript, and a polyfill of the TC39 structs proposal. Playgrounds included.
12 years later and I've resurrected my old blog.