Re:Microsoft's Introduction to Rust Video Course
by zerr on Friday June 25, 2021 @02:18PM
(#27634467)
Would be great if such materials go beyond console apps. I hope desktop/GUI topic gets more attention.
[ Parent
| on HN ]
Re:Microsoft's Introduction to Rust Video Course
by olah_1 on Friday June 25, 2021 @03:43PM
(#27635360)
There needs to be a Rust translation of Learn Go With Tests[1]. It’s the best programming book i’ve ever used.
Re:Microsoft's Introduction to Rust Video Course
by peterkos on Friday June 25, 2021 @03:25PM
(#27635173)
I’ve poked around with GUI code in Rust and it just feels strange without some flavor of OOP. To me it makes much more sense to develop GUI apps with a bit higher level of abstraction (or lower?) than a rather functional interface.
Re:Microsoft's Introduction to Rust Video Course
by adamnemecek on Friday June 25, 2021 @07:52PM
(#27637654)
Traits are pretty decent for UI's.
Re:Microsoft's Introduction to Rust Video Course
by IshKebab on Friday June 25, 2021 @04:33PM
(#27635891)
There aren't any solid GUI solutions for Rust yet though.
Re:Microsoft's Introduction to Rust Video Course
by gwmnxnp_516a on Friday June 25, 2021 @07:15PM
(#27637406)
If you are not afraid of unsafe blocks and extern "C" functions, it is possible to call a any C api directly including Win32 API for GUI graphical user interfaces. On Linux, one can call Gtk directly or call Qt through a custom C wrapper. The only problem is that both methods are not cross-platform. However, one with enough motivation can develop a cross-platform unified wrapper or interface that abstracts Gtk, X11 and/or Win32 API and MacOSX cocoa API.
Calling Qt5 widgets through a custom C-wrapper may be a better approach than reinventing the whell since Qt already abstracts Win32 API, Unix X11 (X Windows Systems), Unix-Wayland, and MacOSX Cocoa .