News for hackers. Stuff that matters.
Re:Linux Rust Support by pjmlp on Tuesday July 06, 2021 @07:42AM (#27747077)
> Microsoft's Linux Systems Group is interested in contributing to getting Rust into Linux kernel. Hopefully we will be able to submit select Hyper-V drivers written in Rust in the coming months.

At very least the Azure Sphere OS team should finally adopt Rust, instead of doing security marketing with the 7 layers of whatever, and then shipping a C only SDK.

It is like they are absent of the company security efforts, while trying to sell us a story of how much they care about security.

Re:Linux Rust Support by somebody_amzn on Tuesday July 06, 2021 @07:52AM (#27747160)
Azure Sphere OS was designed to fit in a 4MB of SRAM envelope... while actually using a Linux kernel.

If I remember well, only 512KB is actually usable by OEM applications on that platform.

Re:Linux Rust Support by pjmlp on Tuesday July 06, 2021 @07:59AM (#27747221)
And?

I was using C++ on MS-DOS.

Not even C++ is supported on the Azure Sphere OS SDK.

Ironically they usally tend to evade the question when asked about it, to the point they ended up writing a very long blog post trying to justify C, and it had nothing to do with space requirements.

Rather industry expectations and other marketing speak.

Re:Linux Rust Support by somebody_amzn on Tuesday July 06, 2021 @08:37AM (#27747640)
The libc and libraries that they already add to apps don't leave enough space for an off-the-shelf C++ runtime to be included.

So instead of including a custom runtime they just bailed out...

Re:Linux Rust Support by pjmlp on Tuesday July 06, 2021 @08:52AM (#27747814)
And? Turbo and Borland C++ also had their off-the-shelf C++ runtime to fit into either 64 KB COM files or up to 512 KB memory space with EXE.
Re:Linux Rust Support by tux1968 on Tuesday July 06, 2021 @10:46AM (#27749334)
In fairness, back then C++ was a much smaller superset of C than it is now.
Re:Linux Rust Support by pjmlp on Tuesday July 06, 2021 @10:54AM (#27749445)
Same applies to C.

Anyway just search for Jason Turner's talks on targeting Commodore 64 with C++.

Re:Linux Rust Support by einpoklum on Tuesday July 06, 2021 @03:46PM (#27753354)
Not really. That is, C's libraries grew less than C++'s libraries, over the past 25 years or so.
Re:Linux Rust Support by pjmlp on Wednesday July 07, 2021 @02:29AM (#27758026)
Do you use everything on the standard library? Uau.
Re:Linux Rust Support by swiley on Tuesday July 06, 2021 @10:42AM (#27749277)
Also people are using glibc++ on avr micro controllers.
Re:Linux Rust Support by hulitu on Tuesday July 06, 2021 @08:03AM (#27747273)
So they are not using RUST because it is bloated but for other will be ok to use it. Linux kernel is already quiet bloated so i don't see what rust can bring. BSDs start looking more and more interesting.
Re:Linux Rust Support by volta83 on Tuesday July 06, 2021 @08:27AM (#27747533)
> So they are not using RUST because it is bloated but for other will be ok to use it.

No. They are only using C. They are not using anything else for "unknown" reasons.

You can write bloated Rust applications in pretty much the exact same ways you can write bloated C applications (generics, runtimes, macros, ...).

And you can write thin Rust applications in pretty much the same ways you can do so in any other language, including C.

Re:Linux Rust Support by fractalb on Tuesday July 06, 2021 @10:07AM (#27748762)
Tangentially, on what parameters is the linux kernel bloated?
Re:Linux Rust Support by cmyr on Tuesday July 06, 2021 @11:27AM (#27749827)
I presume it's mostly that the kernel ships so many drivers.
Re:Linux Rust Support by squarefoot on Tuesday July 06, 2021 @04:04PM (#27753561)
A huge number of them is in the form of downloadable modules, that is, if you don't connect the hardware, the relevant module isn't loaded.
Re:Linux Rust Support by johnnycerberus on Tuesday July 06, 2021 @07:59AM (#27747224)
It is better when others have skin in the game and you are protected from risks. The fool doesn't learn from his own mistakes, the smart one learns from his own mistakes, the wise learns from the mistakes made by others. Very wise Azure people are. :)
Re:Linux Rust Support by dangerbird2 on Tuesday July 06, 2021 @12:19PM (#27750584)
Obligatory "The S in IoT stands for Security"