HNHacker News
TopNewBestAskShowJobs

Xylakant

13,469 karma · joined June 3, 2011

submissionscomments
Xylakant··on Rust in the kernel is no longer experimental
It does, if you read the report and run a little (implied) math.

The report says that their historical data gives them an estimate of 1000 Memory Safety issues per Million Lines of Code for C/C++.

The same team currently has 5 Million lines of Rust code, of which 4% are unsafe (200 000). Assuming that unsafe Rust is on par with C/C++, this gives us an expected value of about 200 memory safety issues in the unsafe code. They have one. Either they have 199 hidden and undetected memory safety issues, or the conclusion is that even unsafe Rust is orders of magnitude better than C/C++ when it comes to memory safety.

I trust them to track these numbers diligently. This is a seasoned team building foundational low level software. We can safely assume that the Android team is better than the average C/C++ programmer (and likely also than the average Rust programmer), so the numbers should generalize fairly well.

Part of the benefits of Rust is indeed that it allows local reasoning about crucial parts of the code. This does allow for higher scrutiny which will find more bugs, but that's a result of the language design. unsafe {} was designed with that im mind - this is not a random emergent property.

Xylakant··on Rust in the kernel is no longer experimental
It's great that the Google Android team has been tracking data to answer that question for years now and their conclusion is:

-------

The primary security concern regarding Rust generally centers on the approximately 4% of code written within unsafe{} blocks. This subset of Rust has fueled significant speculation, misconceptions, and even theories that unsafe Rust might be more buggy than C. Empirical evidence shows this to be quite wrong.

Our data indicates that even a more conservative assumption, that a line of unsafe Rust is as likely to have a bug as a line of C or C++, significantly overestimates the risk of unsafe Rust. We don’t know for sure why this is the case, but there are likely several contributing factors:

    unsafe{} doesn't actually disable all or even most of Rust’s safety checks (a common misconception).
    The practice of encapsulation enables local reasoning about safety invariants.
    The additional scrutiny that unsafe{} blocks receive.
-----

From https://security.googleblog.com/2025/11/rust-in-android-move...

Xylakant··on Rust in the kernel is no longer experimental
How is the one comment from a GH account with 18 followers, no contribution to the Rust project (or any Rust based project at all) and mostly contributions to javascript projects in any way representative of the Rust community? Especially taken out of context - in context it seem like a failed(?) attempt at humor or sarcasm.

Do I treat your post from an obvious throwaway account created 13 minutes ago as somehow representative of the C community or the Linux kernel community or for that matter as representative of any community at all?

Come on, please. There's a ton of things that I consider worth of critisicm in the Rust community, but make a better case.

Xylakant··on Rust in the kernel is no longer experimental
How is the drive-by statement of a random GH account with 9 followers representative of any community. What's the point you're trying to make? That there's people with shitty behavior in the Rust community? No surprise here, there are. That there's trolls out there that just do this for fun? It's the internet! I hope that doesn't surprise anyone by now.
Xylakant··on Rust in the kernel is no longer experimental
Why? It depends on what you want to replace, but the Rust project has a long history of using tools written in other languages. Python is used a lot in build tooling, bors-ng was written in Elixir, llvm is written in c, ... gcc-rs doesn't contain a lot of rust code either, it's purely other languages according to https://github.com/Rust-GCC/gccrs

Fundamentally, if a tool is good and provides benefits then why not use it? You'll be met with concerns about maintainability if you just airdrop something written in Ada/SPARK, but that's fair - just as it was fair that the introduction of Rust in the linux kernel was indeed met with concerns about maintainability. It seems that those were resolved to the satisfcation of the group that decides things and the cost/benefit balance was considered net positive.

Xylakant··on A supersonic engine core makes the perfect power turbine
The question I’m asking is slightly tangent to how to feed the required gas. It’s “How many MW of gas do I need to feed in to get one MW of electricity.” And they’re pointedly avoiding any statement about this.
Xylakant··on A supersonic engine core makes the perfect power turbine
Did I miss something or does the article not even say how much gas they need as an input to generate the 42MW? I see they deride conventional turbines for needing cooling, but the reason they do is to increase the temp differential between hot and cold end of the turbine because some clever fellow named Carnot figured out that the amount of energy you can extract depends on this. Instead it seems that they just full-tilt run a supersonic turbine and blow the hot exhaust with all its energy into the air. So what’s the efficiency of this?
Xylakant··on The Free Software Foundation Europe deleted its account on X
Haven't tested lately, but at least for a while you could get your account blocked by publicly suggesting people follow you some other place.
Xylakant··on Codeberg is down
It’s an e.V., a German legal construct for public good organizations.

