Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Jan 2024 11:08:27 -0700
From:      Warner Losh <imp@bsdimp.com>
To:        Gleb Popov <arrowd@freebsd.org>
Cc:        Alan Somers <asomers@freebsd.org>, FreeBSD Hackers <freebsd-hackers@freebsd.org>,  Scott Long <scottl@freebsd.org>, "Goran Meki??" <meka@tilda.center>
Subject:   Re: The Case for Rust (in the base system)
Message-ID:  <CANCZdfp67mMcDZkNHYLK=1CM=WTu_hn8=u9w3KwttZsZfEqPVw@mail.gmail.com>
In-Reply-To: <CALH631=v4aWhFNDjZcnmjPnzFyZGhg%2BPuRmShx8TFvF6hPbnJQ@mail.gmail.com>
References:  <CAOtMX2hAUiWdGPtpaCJLPZB%2Bj2yzNw5DSjUmkwTi%2B%2BmyemehCA@mail.gmail.com> <CALH631=v4aWhFNDjZcnmjPnzFyZGhg%2BPuRmShx8TFvF6hPbnJQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--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 <arrowd@freebsd.org> wrot=
e:

> On Sat, Jan 20, 2024 at 7:51=E2=80=AFPM 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.  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

<div dir=3D"auto"><div><br><br><div class=3D"gmail_quote"><div dir=3D"ltr" =
class=3D"gmail_attr">On Sat, Jan 20, 2024, 10:14=E2=80=AFAM Gleb Popov &lt;=
<a href=3D"mailto:arrowd@freebsd.org">arrowd@freebsd.org</a>&gt; wrote:<br>=
</div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-l=
eft:1px #ccc solid;padding-left:1ex">On Sat, Jan 20, 2024 at 7:51=E2=80=AFP=
M Alan Somers &lt;<a href=3D"mailto:asomers@freebsd.org" target=3D"_blank" =
rel=3D"noreferrer">asomers@freebsd.org</a>&gt; wrote:<br>
&gt; To<br>
&gt; summarize, the cost is that it would double our build times.<br>
<br>
Would it? From what I remember, a lot of rust&#39;s build time comes from<b=
r>
building its own LLVM. Can we reuse our base LLVM for Rust-in-base?<br></bl=
ockquote></div></div><div dir=3D"auto"><br></div><div dir=3D"auto">No. That=
&#39;s not possible in general.=C2=A0 Rust needs its own special thing that=
 is not well tested fit the non rust case.</div><div dir=3D"auto"><br></div=
><div dir=3D"auto">Warner=C2=A0</div><div dir=3D"auto"><div class=3D"gmail_=
quote"><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-=
left:1px #ccc solid;padding-left:1ex">
</blockquote></div></div></div>

--00000000000072c8d7060f647c5f--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfp67mMcDZkNHYLK=1CM=WTu_hn8=u9w3KwttZsZfEqPVw>