proposals icon indicating copy to clipboard operation
proposals copied to clipboard

Build something using Rust as WASM with JS

Open ArcticSpaceFox opened this issue 5 years ago • 6 comments

Hey I thought it would be cool to have some app with Rust handling heavy tasks in the back and JS in the front, so lets checkout how to do WASM with Rust.

Tell me what u think :)

ArcticSpaceFox avatar Jun 18 '20 15:06 ArcticSpaceFox

Sure, that does sound pretty cool. I haven't done that much wasm yet, but definitely interested 🤔

yamalight avatar Jun 18 '20 17:06 yamalight

There is even a rust based web framework yew.rs.

According to their webise:

Yew is a modern Rust framework for creating multi-threaded front-end web apps with WebAssembly.

  • It features a component-based framework which makes it easy to create interactive UIs. Developers who have experience with frameworks like React and Elm should feel quite at home when using Yew.
  • It has great performance by minimizing DOM API calls and by helping developers easily offload processing to background web workers.
  • It supports JavaScript interoperability, allowing developers to leverage NPM packages and integrate with existing JavaScript applications.

Tiim avatar Jun 19 '20 09:06 Tiim

@Tiim never heard of that, very cool!

ArcticSpaceFox avatar Jun 19 '20 14:06 ArcticSpaceFox

I just remembered that I have indeed done this already! Here's old video: https://www.youtube.com/watch?v=ihybuCp9pnc Probably still a good idea to revisit it and see how it changed 🤔

yamalight avatar Jun 24 '20 14:06 yamalight

@yamalight crazy you are an all arounder but you could use this new shiny tool yew.rs

ArcticSpaceFox avatar Jun 25 '20 10:06 ArcticSpaceFox

yep, yew definitely looks neat. will do that at one point :)

yamalight avatar Jun 25 '20 10:06 yamalight