News for hackers. Stuff that matters.
Re:Dioxus: User interfaces that run anywhere by amelius on Monday December 26, 2022 @04:35PM (#34142149)
What is the (minimum) application footprint?
Re:Dioxus: User interfaces that run anywhere by jkelleyrtp on Monday December 26, 2022 @04:39PM (#34142187)
On the web, you can get the final bundle down to about 60k gzipped, which is comparable to react.

The average desktop/mobile binary is less than 2mb, but that’s with zero size optimizations to shrink the output. You can certainly get less.

Dioxus runs on a native thread and renderers into the webview, so there’s very little JS footprint and the render resources are shared among all webview on your system.

I haven’t experimented with it, but it’s entirely possible to run on a raspi with webkitgtk. We’re building a native renderer with WGPU and already support rendering to the terminal.

Re:Dioxus: User interfaces that run anywhere by codethief on Tuesday December 27, 2022 @04:07AM (#34146879)
> Dioxus runs on a native thread and renderers into the webview, so there’s very little JS footprint and the render resources are shared among all webview on your system.

So I need to have some sort of WebView library pre-installed? What WebView would that be on, e.g., Linux? And is it possible to include it in the build to create a standalone binary? If so, how much would that make the binary size go up?

In my experience, relying on a system-wide WebView is a recipe for desaster.

Re:Dioxus: User interfaces that run anywhere by jkelleyrtp on Tuesday December 27, 2022 @08:36AM (#34148453)
For most platforms relying on the browser’s webview is fine since most platforms ship with a browser! But you can always specify WebKitGTK as a dependency which I think is a one time 2GB cost.