Hacker News new | past | comments | ask | show | jobs | submit login
How to Build a Standalone GUI Application for SerenityOS (linus.dev)
40 points by ingve on May 12, 2022 | hide | past | favorite | 3 comments



Absolutely love all the gui toolkit and other libraries in SerenityOS - it really seems benefitial to follow the "vertical integration" path of software development like Apple and SerenityOS both do.

Having a core set of libraries written in C++ is incredibly useful and it shows that we dont have to rely on C as a lingua franca.

The argument about whether C++'s ABI is any better, of course, is very much still to be had in that regard.


C++ linking would be very convenient for library users - when it works. Correct me if I'm wrong, but you are only guaranteed to be able to link to a C++ library if you are compiling with the exact same compiler (brand and version). In other cases it's hit and miss if the ABI would match, as everyone seems to have a slightly different version of C++ ABI. It's a shame really, because my OOP brain doesn't much like making a C interface to what is essentially a bunch of C++ objects.


Compilers generally try to preserve ABI between versions, or include compatibility options (like -fabi-version in g++)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: