From owner-freebsd-questions@freebsd.org Fri Jan 24 20:03:04 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 829D21FAAB8 for ; Fri, 24 Jan 2020 20:03:04 +0000 (UTC) (envelope-from ihor@antonovs.family) Received: from mail.antonovs.family (mail.antonovs.family [100.25.240.195]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 48496v4BrDz4V0X for ; Fri, 24 Jan 2020 20:03:03 +0000 (UTC) (envelope-from ihor@antonovs.family) Received: from localhost (localhost [127.0.0.1]) by mail.antonovs.family (Postfix) with ESMTP id F084E138A48 for ; Fri, 24 Jan 2020 20:02:56 +0000 (UTC) Received: from mail.antonovs.family ([127.0.0.1]) by localhost (mail.antonovs.family [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id Q6yeV4kE4iQW for ; Fri, 24 Jan 2020 20:02:56 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.antonovs.family (Postfix) with ESMTP id 1B747138A5E for ; Fri, 24 Jan 2020 20:02:56 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.antonovs.family 1B747138A5E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=antonovs.family; s=D65AA412-CB7F-11E9-A561-802C9D403B77; t=1579896176; bh=7mtYmtc7AHcQbYPQik28WqSqaLU82kcrJ/7d6ehvvAY=; h=Date:From:To:Message-ID:MIME-Version; b=BvQ0MJRAkxJ5cNolpjtEe2K9SkS12//QBmZIASp9sZxogYdpHjRf1C+oAdH+tuNLh MSGMgfXTeWkfBh0bEKm1Za4IPJuQ7bb+tVEFKin8TLuXrc8OPZQcKxdUfq0Vkjhf+Y Dwlm3KOk9uOkk/OIooyivH15q9H13XBJ/FDdjZCGl9zmGXN5OREm4Ovsta/5ZvR4eV mLOML7Ob5ZMkfpd2HAddcJ1FTY0f1PP025k4NS8Mvpx5GtfDzeDZZizGof0a0cnIOS mftLT90FuQpJ1qGJt8oOpTdqfoxE4d1pbQuO5x8llNdrlpSBPVU/kFlJQ6rIZH1EL2 QPdBvrT/hf3Kw== X-Virus-Scanned: amavisd-new at antonovs.family Received: from mail.antonovs.family ([127.0.0.1]) by localhost (mail.antonovs.family [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id D-4n8jAutdy8 for ; Fri, 24 Jan 2020 20:02:55 +0000 (UTC) Received: from mail.antonovs.family (localhost [127.0.0.1]) by mail.antonovs.family (Postfix) with ESMTP id E14C2138A48 for ; Fri, 24 Jan 2020 20:02:55 +0000 (UTC) Date: Fri, 24 Jan 2020 20:02:55 +0000 (UTC) From: Ihor Antonov To: freebsd-questions@freebsd.org Message-ID: <775662956.5865.1579896175788.JavaMail.zimbra@antonovs.family> Subject: Rust in base MIME-Version: 1.0 X-Originating-IP: [10.193.1.27] X-Mailer: Zimbra 8.8.12_GA_3866 (ZimbraWebClient - FF68 (Linux)/8.8.12_GA_3844) Thread-Index: cJM3Cv19SdAZDCvza/k7onqK4Dnu8g== Thread-Topic: Rust in base X-Rspamd-Queue-Id: 48496v4BrDz4V0X X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=antonovs.family header.s=D65AA412-CB7F-11E9-A561-802C9D403B77 header.b=BvQ0MJRA; dmarc=pass (policy=none) header.from=antonovs.family; spf=pass (mx1.freebsd.org: domain of ihor@antonovs.family designates 100.25.240.195 as permitted sender) smtp.mailfrom=ihor@antonovs.family X-Spamd-Result: default: False [-5.51 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[antonovs.family:s=D65AA412-CB7F-11E9-A561-802C9D403B77]; HAS_XOIP(0.00)[]; FROM_HAS_DN(0.00)[]; RCVD_COUNT_FIVE(0.00)[6]; R_SPF_ALLOW(-0.20)[+mx]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; IP_SCORE(-2.51)[ip: (-6.78), ipnet: 100.24.0.0/13(-2.67), asn: 14618(-3.04), country: US(-0.05)]; DKIM_TRACE(0.00)[antonovs.family:+]; DMARC_POLICY_ALLOW(-0.50)[antonovs.family,none]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:14618, ipnet:100.24.0.0/13, country:US]; MID_RHS_MATCH_FROM(0.00)[] Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Jan 2020 20:03:04 -0000 Hi folks, As I was reading this article [1] I started wondering what would it take to bring Rust into base? Examples of Rust code could be kernel modules, or userland utilities. I know that this probably is not going to happen without a real usecase (FreeBSD book states - do not add extra functionality unless a real task can't be completed without it"), but there is a bootstrapping problem. You cannot have rust code until you have rust code unless you have rust compiler, and rust compiler is written in rust... This could be a major roadblock for someone who wants to contribute a kernel module or new tool written in rust. There is a growing interest in Rust language and if FreeBSD allows to add rust code in base it would allow to attract more contributors interested that are interested in developing operating systems. It would also be something that Linux does not have. So there are 2 questions: - technical one: how bootstrapping issue can be solved? - what does FreeBSD community think of the idea to have Rust in base? Thanks. Ihor [1] https://www.leidinger.net/blog/2019/01/27/strategic-thinking-or-what-i-think-what-we-need-to-do-to-keep-freebsd-relevant/