#why rust users overwhelmingly prefer linux
1 messages · Page 1 of 1 (latest)
every time someone asks "why do users of programming language X predominantly use OS Y" i feel like it's subject to bias
I feel like a lot of devs use linux to begin with
like, while some languages are unavoidably tied to some OS (for example .NET languages with windows), it's not always a correlation
I kinda feel like a minority bc I use windows lol
i mean, you can look at the data
I know a big windows Rust user
say the stack overflow survey 2022
you can see that there's a lot of devs using windows out there :p
rust has pretty good windows support, all things considered
I mean, installing Rust on windows Just Works.
As long as you're willing to install MSVC toolchain lol
You install and run rustup, you install the vsc extension, or whatever other IDE you use, and you're set
Ah right, the msvc thing
Trying to compile the avarage C or C++ program on windows is a pain
so, i feel like the correlation might not necessarily exist, given that linux and windows rustaceans don't get particular advantages/disadvantages over each other
Apple has.... Its own ecosystem for the most part
Not much reason to use anything other than Swift if you're deep into the apple ecosystem
To be fair, most Rust devs are or were also non-Rust devs
I come from C++
yeah i feel like Rust monolinguals pretty much don't exist
then again it's like that for most programmers
lmfao
Rust is a nice transition for a C++ programmer looking for something new, because it has a lot of familiar things
Although many times I was like "Rust is so weird... Why..."
But that was also pre-1.0 Rust
It has gotten more C++-y before it hit 1.0
Removed the weird built-in smart pointer types and green threads
We used to be erlangy, yeah
It's like Rust was made for me, because I want C++, but also please catch as many mistakes as you can, mr. compiler
With C++, I used to -Wall -Wextra -Weverything-under-the-sun, and also clang-analyzer and cppcheck
lol
Rust + clippy has pretty much all that built-in
Linux being more developer friendly is generally a widely held sentiment, as the nature of the platform means they have a lot of influence in dictating how the OS behaves. As they likely actively use the OS themselves, they have a distinct stake in how they're set up, resulting in them often having relevant tools out of the box or readily available, such as the LLVM toolchains Rust depends on...
Setting up Rust on Windows on the other hand, depends going through the installation process for Visual Studio, and it's C/C++ development tools, regardless of whether you intend to actually use them or not...
It's hard to find a linux install without a C compiler already installed
So that's taken care of
In that regard, I think the idea a significant deal of developers gravitate to Linux, and then find the design or Rust appealing, has distinct weight to it...
i develop my software specifically on windows 11 so that i catch all the windows-and-windows-11-related bugs and bullshit so that my customers dont have to
ive had just as many frustrating experiences building stuff on linux as i have on windows
the problem is >>a certain language or two's<< build tools, not the os❗
oh yes glibc
There is also flatpak, but I don't particularly like that either, haha
I mostly either use software from my distro's repos, or compile them from source
(And then there is snap, but we don't talk about snap)
I guess this could also be a reason why Rust is so popular on linux
Pure Rust apps are statically linked (except libc, and some basic system libs)
But you can also build against musl libc to get fully statically linked binary