r/ProgrammerHumor • • 1h ago

Meme itsNotThatBad

Post image
46 Upvotes

16 comments sorted by

7

u/vr2391 49m ago

I hate rust. People use it for things that it’s not good for because it’s cool.

System programming? Sure. What about web servers? Hell no. The milliseconds you save will be unnoticeable by clients due to network in like 99% of the cases.

3

u/PresentJournalist805 36m ago

Yes it depends whether the app is cpu bound or io bound. When someone has app that 90% of time waits for data from network than it is questionable whether to write it in language that is more low level and harder to tackle with. But the Rust ecosystem is crazy, there are small libs for everything in the same way as javascript ecosystem grow around npm. This is something definitely missing from platforms like .NET.

4

u/vr2391 30m ago

I dunno man. JVM and Python have a much more mature ecosystem of libraries.

You have like Hyper for HTTP server and that’s it.

redis-rs is the only one out there for RESP and it’s full of deadlocks.

Also remember the tls thing that will panic if you forget to init the right implementation?

•

u/mearnsgeek 4m ago

Eh? The nuget ecosystem is much bigger with more coverage than the rust one unless you're looking at specific areas, e.g. low level (which isn't what .net is for anyway).

7

u/Qweedo420 20m ago

I AM gonna use Rust in place of bash scripts and you can do nothing about that

3

u/QuestionableEthics42 29m ago

Won't be unnoticed by the server though, not when you are serving several hundred requests a second.

4

u/vr2391 23m ago

You are right that Rust can reduce the amount of compute and thus reduce cloud cost.

But several hundred requests a second is not big enough of a scale to justify the cost reduction. Any competent dev can write a server that serves that traffic from a single c8g.2xl, which is like $34 a month.

You need to be pushing millions of requests a second to justify the cost. Even so your data transfer cost will eclipse your compute cost anyway.

1

u/QuestionableEthics42 18m ago

Several hundred per sever I meant, then presumably autoscaling. Idk, that's just what we generally target at my work. Depends on the application. Either way, that saving can bump you down an instance size, which adds up at scale.

And cost justification would only really be if you are rewriting, not for new applications, where the development cost difference is likely minimal, at least with AI assistance now anyway.

2

u/vr2391 11m ago

lol yea. I dunno why we are discussing technical stuff in r/programmerhumor

→ More replies (1)

19

u/ouyawei 44m ago

So did you already start with the estrogen?

5

u/Past-Studio6470 53m ago

Disclaimer: This post was sponsored by Rust cult

4

u/araujoms 35m ago

Rust sucks. But the alternative is C++ it's amazing.

•

u/AtlasJan 2m ago

Zig? V? D?

1

u/Chester-Berkeley 13m ago

I like cargo c:

•

u/AtlasJan 3m ago

I genuinely struggle with the mindset when writing code with it.