top | item 46997389

(no title)

mblode | 17 days ago

If anyone’s exploring Rust + React, I’ve been building something similar on the rendering side.

react-vello [1] exposes Vello (a Rust GPU renderer) as a React renderer via WASM + WebGPU, so you can draw shapes and text declaratively while Rust handles the rendering in the browser.

[1] https://github.com/mblode/react-vello

discuss

order

ChadNauseam|17 days ago

Rust + React is a beautiful combination. For my project, I use Rust for the actually complicated logic that needs to be correct and performant. And then I just use React for the UI. It works pretty great. The communication between the two with wasm-bindgen and tsify is just so easy. It's almost as if they're the same language. It's really crazy, honestly. A feat of engineering.

React Vello seems super cool, by the way. Thanks for sharing it!

ipnon|17 days ago

Very nice, I think a Rust server using a WebSocket to send MorphDOM diffs to the browser would be very well received.

satvikpendem|17 days ago

Similar to Dioxus Native I imagine?

skiniks|17 days ago

This is very cool!

pdyc|17 days ago

demo does not works on firefox+linux

mblode|16 days ago

Is there a way to enable WebGPU flag on Firefox Linux?