From nobody Mon Sep 09 11:24:32 2024 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4X2Pch5q3pz5W6Qn for ; Mon, 09 Sep 2024 11:24:36 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4X2Pcg62yBz41vN for ; Mon, 9 Sep 2024 11:24:35 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Authentication-Results: mx1.freebsd.org; none Received: from critter.freebsd.dk (unknown [192.168.55.3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by phk.freebsd.dk (Postfix) with ESMTPS id 8505489284; Mon, 09 Sep 2024 11:24:33 +0000 (UTC) Received: (from phk@localhost) by critter.freebsd.dk (8.18.1/8.16.1/Submit) id 489BOWk2082765; Mon, 9 Sep 2024 11:24:32 GMT (envelope-from phk) Message-Id: <202409091124.489BOWk2082765@critter.freebsd.dk> To: ske-89@pkmab.se cc: freebsd-hackers@freebsd.org Subject: Re: The Case for Rust (in any system) In-reply-to: <202409091304.aa20239@berenice.pkmab.se> From: "Poul-Henning Kamp" References: <202409091304.aa20239@berenice.pkmab.se> List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <82763.1725881072.1@critter.freebsd.dk> Date: Mon, 09 Sep 2024 11:24:32 +0000 X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:1835, ipnet:130.225.0.0/16, country:EU] X-Rspamd-Queue-Id: 4X2Pcg62yBz41vN -------- ske-89@pkmab.se writes: > On 6 Sep 2024 8:25, Poul-Henning Kamp 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.