Readit News logoReadit News
rothron commented on We built a self-healing system to survive a concurrency bug at Netflix   pushtoprod.substack.com/p... · Posted by u/zdw
kenhwang · a year ago
My workplace currently has a similar problem where a resource leak can be greatly increased with certain unpredictable/unknown traffic conditions.

Our half-day workaround implementation was the same thing, just cycle the cluster regularly automatically.

Since we're running on AWS, we just double the size of the cluster, wait for the instances to initialize, then rapidly decommission the old instances. Every 2 hours.

It's shockingly stable. So much so that resolving the root cause isn't considered a priority and so we've had this running for months.

rothron · a year ago
This fix means that you won't notice when you accumulate other such resource leaks. When the shit eventually hits the fan, you'll have to deal with problems you didn't even knew you had.
rothron commented on Trump wins presidency for second time   thehill.com/homenews/camp... · Posted by u/koolba
redeux · a year ago
This is likely game over for Democrats and democracy in the US. Democracy has already been on the backslide here for some time, so it’s not overly surprising, but I don’t expect either to last the next couple of years.
rothron · a year ago
These are the same noises that were made on the right prior to the election. As long as people are sufficiently mad about the status quo, the other party has a chance to take over.
rothron commented on Color Wheels Are Wrong (2011)   longform.asmartbear.com/c... · Posted by u/charlieirish
rothron · 2 years ago
This topic has been written about in more depth by people who didn't try to work it out by themselves.

The classical artists color wheel is based on pigments. Printers use dyes. Screens use light. That's the whole reason why the primaries are different. The wheels are just tools.

rothron commented on Why checked exceptions failed   borretti.me/article/why-c... · Posted by u/rsaarelm
joebiden2 · 3 years ago
Isn't it exactly the opposite? Checked exceptions are for libraries to declare "exceptions" they can't handle themselves. You, the user of the library, have to deal with them (or declare them checked yourself¹).

I'm not a friend of checked exceptions myself, but I still think it's the opposite.

¹ which leads to the real issue with checked exceptions: they propagate through dependencies, if one nested dependency adds another checked exception, all dependencies have to add the exception or handle it themselves.

rothron · 3 years ago
I don't think we disagree it's just a different perspective. The forced handling or propagation is what makes them annoying, but I think they're conceptually wrong.

It would be another matter if they were designed such that you could fix an issue and continue the call on the happy branch, but I suspect the cases where something like that would be applicable are very few.

rothron commented on Why checked exceptions failed   borretti.me/article/why-c... · Posted by u/rsaarelm
funnymony · 3 years ago
> important failure that can't be dismissed

But importance of the failure is determined completely by the program, not the library.

Grep fails to open a file for reading -> message the user and exit

Nuclear reactor controller fails to read important a file -> initiate reactor shutdown or something.

If file read is critical, you have to handle failure no matter what the interface is. Because you know that disk can fail.

rothron · 3 years ago
> But importance of the failure is determined completely by the program, not the library.

Exactly. I think this is the real crux about what's wrong with checked exceptions. It puts the responsibility to decide what exceptions are important on the library, where it doesn't belong. Only the user of the library knows that.

rothron commented on All programming philosophies are about state   worldofbs.com/minimize-st... · Posted by u/signa11
wruza · 3 years ago
I’ve been a programmer all my life, got first sw job around 2000 in business-oriented area (consulting + programming + “ops”). Before that were 5-7 years of toy programming as a kid. I experimented with tech a lot, got into paradigms early and never restricted myself to a single language/env/os/hw. I haven’t created nothing big, stellar or rocket science, but a couple of my projects lived for 10-17 years and counting.

Mind you, this “state management” thing and the fuss around it, which pops up for last ten years more actively, was never a concern that I found particularly useful to have a name for. 20+ years of a mediocre career and I still don’t get it, neither why, nor what the problem is. Maybe that’s why it is mediocre? Living in a bs country doesn’t help either. Otoh, I can make things work and ship mvps next week once there’s a plan and determination. (No, it’s not PHP.)

I believe that the fuss part comes from the fact that software becomes more and more low-level uncontrollably, so there’s a lot of self-imposed state that business isn’t even aware of and which becomes per-LoC routine that is easy to stumble upon but hard to document or explain to a person outside. State belongs to business and is not in your control, all other state is parasite. Mapping business state 1:1 in your program keeps everything simple to do, to change, to grow. It’s usually imperative, sometimes declarative (that’s where programming emerges) and never functional. Parasitic state’s place is under a rug. Library, syntactic sugar, framework, db/service, platform, whatever.

To conclude, well, I have nothing to say really. Still confusing.

rothron · 3 years ago
It's more of an issue the more network-y and multi-cpu your ecosystem is. I find the post rather banal and obvious. The state is literally the how and what.
rothron commented on Ice cream in China doesn't melt, even under a flame, sparking controversy   boingboing.net/2022/07/07... · Posted by u/ValentineC
rothron · 4 years ago
I have made ice cream like this using Gellan as a stabilizer. It's just too much of a pudding to melt. It's not really what you want in an ice cream. You at least want it to melt completely in mouth temperatures.
rothron commented on I was just subjected to the most credible phishing attempt I’ve experienced   twitter.com/digitallawyer... · Posted by u/vinnyglennon
rothron · 6 years ago
His first mistake was to read back the verification number? Why would they legitimately asked for this theoretically?

To verify he has the phone they just called him on?

You should never have to read back a verification code.

rothron commented on Brains are the last frontier of privacy   axios.com/robotic-brains-... · Posted by u/hhs
rothron · 6 years ago
We used to laugh at the tin-foil hat people. Maybe they were just ahead of their times.
rothron commented on A 30th anniversary note to Prince of Persia fans   jordanmechner.com/prince-... · Posted by u/michalbe
joemi · 7 years ago
Wow. That's awesome. I could recognize most of the movements from the video... Guess I played a lot of Prince of Persia back in the day. It's funny how the brain can recognize specific movements like that, or like when you can recognize a friend from far away just based on how they walk.
rothron · 7 years ago
I remember well the movement that impressed me the most. The elaborate changing of direction when running and then turning. It looked so natural, and it was the first time I'd seen that in a game.

Most platformers still violate conservation of momentum and let you change direction in mid air.

u/rothron

KarmaCake day169July 11, 2011View Original