Enter Maestro, a unix-like monolithic kernel that aims to be compatible with Linux in order to ensure wide compatibility. Interestingly, it is written in Rust. It includes Solfége, a boot system and daemon manager, maestro-utils, which is a collection of system utility commands, and blimp, a package manager. According to Luc, it’s creator, the following third-party software has been tested and is working on the OS: musl (C standard library), bash, Some GNU coreutils commands such as ls, cat, mkdir, rm, rmdir, uname, whoami, etc… neofetch (a patched version, since the original neofetch does not know about the OS). If you want to test it out, fire up a VM with at least 1 GB of ram.

96 points
*

This sounds cool, but troubling because of its license. Trying to write a linux compatible kernel and licensing as MIT is basically asking to get railroaded by gigantic organizations. I hope they reconsider in the future.

permalink
report
reply
54 points

because of its* license

permalink
report
parent
reply
4 points

Thanks :)

permalink
report
parent
reply
2 points
Deleted by creator
permalink
report
parent
reply
1 point
Deleted by creator
permalink
report
parent
reply
14 points

Its a bit if an issue with the rust ecosystem in general tbh. Wish more stuff was copyleft >.<

permalink
report
parent
reply
3 points

Could someone detail why? Why is MIT license troublibg?

permalink
report
parent
reply
4 points

MIT is basically “do anything you want with it, I don’t care”. I means some company can reuse it in its closed source projects freely and without notice or royalty.

There are plenty of other licenses that require you to also go open source if you include and/or modify it. Basically “you can use ot however you want, but if you modify it, it has to be open source as well”

permalink
report
parent
reply
75 points

According to Luc, its* creator

permalink
report
reply
30 points

Username checks out

permalink
report
parent
reply
30 points

N O T I T S

permalink
report
parent
reply
6 points

Username checks out?

permalink
report
parent
reply
3 points

BUT WHAT WE MAKE

permalink
report
parent
reply
2 points

It snot its

permalink
report
parent
reply
27 points

Keep fighting the good fight. Syntax is important.

permalink
report
parent
reply
22 points

Yes. Thank you, “It’s no tits”!

permalink
report
parent
reply
67 points

Ok, I’m out of the loop and I’ve seen this often enough that I have to ask; why do people always bring up “written in rust”? No one points out that a given project is written in C++/C#/python/ruby etc, yet we keep seeing it for rust.

permalink
report
reply
108 points

If you want a real answer, it’s mostly advocacy, the same reason Linux enthusiasts show up to every negative-sounding Windows thread to tell you to install Linux instead. And if it is less obnoxious, it’s only because there’s fewer Rust enthusiasts.

There are, also, advantages to a Rust implementation that you can claim simply by virtue of something being implemented in Rust, as entire categories of problem that cause C projects to hemorrhage security vulnerabilities simply don’t exist for Rust.

But mostly it’s people wanting you to be excited about and interested in Rust.

permalink
report
parent
reply
17 points

Is there something inherently safer with how rust does things, or is it just a case of it being new, so the vulnerabilities haven’t been found yet?

permalink
report
parent
reply
84 points
*

Yes, it is inherently safer than C. Unless you write code in an unsafe block, Rust will handle many aspects of memory allocation and management for you, and ensure their safety. It is memory safe and thread safe by default.

C doesn’t have any of these safety checking features, so it would be equivalent to unsafe Rust, but all the time. It lets you do whatever you want with pointers for example, including making them point outside of the memory bounds. In program code, this will cause an illegal memory access exception, but in kernel code, all memory access is legal. Therefore, you could write a driver that accidentally overwrites the kernel’s own code in memory. That would likely cause a kernel panic and bring the whole system down. Whereas, in Rust, you can only do that within an unsafe code block.

permalink
report
parent
reply
29 points

Rust has many safeguards against some common errors that may cause security vulnerabilities. It’s by no means bulletproof against all vulnerabilities, but it’s something.

permalink
report
parent
reply
11 points

I only know the hype. But the hype says that Rust’s ownership system makes memory usage much safer by forcing the coder to deal with data. Your values will eventually go out of scope, and you have to dictate when that will happen or else it won’t compile.

…or something like that.

permalink
report
parent
reply
1 point
*
Deleted by creator
permalink
report
parent
reply
-15 points

Well rust has a borrow checker which does make some memory bugs harder to create but to say that rust solved any of the known open problems in computer security. The answer is clearly no. It just copied some good ideas from ocaml into C++ and got some good marketing.

borrow checkers also already exist for C/C++/etc [just most people don’t use them]

so, slightly safer defaults than C/C++ but doesn’t contain any new/unique security magic.

permalink
report
parent
reply
56 points

Programmers are hyped about Rust. It’s a programming language that has a legitimate chance to replace C and C++ for performance critical applications. So any new project in Rust increases the possibility of a future where C and C++ are programming languages of the past.

permalink
report
parent
reply
28 points

The absence of shitty OOP language features is not what’s holding Rust down, in my opinion. We’ve all seen the disastrous results of 00s-style OOP code in the real world. Java-style OOP is on the way out, thankfully.

I think the low adoption of Rust boils down to 2 things: 1 - The language is particularly hard to use. Not just because it is different, but the compiler is tough to beat. 2 - C and C++ are very entrenched at this point. This is the biggest hurdle.

