Date: Mon, 09 Sep 2024 20:26:34 +0000 From: "Poul-Henning Kamp" <phk@phk.freebsd.dk> To: fvalasiad <fvalasiad@proton.me> Cc: "theraven@freebsd.org" <theraven@FreeBSD.org>, "ske-89@pkmab.se" <ske-89@pkmab.se>, "freebsd-hackers@freebsd.org" <freebsd-hackers@freebsd.org> Subject: Re: The Case for Rust (in any system) Message-ID: <202409092026.489KQYNL088354@critter.freebsd.dk> In-Reply-To: <wgoVgru9rziu1AsoB5x2vxqfdDKLebKcZ3KGTR3faabgRIX1-10489sSGAWzhdvLklzYfQ0vW4i-O4enPqt-OuXvZN7XwZBQL8I9r3kmDwc=@proton.me> References: <202409091304.aa20239@berenice.pkmab.se> <202409091124.489BOWk2082765@critter.freebsd.dk> <B8AEE93C-6431-4ED2-B1C6-7945A9A41AD0@FreeBSD.org> <wgoVgru9rziu1AsoB5x2vxqfdDKLebKcZ3KGTR3faabgRIX1-10489sSGAWzhdvLklzYfQ0vW4i-O4enPqt-OuXvZN7XwZBQL8I9r3kmDwc=@proton.me>
next in thread | previous in thread | raw e-mail | index | archive | help
-------- fvalasiad writes: > Codebases out there using C++ as if its C with classes, completely out o= f > the loop regarding modern technologies. And I am talking about userland = here. There are two cases here. But here we are talking about bringing an existing mature C codebase into the Century of the Fruitbat, without doing a total rewrite in one go. The first step is to get (relevant parts of) the code into a C++ compiler. Steps two to N are: Reap tangible benefits by employing features of C++ language as that becomes possible and sensible (ie: as the C++ specific runtime environment becomes available). "C with classes" is a very sensible step along that (long) journey IMO. But if we were talking a new green-field project that would be utterly sil= ly. Poul-Henning PS: C++ was called "C with classes" first time I heard about it in 1985 :-= ) -- = Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe = Never attribute to malice what can adequately be explained by incompetence= .
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202409092026.489KQYNL088354>