Remix.run Logo
jpeter 4 hours ago

Unwrap() strikes again

dap 4 hours ago | parent | next [-]

I guess you’re being facetious but for those who didn’t click through:

> This type of code error is prevented by languages with strong type systems. In our replacement for this code in our new FL2 proxy, which is written in Rust, the error did not occur.

skywhopper 4 hours ago | parent [-]

That bit may be true, but the underlying error of a null reference that caused a panic was exactly the same in both incidents.

roguecoder 18 minutes ago | parent [-]

Yep: it is wild for them to claim that a strongly-typed language would have saved them when it didn't.

Relying on language features instead of writing code well will always eventually backfire.

dap 3 minutes ago | parent [-]

You're right that you have to "write code well" to prevent this sort of thing. It's also true that Rust's language features, if you use them, can make this sort of mistake a compile-time error rather than something that only blows up at runtime under the wrong conditions. The problem with their last outage was that somebody explicitly opted out of the tool provided by the language. As you say, that's "not writing code well". But I think you're dismissing the value of the language feature in helping you write code well.

throwawaymaths 4 hours ago | parent | prev | next [-]

this time in lua. cloudflare can't catch a break

RoyTyrell 4 hours ago | parent | next [-]

Or they're not thoroughly testing changes before pushing them out. As I've seen some others say, CloudFlare at this point should be considered critical infrastructure. Maybe not like power but dang close.

esseph 2 hours ago | parent [-]

My power goes out every Wednesday around noon and normally if the weather is bad. In a major US metro.

I hope cloudflare is far more resilient than local power.

gcau 4 hours ago | parent | prev | next [-]

The 'rewrite it in lua' crowd are oddly silent now.

barbazoo 4 hours ago | parent | next [-]

How do you know?

infrcg 3 hours ago | parent | prev [-]

[flagged]

jcmfernandes 3 hours ago | parent [-]

Did you really go through the trouble of creating an account just to spit trash? Damn!

rvz 3 hours ago | parent | prev [-]

Time to use boring languages such as Java and Go.

4 hours ago | parent | prev [-]
[deleted]