by Ginden · 5y ago · 0 comments
Because there's rarely a real benefit to this approach.
I have yet to found use case where C/C++/Rust library is useful AND spawning process to do heavy work is not a viable option AND JS-only library won't work.
I can think basically only about communication with external resource like database.
https://github.com/evanw/esbuild/blob/11d7eacd491c94d2aa23cd...
And when it is a database, all the benefits of a compiled language turn into just a fancy no-brainer wrapper which still sucks because of “impedance mismatch”. It would be nice if that was true jit-integrated rust or at least C ffi, which one could call directly from js. But I don’t think that v8 will get such capability in observable future.