NHacker Next
login
▲Show HN: Ion, a Rust/Tokio powered JavaScript runtime for embeddersgithub.com
29 points by apatheticonion 3 days ago | 3 comments
Loading comments...
laurencerowe 5 hours ago [-]
> To gain access to the Deno (and Node.js compat) standard library used by Deno requires forking deno_cli as they have largely coupled these additions to the main executable.

This is no longer the case. While it does not currently provide a stable API, that functionality exists in the deno_runtime crate and is relatively easy to reuse.

CGamesPlay 8 hours ago [-]
The async example in the readme is weird. It appears to be an example of tokio::sleep, where you synchronously call into your library before you sleep. Nothing about your library usage is async. In fact, the whole usage of the library is blocking, so I can't even call it from my existing async code. I'm expecting: I can call my async Rust function from JavaScript, and I can await a JavaScript async method. The example should at the very least be using `async fn main`.
01HNNWZ0MV43FF 9 hours ago [-]
Still built on v8, but it claims to present a more Rust-friendly API than competitors