Better HN
topnewbestaskshowjobs
Log inSign up

dralley

18,418 karma · joined Feb 28, 2017 (9y ago) · 3,997 submissions

Submissions

comment 18h ago · link · parent

The Rust compiler frontend, which comprises about 99% of what you can meaningfully call the Rust language, is written in Rust

LLVM is written in C++ (not C), sure, but it's also not the only backend that exists. You could use Cranelift (written in Rust) if you want.

comment 1d ago · link · parent

Who is the "they" that argue these things?

comment 1d ago · link · parent

Have you ever written Rust, much less unsafe Rust? It does not sound like you have, to be honest.

comment 1d ago · link · parent

My frustration with many anti-anti Rust arguments is that they are basically strawmans. "Use unsafe because it's faster to write" is not something that happens in real life to any significant extent. Unsafe is often slower and more awkward to write - not always - but in many cases it is. And the culture of Rust is anti-unsafe to a fault sometimes. People avoid it even when it's the easier option. Even LLMs avoid it unless you explicitly ask or it's genuinely necessary (IME)

It's just not a problem in real life.

comment 1d ago · link · parent

Thinking very very hard would be an improvement over the status quo in many C codebases.

comment 3d ago · link · parent

I think realistically we already hit that point decades ago. Einstein and Von Neumann are notable for the sheer scale and impact of their discoveries. Nowadays we're just playing around in the margins, decades of work may only result in a minor revision to a small portion of known science/physics whereas a century ago revolutionary discoveries were happening every other month.

comment 4d ago · link · parent

The side channels issue is where rust crypto libraries are currently the weakest

comment 5d ago · link · parent

Not exactly true. BMPs are death traps, sure, and sitting on top of those instead of in them is rational given the risk of burning to death inside of one or being obliterated by a mine splitting the hull in half.

But the only reason to sit outside a tank rather than in one is because riding on a vehicle is safer than walking through an open field. Tank crews are not sitting outside of their tanks, and they don't have seats inside for passengers.

comment 6d ago · link · parent

Fundamentally impossible? No.

Practically impossible? Yes.

SQLite is probably the most thoroughly tested and carefully developed C library in history and they still found a handful of memory safety bugs every year.

comment 6d ago · link · parent

This argument is cope.

In theory, that could be possible. In practice, there have been many many case studies demonstrating the opposite and not that many case studies demonstrating in favor of your argument.

e.g. Cloudflare replaced Nginx with Pingora: https://blog.cloudflare.com/how-we-built-pingora-the-proxy-t...

> With those assurances we can focus more on how a change to our service will interact with other services or a customer's origin. We can develop features at a higher cadence and not be burdened by memory safety and hard to diagnose crashes.

> When crashes do occur an engineer needs to spend time to diagnose how it happened and what caused it. Since Pingora's inception we’ve served a few hundred trillion requests and have yet to crash due to our service code.

> In fact, Pingora crashes are so rare we usually find unrelated issues when we do encounter one. Recently we discovered a kernel bug soon after our service started crashing. We've also discovered hardware issues on a few machines, in the past ruling out rare memory bugs caused by our software even after significant debugging was nearly impossible.

The CVE counts for new parts of the Linux kernel written in Rust are much lower than the (recent) CVE counts for even mature, years old parts of the Linux kernel written in C, to say nothing of the historical record.

comment 6d ago · link · parent

Nobody is saying that it needs to be rushed. Cloudflare started moving towards Rust more than a decade ago and (shortly after heartbleed happened) and progressively rolled bits out over the course of years. I'm sure there were problems here and there but it's hardly been a drag on them.

And parts of that involved specifically replacing Nginx in their architecture, so it's hardly irrelevant here.

https://blog.cloudflare.com/20-percent-internet-upgrade/

https://blog.cloudflare.com/how-we-built-pingora-the-proxy-t...

> With those assurances we can focus more on how a change to our service will interact with other services or a customer's origin. We can develop features at a higher cadence and not be burdened by memory safety and hard to diagnose crashes.

