[ prog / sol / mona ]

prog


Desktop GUI programming

1 2022-04-24 10:59

What should I use for desktop GUI programming? I am thinking of using Tcl/Tk due to its relative simplicity, acceptable license, and cross-platform availability.

2 2022-04-24 11:37

Tcl/Tk

That's a good choice. Another option is to use Racket: https://docs.racket-lang.org/gui/

3 2022-04-24 14:37

>>2
The Racket option is heavyweight, and has far less community support than Tcl/Tk, which has been battle tested for decades in commercial and open source applications.

4 2022-06-06 15:20

Does Guile have any libraries for GUIs? Their website has a link to GUI libraries but it does not actually lead to any GUI libraries: https://www.gnu.org/software/guile/libraries/#gui

5 2022-06-06 19:53

>>4
Some options to investigate:
* guile-sdl https://www.gnu.org/software/guile-sdl/
* guile-opengl https://www.gnu.org/software/guile-opengl/
* guile-gnome https://www.gnu.org/software/guile-gnome/

6 2022-06-07 05:09

>>1

Tcl/Tk

The most disgusting, bug-prone, alien looking shit I've ever seen. Tcl has taken the worst from Sh and Perl worlds and added its own uglinesses (such as encoding issues).

But it's available almost everywhere (I'm pretty sure you have 'wish' on your Linux) and helluva simple.

>>5

sdl
opengl

If you want a low-level GL instead of GUI toolkit.

7 2022-06-07 07:55

I wish there was a sane HTML+CSS engine for building gui frontends with a real language, maybe something like https://github.com/tauri-apps/tauri

8 2022-06-07 07:59

>>7
Start with Electron and write language bindings that can properly bind to Electron.

9 2022-06-07 08:18

>>8
Every non-trivial Electron program that I've seen is fat and slow.

10 2022-06-07 10:40

Why do people want to build GUI using HTML, it wasn't made for that.

11 2022-06-08 04:18

>>10

it wasn't made for that

That was true for 1.0 spec. HTML5 has buttons and fields and canvas.

12 2022-06-08 23:01

>>9
Those programmers don't understand the tools of performance profiling and parallel processing. It's perfectly feasible to write Electron software that feels responsive, those programmers don't understand how to do it.

13 2022-06-09 18:25 *

>>12 If your framework requires parallel processing to feel responsive, it could have been done better.

14 2022-06-10 21:43

>>13
Computer GUI responsiveness is a universal programming concern. From the Intel 386 computers with Windows 3.1, to the Nintendo Wii, all systems with graphical user interfaces need the programmers to do detailed analysis about the resource cost of drawing to the screen and responding to user inputs. Included in that analysis is detailed knowledge of which functionality that will "block" the computation. The way to mitigate such blockages in computing is with parallel processing that will segregate the concerns of taking user input and drawing a response, and segregate that from the other processes that we can expect to block.

15 2022-06-14 14:21

>>1
Another option is to use Lazarus for creating cross-platform GUI.
https://en.wikipedia.org/wiki/Lazarus_(software)

16 2022-06-14 17:11

I prefer haskell to laserous tbh desu

17 2022-07-02 07:13

>>1
Why not use Qt? It is the industry standard for making cross-platform GUIs. It has relatively good tooling. It is open source and has a large open source community.

18 2022-07-02 09:52

I use Rust and its GTK libs.

inb4 hipster tranny

19


VIP:

do not edit these