Alex Gantman

632 Followers
337 Following
2.6K Posts
Today I learned that x86 has a floating point version of the `nop` instruction, called `fnop`. It does nothing, but unlike the regular `nop` it uses the floating point unit to do nothing.
This meeting should have been a duel.
The plural of regex is regrets 😂

“In everyone’s pocket right now is a computer far more powerful than the one we flew on Voyager. I don’t mean your cell phone — I mean the key fob that unlocks your car.”

— Rich Terrile, JPL scientist and member of the Voyager imaging team

#space

Apropos of a conversation I had with my mother just last night:
"sunk cost tautology"
Reflections on (somewhat inevitable) dysfunction, or how security teams fail: https://lcamtuf.coredump.cx/blog/secfail/?3
How security teams fail

When it comes to infosec, there are certain mistakes that most companies are more or less bound to make.

I Tasted Honda's Spicy Rodent-Repelling Tape

And I will do it again unless someone stops me.

Haterade

America is sabotaging its own scientific research with cutting the NSF budget from $9 billion to only $3 billion, using AI to evaluate grant proposals and shift NSF funding from universities to private companies

https://www.science.org/content/article/my-boss-was-crying-nsf-confronts-potentially-massive-layoffs-and-budget-cuts

As a result, applications for positions as research group leaders from the US at Germany‘s Max Planck have doubled 🚀🔬
https://www.tagesschau.de/ausland/amerika/usa-forschung-kuerzungen-100.html

When I handle errors in complex projects, I like to have something like "return error_false()" instead of just "return false" because I can set a breakpoint on error_false and catch it the first time it happens. This doesn't work if it's a C project and I have a "goto error" for cleanup instead. I came up with a mildly diabolical equivalent, which I would like to curse you all to see: https://godbolt.org/z/Yjx4YoWeq
Compiler Explorer - C (x86-64 gcc 14.2)

int foo(int x) { if (x == 0) { goto error; } return 1; error: // if you set a breakpoint here, you don't know where you came from return 0; } static inline void *error_label(void *label) { // set a breakpoint here! return label; } int bar(int x) { if (x == 0) { goto *error_label(&&error); } return 1; error: return 0; }