From nobody Sat Jan 20 18:08:27 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 4THPcT58s4z56QRj for ; Sat, 20 Jan 2024 18:08:41 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) (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-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4THPcT1Bddz4ThV for ; Sat, 20 Jan 2024 18:08:41 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-40e80046264so23166755e9.0 for ; Sat, 20 Jan 2024 10:08:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20230601.gappssmtp.com; s=20230601; t=1705774120; x=1706378920; darn=freebsd.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=kAIWzrvtKsJt/SNorL3O0TbA8EWQWCRGRHj77URyRa8=; b=LW8AIutgevqD0UUHu0+ov5mMgEVOt+TQSvT+5I/GVziNH3rBc6SRGW5MqQTTj+VYzd /78yK+InUynq9SHJExH1sAevyQP/K9u0omAZBGYEP1/n05sEyf7myF+Bbyzh2VKvRNMo Ksf06PpsReiGuCDWfazaHtsoXklFZ5JaUf08tg+r4kUzKtgehUKzZdFTu8fSiVhGlejp kk3KIGHBe9poRZY5Lbq9/2Ql2cZI1Jgms1uXqtRnjT0no0hjM8hiPsf4Xqd0b7CIqrqE iU5Drix/gzUz5UVC76Dps8WBANpqDvKBZDGCAQxjN2EbBSDHekSgLwTkwQHnQiJEOyf7 CG5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705774120; x=1706378920; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=kAIWzrvtKsJt/SNorL3O0TbA8EWQWCRGRHj77URyRa8=; b=DdacChofNFo1zpTrHdQxe2u1bVl81CvLDQLmzDNc4LEkdFzYGBnhZG/149nYy50LpG vuc1AM7JvBkh7JIBBCkFwAjpo+L/navVh63EzbjDoG8Gi0PXbaLJvsuYQJKBF6MwqveK WSSG5U4NFvZxk5R/9FHNQ76JTMlOSi6/c821iWk1A4p1UGvZ7LE74Y2s13448csIikli Yiw+CzR2m5QwHVI9W0L1yQ2L+Ra9Kb6qLHk+t3EuSZTplbCXX4oaH1SCsmsSLWgNYXt3 N/mv6jnwVYw6yuzYP7fPZZPIq0wqEaCisgCEAaxzr+YZf8eqr1l/3eUcavklXHxSOQfz B4hA== X-Gm-Message-State: AOJu0YxiTu1uOWmvqsNZlAnqKd7fVR2Ai7vq75faQqM6p8LDh4LwwWpN 2C+R0Tags7vY0kMwb7r/xVWCjeJXVbXrDgvQdHnQaHy5MXyXxR9Nv78LG2v88NYEHo94Kz2xmpF AWgLZ8cxbo9j1QWtJE+kGln/bfpNdK2NpCL7GZayXlUFKqMx8 X-Google-Smtp-Source: AGHT+IEpi30ij3SGReinqWRKVUidHcCE+BQJrdOHSFQwIoRAGDLoebJ845biRn3gaJymsmsBGYrNxFRRKCFdkh95sD0= X-Received: by 2002:a05:600c:4486:b0:40e:49c6:bb97 with SMTP id e6-20020a05600c448600b0040e49c6bb97mr1035085wmo.160.1705774119301; Sat, 20 Jan 2024 10:08:39 -0800 (PST) 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 References: In-Reply-To: From: Warner Losh Date: Sat, 20 Jan 2024 11:08:27 -0700 Message-ID: Subject: Re: The Case for Rust (in the base system) To: Gleb Popov Cc: Alan Somers , FreeBSD Hackers , Scott Long , "Goran Meki??" Content-Type: multipart/alternative; boundary="00000000000072c8d7060f647c5f" X-Rspamd-Queue-Id: 4THPcT1Bddz4ThV 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:15169, ipnet:2a00:1450::/32, country:US] --00000000000072c8d7060f647c5f Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sat, Jan 20, 2024, 10:14=E2=80=AFAM Gleb Popov wrot= e: > On Sat, Jan 20, 2024 at 7:51=E2=80=AFPM Alan Somers = wrote: > > To > > summarize, the cost is that it would double our build times. > > Would it? From what I remember, a lot of rust's build time comes from > building its own LLVM. Can we reuse our base LLVM for Rust-in-base? > No. That's not possible in general. Rust needs its own special thing that is not well tested fit the non rust case. Warner > --00000000000072c8d7060f647c5f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Sat, Jan 20, 2024, 10:14=E2=80=AFAM Gleb Popov <= arrowd@freebsd.org> wrote:
=
On Sat, Jan 20, 2024 at 7:51=E2=80=AFP= M Alan Somers <asomers@freebsd.org> wrote:
> To
> summarize, the cost is that it would double our build times.

Would it? From what I remember, a lot of rust's build time comes from building its own LLVM. Can we reuse our base LLVM for Rust-in-base?

No. That= 's not possible in general.=C2=A0 Rust needs its own special thing that= is not well tested fit the non rust case.

Warner=C2=A0
--00000000000072c8d7060f647c5f--