That doesn’t make it impossible to buy it, but all profits from a sale must flow into recognized public good efforts. The incentive to sell for huge sums is just much lower for all people involved.

Xylakant··on Native Secure Enclave backed SSH keys on macOS
The parent means that an attacker has unlimited attempts at breaking the passphrase on an exfiltrated key. Once the key passphrase is broken, they can log in using the key.
Xylakant··on Ubuntu LTS releases to 15 years with Legacy add-on
So the problem you’re running into is the question of whether support for old architectures should indefinitely hold back the adoption of new features or languages in future kernel versions. Rust in the kernel was added as a way for developers to explore whether the tradeoff between not supporting all future capabilities and adopting a more modern programming language works out. Nothing in the kernel core uses and relies on Rust so far, and to the best of my knowledge, no adoption of Rust in any of these places is planned as of today. So the use of Rust is limited to places which are of zero interest to older architectures. And it’s also not like the old kernel versions are going away. It’s perfectly viable for maintainers of old hardware to remain on older versions of the kernel.

OTOH, there is a desire from a group of kernel developers to implement to implement the code they contribute to the project in Rust. The want new shit to be working, and write support for it in a language they consider suitable for implementing the support faster, more maintainable and safer than in C. Should those people be held back by architecture support for architectures that haven’t seen new hardware in decades? Would that imply that the kernel developers cannot decide to drop support for old architectures? What would any such requirement mean for the long term future of the Linux kernel?

Xylakant··on Where do the children play?
The bosch drivetrain is pretty much bog standard on the german market and available on almost all price classes and Schwalbe Marathon/Big Apple tires are aren't exactly restricted to the higher price classes as well.

Now, if you're riding Mountainbike or Gravel tires, your tradeoffs are different - they sacrifice puncture resilience in favor of less weight.

Xylakant··on Why Castrol Honda Superbike crashes on (most) modern systems
I chuckled at the callout to Rust9x. Neat to see it pop up randomly.
Xylakant··on Where do the children play?
We haven’t had a malfunctioning battery in ~40 000km of ebike use in our family. We have one that failed to charge due to age. The number of times we ran out of battery due to forgetting to charge can be counted on one hand. The number of flat tires is in the single digits - modern general use tires are really sturdy, especially if you combine them with sealant.
Xylakant··on I may have found a way to spot U.S. at-sea strikes before they're announced
No, no one at the highest policy/government levels is doing anything about that. It would require treating drug addiction as a health care issue, with a plan to solve the underlying root causes, support and care for the affected and substantial funding on the ground level for support networks and other institutions that actually work in the space. Housing programs and drug decriminalization may also be worthwhile evaluating.

But that’s hard, unglamorous work, out of the limelight with people that are sick, addicted, grimy. No spectacular fireworks.

(Sorry for the rant)

Xylakant··on Hard Rust requirements from May onward
If you’re referring to Ferrocene with the certified Rust fork, then I’d like to make the minor correction that we don’t consider Ferrocene a true fork, but rather a downstream distribution of the Rust projects compiler. There are very little changes to the compiler itself. Most relevant changes are documentation, build process and different test coverage - we do test architectures that upstream does not.
Xylakant··on The last European train that travels by sea
The experience was okay, I would take it again. We went all the way from the start in Milano to Messina. The train left Milano on time and pretty much remained on time except for a minor delay in Rome (15 minutes).

We had a 3 person sleeper cabin for ourselves. They do serve a little breakfast - espresso, shrink-wrapped croissants, some biscuits with Marmelade and some salty crackers. Not a great meal, but good enough. If you’re going beyond Messina to Syracuse or Palermo, you should bring food along - or pick something up on the ferry.

The rolling stock is old - as in the toilets are still the kind where you can see the tracks, not a closed system. So they close the toilets a while before you get on the ferry.

Still, the ride was comfortable enough to actually sleep, even though the top bunk is a bit short for people of my size (1,85) - but neither wife nor kid could be convinced to climb up there.

Going to bed in Milano and waking up with a view of the coast was amazing. The beds fold up and you have a proper 3 seat cabin for the rest of the ride.

The ride was amazingly cheap - we paid 160 EUR for two adults and one 8year old, one way, so 330 in total.

Xylakant··on The last European train that travels by sea
Yes, I have. As I wrote in the sibling comments the last time just a week ago, the actual train that’s being discussed here. I’ll be again on Friday, for the return. I’ve taken multiple other night train connections before and in my experience, the quality depends to a large extend on the operator and the rolling stock. Older stock makes for less comfort, especially if not well maintained.