I gotta say, from my personal point of view: the Rust community is incredibly zealous and hard-working. Something I have never seen for any other language. Everyday, you hear about somebody rewriting some huge piece of software in Rust. They might just succeed eventually, who knows?

permalink
report
parent
reply
22 points

Whenever people complain that in Rust “the compiler is tough to beat”, the real problem is that individual’s mindset.

I had this problem as well when I first started playing with Rust. I thought I was very smart and that I know exactly what I’m doing when I’m programming, so if the compiler is complaining so much about my code, it’s just being a dumb jerk.

But if you stick with it instead of giving into your initial frustration, you’ll realize that the truth is the compiler is your friend and is saving you from innumerable subtle bugs that you’d be putting into your code if you were using any other language.

When you realize that the 1.5x time+effort you need to spend to satisfy the Rust compiler is saving you 5x-50x time+effort that you’d have to spend debugging your program if you had written it in any other language, you’ll come to appreciate the strictness of the compiler instead of resenting it.

There’s a reason us crustaceans are so zealous and the ecosystem is growing so rapidly, and it’s not because we’re super smart or have some unusually high work ethic. It’s because the language and the tooling is legitimately really good for producing high quality software at a rapid pace.

There’s going to be an inflection point where the people who keep dismissing Rust are going to be left behind by the entire tech industry because there’s no other language that allows an ordinary developer to produce as high quality software as quickly that can work across EVERY platform, including web (via compiling to web assembly). I won’t pretend I can predict exactly when that inflection point will happen, but it will definitely happen.

permalink
report
parent
reply
2 points

Yeah the syntax is pretty far from more established languages, which is why I prefer C++ when I use it.

permalink
report
parent
reply
1 point

Imo rust won’t replace cpp without true Oop so I might just make my own objective rust and piss off Oop haters

permalink
report
parent
reply
9 points

There has been no true OOP language since smalltalk, which btw wasn’t class-based.

In practical terms Rust has subtyping – barely, at least in technical terms the only thing that uses true subtyping is lifetimes. In practical terms you have qualified types (aka traits) supporting interface inheritance which is perfectly proper as everybody knows that you shouldn’t inherit implementation as the Liskov Substitution Principle is undecidable.

“Language X will fail because it’s not OO” what’s this, the early 00s? I thought we left that hype train behind.

permalink
report
parent
reply
4 points
*

The parent post was edited, wasn’t it? I replied something to it, but the mentions of OOP have been removed. Am I going crazy? 🤪

permalink
report
parent
reply
2 points

What is true OOP?

permalink
report
parent
reply
1 point

I’ve never used rust but as you say it really does seem like a good successor to c/c++. It’s a modern, more memory safe programming language shat allows you to dig into the weeds if you need it.

permalink
report
parent
reply
23 points

Because rust is the modern low level systems language, which means it gotta go fast without all the freaking problems of the only other real alternative so far that was C. The languages you list don’t even play in the same ballpark.

permalink
report
parent
reply
22 points

But a kernel written in Perl would be a real achievement. Something in a whole different league.

permalink
report
parent
reply
16 points
*

It definitely would be. Next time someone posts a kernel written in Perl I hope they specify that.

permalink
report
parent
reply
1 point

Honest question from someone using C++, though not for systems- or embedded stuff, just for object oriented models that gotta go fast: Why is C++ not in the same ballpark, and not an alternative?

permalink
report
parent
reply
18 points
*

Mentioning it’s written in rust should imply this code base will have secure concurrency, better memory handling, be easier to extend, while maintaining near C++ performance. None of these are guarantees, but considering so many rust projects are “C/C++ programs, rewritten” it seems worth calling out as a differential. The language’s advantages extending to the kernel make it an interesting project.

permalink
report
parent
reply
1 point

Yes they do? All the time? To the point where github has a bar on every project page showing what percentages of every project is written in which languages?

permalink
report
parent
reply
25 points

50MB for a sub POSIX kernel and a shell prompt for a 50MB ISO image that has less functionality than a 4KB kernel (L4SEC) which has actual formal proofs of correctness.

Well, I guess it has Rust as a selling point but that isn’t something that should matter if the goal is real security.

permalink
report
reply
35 points

Started as a school project

I wouldn’t take it so seriously, it’s a passion project from a person learning about Rust and OS structure. Don’t compare this project against industry professionals.

permalink
report
parent
reply
14 points

Why not ? Even Linux started as a personal fun project. Let’s see where it will go

permalink
report
parent
reply
8 points

For sure, but making an OS is not a one man job anymore.

permalink
report
parent
reply
8 points
*

Finally, some “exciting” news, 2031 will be the year of the linux desktop(and Maestro)!

permalink
report
reply

Technology

!technology@lemmy.world

Create post

This is a most excellent place for technology news and articles.


Our Rules


  1. Follow the lemmy.world rules.
  2. Only tech related content.
  3. Be excellent to each another!
  4. Mod approved content bots can post up to 10 articles per day.
  5. Threads asking for personal tech support may be deleted.
  6. Politics threads may be removed.
  7. No memes allowed as posts, OK to post as comments.
  8. Only approved bots from the list below, to ask if your bot can be added please contact us.
  9. Check for duplicates before posting, duplicates may be removed

Approved Bots


Community stats

  • 18K

    Monthly active users

  • 11K

    Posts

  • 505K

    Comments