News for hackers. Stuff that matters.
Re:Speed Is the Killer Feature by waynesonfire on Tuesday March 02, 2021 @10:38AM (#26316377)
Which GUI framework will you use?
Re:Speed Is the Killer Feature by mattgreenrocks on Tuesday March 02, 2021 @10:47AM (#26316490)
If I had to pick right now, I'd choose macOS for a platform.

For tech, I'd consider both Cocoa + Swift and SwiftUI as candidates for UI components, on a case-by-case basis. Swift is not my favorite language (feels like I have to use Xcode; have yet to try out the JetBrains IDE), but it gets the results I want. Perhaps in the future, we can use Rust in a more ergonomic fashion to talk with native UIs.

Honestly, I'd love an ObjC-like language that interops with ObjC and has strong static typing with a dynamic typing escape hatch for metaprogramming.

Re:Speed Is the Killer Feature by brobdingnagians on Tuesday March 02, 2021 @11:35AM (#26317094)
The JetBrains IDE for it (AppCode) is pretty nice, but you have to use Xcode for storyboards and UI design; other than that, light years ahead of the Xcode experience.
Re:Speed Is the Killer Feature by apples_oranges on Tuesday March 02, 2021 @01:06PM (#26318287)
IDK, AppCode always seemed so resource hungry.. but yeah it's worth a try I suppose. I believe the Xcode experience isn't too bad however.
Re:Speed Is the Killer Feature by swiftcoder on Tuesday March 02, 2021 @01:31PM (#26318625)
Using a bloated non-native app to develop your elegant, fully native app. Uh huh.
Re:Speed Is the Killer Feature by Siira on Tuesday March 02, 2021 @06:49PM (#26322866)
Java is fast, unlike JS. Perhaps one day JS will be fast, too.
Re:Speed Is the Killer Feature by mattgreenrocks on Tuesday March 02, 2021 @12:16PM (#26317634)
Good to know, I'll give it a shot!
Re:Speed Is the Killer Feature by MaxBarraclough on Tuesday March 02, 2021 @01:01PM (#26318214)
My uninvited suggestion: take a look at the FOX Toolkit. A truly lightweight non-themeable GUI toolkit written in C++, for Windows and Unix/X11. It's actively updated, but it's essentially a one man operation these days.

http://fox-toolkit.org/

Re:Speed Is the Killer Feature by pindab0ter on Tuesday March 02, 2021 @03:08PM (#26319903)
The first screenshot they show you (on the screenshots page) is a Windows XP program. I can't say that inspires much confidence. Am I wrong?
Re:Speed Is the Killer Feature by MaxBarraclough on Tuesday March 02, 2021 @04:14PM (#26320854)
I can confirm it compiles with the latest Visual Studio and runs fine on Windows 10 in both 32-bit and 64-bit. (Well it did last time I checked, haven't tried the very latest release.) You're right the screenshots are ancient, but the code itself is still being updated by the project's maintainer Jeroen.

The FOX codebase isn't terribly modern, as it's older than the standard C++ concurrency machinery, but it works.

Re:Speed Is the Killer Feature by lelanthran on Tuesday March 02, 2021 @04:49PM (#26321379)
It does look dated, but I use it daily (I use the xfe file manager) and it is bloody quick - every action is almost instantaneous compare to the KDE, gnome, mate or cinnamon file managers.

It depends on the target market for your application I suppose - if your target won't be happy unless they have html/CSS or similar animations, then using something with low latency isn't going to make them happy.

Re:Speed Is the Killer Feature by MaxBarraclough on Wednesday March 03, 2021 @06:17AM (#26326987)
> It does look dated

Personally I don't mind the Windows 98 look, it strikes me as clean and no-nonsense. Everything is clear and high-contrast. Unlike with many 'flat' themes, it's generally clear what's clickable. I realise not everyone likes the Windows 98 look though.

If someone is serious about developing fast GUI apps, trading off on themeability is the kind of thing they should consider. As you say, FOX really is fast. I presume this is because of its uncompromising hard-coded native-code-only approach - it's just a C++ codebase. All the drawing operations are implemented directly in C++. Unlike Qt, there's no JavaScript. Unlike JavaFX, there's no CSS. It's all just C++.

Perhaps a GUI toolkit could add themeability without any performance impact by implementing it as a compile-time abstraction.

> depends on the target market for your application I suppose - if your target won't be happy unless they have html/CSS or similar animations, then using something with low latency isn't going to make them happy

Right, but mattgreenrocks said fast, focused, and respect the user's time and computing resources, presumably in contrast to current norms.