> When crashes do occur an engineer needs to spend time to diagnose how it happened and what caused it. Since Pingora's inception we’ve served a few hundred trillion requests and have yet to crash due to our service code.

> In fact, Pingora crashes are so rare we usually find unrelated issues when we do encounter one. Recently we discovered a kernel bug soon after our service started crashing. We've also discovered hardware issues on a few machines, in the past ruling out rare memory bugs caused by our software even after significant debugging was nearly impossible.

comment 1w ago · link · parent

I doubt that would be too difficult to write a macro for.

comment 1w ago · link · parent

Heretic! Exile the clanker enthusiast for heresey!

comment 1w ago · link · parent

And a subordinate executive. And god knows who else.

But I imagine the billions of dollars in illicit sales is considered a bigger issue.

comment 1w ago · link · parent

When the "some dude" is Jensen Huang and involves sleeping with Chinese spies while advocating for relaxed export controls, then obviously it's gonna pay him some attention.

comment 2w ago · link · parent

Ken is not a credible journalist. Probably not the worst, but he's closer to e.g. Glenn Greenwald than a pure fact-finder.

comment 2w ago · link · parent

Hungary was much of the same, though, and roughly the same vintage.

comment 2w ago · link · parent

It was messy. A number of agencies of the German government, including a handful of intelligence agencies, used Wirecard for banking.

comment 3w ago · link · parent

Or the amount of energy required to produce a large gas turbine. Which, between the refining and advanced metallurgy and the casting and machining of such a large piece of metal, is a lot.

comment 3w ago · link · parent

Compared to gas generators? Probably. And unlike gas there's no ongoing cost.

comment 3w ago · link · parent

This matters less in Alaska than nearly any other state, given their ranked choice system.

Personally, after having watched Rs put up fake Dem candidates in my state and pull the same games with candidate names in other states, it's hard to get too upset about this. Either make it illegal, make a bilateral pact of de-escalation and stop doing it, or quit whining.

comment 3w ago · link · parent

The people that got fucked over by Wedgewood were the party-preferred candidates. Wedgewood artificially inflated the polling of progressive candidates that were running against the party to a degree.

On top of that it's not election fraud, though it is potentially some kind of fraud if they were involved in betting markets.

comment 1mo ago · link · parent

It has improved significantly since the early days of 3.0. Not back to 1.1.1 levels of performance, but enough that it's probably not a dealbreaker for most people.

Still a shame that it went backwards.

comment 1mo ago · link · parent

I don't think it's necessarily that difficult to monetize, they just ignored a lot of the needs of enterprise users (rootless, not punching holes in the firewall, not fighting with systemd, private registries) for long enough that other projects (e.g. Podman, Quay) filled the void.

comment 1mo ago · link · parent

You have a point but it's just hyperbole in the other direction. Yes, Rust is only a small fraction of the code in use every day, but it has nonetheless achieved deep penetration into critical infrastructure.

Cloudflare's network routing code is predominantly Rust. Massive parts of AWS and Azure are Rust (including crown jewels like S3 and Lambda). Multiple car manufacturers have shipping Rust code in their production cars for years, albeit yes it's a slow process intoroducing it into regulated industries. Airbus and Boeing are putting up job openings for Rust development. As mentioned critical pieces of Windows and Android are now written in Rust. If you use Discord - that's Rust. If you use Amazon Prime Video or Disney+, that's Rust. I could go on.

When like 40% of internet traffic and 75% of end user devices are using Rust in some capacity, to say that it's "not production" is just ignorant, arrogant nonsense.

comment 1mo ago · link · parent

I've never seen an LLM write unsafe Rust unless I explicitly asked it to, or the thing I asked it to do fundamentally required it.

comment 1mo ago · link · parent

Well, that will certainly be an issue for nuclear power capacity in the future.

comment 1mo ago · link · parent

It's just a Lotus body, though I agree that Lotus cars are pretty

comment 1mo ago · link · parent

Why does Russia whitewash Stalin in 2024/5/6?
12345
134