In my experience sleeping on the train also takes a bit of getting used to. Then again, maybe it’s really not for you - that’s ok.

Xylakant··on The last European train that travels by sea
Nobody is making anything harder on purpose. You can take a plane. But for a lot of European distances, night trains are perfectly good. I would love if they’d resurrect the night train that went to my parents place - I would board it on Friday 10pm to go home, be there Saturday for breakfast, board the train back at midnight on Sunday and roll into the Berlin main station in time to make it to work. Not a single lost minute for the trip, maximize time at the destination.
Xylakant··on The last European train that travels by sea
The time you spend on a night trains is spent sleeping. They deliberately don’t run full pace - no one wants to arrive at 5 in the morning. So they slow-roll on a long stretch to make arrival times reasonable.

Very often you can make an earlier arrival at a destination via night train than you can via plane - unless you fly in the evening before.

Xylakant··on The last European train that travels by sea
We just took the train to get from Berlin to Sicily for our holiday and will take it back on Sunday. There’s no one forcing you to take the train - there’s plenty of airports around here. But night trains are - at least for some - a great way to travel. You boards the train a 8pm in Milano, and by the time you had breakfast, you’re almost in Messina. Now, I wish that they’d refurbish the rolling stock and make the train run faster on the last legs, but that’s fundamentally a maintenance and upkeep issue. The technology is perfectly fine.
Xylakant··on Pwning the Nix ecosystem
Mobile devices are not restricted to phones, but include tablets, some of which are pretty powerful and usable for code editing.

Note that the signature for the web interface is made with a GitHub owned key on your behalf and not with your personal key.

Xylakant··on New-Vehicle Avg Price Hits Record High in Sep, Surges Past $50k for First Time
For me it offers 15000 plus transport to the dealership for the C3, but there’s plenty of other cars for less money on the list. Also: German prices, German taxes - the pricing is likely entirely different elsewhere.
Xylakant··on New-Vehicle Avg Price Hits Record High in Sep, Surges Past $50k for First Time
Plenty: https://www.meinauto.de/lp-neuwagen-unter-15000-euro

Depends on where you live, obviously, but I used to own a C3 (on the list) and it was a perfectly usable car.

Xylakant··on The RubyGems "Security Incident"
Yes, that’s what they do. But I still fail to grasp how that helps them - they still look pretty bad. Worse, actually - if you want to frame Andre as the bad actor, then my next question is “You knew that a bad actor had previous access, why in the name of $deity did you not double check that they have no access?”
Xylakant··on The RubyGems "Security Incident"
I don't even understand why RubyCentral included the proposal to use the log data in the post about a security incident. Whatever we may think of the proposal, the only purpose of including it in this place is to smear Andre.

The incident is clear cut and makes RubyCentral staff look incompetent. They cut off access to 1password and did not even consider that someone may have a copy of the credentials somewhere? As in "maybe in their head"? Rotating shared credentials in such a situation is security 101 and they failed. And when Andre notifies them that they failed, instead of quietly saying "Thanks, we've fixed that", they make it a security incident and include - without any further context - a single email from something that must have been a longer conversation.

Xylakant··on Legal Contracts Built for AI Agents
> These are questions that classic contracts don't usually cover because things tend to be more deterministic with static code.

Why? You have a delivery and you entered into some guarantees as part of the contract. Whether you use an agent, or roll a dice - you are responsible for upholding the guarantees you entered into as part of the contract. If you want to offload that guarantee, then you need to state it in the contract. Basically, what the MIT Licenses do: "No guarantees, not even fitness for purpose". Whether someone is willing to pay for something where you enter no liability for anything is an open question.

Xylakant··on The Crete Fleet – Concrete Tugs and Barges from WWI
Concrete is not a good material to build ships. As a ship moves it goes over waves and is subject to forces that want to bend the hull. Steel flexes slightly, but concrete does not not. It becomes brittle over time and the ship breaks apart.
Xylakant··on People want platforms, not governments, to be responsible for moderating content
> Nah, he would just (shadow)ban you

Censorship!

There’s a lot of grey areas - statement of fact vs opinion, open scientific consensus, statements about public figures vs. private individuals, … But the post I’m responding to basically says “there is no truth, let’s give up.” and that’s just as false.

Xylakant··on People want platforms, not governments, to be responsible for moderating content
Yep, libel laws are a rule that gets enforced by the government and the platforms should be liable to follow the laws. But the post I’m responding to asserts that people should change platforms- which is not a solution that addresses the issue at hand.
← PreviousPage 4 of 34Next →