by jpeter 14 hours ago

Unwrap() strikes again

dap 14 hours ago | [-4 more]

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 14 hours ago | [-3 more]

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 11 hours ago | [-2 more]

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.

rossjudson 4 hours ago | [-0 more]
dap 10 hours ago | [-0 more]

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 14 hours ago | [-8 more]

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

RoyTyrell 14 hours ago | [-1 more]

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 13 hours ago | [-0 more]

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 14 hours ago | [-3 more]

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

barbazoo 14 hours ago | [-0 more]

How do you know?

infrcg 14 hours ago | [-1 more]

[flagged]

jcmfernandes 14 hours ago | [-0 more]

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

lexoj 10 hours ago | [-0 more]

Anyone knows why lua? Or is it perhaps as a redis script in lua?

rvz 14 hours ago | [-0 more]

Time to use boring languages such as Java and Go.

14 hours ago | [-0 more]
[deleted]