▲ | sophacles 5 days ago | |
A lot of sass people i know are more and more choosing rust for boring code. This includes several people who said things like "go is good enough, i don't want to deal with all the rust completely". Once your sass products get enough users, and you're dealing with millions or billions of requests per day, those rare bugs start showing up quite often... And it turns out programming towards correctness is desirable, if for no other reason than to keep pagerduty quiet. Tolerating correctness issues isn't cost-free... People having to respond during off hours costs money and stress. I think most people would rather pay the costs at dev time, when they aren't under the pressure of an incident, than during an outage. | ||
▲ | jchw 5 days ago | parent | next [-] | |
But correctness is not binary, it's more like a multidimensional spectrum. Your choice of programming language has some influence, as does standards and conventions, the ecosystem of your programming language, use of automated tooling like linting and testing, or even just ol' unreliable, discipline. Being a relatively greenfield language, Go is not in a terrible place when it comes to most of those things. Tons of automated tooling, including tools like the Checklocks analyzer or the many tools bundled with golangci-lint. Uber has done a pretty good job enumerating the challenges that remain, and even working at improving those issues too, such as with NilAway. The question isn't "wouldn't you prefer more correctness?" it's "how much would you pay for how much of an improvement in correctness?". Rust is still growing rapidly though, whereas Go is probably not growing rapidly anymore, I think Go has at least saturated it's own niche more than 50% and is on the other end of the curve by now. Last I checked Rust is the trendiest language by far, the one that people most wish they were writing, and the one that you want to be able to say your project is written in. So it would be extremely surprising to hear if there wasn't a growing Rust presence basically everywhere, SaaS's included. | ||
▲ | lossolo 4 days ago | parent | prev | next [-] | |
> A lot of sass people i know are more and more choosing rust for boring code It seems like you're in some kind of bubble, especially when looking at Rust usage in the industry. > Once your sass products get enough users, and you're dealing with millions or billions of requests per day, those rare bugs start showing up quite often... This is a blanket statement that's simply not true and I'm speaking as someone who uses Go in the exact scenario you described. What kind of bugs are actually happening to these people? Do you have any real-world examples of the issues you're referring to, ones that suddenly start occurring only at the scale of millions or billions of requests per day to them? | ||
▲ | zozbot234 5 days ago | parent | prev [-] | |
This is also in line with everything we know about good software engineering. Putting out fires in production is extremely costly, hence potential issues should be addressed at the earliest feasible stage. |