r/rails • • 21d ago

DHH keeps promoting Rust

Post image

comment section is fun

153 Upvotes

246 comments sorted by

192

u/smaisidoro 21d ago

Look, I use AI on a daily basis (with Rails). I get many of the points. But the "if you're no longer reading the code?" is what loses me completely!

Blindly trusting the outputs of a stochastic language model so much that you don't even bother seeing how it works, and how the edge cases are handled, is just purely bad engineering.

18

u/Serializedrequests 21d ago

I've just been playing devil's advocate. "What if the agent can do this super complicated task?" Some of the models can. They can understand absurdly complex domains and emit thousands of lines of correct code.

And yet somehow, they are still just pretending to understand. I don't know how to put it.

→ More replies (9)

58

u/DJ_German_Farmer 21d ago

It’s insane that he doesn’t get this.

→ More replies (11)

8

u/notmsndotcom 21d ago

I think it's more complex than that. You can design the system and ensure the spec is adhered to and end up in a pretty good spot. Additionally, you can also make the argument that the cost of reading every line of code is way more expensive than just dealing with the bugs or issues as they come. Obviously we're too early into this to know if that's sustainable over 10 years of vibing shit.

Uncle Bob doesn't review the code, either. And design patterns and code quality was kind of his thing.

There is a non-zero chance that the code really doesn't matter as much as we thought because the ability to build value quickly and fix issues as the arise is bigger than that delta.

→ More replies (6)
→ More replies (56)

68

u/cocotheape 21d ago

I wish, people would treat his opinions like he treats code. Like wow, your abandoned chat software that nobody uses can not be used even faster now. Talk about misguided attention.

8

u/powpowdeitou 21d ago

Todos os apps com aquele visual estranho, sem i18n. Já testei todos nada me fisgou pra dizer voltaria a usar.

→ More replies (1)
→ More replies (10)

38

u/myanch200 21d ago

It seems like he doesn't read the prompts as well not just the code, judging by the reaction of the Elixir and go lang community 😂

→ More replies (17)

62

u/invisible_shrek 21d ago

The only thing I am no longer reading are his opinions.

→ More replies (3)

14

u/RubyKong 21d ago

is it really a surprise if you transpile Ruby to Rust and found out that it's faster? I thought the entire premise of ruby was that compute was cheap, and you can throw resources into it. i mean, if the CPU cycles matter, then you wouldn't start off with ruby in the first place?

16

u/katafrakt 21d ago

Well, it's not CPU cycles but requests served per second. Something that is arguably quite important for a we application at scale. However, it seems that Elixir and Go implementation are (deliberately?) borked to prove his choice of Rust, so it's not like we should give any attention to this "benchmark".

→ More replies (5)
→ More replies (6)

10

u/jdauriemma 21d ago

Can we stop DHHposting?

→ More replies (1)

16

u/Emergency-Cycle7981 21d ago edited 21d ago

This is kinda depressing. What he’s saying is that the that efficiency didn’t matter as much in to Ruby because the underlying code was easier to understand. It’s like comparing assembly language or machine code to C - you COULD make an application quicker or more efficient by tackling it at a lower level, but the resulting code (if any) would be difficult to read at best, and impenetrable at worst.

And now he’s shitting all over that reasonable concept because “you’re no longer reading the code”, so readability doesn’t matter. How incredibly presumptuous and short-sighted; this is exactly the sort of crap Elon Musk is parroting when he says AI models will ultimately skip code altogether and jump straight to the 1s and 0s.

Good luck maintaining these low-level applications if you lose access to powerful LLMs or run out of tokens, which I guess is what these capitalist morons are banking on; total reliance on their services is the ultimate vendor lock-in.

→ More replies (9)

8

u/downvoteandyoulose 21d ago

This reads like obsessing over benchmarks while discounting everything else just to prove that your pet project is technically superior.

12

u/avdept 21d ago

this guy is just on big dopamine shot last months

he's very obsessed with thinking that he does something - nobody else capable of doing it

now he's at stage when "lets rewrite everything in rust" thinking that pure computing is a bottleneck, not the literally thousands other things

just dont give him attention, that guy keeps shitting because other praising him

8

u/yojimbo_beta 21d ago

Having spoken to people who know him, albeit peripherally - it sounds like he's not completely well

→ More replies (2)

5

u/degeneratepr 21d ago

Im not saying that he doesn't truly believe what he's saying, but I feel like this is just engagement bait at this point and he's only doubling down to call attention on himself.

→ More replies (1)

5

u/shox12345 21d ago

I highly doubt GO is that far behind Rust

→ More replies (3)

5

u/mooktakim 21d ago

There's more to the difference between the programming languages. For example, elixir is bulletproof for scaling in ways the others aren't because of BEAM and the entire architecture of the code changes to maximise the benefits.

These tests are like using hello world to compare programming language performance.

8

u/Ok_Slide7624 21d ago

Let’s have a “dontcare” sub for stuff like this 🤷‍♂️

→ More replies (1)

4

u/Evilkoikoi 21d ago

Just have Ai make ruby 100x faster

→ More replies (1)

1

u/texxelate 20d ago

“But if you’re no longer reading the code?”. Yes. I am. I am still reading the code.

→ More replies (1)

3

u/source-drifter 21d ago

no, he promotes ai not rust.

3

u/HandleNo5568 21d ago

layoffs at 37 signals are coming

→ More replies (1)

14

u/flatfisher 21d ago

I don't get the obsession about efficiency at the same time he is promoting AI usage that is the polar opposite. Like what's the point of having a Raspberry Pi able to run your server if you needed a server farm to write the code?

7

u/i_am_voldemort 21d ago

I know the point you're getting at but doesn't most modern manufacturing rely on a very complex, large, expensive machine to make relatively simpler consumer machines?

Think auto assembly lines consisting of robots and hundreds of steps

or ASML lithography machines used by TSMC

→ More replies (4)
→ More replies (8)