Re: The Case for Rust (in the base system)

From: Robert R. Russell <robert_at_rrbrussell.com>
Date: Sun, 21 Jan 2024 21:36:56 UTC
On Sat, 20 Jan 2024 12:58:25 -0500
George Mitchell <george+freebsd@m5p.com> wrote:

> On 1/20/24 12:34, Dimitry Andric wrote:
> > [...]
> > However, I think this discussion is going in the wrong direction:
> > why keep attempting to build all these huge toolchain components in
> > our base system at all? [...]  
> 
> +1.
> I speak from ignorance on the cost/benefit ratio of rust.  So perhaps
> someone can tell us: what is the size of the rust runtime
> library(ies)? Do we continue to want FreeBSD to support small
> systems?  Should we ponder dividing the base system into the
> lightweight part and the heavier weight part?  Honestly, I am not
> trying to sow dissension, but I do suggest a serious discussion.
>                      -- George

Rust defaults to static linking. However, it doesn't blindly link
everything in either. Excluding systems with a non volatile storage
capacity measured in megabytes Rust will fit in just fine.