Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Sep 2024 19:38:18 -0600
From:      Alan Somers <asomers@freebsd.org>
To:        Charlie Li <vishwin@freebsd.org>
Cc:        Alan Somers <asomers@freebsd.org>, Aryeh Friedman <aryeh.friedman@gmail.com>,  FreeBSD Mailing List <freebsd-hackers@freebsd.org>
Subject:   Re: Some rather stupid questions about Rust and FreeBSD
Message-ID:  <CAOtMX2gV9zFspNR0FtmgwGnCsqekMG-65BWKj4A08Y4Bf5LA=w@mail.gmail.com>
In-Reply-To: <33fc2e5d-f135-4770-9ba6-cfae3a4ad120@freebsd.org>
References:  <CAGBxaXmeLQudhP428wCSEsGh0%2BbpiM8=To4HbohdwsGcsE5Qbg@mail.gmail.com> <CAOtMX2g0xcaDvXQLzntDs1cvzVx_wnTPTw7%2B1GV2KtS=AytOgg@mail.gmail.com> <33fc2e5d-f135-4770-9ba6-cfae3a4ad120@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
--000000000000ecc7140621e229a6
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Wed, Sep 11, 2024, 7:33=E2=80=AFPM Charlie Li <vishwin@freebsd.org> wrot=
e:

> Alan Somers wrote:
> > On Wed, Sep 11, 2024 at 3:26=E2=80=AFPM Aryeh Friedman wrote:
> >> 1. It takes FOREVER to compile
> >
> > I assume you mean lang/rust.  It does take FOREVER to compile, because
> > it builds its own version of LLVM.  That's why I suggest adding it to
> > ALLOW_MAKE_JOBS_PACKAGES , if you're using Poudriere.  Ordinary Rust
> > programs generally compile at a similar speed as C programs.  Slower
> > than Go, but faster than C++.
> >
> rustc (lang/rust) supports using an existing LLVM toolchain
> (devel/llvm*). Since LLVM 8.0, the Rust Project maintain their copy of
> LLVM nearly the same way we do in base, and as such track the latest two
> release branches. Using the PORT_LLVM option in the port reduces the
> build time significantly (from not building LLVM) with no change in
> runtime behaviour.
>

Oh, sweet.  I need to try that out. What's the downside? Do you know why it
isn't the default?

>

--000000000000ecc7140621e229a6
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 Wed, Sep 11, 2024, 7:33=E2=80=AFPM Charlie Li &lt;<=
a href=3D"mailto:vishwin@freebsd.org">vishwin@freebsd.org</a>&gt; wrote:<br=
></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;=
border-left:1px solid rgb(204,204,204);padding-left:1ex">Alan Somers wrote:=
<br>
&gt; On Wed, Sep 11, 2024 at 3:26=E2=80=AFPM Aryeh Friedman wrote:<br>
&gt;&gt; 1. It takes FOREVER to compile<br>
&gt; <br>
&gt; I assume you mean lang/rust.=C2=A0 It does take FOREVER to compile, be=
cause<br>
&gt; it builds its own version of LLVM.=C2=A0 That&#39;s why I suggest addi=
ng it to<br>
&gt; ALLOW_MAKE_JOBS_PACKAGES , if you&#39;re using Poudriere.=C2=A0 Ordina=
ry Rust<br>
&gt; programs generally compile at a similar speed as C programs.=C2=A0 Slo=
wer<br>
&gt; than Go, but faster than C++.<br>
&gt; <br>
rustc (lang/rust) supports using an existing LLVM toolchain <br>
(devel/llvm*). Since LLVM 8.0, the Rust Project maintain their copy of <br>
LLVM nearly the same way we do in base, and as such track the latest two <b=
r>
release branches. Using the PORT_LLVM option in the port reduces the <br>
build time significantly (from not building LLVM) with no change in <br>
runtime behaviour.<br></blockquote></div></div><div dir=3D"auto"><br></div>=
<div dir=3D"auto">Oh, sweet.=C2=A0 I need to try that out. What&#39;s the d=
ownside? Do you know why it isn&#39;t the default?</div><div dir=3D"auto"><=
div class=3D"gmail_quote"><blockquote class=3D"gmail_quote" style=3D"margin=
:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"=
>
</blockquote></div></div></div>

--000000000000ecc7140621e229a6--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAOtMX2gV9zFspNR0FtmgwGnCsqekMG-65BWKj4A08Y4Bf5LA=w>