News for hackers. Stuff that matters.
Re:Libui: a portable GUI library for C by LeoNatan25 on Saturday May 19, 2018 @08:48PM (#17110551)
What a surprise, so there are alternatives to Electron garbage! Who knew!
Re:Libui: a portable GUI library for C by __sr__ on Saturday May 19, 2018 @08:56PM (#17110578)
Qt? Although it has its own problems, the end product is often way better than Electron.
Re:Libui: a portable GUI library for C by kitsunesoba on Saturday May 19, 2018 @09:05PM (#17110598)
It may have changed since I last gave it a shot previously one annoyance I had with Qt was binary distribution. Getting it all packaged up correctly for each platform is much less than straightforward and if your app isn’t FOSS it’s exacerbated by LGPL linking requirements. It should really be a simple, single button process.
Re:Libui: a portable GUI library for C by jcelerier on Monday May 21, 2018 @06:26AM (#17117327)
> Getting it all packaged up correctly for each platform is much less than straightforward and if your app isn’t FOSS it’s exacerbated by LGPL linking requirements.

Electron also has LGPL dependencies (Blink, FFMPEG) and libui depends on GTK which is also under LGPL so...

Re:Libui: a portable GUI library for C by sanxiyn on Saturday May 19, 2018 @09:21PM (#17110636)
There is no LGPL linking requirements if you buy Qt commercial license.
Re:Libui: a portable GUI library for C by chris_wot on Sunday May 20, 2018 @03:28AM (#17111667)
There is also gtkmm
Re:Libui: a portable GUI library for C by chris_wot on Sunday May 20, 2018 @04:55AM (#17111897)
Not sure why I've been downvoted. What is wrong with gtkmm? It's a reasonable C++ binding to GTK+
Re:Libui: a portable GUI library for C by CyberDildonics on Sunday May 20, 2018 @03:54PM (#17114464)
Ironically this library is small, easy to compile, written in C++ with a C interface, and unbelievably slow. Try out the test.exe and watch everything slow to a crawl. It is worse than Atom about the speed of the slowest modern program I've ever seen - the ethereum wallet.
Re:Libui: a portable GUI library for C by andlabs on Monday May 21, 2018 @12:33PM (#17119610)
I assume you are using the Windows version. The slowness is a bug that I have to fix; there are several issues about it, and a few ideas of how to fix it. You can comment out some code in container.cpp if you want to have it go fast but also be ugly (the code has to do with transparency of standard controls on tabbed backgrounds).
Re:Libui: a portable GUI library for C by andlabs on Monday May 21, 2018 @06:04PM (#17122247)
Oops, if it wasn't container.cpp it was parent.cpp; I forget which file right now