2 ms·
One of my favorites: Bun has a working FFI that is also fast. https://bun.sh/docs/api/ffi https://bun.sh/docs/api/ffi So has Deno, but Bun's feel more evolved
by ojosilva 3y ago
One of my favorites: Bun has a working FFI that is also fast.
https://bun.sh/docs/api/ffi https://bun.sh/docs/api/ffi
So has Deno, but Bun's feel more evolved as it comes bundled with tools and sufficient examples for working with pointers. The only thing Bun is missing right now is the Deno equivalent of non-blocking FFI calls, ie `await mylib.myFunc()`.
Another one on my wishlist for Bun: embedded Bun. A library distribution would be nice, so that we can call into Bun as ie "libbun.so" from other languages. It would be more resourceful than just embedding WebKit/SpiderMonkey/v8 as these lack any real capabilities besides running vanilla JS.