[nim-dev] Re: Bug in my GTK3 wrapper

  • From: gour <gour@xxxxxxxxxxxx>
  • To: nim-dev@xxxxxxxxxxxxx
  • Date: Sat, 28 Nov 2015 16:16:25 +0000

**Stefan_Salwski wrote:**
The bindings are in good shape, with some minor bugs. There is no garbage
collector support currently, and not much effort to use higher level Nim
constructs, for example GLib lists are not replaced by Nim sequences.

OK, it seems it's best thing to try it out.



Of course higher level bindings would be possible, like it exists for Python,
Go and others.

it would be nice indeed to take advantage of Nim's GC and other higher-level
features!


But the fact is: No one is currently using GTK3 for Nim, no one seems to like
GTK, some seems to really hate it.


Well, I use GTK3 desktop (GNOME) and would use Linux as native development
platform, but still would like to be able to produce multi-platform app and
GTK3 is a valid choice, especially considering linux as 'main' platform.

Not too much, but maybe wasted time when no one wants to use it. I am not
using it myself currently...

When I was watching Araq's presentation at the Nim conference, he mentioned
something like "Nim is good for everything..." which, he admitted might be a
problem to attract users.

Considering that from the very beginning I did eliminate some languages like
{C(++), Java} with several others like {Ada,Haskell,OCaml,D,Rust}, there are
not so many choices left - GUI is not a market for Go and it seems that
FPC/Lazarus is last resort if everything elsa fails. :-)

So the progress of GTK3 for Nim depends on interest. Andreas recently did the
wxWidgets wrapper, and someone did a Qt QML wrapper. Maybe there is more
interest.

I was not able to build wxNim although it could be an interesting option, but
I'm not sure my skills are appropriate to make it more Nim-idiomatic etc. Otoh,
I did play briefly with QML bindings, but I'm still not sure whether it's
appropriate or good-enough for desktop apps. For mobile, probably no problem,
but I'm skepctical about its usage on the desktop

I think merging GTK2 and GTK3 is not possible, generally my GTK3 bundle
covers full GTK2 range.

Well, here I actually meant to join forces and combine the two projects into
one instead of separate work on the two. ;)

So, I'll try to build GTK3 bindings and see how it goes, but it's a bit
disheartening that even you yourself do not find usage for it. :-(



Other related posts: