Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Jan 2019 16:55:10 -0700
From:      Alan Somers <asomers@freebsd.org>
To:        drosih <drosih@rpi.edu>
Cc:        "freebsd-hackers@freebsd.org" <freebsd-hackers@freebsd.org>
Subject:   Re: Speculative: Rust for base system components
Message-ID:  <CAOtMX2h5%2Bx8YOESqAuf-BOP2R3ezcYqqxUb8HBE9UUrj3ciidA@mail.gmail.com>
In-Reply-To: <4ea0612bbad08e61a15d495459b2bede@rpi.edu>
References:  <20190101045638.D280E1F56@spqr.komquats.com> <a2d04773-c7cc-457d-4db6-913cb84e885b@metricspace.net> <CADWvR2izXwGRwkWn52x6s3U73ki5Qdg98Y-00use=G9febhrGA@mail.gmail.com> <4ea0612bbad08e61a15d495459b2bede@rpi.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Jan 1, 2019 at 4:17 PM drosih <drosih@rpi.edu> wrote:
>
> On 2019-01-01 11:00, Igor Mozolevsky wrote:
> > On Tue, 1 Jan 2019 at 15:54, Eric McCorkle wrote:
> >
> > <snip>
> >
> > &gt; I don't think that's a fair comparison at all.  Rust is a systems
> > &gt; language built around zero-cost abstractions that is usable for
> > &gt; developing real embedded code
> >
> > <snip>
> >
> > Brian's simple experiment [1] demonstrates that "zero-cost" is
> > more of an aspiration (and a very long term one, perhaps) than
> > a hard fact ;-)
>
> Brian's simple experiment is a simple experiment.  It's interesting,
> but hardly the definitive word in evaluating a language.  We need
> more real-world experience with serious programs before dismissing
> rust.  But at the same time, we need much more real-world experience
> with writing rust before we can consider bringing it into the base
> system.  We can't bring it into the base system and then hope that
> "magic happens" because it's sitting there.
>
> I thought the 'ripgrep' program seemed like an interesting one
> to look at.  Compare how fast it works to how fast our grep works.
> (I have not done that comparison!  I just take advantage of the
> extra features that 'ripgrep' has.)  And 'ripgrep' works fine as
> a port.  It does not need to be in the base system.  It's just an
> example to look at, for those who might be interested in rust.
>
> Maybe other people know of other real-world useful programs which
> are written in rust, and which might be interesting to look at.

Freshmeat knows of 38.  Just look at the reverse dependencies for
rust: https://www.freshports.org/lang/rust/ .  Some interesting ones
are alacritty (a fast terminal emulator), exa (ls replacement), fd
(find replacement), suricata (IDS), xi (text editor), tokei (cloc
replacement), sccache (like ccache but networked), and of course our
favorite web browser.  Also notable is libjail-rs, a jail(3)
replacement written in Rust.  https://github.com/fubarnetes/libjail-rs
.

-Alan

>
> So consider me a cheerleader for "Let's get some more experience!".
> (not that all of us can do that, but at least *some* of us!)
>
>      -- garance alistair drosehn  aka gad@FreeBSD.org
>      -- senior systems programmer @rpi
>
> _______________________________________________
> freebsd-hackers@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAOtMX2h5%2Bx8YOESqAuf-BOP2R3ezcYqqxUb8HBE9UUrj3ciidA>