denoland / deno

A modern runtime for JavaScript and TypeScript.
https://deno.com
MIT License
97.83k stars 5.39k forks source link

Deno compile - Precompile Wasm #22798

Open nearest-river opened 8 months ago

nearest-river commented 8 months ago

If we can compile deno code to WASM, then we can transpile that WASM to native Assembly and eventually ELF..

This can optimize deno compiled executables' size and runtime performance...

Foxchandaisuki commented 8 months ago

Do you want to make Deno support AOT compile into Native Binary machine code? Then same with me!

nearest-river commented 8 months ago

Do you want to make Deno support AOT compile into Native Binary machine code? Then same with me!

Well that's not exactly what I'm saying.. deno compile already exists I'm just talking about some optimization that could be done

Foxchandaisuki commented 8 months ago

Do you want to make Deno support AOT compile into Native Binary machine code? Then same with me!

Well that's not exactly what I'm saying.. deno compile already exists I'm just talking about some optimization that could be done

deno compile already exists but it is not compiling to native binary. it is just giving the JavaScript code wrapped with portable deno.

nearest-river commented 8 months ago

Do you want to make Deno support AOT compile into Native Binary machine code? Then same with me!

Well that's not exactly what I'm saying.. deno compile already exists I'm just talking about some optimization that could be done

deno compile already exists but it is not compiling to native binary. it is just giving the JavaScript code wrapped with portable deno.

that's right and that's what I'm talking about..

I've been looking for a wasm compiler but I've yet to see one that can compile deno code to wasm... I'm wondering whether we can use jsfu*k for that

vikyw89 commented 3 months ago

https://www.assemblyscript.org

nearest-river commented 2 months ago

https://www.assemblyscript.org

you consider yourself somewhat of a big mia-khalifa?