HNHacker News
TopNewBestAskShowJobs

Ygg2

8,244 karma · joined March 28, 2012

submissionscomments
Ygg2··on Claude Code uses Bun written in Rust now
If you saw the "Institute for Typesafe Memetic Research" and thought, "This is the den of Rust evangelists!" I don't want to break your illusion, because it's much funnier this way. Especially since there are like two people that like Rust on Twitter, and I'm one of them.

BTW did you hear about this:

https://babylonbee.com/news/democrats-say-they-are-perfectly...

OR

https://www.youtube.com/watch?v=bXEddCLW3SM

Ygg2··on Claude Code uses Bun written in Rust now
> Calling him "smelley"?

Turnabout is fair play.

> Frankly, that entire "Institute for Type Safe Memetic Research" seems like either an elaborate satire or an account run by genuinely insane people who think type and memory safety are paramount societal issues.

You've been had. Your entire rant means the bait worked.

Ygg2··on Claude Code uses Bun written in Rust now
> True, but unsafe let's you conjure up any lifetime you want

The only thing unsafe does is let you have an unbounded lifetime. As I said, it doesn't check those:

   fn get_str<'a>(s: *const String) -> &'a str {
       unsafe { &*s }
   }

https://doc.rust-lang.org/nomicon/unbounded-lifetimes.html

> if you generously sprinkle pointer dereferences in unsafe code, you effectively disable the protection provided by the borrow checker

You don't disable anything. You wrote a "trust me compiler" block, and compiler trusted you.

Rust won't ever protect from all possible problems, just the ones the compiler handles.

Ygg2··on Claude Code uses Bun written in Rust now
You didn't just quote The Institute of Typesafe Memetic Research as proof of anything...

It's a shitposting, hyperbolic bait account. As funny as calling Andrew Kelley Smelley, it's not meant to be taken as gospel.

Ygg2··on Claude Code uses Bun written in Rust now
Unsafe Rust doesn't automagically disable typesystem (& borrow checker, but lifetime are a sort of types).

Once raw pointer is turned into a T, &T or &mut T, the borrow checker is on.

Ygg2··on Zig Creator Calls Spade a Spade, Anthropic Blows Smoke
> Developer & time-cost of a rewrite is a big unknown... An optimist might say this cost has vanished.

I wouldn't say it vanished. I'd say it moved from unknown to known. It's highly likely that for code the size of Bun the price is around 200k dollars of tokens + a month of programmers time to monitor it.

> Shipping a rewritten product is -by itself- an unknown risk. That still holds. You can do all the testing you want, but your test suite != your clients environment(s? multiply by number of users or target platforms).

Fair point.

That said, it seems the number of relevant platforms is shrinking. Both on the hardware side - x86_64 AMD, x86_64 Intel, and aarch64. On the OS side, you have Linux, Mac and the dying Windows.

Still, it seems with enough tests and original source code, you can limit this risk to a few edge cases.

> All in all Joel's article held up pretty well

Aside from the fact that it mostly applies to commercial endeavors[1], it still missed the mark on old code decaying over time.

Turns out being exposed to the Internet has a chance to turn even old code sour.

[1] If you don't care about your users, or you care more about pleasing/attracting new developers, then points made in his article don't make rewriting it that bad.

Ygg2··on Zig Creator Calls Spade a Spade, Anthropic Blows Smoke
> By the engineer's wit of course!

Seeing how the Rust compiler isn't an LLM, it can't really work on wit.

From the POV of a programmer, how would you implement an unsafe block? What is disabled vs what's enabled?

> By detecting undefined behavior

Say you are tasked with making Miri; how do you detect violations of these rules?

Ygg2··on Zig Creator Calls Spade a Spade, Anthropic Blows Smoke
Ok, and how does, in your opinion, compiler rules enforcement work in an unsafe block?

And how does Miri help solve this issue?

Ygg2··on Zig Creator Calls Spade a Spade, Anthropic Blows Smoke
No. I just think you're taking judge by number of segfaults out of context. That said, I wrote this before the edit.
Ygg2··on Zig Creator Calls Spade a Spade, Anthropic Blows Smoke
People were for a few weeks commenting on why Jarred didn't write that Rust blog post.

