37 points Β· by pvsukale3 Β· 8y ago Β· 45 comments
I might try out relm + rust, to see what the state of the art is: http://relm.ml/relm-intro
I've used https://www.mono-project.com/docs/gui/gtksharp/ in the past, and it was easy. Looks like there is a notification area example: http://www.mono-project.com/docs/gui/gtksharp/widgets/notifi...
Looks like it's possible in go: https://github.com/mattn/go-gtk
And python: https://python-gtk-3-tutorial.readthedocs.io/en/latest/
It doesn't look very supported, but even node has GTK bindings: https://github.com/WebReflection/node-gtk
Honestly, thanks for bringing this up. Looking at these is interesting an nostalgic. It seems like everyone nowadays just does webapps, and its interesting to see "the state of the desktop in 2018".
The story of computer programming is the story of programmers avoiding the need to write native code. Assemblers, compilers, Cobol, C, C++, Java, Go all exist because hardware is the worst abstraction most of the time. Particularly because it is sticky. Twenty-five years after first programming on TRS-80's and Apple II's, I freaked out about allocating a 10,000 element integer array on a machine with 4GB of RAM and dual quad-core Xeons.
That's not to say that writing code at a low level might not be a good learning exercise. But it's not a reason to claim moral/ethical superiority. Engineering is about making meaningful tradeoffs based on project criteria. Resource allocation ought to be evaluated based on the importance of the problem the software solves...and consuming "too much" resources is often a reflection of the problem's importance. and problem importance can be a useful way of evaluating software quality.
Don't fight the last war.
Good luck.
[1]: And there was Java in the browser!
Does this statement hold true nowadays?
[1]: Fine for ACAD r11 because it was written in C or lower. Back then it really mattered, but it was also $2000 for the big box of floppies.
[2]: 1GB -- more than two orders of magnitude more ram.
Edit: it was the first result on Google; https://github.com/getlantern/systray
https://www.lazarus-ide.org/ http://wiki.freepascal.org/Lazarus_Application_Gallery
Qt Quick / Kirigami is a good option for that type of application though.
Ultimately, what's important is to start making something. Any language, any toolkit, doesn't really matter all that much. If you don't like it, try another language, another toolkit.
[1] Java binding is officially supported: https://www.gtk.org/language-bindings.php
If it's a quick thing then maybe just make it a shell extension.
You can use GTK on other platforms too, I just never have.
Rather, HTML/CSS/JS is what you're stuck with if you're treating the web as your platform, which is tempting when your code is really just a front-end for a remotely hosted system anyway.
Electron is the result of people trained in web development turning their hands to desktop development, but not wanting to learn something completely new.
Well... I wouldn't go that far, but over the years we've all managed to work around the warts of HTML/CSS and can put up with it.