If you used freeBSD with rust and programmed in Rust in FreeBSD was it lagy or less preformnce ?
I don't know, I have never managed to get any BSD to install on any machine I had. However by all accounts Rust works on BSD as well as it does on Linux. No reason BSD would make Rust laggy or less performant.
Yes, Rust works well on FreeBSD. There are certainly no major performance concerns. Differences between the Rust experience on FreeBSD vs Linux include:
- Some CPU architectures, like powerpc64, are supported by rustup on Linux but not FreeBSD. For those architectures, you can still include the toolchain via FreeBSD's ports system. But the major architectures are in rustup, too.
- A few crates won't compile on FreeBSD, usually for stupid reasons, like that
mode_thas a different size. But honestly, I haven't seen many like that for years. - There are OS features that aren't portable, of course, like Capsicum on FreeBSD or splice(2) on Linux. But that's not a language issue. The most important difference, kqueue vs epoll, is well-handled by mio. So Tokio programs are portable. From what I've seen, Rust does a better job of handling OS-specific features like this than Go does.
- FreeBSD is an integrated operating system, not just a kernel. And the set of supported FreeBSD releases has much less diversity than the set of Linux distributions that Rust tries to support. So maintaining Rust programs on FreeBSD is usually easier than maintaining them on Linux.
- A few highly specialized tools, like miri, don't work on FreeBSD or don't work well.
I'm one of the FreeBSD target maintainers for Rust, and I'm active in libc and various other crates too. If you do run into a portability problem, I'll be happy to help you with it.
It has been a while since I used Rust in FreeBSD, but it seemed not much different from the experience on Linux.
I recall that I needed to use the Rust from ports/pkg because FreeBSD carried some OS-specific patches that cargo/rustc had not yet pulled from downstream. I do not know if that is still the case.