Pluggable backends for react-native-like uses #2078
Replies: 1 comment
-
I wonder how the fascinating Dear Imgui project (Rust wrapper) would work as a backend, given its immediate-mode render style. It even works in WebAssembly rendering to canvas, and is a pretty small, yet capable and themable library. The immediate mode rendering style might mean everything would have to be re-rendered every update, but Yew components could still be very useful for app structure, message handling, and saving some computed state in intermediate components. The absolute best-case would be to somehow store the frame buffer output of a "pure-imgui output" (html-like components would have to be invented like react-native) and simply gpu-draw it in place if the final output would be the same. |
Beta Was this translation helpful? Give feedback.
-
Description
React native is a fantastic concept, but is seriously complicated by implementation details which are there to prevent javascript from causing a performance bottleneck. The RN team is currently working on a re-architecture (referred to as "fabric" internally) which should alleviate many of the tremendous issues with the current approach, but it is still subject to the constraints that come with composing the interface in javascript.
It seems to me that a similar framework written in a lower-level language could achieve superior performance and portability with less complexity.
Rust is the perfect modern language for such a task, and yew has already done a tremendous job in building an ergonomic "component centric" (react-like) UI framework for web targets. I'm curious if there's any interest in making backends pluggable, so that yew can be used for native targets?
Beta Was this translation helpful? Give feedback.
All reactions