Re: The Case for Rust (in any system)

From: Poul-Henning Kamp <phk_at_phk.freebsd.dk>
Date: Mon, 09 Sep 2024 11:24:32 UTC
--------
ske-89@pkmab.se writes:
> On 6 Sep 2024 8:25, Poul-Henning Kamp <phk@phk.freebsd.dk> wrote:
> > The C-stewardship situation has become increasingly intolerable to
> > me, and I have practically already made up my mind, that Varnish
> > Cache will migrate to a defined subset of C++, roughly corresponding
> > to where I think C should have been by now.
>
> What might that subset be?

Initially it will be "better C compiler", but then we will gradually
allow more and more of C++ to be used.

> And how come Varnish Cache started out using C at all?

We needed /really/ tight control with calls to malloc/free to get
SMP performance:  None of the relevant malloc's were SMP-aware in
2006.

-- 
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.