denoland / deno

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

[Feature] First-class support for languages other than TypeScript. (WebAssembly Interface Types.) #9673

Open brillout opened 3 years ago

brillout commented 3 years ago

WebAssembly Interface Types will make it more seamless to write and consume modules written in other high-level languages. AFAICT the only main restriction would then be the performance drawback of values being copied back and forth.

I'm imagining a Deno future where I will be able to write one module in Rust, another in Python (once WebAssembly GC is implemented), and one in TypeScript. But I'm left with many questions.

Thoughts? Is that a future Deno is interested in?

It would lovely to be able to seamlessly write a frontend in TypeScript with a backend in Rust, while using a machine learning library written in Python. All that using the Deno runtime.

emadurandal commented 3 years ago

Hi, I like this topic. Recently I like ReScript language. https://rescript-lang.org/docs/manual/latest/introduction

It doesn't support WebAssembly so far, but the ReScript's compile speed is good for this problem. I guess. https://docs.google.com/document/d/1_WvwHl7BXUPmoiSeD8G83JmS8ypsTPqed4Btkqkn_-4/preview?pru=AAABcrrKL5k*nQ4LS569NsRRAce2BVanXw#