Here are the comments:

https://news.ycombinator.com/item?id=48251340

https://news.ycombinator.com/item?id=48241734

https://news.ycombinator.com/item?id=48240996

Now he published it; it's a hit piece. Damned if you do, damned if you don't.

Ygg2··on Zig Creator Calls Spade a Spade, Anthropic Blows Smoke
It's funny, but I think the article is showing it's age. It's no longer true.

In hindsight having automated auto complete rewriting your code base wasn't something on 2000's radar.

Now switching from language to language is much easier. Just for Rust, there was Ladybird and Bun complete rewrite, that ran into zero things that Joel rallied about.

Ygg2··on Zig Creator Calls Spade a Spade, Anthropic Blows Smoke
Good job falling for the Zig propaganda. I say that half-jokingly.

EDIT: You can't be serious people. Rust unsafe is safer than C, if for nothing else, for knowing which pointers are aliasable.

Ygg2··on Zig Creator Calls Spade a Spade, Anthropic Blows Smoke
Without base rate you're comparing #X in a city vs #Y in a continent and drawing conclusions from that.

It's not even wrong.

Ygg2··on Interview with Mitchell Hashimoto about Ghostty and Zig
> I remember watching HN and seeing every time there was something Rust related trending, there was ALWAYS a post made shortly after trying to hype Zig

The Zig Evangelism Task Force has supplanted Rust as the premier hypebeast. And they'll be supplanted by the NEXT BIG THING.

Ygg2··on My thoughts on the Bun Rust rewrite
Where did I say Rust's borrow checker predates lifetimes?

I'm saying you have to be as meticulous as a borrow checker. Not as strict, of course, but you have to analyze each pointer, how and when it's used, and then cross-reference with the documented lifetime.

Just like thread safety existed before Rust made it explicit. Now you don't need to investigate if data is thread safe if it's `Send + Sync`.

This is a job humans suck at and compilers excel at. With some caveats. There will be edge cases that will need to be manually proven.

Ygg2··on Rewriting Bun in Rust
I don't because I think the GP is blaming the tech, not the actual culprit - a bit like blaming the invention of fridges for people hiding the body. LLMs can be made and hosted independently of OpenAI and Anthropic.

> TBH in hindsight it seems that the Bun acquisition was also for the PR stunt they just did with the Rust porting.

The events went roughly like this:

- Anthropic used Bun. So they acquired it.

- Bun made some LLM derived patches for Zig. They were rejected due to Zig no-LLM stance.

- Bun couldn't get patches in, so they switched to Rust.

Was it a PR stunt, an attempt to pressure Zig maintainers into changing AI stance, or just doing the fastest thing possible? It's difficult to tell. I'm inclined to believe the last option.

As easy as it is to blame Bun for a PR stunt, it's also possible that you can't really associate with someone who rallies against your employer/owner.

Ygg2··on Rewriting Bun in Rust
> AI is an inherently anti-social, anti-human technology, and this rewrite is the perfect example of that.

Not really. LLMs are a tool, and they do possess some interesting properties, but they are, in essence, a very surprising auto-complete.

No, what sucks is the AI companies marketing them as if they are The Holy Grail. And people are assuming that somehow LLM -> AGI -> ASI, even though there isn't really a causal link to be had, and acting like it's The Singularity.

I don't blame autocomplete for fucking up RAM, labor and god knows what else. I blame the idiots (at OpenAI and Anthropic) buying all RAM stocks and pretending this shit is any way good for anyone.

Ygg2··on My thoughts on the Bun Rust rewrite
Disclaimer: I'm bullish on Rust. And I think LLMs are overhyped, and kind of overhated.

Honestly, I think it would have been better if he had done the smart thing and ignored the noise around Bun's Zig -> Rust, and focused on code.

If he was willing to ride the coattails of Zig being hyped by Bun, then he should have taken the hit when Zig and Bun parted ways.

Hell, if he is that happy that they are leaving, he shouldn't have written that he is happy. Just smile and wave...

So now Jarred wrote a very matter-of-fact post about migrating Bun to Rust, and Andrew Kelley wrote a ranty blog about Jarred sucking at Zig, and being glad he's gone.

