News for hackers. Stuff that matters.
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.
Re:Rust 2021: GUI by oblio on Tuesday September 29, 2020 @05:41PM (#24633354)
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/ :-)

Re:Rust 2021: GUI by andy_ppp on Tuesday September 29, 2020 @05:50PM (#24633439)
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?

Re:Rust 2021: GUI by andy_ppp on Tuesday September 29, 2020 @07:03PM (#24634089)
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.
Re:Rust 2021: GUI by andy_ppp on Wednesday September 30, 2020 @02:54AM (#24636287)
Should read “The list of widgets from React Native” and “withOUT the cascade”. Guess I was tired last night...
Re:Rust 2021: GUI by zellyn on Tuesday September 29, 2020 @04:29PM (#24632569)
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…
Re:Rust 2021: GUI by andy_ppp on Tuesday September 29, 2020 @05:01PM (#24632925)
Thanks! I’ll check it out
Re:Rust 2021: GUI by k__ on Tuesday September 29, 2020 @04:06PM (#24632314)
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.

Re:Rust 2021: GUI by d0100 on Tuesday September 29, 2020 @04:09PM (#24632351)
Some say, render your own stuff in a (GL) canvas, like Macromedia Flash