News for hackers. Stuff that matters.
Re:Rust in Linux kernel is just a beginning by mikymoothrowa on Tuesday October 25, 2022 @03:37AM (#33327355)
Literally 13 years after inception: “This is just the beginning“

Been seeing these kind of “Rust is going to take over the world” posts for nearly a decade here.

people should really consider the possibility that the language might be bad if it sees this poor adoption despite the incessant evangelism on all tech forums

Re:Rust in Linux kernel is just a beginning by the_gipsy on Tuesday October 25, 2022 @03:40AM (#33327370)
Uhh being in the linux kernel is "poor adoption" now, right.
Re:Rust in Linux kernel is just a beginning by shmerl on Tuesday October 25, 2022 @03:40AM (#33327369)
Alternatively one can consider that fast adoption driven by marketing isn't a sign of best quality. Take a look at Java.
Re:Rust in Linux kernel is just a beginning by homarp on Tuesday October 25, 2022 @03:49AM (#33327442)
or Java Script
Re:Rust in Linux kernel is just a beginning by jholman on Tuesday October 25, 2022 @10:18AM (#33330772)
Weird example. JS took a long time to take off, and had virtually no marketing budget.

Or is your point that JS took off despite that, and so maybe is high quality? I think that's wrong too.

Re:Rust in Linux kernel is just a beginning by homarp on Tuesday October 25, 2022 @02:56PM (#33334713)
JS name was based on Java. Pure marketing name.

Launched by Netscape with Sun approval (they used to own the trademark, now it is Oracle) in 95.

Netscape had money and marketshare.

It was adopted by competing browsers (IE in 96, Opera end of 97) and removed alternatives (perl, tcl, python in browsers (eg https://www.foo.be/docs/tpj/issues/vol2_3/tpj0203-0004.html ))

Re:Rust in Linux kernel is just a beginning by homarp on Tuesday October 25, 2022 @02:59PM (#33334746)
As for the quality of JS, there was a reason "JS the good parts" was popular.

JS was a quickly made (in 10 days). It showed.

Re:Rust in Linux kernel is just a beginning by winrid on Tuesday October 25, 2022 @03:52AM (#33327470)
Java is anything but low quality...
Re:Rust in Linux kernel is just a beginning by baq on Tuesday October 25, 2022 @04:05AM (#33327563)
Java the language was the worst part of Java the technology stack for years. This has been changing but only very recently.
Re:Rust in Linux kernel is just a beginning by winrid on Tuesday October 25, 2022 @04:13AM (#33327628)
That's true, I suppose I am lumping the JVM and tooling in there with my defense.

I do like the verboseness, though, espectially for inheriting code.

Re:Rust in Linux kernel is just a beginning by shmerl on Tuesday October 25, 2022 @03:59AM (#33327517)
I wouldn't call it a best quality language design. And its adoption was driven by marketing for sure.
Re:Rust in Linux kernel is just a beginning by homarp on Tuesday October 25, 2022 @07:12AM (#33328958)
Must have been a bit more than marketing, sinceto Ms had to do first J++ then C# to counter its impact.
Re:Rust in Linux kernel is just a beginning by arunc on Tuesday October 25, 2022 @04:19AM (#33327680)
It doesn't matter. Java is safe (thanks to it's GC) albeit having null pointer. Very few languages offered that guarantee.
Re:Rust in Linux kernel is just a beginning by quickthrower2 on Tuesday October 25, 2022 @04:38AM (#33327837)
Java would be devoured by C# and others if it were that bad. I guess that it isn’t bad, at a pragmatic level. It definitely ain’t about developer joy though. When I first used it in 99 it seemed magical though. Notepad + javac = gui program. Compare that to VisualC++ or VB!
Re:Rust in Linux kernel is just a beginning by shmerl on Tuesday October 25, 2022 @10:25AM (#33330869)
Once something gets entrenched, the tin soldier logic of bean counters will make it stick around for a long time.
Re:Rust in Linux kernel is just a beginning by arunc on Tuesday October 25, 2022 @03:57AM (#33327504)
How many other languages have been merged to Linux other than C and Rust? Zero. (Ignore perl scripts, etc)

Did you look at the PR that was merged?

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/lin...

This is not trivial work. This will only get over better over time (with funding), all for safe and secure Linux for the mass!!

The only thing that concerns me now is the Rust code in kernel is not GPLv2. Not sure if that's intentional.

Re:Rust in Linux kernel is just a beginning by dcomp on Tuesday October 25, 2022 @04:40AM (#33327854)
> The only thing that concerns me now is the Rust code in kernel is not GPLv2. Not sure if that's intentional.

The only code that isn't GPLv2 is the alloc crate. Which is basically a copy of upstream with some changes. All the kernel specific stuff is GPL

Re:Rust in Linux kernel is just a beginning by vegai_ on Tuesday October 25, 2022 @05:58AM (#33328407)
They obviously didn't miss this while reviewing the patch, but just wondering: are there any performance/resource implications to making KSYM_NAME_LEN 512 instead of the previous 128 or 256?
Re:Rust in Linux kernel is just a beginning by turminal on Tuesday October 25, 2022 @04:07AM (#33327576)
The evangelism is actually hindering adoption.