Readit News logoReadit News
EPWN3D commented on The silent death of good code   amit.prasad.me/blog/rip-g... · Posted by u/amitprasad
EPWN3D · 2 days ago
No one likes good code because it takes a lot of upfront time.

- PMs hate it because you're busy putting up scaffolding instead of painting

- Managers hate it because they have to cover for it

- Other engineers hate it because they could be doing it better

- VPs and directors hate it because they can't think beyond the release cycle, so the engineer is an architecture astronaut who should focus

There is basically no reward for actually putting thought into a programming solution anymore. The incentives are aligned against it unless you can get your manager to run interference for you.

EPWN3D commented on Does running wear out the bodies of professionals and amateurs alike?   theconversation.com/does-... · Posted by u/PaulHoule
WalterBright · 11 days ago
I've been running 3x a week for over 40 years now.

* about 4 miles

* I don't run for time, just a trot

* not training for anything

* drink a full glass of water beforehand. If sweaty outside, two glasses

* had some pain in my hips and knees. Switched to a ball-strike rather than a heel-strike. Pain went away. (you can feel the difference in the impact on the knees and hips)

* don't run downhill

* the big toe joint hurts and has gotten large making it hard to find shoes that fit

* don't run when not feeling well, or there's ice

* I feel weird when I can't run for some reason

* It feels good to run, and I like the results

EPWN3D · 10 days ago
Pretty similar story for me. I've been running 5x per week for over a decade. I don't care what my mile time is, and I don't run marathons. I live in a hilly part of SF, and so there's no point to keeping time anyway.

I hate it if I can't run. I feel like a slug.

EPWN3D commented on Interfaces and Traits in C   antonz.org/interfaces-in-... · Posted by u/ibobev
EPWN3D · 18 days ago
I've wound up just putting the protocol state in a struct and making the "conforming" action to have that struct in the conforming object with a standardized field name. Then just use a macro to get the protocol pointer and pass it to the protocol's implementation functions.

But I really, really wish we could have a lightweight protocol/trait feature in C. It would remove a large source of unsafe code that has to cast back and forth between void *.

EPWN3D commented on MTOTP: Wouldn't it be nice if you were the 2FA device?   github.com/VBranimir/mTOT... · Posted by u/brna-2
EPWN3D · 21 days ago
If you can be tied to a chair and beaten with a rubber hose until you produce the token, it's just a password, albeit one that rotates.

TOTP works because you have to possess the secure device at the time you're authenticating. If you don't have the device, then no amount of time with the rubber hose can make you cough up the required token.

EPWN3D commented on San Francisco to offer free childcare to people making up to $230k   theguardian.com/us-news/2... · Posted by u/darth_avocado
throwfaraway135 · 25 days ago
In a lot of 3rd world and less well off countries, childcare is done by the grandparents(mostly grandmothers), I'm always surprised why this isn't true in the west.

Here we have an aging population, so grandparent/grandchild ratio should be very high.

EPWN3D · 24 days ago
A few factors that aren't "lol capitalism":

1. People have kids later, and older grandparents are less likely to be able to care for them

2. Kids moved away and left their parents in the suburbs, so they're not exactly around anyway. Also, a lot of Boomers sold their homes during Covid to cash in and moved elsewhere and/or downsized. So they might not be living in a place where you can just drop the kids off for a weekend.

3. Generally, only one of the grandparents in the Boomer generation is realistically capable of providing childcare, and that's the mom. If she's not alive anymore, you're not getting anything from your dad.

EPWN3D commented on Stop Forwarding Errors, Start Designing Them   fast.github.io/blog/stop-... · Posted by u/andylokandy
fozem · a month ago
Good overview on Rust error handling.

I like errors that are unique and trivially greppable in a codebase. They should be stack efficient and word sized. Maybe a new calling convention where a register is reserved for error code and another register is a pointer to the source location string that is stored in a data segment.

The FP fanboy side of me likes the idea of algebraic effects and ADTs but not at the expense of stack efficiency.

EPWN3D · a month ago
You basically want a modern errno. I don't mean that as a dig at you -- I've found POSIX error codes to still be the best way to design errors in C. If it can't be evaluated by switch, then it's too complicated.
EPWN3D commented on Neurodivergent Brains Build Better Systems (2025)   blog.drjoshcsimmons.com/p... · Posted by u/user_7832
EPWN3D · a month ago
> There was a particular button on the user interface that bugged him. It bugged him because it was a slightly different shade of green in the screenshots than it was in the staging environment. The team looked into it, and sure enough, we had tested a slightly older version of the software, not the exact version we nearly shipped to the customer. He saw and noticed the button but what would have been deployed would have had multiple bugs in the code that weren’t visible and passing because the tests were on the old version too. That’s bottom-up thinking.

No, that's spotting a problem. Like, come on.

EPWN3D commented on Sony PS5 ROM keys leaked – jailbreaking could be made easier with BootROM codes   tomshardware.com/video-ga... · Posted by u/gloxkiqcza
firesteelrain · a month ago
HSM or TPM?
EPWN3D · a month ago
The story implies that these are signing keys, so there is no reason for the private halves to be present in the product's silicon in any form. If these were encryption keys stored in a TPM, they'd have been extracted not leaked.
EPWN3D commented on Sony PS5 ROM keys leaked – jailbreaking could be made easier with BootROM codes   tomshardware.com/video-ga... · Posted by u/gloxkiqcza
gruez · a month ago
Based on the other comments it looks like it's the decryption keys for the bootrom, which obviously have to be available somehow to every PS5 for it to be able to boot. That means they probably compromised the processor or something, but no need to invoke "Sony get compromised" or "disgruntled employee".
EPWN3D · a month ago
The story implies that they're signing keys (ie it says the keys are used to check the validity of the boot firmware). If they were encryption secrets stored on the chip, they'd have been extracted, not leaked.
EPWN3D commented on Sony PS5 ROM keys leaked – jailbreaking could be made easier with BootROM codes   tomshardware.com/video-ga... · Posted by u/gloxkiqcza
naoru · a month ago
The article says:

> According to The Cybersec Guru, this is an unpatchable problem for Sony, because these keys cannot be changed and are burned directly in the APU.

I'm just speculating at this point, but what could prevent Sony from anticipating this exact situation and burning several keys in the APU? I mean, eFuse is not exactly a new technology. That way, once a key is leaked, Sony could push a firmware update switching the APU to a new key which hasn't been leaked yet.

EPWN3D · a month ago
Nothing. But if the keys weren't stored in an HSM (seems likely), attackers getting one of them implies they could get the others as well.

u/EPWN3D

KarmaCake day459May 23, 2020View Original