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

[-- Attachment #1 --]
On Wed, Sep 11, 2024, 7:33 PM Charlie Li <vishwin@freebsd.org> wrote:

> Alan Somers wrote:
> > On Wed, Sep 11, 2024 at 3:26 PM 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?

>

[-- Attachment #2 --]
<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Sep 11, 2024, 7:33 PM Charlie Li &lt;<a href="mailto:vishwin@freebsd.org">vishwin@freebsd.org</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="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 PM Aryeh Friedman wrote:<br>
&gt;&gt; 1. It takes FOREVER to compile<br>
&gt; <br>
&gt; I assume you mean lang/rust.  It does take FOREVER to compile, because<br>
&gt; it builds its own version of LLVM.  That&#39;s why I suggest adding it to<br>
&gt; ALLOW_MAKE_JOBS_PACKAGES , if you&#39;re using Poudriere.  Ordinary Rust<br>
&gt; programs generally compile at a similar speed as C programs.  Slower<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 <br>
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="auto"><br></div><div dir="auto">Oh, sweet.  I need to try that out. What&#39;s the downside? Do you know why it isn&#39;t the default?</div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
</blockquote></div></div></div>

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