Re:Rust 2021: GUI
by andy_ppp on Tuesday September 29, 2020 @04:03PM
(#24632284)
Why not just take the React-native model and port it to Rust (whatever that translates to)? From my POV for 85%+ of things it’s good enough and would be fairly simple to implement.
[ Parent
| on HN ]
You mean that they should wrap native controls? It's not React Native's model, it has been around since forever.
WxWidgets (https://en.wikipedia.org/wiki/WxWidgets) 1992
SWT (https://en.wikipedia.org/wiki/Standard_Widget_Toolkit) 2003
Or if you mean React itself, I found this blog post kind of funny: https://www.bitquabit.com/post/the-more-things-change/ :-)
No I mean something that uses:
1) data builds the UI
2) widgets, don’t really care if they are native but some building blocks (button, lists, activity indicator etc.) The list from React native will do for now.
3) layout using flexbox and the exact same simplified css with the cascade.
That’s what I’m saying to take anyway.
Re:Rust 2021: GUI
by thesuperbigfrog on Tuesday September 29, 2020 @06:49PM
(#24633995)
Those items remind me very much of how GUIs are specified in Tk:
https://en.wikipedia.org/wiki/Tk_(software)
Perhaps a model similar to Tk could be used?
Which is more broadly known about and used, Tk or React Native? It really doesn’t matter anyway, I’m just suggesting these things that work fairly well to avoid more standards proliferation. It won’t work.
Should read “The list of widgets from React Native” and “withOUT the cascade”. Guess I was tired last night...
Raph's previous post (linked in the first paragraph) goes into more detail than you could imagine on the options and differences and tradeoffs involved…
Thanks! I’ll check it out
While I'm all for React-Native, the opinions on how to do cross-platform GUI differ.
Some say, use native UI elements, like React-Native.
Some say, render your own stuff in a (GL) canvas, like Flutter/Revery.