Good day,

First of all, thanks all for your replies, I've been doing some homework based 
on them.

I took a look at nimpy as @ynfle pointed out, and looks very interesting, and 
it seems to work both ways, so I'll certainly be giving it a try. Including 
Python inside a Nim program, if I understand it correctly, could allow a 
program to be scriptable with Python, or maybe add plugins in python, same as 
Blender does. If it is stable it can be a very usable add-on to any Nim 
application aiming to be scriptable, or "plugin-able".

Regarding the GUI, I try to keep away from GTK, that is why I use PyQt, though 
wouldn't mind to use a native Nim GUI API. I've looked into wxnim, as pointed 
out by @PMunch and @auxym, but from my understanding, it needs some target 
system GUI API as if I understood correctly, wxWidgets just translate the 
widgets to the default system widgets, thus, if I'm building an DE from 
scratch, there won't be no default widgets available, therefore, wxWidgets 
wouldn't be able to call the system GUI API. I might be mistaken on this one as 
I'm not an expert on this topic. Nimqml seems interesting and should give it a 
try. Taking a look at nimx looks promising, and from what I could deduce, it is 
a new native Nim GUI API, which makes it appealing, though lack of 
documentation might be a cause of more trouble than benefit in the long term, 
at least as of today. Not sure though.

I also took a look at genny, as pointed out by @auxym, so I'll need to compare 
nimpy and genny and decide. I've also done before some library building usin 
Python to write the code and then use Cython to build the library, to be used 
by another Python script. I wonder if I could code some PyQt GUI in Python, 
make it a library with Cython, and then use it in Nim. I should do some 
research on that topic, though it seems that should not be needed as long as 
nimpy works well enough.

Regarding IDE and Vim, the issue I see with neovim, as indicated by @miran, is 
that it isn't available on Haiku, as far as I know, as well as VSCode/Codium, 
which seems to be the best tool to develop Nim programs. I might end up using 
Codium where it's available and Vim where it's not, but for now I think I'll 
stick with Vim as it allows me to bring the .vimrc file along to any OS and 
have exactly the same dev environment.

What I haven't found much info on was XCB. I did research the Wiki for the 
"curated" resources and packages. I've looked into some Window Managers 
developed with Nim and all use Xlib. To be honest, I don't really know the real 
difference between these two, just read that XCB is the path to go now while 
Xlib is going to be deprecated?. No word on Nim and Wayland neither, though 
I'll be fine with XCB.

Right now, I'm using Fedora 35 LxQt, though might end up switching to FreeBSD. 
Nonetheless, this is a long term project. Therefore, the better decissions I 
take now, the better in the long term.

Sincerely appreciate your comments and help on these questions. Thanks a lot. 
Regards, noxnivi

Reply via email to