Ygg2··on My thoughts on the Bun Rust rewrite
If you are writing in C-like codebase and aren't tracking lifetimes and ownership at least as well as a borrow checker you're opening yourself to CVEs.
Ygg2··on It's not about physical vs. digital games, it's about ownership
> Fifteen years ago World of Warcraft was at its peak.

Sixty years ago the model was you go to an arcade cabinet, and you get charged every time you died (Credit: https://www.penny-arcade.com/comic/2026/07/03/returnal-3).

Ideally, they want cabinet in every home, you pay electricity for it, you buy overpriced Bluey skins, you buy your lives, you buy ads, and pay them every second for the pleasure, while not owning even the cabinet.

Ygg2··on Returning to Zig after losing trust in Rust's governance
It's also Ok to ban discussions that will lead nowhere or cause flame wars.
Ygg2··on We found a bug in the hyper HTTP library
Nah. You have to be very intentional in GC languages to avoid extra allocations.

It doesn't take much for one memory inefficient dep to drag down the entire app.

Ygg2··on Returning to Zig after losing trust in Rust's governance
> Meanwhile, Rust took its time.

Yes, this is the difference between a BDFL. A single person can make a decision faster, than a group of people. And consensus often leaves most people a bit miffed.

Again, the issue starts when the dictator grows mad and starts making decisions that make every contributor uncomfortable.

> To my horror, many software projects were accepting LLM-generated code. I had thought LLMs were unpopular among developers.

Why would a really stochastic auto-complete and analyzer be disliked by developers? LLMs are a useful tool, sometimes, but they aren't the <WE WILL REPLACE ALL WORKFORCE BY 2028> levels of hype that current frontier labs need to justify their costs.

> But Memory Safety!

I'd be genuinely flabbergasted if Zig ends up as safe as Rust without any overhead. So, no, adding Fil-C doesn't count. We have memory safety with overhead. We call it Java/C#/JavaScript/Go/<INSERT VM LANG HERE>.

Ygg2··on Fast Software, the Best Software (2019)
Honestly, I'm in partially disagree camp. What matters is how much time it saves.

A good WYSIWYG editor will run circles around the fastest text editor. Even if WYSIWYG is a bit slower to open.

It would be preferable for software to be more focused and faster over time, but that doesn't attract people to it.

Ygg2··on We found a bug in the hyper HTTP library
> Actually I suspect that Rust is a Silver Bullet in that sense.

Not really. If anything I'm pretty sure Fred would compare it to Ada:

    > Nevertheless, Ada will not prove to be the silver bullet that slays the software productivity monster, It is, after all, just another high-level language, and the biggest payoff from such languages came from the first transition, up from the accidental complexities of the machine into the more abstract statement of step-by-step solutions.
And I think he'd be on the money. Rust and Ada are revolutionary languages in their own right, but 10x holy grail they aren't.
Ygg2··on We found a bug in the hyper HTTP library
No. Anyone expecting that hasn't read No Silver Bullet essay.
Ygg2··on Crypto in 2026: Oh, This Is the Bad Place
> but crypto is still hanging on among its supporters

From what I last heard about crypto miners, the price of mining is not enough to justify price of rig + electricity, so they are quietly switching to AI.

Wonder how long the second scam will last.

Ygg2··on AMD silently removes memory encryption from consumer Ryzen CPUs
To be fair same can't be said of ECC, even though ECC should be basic feature out of the box.
Ygg2··on Google Chrome update will close the door on ad blockers
There's a reason Brave sucks too. From dabbling into cryptocurrency to charging $60 for Brave origins, it's also a dubious proposal.

Edit: Someone on Reddit compiled a list of various fuckups. https://www.reddit.com/r/browsers/comments/1j1pq7b/list_of_b...

Ygg2··on How memory safety CVEs differ between Rust and C/C++
It's not an ideal thing for sure, but between loud bang and silent corruption, I'd probably take loud bang. I.e. I'll take a panic rather than the method return 43 when you pop the null member from the stack.

And the Rust wasn't the root cause but corrupt configs were being erroneusly duplicated.

← PreviousPage 3 of 34Next →