thingsiplay@beehaw.org
on 20 Jan 2025 13:46
nextcollapse
The older the Kernel gets, the more Rust it will get.
petsoi@discuss.tchncs.de
on 20 Jan 2025 14:11
nextcollapse
š
ravermeister@lemmy.rimkus.it
on 20 Jan 2025 18:32
collapse
š¤£š
blackberry@midwest.social
on 20 Jan 2025 17:18
nextcollapse
noob here, does this mean rust will come included on Linux, similar to python?
jokro@feddit.org
on 20 Jan 2025 17:27
nextcollapse
No. Itās only about the kernel itself, not Linux Systems(aka Distributions).
Earlier the kernel did only consist of C code, but for some time now the option to develop parts of the kernel in Rust is being worked on. In the end it both compiles to native machine code. The running kernel does not require the Rust toolchain to be present.
Yeah, Python requires a āruntimeā program, which interprets the Python code and then translates it into native machine code to actually execute it. Because Rust is compiled directly to native machine code by the developer, you donāt need a runtime program on your PC to run Rust programs.
This is also one of the biggest reasons why Rust can be used for kernel development. You cannot rely on a runtime program for developing a kernel, since launching a program requires a kernel to already be up and running.
thingsiplay@beehaw.org
on 21 Jan 2025 03:11
nextcollapse
This only means programmers of Linux itself can use Rust to program the Kernel. In example if Rust programmers are good at it, they can use the language over something they are not good at it like C in example. You as the end user does not see any direct difference. Like with any other application if its written in Rust or in C, it does not matter much if you use the binary executable.
patatahooligan@lemmy.world
on 21 Jan 2025 17:30
collapse
The other commenter already answers your quest, but I will just point out that python doesnāt come included āon Linuxā. It just happens to be a dependency of so much stuff that some other packages is going to pull it in. A minimal distro which doesnāt include programs written in python will probably not have python installed at all.
Most of the time itās bundled in the application, unless itās a server app or a dev toolkit.
lord_ryvan@ttrpg.network
on 06 Feb 2025 11:42
collapse
Hah.
Tell that to Mint and itās bundled software!
Although, Mintās not alone in this.
In general, if Python came pre-installed on your Linux system, uninstalling it tends to break a whole bunch of pre-installed software.
IrritableOcelot@beehaw.org
on 20 Jan 2025 18:47
nextcollapse
This thumbnail hurts to look at.
milicent_bystandr@lemm.ee
on 21 Jan 2025 16:12
collapse
Do you think the AI was just fed the title to make an image, and successfully combined ārustā and āosā?
PushButton@lemmy.world
on 21 Jan 2025 23:06
collapse
Tell the guy who is using it, not meā¦
Amaterasu@lemmy.world
on 20 Jan 2025 23:33
nextcollapse
I canāt have an impression good or bad about this news. Iām not sure if Rust is an interesting thing. I saw people saying good things about it and other talking hellish about the number of dependencies.
I donāt program for a long time. Used to like coding in C quite a lot.
Rust libs for use in the kernel need an extra approval. But it turns out, whenever itās easier to just include a dependency doing what you need, instead of writing a bad version of it yourself, most people take a dependency.
PushButton@lemmy.world
on 21 Jan 2025 01:09
nextcollapse
As a rust developer, Iām biased, but I think it might be a great thing, if done properly. Iāve also done some kernel dev a while back and itās full of kernel-specific macros and conventions and boilerplate code. It would at least improve readability and reduce some boilerplate as well as improve on some common security bugs. But seeing as how different C is in kernel context to regular application, this may be the same for Rust, in which case I hope the devs know what theyāre doing, because it can easily get out of hand.
threaded - newest
The older the Kernel gets, the more Rust it will get.
š
š¤£š
noob here, does this mean rust will come included on Linux, similar to python?
No. Itās only about the kernel itself, not Linux Systems(aka Distributions).
Earlier the kernel did only consist of C code, but for some time now the option to develop parts of the kernel in Rust is being worked on. In the end it both compiles to native machine code. The running kernel does not require the Rust toolchain to be present.
Yeah, Python requires a āruntimeā program, which interprets the Python code and then translates it into native machine code to actually execute it. Because Rust is compiled directly to native machine code by the developer, you donāt need a runtime program on your PC to run Rust programs.
This is also one of the biggest reasons why Rust can be used for kernel development. You cannot rely on a runtime program for developing a kernel, since launching a program requires a kernel to already be up and running.
This only means programmers of Linux itself can use Rust to program the Kernel. In example if Rust programmers are good at it, they can use the language over something they are not good at it like C in example. You as the end user does not see any direct difference. Like with any other application if its written in Rust or in C, it does not matter much if you use the binary executable.
The other commenter already answers your quest, but I will just point out that python doesnāt come included āon Linuxā. It just happens to be a dependency of so much stuff that some other packages is going to pull it in. A minimal distro which doesnāt include programs written in python will probably not have python installed at all.
Thatās kinda wild tbh, even Node applications donāt need to pull in Node.
But then, Python is an interpreted language so you need the interpreter installed. You do need JavaScriptās interpreter for Node applications IIRC
Most of the time itās bundled in the application, unless itās a server app or a dev toolkit.
Hah. Tell that to Mint and itās bundled software!
Although, Mintās not alone in this. In general, if Python came pre-installed on your Linux system, uninstalling it tends to break a whole bunch of pre-installed software.
This thumbnail hurts to look at.
Do you think the AI was just fed the title to make an image, and successfully combined ārustā and āosā?
I really hate AI image generation. Itās theft and the result is always uncanny.
At least GPT is somewhat useful despite also being theft.
What OSes do not have any Rust code?
Bsd
Yeah wait a while, itāll get there too
Tell the guy who is using it, not meā¦
I canāt have an impression good or bad about this news. Iām not sure if Rust is an interesting thing. I saw people saying good things about it and other talking hellish about the number of dependencies.
I donāt program for a long time. Used to like coding in C quite a lot.
Hey man, if you want to understand something you have to see it for yourself.
Donāt just look at online forums and try to discern whatās factual. You need your own experience.
Agree. I was just pointing that since Iām out of the scene I canāt have an opinion.
Rust libs for use in the kernel need an extra approval. But it turns out, whenever itās easier to just include a dependency doing what you need, instead of writing a bad version of it yourself, most people take a dependency.
Handyman has the solution - literally!
As a rust developer, Iām biased, but I think it might be a great thing, if done properly. Iāve also done some kernel dev a while back and itās full of kernel-specific macros and conventions and boilerplate code. It would at least improve readability and reduce some boilerplate as well as improve on some common security bugs. But seeing as how different C is in kernel context to regular application, this may be the same for Rust, in which case I hope the devs know what theyāre doing, because it can easily get out of hand.