252
submitted 10 months ago by ChiefSinner@lemm.ee to c/linux@lemmy.ml

This isn't Linux, but Linux-like. Its a microkernel built from the rust programming language. Its still experimental, but I think it has great potential. It has a GUI desktop, but the compiler isn't quite fully working yet.

Has anyone used this before? What was your experience with it?

Note: If this is inappropriate since this isn't technically Linux, mods please take down.

you are viewing a single comment's thread
view the rest of the comments
[-] weclaw@lemm.ee 104 points 10 months ago

From my personal experience I can tell you 2 reasons. The first is that this is the first general purpose language that can be used for all projects. You can use it on the web browser with web assembly, it is good for backend and it also is low level enough to use it for OS development and embedded. Other languages are good only for some thing and really bad for others. The second reason is that it is designed around catching errors at compile time. The error handling and strict typing forces the developer to handle errors. I have to spend more time creating the program but considerably less time finding and fixing bugs.

[-] LoETR9@feddit.it 1 points 10 months ago

I feel like C++ is as competent as Rust for any project and it's definitely older.

[-] Wooki@lemmy.world 6 points 10 months ago

Rust was created because c++ was so bad. Just take a look at crates they need a whole lot less maintenance because less bugs.

[-] LoETR9@feddit.it 2 points 10 months ago* (last edited 10 months ago)

My point wasn't that C++ is good. My point was that C++ can and is used everywhere (desktop applications, web applications, OSs,...) and is older than Rust. So I feel that "this is the first general purpose language that can be used for all projects" is false. Probably "this is the first general purpose language that I (and many others) like to use for all projects" is true, but is a different claim.

TLDR: You said Rust was first language capable of system, app and web, it isn't.

[-] Wooki@lemmy.world 1 points 10 months ago

It is good and rust improves on its gaping weaknesses.

Yeah I never made that claim the threads OP did.

[-] LeFantome@programming.dev 1 points 10 months ago

It depends on what “can be used” means. I really like C# and it “can be used” for that full stack C# for example can write out native machine code, can manually and precisely lay out memory, and can directly link to assembly language routines. You can write an OS in C#. Even as a fan though, I would certainly argue that it is the wrong tool for that job.

In the same vein, while I know C++ “can” be used for web dev, I would argue that anybody that tries to do so for any significant project is insane.

I am not sure I would use Rust for “everything” but I do think the claim that Rust is one of the first languages where it is reasonable or practical to choose it for any of these uses is valid. Rust code can be very high level and often does not much different than a scripting language. At the same time, it can go as low-level as you want. This article is about an OS in Rust ( and there are few ). Web dev in Rust is totally reasonable and there are a few popular frameworks available. Rust has one of the best WASM stories around.

load more comments (4 replies)
load more comments (13 replies)
this post was submitted on 21 Dec 2023
252 points (100.0% liked)

Linux

47819 readers
525 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS