iced_web icon indicating copy to clipboard operation
iced_web copied to clipboard

Plans for web renderer?

Open nashley opened this issue 3 years ago • 3 comments

Seeing as dodrio is now archived (and presumably unmaintained), what does the future of iced on the web look like? Perhaps these crates are worth looking into if we don't want to maintain dodrio? Migrating to them may also improve performance, since they avoid using a VDOM.

nashley avatar Nov 21 '21 23:11 nashley

After implemeting this, I'm also very interested in implementing optimized DOM updates similar style to Yew framework (update DOM partially instead of full page). If someone is also interested in that work, please let me know.

madmaxio avatar Nov 29 '21 08:11 madmaxio

Dioxus is built off much of the same bones of Dodrio and supports a low-level node creation API in the same way dodrio did.

http://github.com/dioxusLabs/dioxus

Both Dodrio and Dioxus are extremely fast libraries.

jkelleyrtp avatar Jan 08 '22 00:01 jkelleyrtp

As far as I can see, both sycamore and dominator rely on a persistent widget tree and use either a DSL or specific widget functionality to implement dynamic views without a VDOM.

These approaches are, at least for now, incompatible with iced because the Elm Architecture produces a different widget tree after every view.

Therefore, if we want to preserve the ergonomics of the current API (i.e. view logic is just Rust code), I believe a library with a VDOM will be necessary.

hecrj avatar Jan 09 '22 06:01 hecrj