From nobody Thu Sep 5 07:23:12 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 4WzrPw1M9Yz5VTWw for ; Thu, 05 Sep 2024 07:21:24 +0000 (UTC) (envelope-from anthony.pankov@yahoo.com) Received: from sonic313-22.consmr.mail.ir2.yahoo.com (sonic313-22.consmr.mail.ir2.yahoo.com [77.238.179.189]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 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 4WzrPv3nnKz4Tcw for ; Thu, 5 Sep 2024 07:21:23 +0000 (UTC) (envelope-from anthony.pankov@yahoo.com) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1725520880; bh=6q80vt+IAY0NpO3jTYqomF+f9zT8INz+2VWMPxEc9/I=; h=Date:From:To:CC:Subject:In-Reply-To:References:From:Subject:Reply-To; b=pIYy6QQDp4eoYM39rOLdkPzqOCLo08TzRw+MPwfioDkbt9/CZXfKr4rj8uXqnldVLKGZb6zwm8AIy9Rz38/RkdyQPSdd4F7TlgudKIRMNCzXmf6eGvScKyb4Hfq3AQxj1d2h4gLNlvydxfwEjyIH5sSrvsqHZkBzOzgrujRXsosVQKUyTw/bme6nlsgzI+0RoNNWQzTC3nRb6qrq1N7GbAFoqWhU59TYh2on+U49eluBwN1DdtLq0zfKB/vEXldrpfCajnVwxcK73ZuoTLj8JKKQoaM/FW2NNR2g7XrUEWi6nen96xnRq78Rs343suU2Pt+kUyEvc9gJO4VN4YCb+g== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1725520880; bh=K0a/yMPMvLRPojXgo44YPA3L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stLkTGIthq10TCX8syND0xSKyTmIrMuJMtaAERr0CuA2B2WOZjjo__b3bxALm dDYrRyVpnCQcfubs58JKkIq7sAb6ubOHnyJmXYHTnMiR9oyD2rts5nxrLoVn1fnZWTiRyKx.KL6V SxS7LMkn8jcJPpkT7LCajxCMWkVj90Wb3DGORh1ya8ptwBw2Awm68dtBq6iATVNxOK1VSTi4O7PZ .ELAO5asc23Ht8kTfe9H2CHyflGW2GxPxbiTcK1qlMWDhzJQnIw_qYdLH3j2V4xpYdjy7qpvlgVH bKnmyUpoRsr_vYPGglz4RAsCGcBckYHCR2Tu2d4Y479eZgKyu8a6.h_sC4rSf4Lxf6j7mZ5BfYlE i4bC716cXnB8poouO96ucew_9jtB7XbVm4QhhZPQt.XM2zexBqslOskUj0U7bCDBurlrFX6XHyuZ EH7l1Pd5HrREjVcit_8q4vxItoDjdKe3157EEXaf.Xoxzv9Wr2c0N5L3Q3j1sdvR_gTN8n4zUJw7 94y2_4RInUk5O8FviC3pR7vaWN1I- X-Sonic-MF: X-Sonic-ID: c859b3cd-9bfc-4a82-9d23-142eea43ef7d Received: from sonic.gate.mail.ne1.yahoo.com by sonic313.consmr.mail.ir2.yahoo.com with HTTP; Thu, 5 Sep 2024 07:21:20 +0000 Received: by hermes--production-ir2-6664f499fc-5vwr7 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 5ff7d00b86e3a92ed490eeec1979dc42; Thu, 05 Sep 2024 07:21:16 +0000 (UTC) Date: Thu, 5 Sep 2024 10:23:12 +0300 From: Anthony Pankov Message-ID: <605280185.20240905102312@yahoo.com> To: fvalasiad CC: Rob Norris , freebsd-hackers@freebsd.org Subject: Re: The Case for Rust (in the base system) In-Reply-To: References: <202409031131.483BVdax004602@critter.freebsd.dk> <27925916.20240904133623@yahoo.com> 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-Transfer-Encoding: 7bit X-Mailer: WebService/1.1.22645 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo 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:34010, ipnet:77.238.176.0/22, country:GB] X-Rspamd-Queue-Id: 4WzrPv3nnKz4Tcw Hello fvalasiad, Yes, I also think that there are young C developers, the problem is how to attract them to develop FreeBSD without money. This mail thread exist in hope to get Rust-developers to FreeBSD while there is a Rust-hype. People are trying to predict is a Rust-hype a longterm or shortterm. The next question is it techincally feasible. The next question will it perish FreeBSD concept in the future. The next question will the binding to Rust lead to deadlock as it was with Python 2.7-sourced projects having not enough strength to rewrite code for Python 3. In my opinion, If I understand things correctly. Wednesday, September 4, 2024, 4:57:34 PM, you wrote: > Being one of the young C developers you are referring to lain, right out of uni from some southern european country, allow me to share my experience. > The introductory class that teaches basic programming is done in C. Basic concepts like if statements, loops, structs, up to malloc(3) and free(3). > The backlog of students for that class is the biggest in the entire university, amounting to 700 people like 2 years ago, mind you the uni takes about 100 students per year. > Additionally, in 3rd and 4th year where students pick fields of study, the one I followed about hardware had barely 6 students in my year. Funnily, we all found a job in the field before we even left uni. > Most students, if not because of inadequacy, seem to not choose C. > I also haven't seem to met anyone entering the Rust cult either, they sure exist but they are also a minority. > While this is alarming, I don't find it impossible for this to come back around if demand rises in parallel with the paycheck offered for the job. Money is a great motivator especially if you are struggling to make ends meet. > Given how the funding situation goes with FOSS projects though, things aren't great as you all know! > Again, that's a completely biased experience cherry picked from a single computer science department in some small country, so take this with a mouthful of salt. > Fotis. > > On Wednesday, September 4th, 2024 at 1:34 PM, Anthony Pankov wrote: >> Hello Rob, >> >> > What I actually want though is high-quality tools to make the kind of >> > problems I need to solve easier for my puny human brain to manage. Rust >> > is an approach to solving some of these kinds of problems. Other >> > approaches exist, have existed, and will exist in the future. >> >> >> I'm interested in your opinion. Do the tools like PROMELA-SPIN used for some (critical) part of a C-sourced project will give more correctness and less error prone compared to rewriting project in Rust? >> Is there an actual possibility to make such a tools integral part of project? >> >> Wednesday, September 4, 2024, 11:03:13 AM, you wrote: >> >> > On 03.09.2024 11:31, Poul-Henning Kamp wrote: >> > >> > > But first and foremost: There has to be a good enough reason. >> >> > This is a near-enough hook for me to hitch a couple of thoughts on to :) >> >> > I work on ZFS, primarily on Linux with slowly increasing amounts on >> > FreeBSD too. By a long way, the kind of work that is the slowest and >> > most complicated is around complex locking sequences across multiple >> > threads. In most of these, getting it wrong leads to some kind of data >> > corruption that is usually impossible to track down. >> >> > The appeal of Rust for me, as for many, is that there are ways to encode >> > those kind of sequencing rules into the type system so that the compiler >> > can tell you where you got it wrong. But, I don't actually want Rust as >> > such. I like it a lot, I've written useful programs in Rust over the >> > last decade, and I'd be perfectly happy to use it in kernel and >> > filesystem development if it was available. >> >> > What I actually want though is high-quality tools to make the kind of >> > problems I need to solve easier for my puny human brain to manage. Rust >> > is an approach to solving some of these kinds of problems. Other >> > approaches exist, have existed, and will exist in the future. >> >> > This is mostly aimed at the "C is totally fine" crowd. I like C, and I'm >> > pretty good at it, but it absolutely not good enough for many kinds of >> > software. Frankly, I find "just get better at C" to be the most >> > infuratingly facile "argument" against Rust. >> >> > (And I would love to get better at C. If substantially better C tools >> > are out there (on whatever axis you like to measure that on), then >> > they're either not visible to me, or they're not usable or >> > well-integrated enough to be in my standard kit). >> >> > There's plenty of plausible reasons not to include Rust in the base >> > system, many of them being discussed on this list, and I'm learning a >> > lot reading along. Just please don't pretend the problems it's trying to >> > solve aren't real. >> >> > Cheers, >> > Rob. >> >> > -- >> > Rob Norris | robn.au | robn@despairlabs.com >> >> > Working on OpenZFS, because there's a lot of data out there and it'd be >> > nice not to lose any of it. >> >> >> >> >> -- >> Best regards, >> Anthony Pankov -- Best regards, Anthony