News for hackers. Stuff that matters.
Re:Transmission torrent client ported to C++ by baybal2 on Sunday September 12, 2021 @10:57PM (#28507406)
> C++'s std:: tools are more useful than the bespoke tools in libtransmission's C code. Nearly every time I go in to fix or change something in libtransmission, I find myself missing some C++ tool that I've come to take for granted when working in other code, either to avoid reinventing the wheel (e.g. using std::partial_sort() instead of tr_quickfindFirstK(), or std::vector instead of tr_ptrArray) or the better typechecking (e.g. std::stort() instead of qsort()).

I think it's more to glib development entering an ice age, than a language issue.

Glib had an impressive roadmap list around 8-10 years ago, copying much of STL features, but of course nothing much materialised after GNOME 3 caused an exodus of GTK developers.

Re:Transmission torrent client ported to C++ by ncmncm on Sunday September 12, 2021 @11:19PM (#28507536)
Patching up C so it can safely play where the big kids do is both pointless and doomed to failure. It is way, way less work to switch to using a better language, instead.

Any C program can be converted to build with a C++ compiler with no more than a day's work. Then, you can start in modernizing the active parts, deleting local, generally poorly-tested, cobbled-together utilities as you go.

Re:Transmission torrent client ported to C++ by pjmlp on Monday September 13, 2021 @02:27AM (#28508394)
I have been sounding that trumphet since 1993, but there are lots of very hard listeners.