3 ms·
How could we easily expose syscalls to `qjs`? Deno is just a Rust IPC/syscall layer glued to V8 really...
by MuffinFlavored 7y ago
How could we easily expose syscalls to `qjs`? Deno is just a Rust IPC/syscall layer glued to V8 really...
- mstade 7y agoSome Node APIs could probably be implemented using the std and os modules[1], but others (e.g. networking) would probably need to be implemented via the C API[2]. [1]: https://bellard.org/quickjs/quickjs.html#Standard-library https://bellard.org/quickjs/quickjs.html#Standard-library [2]: https://bellard.org/quickjs/quickjs.html#QuickJS-C-API https://bellard.org/quickjs/quickjs.html#QuickJS-C-API
- MuffinFlavored 7y agoIt'd be super neat if he added a native `net` module. Then we could do node.js http/net vs QuickJS benchmarks.
- dariojcravero 7y agoPerhaps libuv-webserver[1] could be used for that purpose? [1]: https://github.com/springmeyer/libuv-webserver https://github.com/springmeyer/libuv-webserver