5 ms·
>Planned support for systems in the near future: Linux GTK3/4 FLTK is better then GTK on linux. Since version 1.4 FLTK supports HighDPI displays and Wayland ht
by frfrrf 2y ago
>Planned support for systems in the near future: Linux GTK3/4
FLTK is better then GTK on linux.
Since version 1.4 FLTK supports HighDPI displays and Wayland https://www.fltk.org/articles.php?L1947 https://www.fltk.org/articles.php?L1947
GTK3/4 and Qt5/6 are bloatware!
- sylware 2y agoFLTK is c++, then a definitive nono?
- frfrrf 2y agoLook at FLTK's source code. It's a minimal set of C++. Like C with classes.
- sylware 2y agoThen it is c++, then a definitive nono. Plain and simple C99+ port?
- frfrrf 2y ago>Then it is c++, then a definitive nono. Language with OOP is good for GUI!
- sylware 2y agoLanguage with OOP like c++ and similar (rust/java/etc) is ultra-complexity builtin the syntax itself which spills to their compilers (basically clang(apple)|gcc). That reasons alone is enough to do GUI with other languages.
- frfrrf 2y ago>Plain and simple C99+ port? C89 bindings https://github.com/MoAlyousef/cfltk https://github.com/MoAlyousef/cfltk
- sylware 2y agoThe second your require a gigantic and insanely complex c++ and similar compiler for your SDK, it's over.
- frfrrf 2y agoAs for complexity and gigantism: https://openhub.net/p/qt5 https://openhub.net/p/qt5 (8,876,034 lines of code) https://openhub.net/p/gtk https://openhub.net/p/gtk (1,031,203 lines of code) https://openhub.net/p/fltk https://openhub.net/p/fltk (467,564 lines of code)
- sylware 2y agoYou have an "amplification" due to the language used: you cannot compare the "cost" of C lines with c++ lines. They don't pull the same SDK dependency in the end. Basically, to be fair, in qt5 and fltk cases you should add an amplification factor of at least "10" (probably not big enough since c++ syntax and tens of times more complex than plain C99+).
- frfrrf 2y agoCompare dependencies: GTK3 https://gitlab.archlinux.org/archlinux/packaging/packages/gtk3/-/raw/main/PKGBUILD?ref_type=heads https://gitlab.archlinux.org/archlinux/packaging/packages/gt... GTK4 https://gitlab.archlinux.org/archlinux/packaging/packages/gtk4/-/raw/main/PKGBUILD?ref_type=heads https://gitlab.archlinux.org/archlinux/packaging/packages/gt... and FLTK https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=fltk-git https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=fltk-... If you build FLTK with Wayland support, then add deps: wayland, libxkbcommon, pango.
- sylware 2y agoYou don't seem to understand my point: the second you are using c++, it is over.
- deleted 2y ago[deleted]
- luke8086 2y agoThis was also my first thought, but looks like it's already designed to be toolkit-agnostic, like NetSurf. So it should be easy to port to fltk or anything else. $ ls -1 fixgui_\*.c fixgui_cocoa.c fixgui_gtk.c fixgui_haiku.c fixgui_win32.c