News for hackers. Stuff that matters.
Re:Show HN: FixBrowser – a lightweight web browser created f... by sylware on Wednesday December 25, 2024 @09:12AM (#42508846)
FLTK is c++, then a definitive nono?
Re:Show HN: FixBrowser – a lightweight web browser created f... by frfrrf on Wednesday December 25, 2024 @10:19AM (#42509190)
Look at FLTK's source code. It's a minimal set of C++. Like C with classes.
Re:Show HN: FixBrowser – a lightweight web browser created f... by sylware on Wednesday December 25, 2024 @10:23AM (#42509214)
Then it is c++, then a definitive nono.

Plain and simple C99+ port?

Re:Show HN: FixBrowser – a lightweight web browser created f... by frfrrf on Wednesday December 25, 2024 @10:37AM (#42509285)
>Plain and simple C99+ port?

C89 bindings https://github.com/MoAlyousef/cfltk

Re:Show HN: FixBrowser – a lightweight web browser created f... by sylware on Wednesday December 25, 2024 @02:51PM (#42510743)
The second your require a gigantic and insanely complex c++ and similar compiler for your SDK, it's over.
Re:Show HN: FixBrowser – a lightweight web browser created f... by frfrrf on Wednesday December 25, 2024 @04:42PM (#42511362)
As for complexity and gigantism:

https://openhub.net/p/qt5 (8,876,034 lines of code)

https://openhub.net/p/gtk (1,031,203 lines of code)

https://openhub.net/p/fltk (467,564 lines of code)

Re:Show HN: FixBrowser – a lightweight web browser created f... by sylware on Wednesday December 25, 2024 @06:19PM (#42511868)
You 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+).

Re:Show HN: FixBrowser – a lightweight web browser created f... by frfrrf on Wednesday December 25, 2024 @07:44PM (#42512311)
Compare dependencies:

GTK3 https://gitlab.archlinux.org/archlinux/packaging/packages/gt... GTK4 https://gitlab.archlinux.org/archlinux/packaging/packages/gt... and FLTK https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=fltk-...

If you build FLTK with Wayland support, then add deps: wayland, libxkbcommon, pango.

Re:Show HN: FixBrowser – a lightweight web browser created f... by sylware on Thursday December 26, 2024 @07:32AM (#42514811)
You don't seem to understand my point: the second you are using c++, it is over.
Re:Show HN: FixBrowser – a lightweight web browser created f... by frfrrf on Wednesday December 25, 2024 @10:28AM (#42509239)
>Then it is c++, then a definitive nono.

Language with OOP is good for GUI!

Re:Show HN: FixBrowser – a lightweight web browser created f... by sylware on Wednesday December 25, 2024 @02:50PM (#42510736)
Language 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.