3 ms·
> My main reason for doing this, is to compile Svelte without Node.js and possibly use Deno instead How does a rewrite in rust make using deno easier?
by orangepanda 4y ago
> My main reason for doing this, is to compile Svelte without Node.js and possibly use Deno instead
How does a rewrite in rust make using deno easier?
- norman784 4y agoMaybe because you don't need the Node.js runtime, so you can mix maybe Deno with Svelte?
- labrador 4y agoThe JavaScript engine in Deno has a Rust wrapper. Perhaps the Rust Svelte compiler can interact with the code in some beneficial way. Ryan Dahl - author of both Node and Deno (will the next version be "Done"?): One of Deno's strengths is Rust https://www.youtube.com/watch?v=ulJicGEeaYo https://www.youtube.com/watch?v=ulJicGEeaYo
- kandros 4y agoI think it means using rusty-v8 directly or it's API via Deno to SSR in deno runtimes or similar? https://deno.com/blog/roll-your-own-javascript-runtime https://deno.com/blog/roll-your-own-javascript-runtime
- labrador 4y agoThat's super nice looking Rust. You caused me to revise my opinion the Rust had ugly syntax. I got the impression when I wrote a file system tool in Rust a few years ago. I see things have improved.
- austinjp 4y ago> (will the next version be "Done"?) My vote would be for "Endo".
- crabmusket 4y agoI assume the plan would be to compile the Rust into a dylib and use Deno's FFI to run it? https://deno.land/manual/runtime/ffi_api https://deno.land/manual/runtime/ffi_api
- born-jre 4y agoProbably compile to WebAssembly
- yencabulator 4y agoI think you can run Svelte-compiled Javascript in Deno today -- it's just Javascript, after all. Having the compiler not depend on NodeJS would mean you could live in either (Deno+Rust) or (Deno+WASM) ecosystems fully.