Hello,
I plan to work on multi-platform (if possible, make a light version for e.g. Android as well) desktop GUI app want to separate computational/core part into library and have UI part developed separately...By looking at Nim's GUI offering, I can say it is quite colourful. There are some options[*] which look quite interesting like NiGui and fidget, but have a feeling that none is, atm, mature enough for full-fledged application.
So, I'm considering to simply work on library part in Nim, create bindings for 3rd party C lib etc., and then, possibly use nimpy to bridge Python with Nim (if none of the GUI options does not mature) and do UI part by using PyQt/PySide2.
I know it's not ideal, but wonder what is the cost, iow. what would I lose of Nim's features (e.g. type-safety etc.) if going that route?
Sincerely,
Gour
[*] I still have to explore nimqml...
You missed the gintro library
Actually I missed to mention wxNim <https://github.com/PMunch/wxnim> and wonder why it is not listed in the official list of GUI options mentioned above...
Imho gintro (gtk) is the most mature gui library for nim. But afaik it does not support android.
There are few issues I have with gintro (gtk):
Taking all these into consideration, I believe that I'd prefer using wxWidgets bindings, but those seems not be used much. :-(
Yes, my personal view on GTK is very similar, see the begining of my GTK4 book:
http://ssalewski.de/gtkprogramming.html
We have more than a dozen GUI toolkits for Nim now, I would suggest you to start with one of them and only come back to GTK when the other toolkits are not powerful enough.
I've seen IUP listed near the bottom here:
https://nim-lang.org/docs/lib.html
I haven't tried it but it looks interesting as well.
We have more than a dozen GUI toolkits for Nim now,
Too many, imho. :-)
I would suggest you to start with one of them and only come back to GTK when the other toolkits are not powerful enough.
So, you are not for the option to possibly do UI-part with some more mature wrappers (Qt, wxpython) in Python?
I haven't tried it but it looks interesting as well.
Yeah, it's interesting...however, some years ago when I was looking at IUP, I was told by one of the main developers that there are certain issues with the IUP toolkit:
[*] I still have to explore nimqml...
That would be my favorite when it comes to multi-platform and ease-of-use. But still depends on DOtherSide v0.6, when the current version is 0.7, so I'm having trouble setting things up.