Elan Ruskin's Avatar

Elan Ruskin

@despair.bsky.social

Using integers and making games. Also @despair on Twitter, @crash@mastodon.gamedev.place

463 Followers  |  53 Following  |  262 Posts  |  Joined: 13.05.2023  |  1.923

Latest posts by despair.bsky.social on Bluesky

Kinda wild how much faster Clang compiles compared to MSVC

09.02.2026 20:55 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
The Brothers Gracchi - How Republics Fall - Extra History - Part 1
YouTube video by Extra History The Brothers Gracchi - How Republics Fall - Extra History - Part 1

(Specifically, I was thinking of the Gracchi brothers: youtu.be/ODI1VOOoey0 )

03.02.2026 06:32 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Also when it comes to β€œthe news should publish what the gestapo are doing”, he’s… kind of right?

03.02.2026 06:29 β€” πŸ‘ 11    πŸ” 1    πŸ’¬ 0    πŸ“Œ 0

[friend sits down at lunch]: Wow, you looked deep in thought.
Me: ... hmm?
Friend: What were you thinking about?
[long
awkward
pause]
Me [truthfully]: ... the Roman Empire.

03.02.2026 05:31 β€” πŸ‘ 3    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
A screenshot of the "Code Inspection" setup dialog in Visual Assist,  which controls which "helpful suggestions" pop up when you're writing code.  The "modernize-use-auto" feature is highlighted; its default setting nags the programmer to replace properly typed variables with 'auto' assignments.

A screenshot of the "Code Inspection" setup dialog in Visual Assist, which controls which "helpful suggestions" pop up when you're writing code. The "modernize-use-auto" feature is highlighted; its default setting nags the programmer to replace properly typed variables with 'auto' assignments.

Updated Visual Assist, now it nags me to make my code worse.

29.01.2026 23:37 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

There’s a classic bit of folk music about this phenomenon.

youtu.be/Jl1r7E3e-ks

05.01.2026 11:41 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Pro tip for anyone with fitness on their New Year’s resolutions: put an exercise bike in front of the PS5.

Roguelites are ideal workout length. I’ve played like 500 miles of Hades. Crank up the resistance during boss battles for extra verisimilitude.

04.01.2026 23:11 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Why wouldn't it run on a Steam Deck? GTA6 will fit onto a PS5 and the Steam Deck is at least as capable. They can use the same tunings.

31.12.2025 23:12 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

AAA studios have the greatest need to reach the widest audience. Our games work on current hardware right now; why wouldn’t we keep them working?

31.12.2025 22:55 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Why not? Console devs target the same hardware for many years.

31.12.2025 22:04 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

We can keep making games for the current hardware.

31.12.2025 21:35 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Preview
We (novel) - Wikipedia

This was actually a plot point in the classic proto-cyberpunk novel β€œWe”, written by Yevgeny Zamyatin in the first years of the Soviet Union.

en.wikipedia.org/wiki/We_(nov...

25.12.2025 20:37 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

Dad shared that this was his job while working on the COMEX floor.

25.12.2025 20:19 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Dan Akroyd in β€œTrading Places” (1983)

Dan Akroyd in β€œTrading Places” (1983)

Everyone’s got a favorite Christmas movie.

25.12.2025 04:50 β€” πŸ‘ 5    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Do you ever think about how there was a period where the Earth had all the water that’s in the oceans but the surface was also like 700Β°C lava, so the air was mostly steam, which then condensed into rain in the cold upper atmosphere and boiled in midair on the way down?

That’s pretty metal.

14.12.2025 03:04 β€” πŸ‘ 5    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Video thumbnail

I keep a reaction gif on hand to clarify why I care so much about the availability of market-rate rental housing to urban professionals

28.11.2025 07:40 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
The Poverty Line is Not $140,000 A recent essay by Michael W. Green makes a very bold claim that the poverty line should not be where it is currently set β€” about $31,200 for a family of four β€” but should be much higher…

There’ve been a bunch of debunkings of that essay from people with numbers (eg, economistwritingeveryday.com/2025/11/26/t... ) but I think it’s worth asking WHY is housing so expensive. Food is so much cheaper than in the past; why is housing more scarce?

28.11.2025 02:51 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Post image Post image

I’d want to ask someone earning $100k whether they feel impoverished.

A few other things stuck out to me about the article:
- is the poverty line is higher when people spend less on food?
- should fewer people pay taxes?
- where are those housing costs coming from?

28.11.2025 02:51 β€” πŸ‘ 3    πŸ” 0    πŸ’¬ 2    πŸ“Œ 0

(None of this went into the jury deliberation bc I was only an alternate. This is just how I stayed occupied while waiting through sidebars.)
πŸ”š

25.11.2025 01:39 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

After the trial I looked up NHTSA experiments on low-damage rear-end collisions. For Ξ”V = 11km/h β‰ˆ 3.06m/s they measured mean acceleration 3.2g.

3.06Β² / (2 *.07) β‰ˆ 67 β‰ˆ 6.8g so my math is an overestimate vs experiment.

www-nrd.nhtsa.dot.gov/pdf/ESV/Proc...

(3/4)

25.11.2025 01:39 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Acceleration = Ξ”V / time.

We don't know pulse time, but can estimate Ξ”VΒ² = 2ax .

Wheel suspension communicates force to frame; compression travel β‰ˆ 7cm in road cars β‰ˆ x.

Acceleration ≀ (1.58)Β² / (2 *.07) β‰ˆ 17.7m/sΒ² which is 1.8g, about like a plane landing.
(2/4)

25.11.2025 01:39 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Estimating via high school physics:

Parties stipulated collision at 3.5mph β‰ˆ 1.58m/s.

Photos showed no damage to cars, so a mostly elastic collision: most momentum transferred to front car. Thus Ξ”V ≀ 1.58 .
(1/4)

25.11.2025 01:31 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

πŸ’― The arithmetic I was doing was Ξ”VΒ² = 2ax

22.11.2025 03:33 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

During my jury duty on a minor traffic accident case this week:

Attorney, to witness: "Do you know the delta-V in this accident?"
Witness: "No."
A: "Could you calculate the Ξ”V?"
W: "I've no expertise in that."
A: "Who could?"
W: "I wouldn't know."

[me, at that moment doing longhand arithmetic: πŸ‘€]

22.11.2025 00:54 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 1    πŸ“Œ 1
Poster from β€œPredator: Badlands” featuring the top half of a synthetic android strapped to the Predator’s back

Poster from β€œPredator: Badlands” featuring the top half of a synthetic android strapped to the Predator’s back

Art of β€œRatchet and Clank” showing the diminutive robot Clank strapped to Ratchet’s back

Art of β€œRatchet and Clank” showing the diminutive robot Clank strapped to Ratchet’s back

An early encounter gets revisted at the climax with all of the protagonist’s skills leveled to max. There’s a running gag that’s very Kojima (you’ll know it when you see it).

And β€œPredator: Badlands” stars a space creature with a wisecracking robot strapped to its back, so...

10.11.2025 02:15 β€” πŸ‘ 4    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

β€œPredator: Badlands” was much better than I expected. Story’s built like a video game: weapons are introduced, demonstrated, used with improvisation. There’s boss battles and a stealth sequence with Ghost-style chain assassination. A new tech tree opens in the third act. (1/2)

10.11.2025 02:15 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 2    πŸ“Œ 0

Probably the ultimate Turing test.

15.10.2025 06:07 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

I think you could find a better analogy for this one.

15.10.2025 03:41 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

Or you can use leading zero count (LZCNT aka __lzcnt64()) , which is defined as 0 β†’ 64, and also 2 cycles faster than bsr.

*undefined = on some CPUs it returns 0 and on other CPUs it return either 0 or garbage depending on flags and source operand type and who knows what else
DON'T ASK HOW I KNOW

15.10.2025 01:19 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image Post image

x86 `bsr` opcode gives an undefined* result for input value 0. Windows intrinsic _BitScanReverse64()'s returns 0 for input 0 to handle this case. Use it in a ternary statement to generate branchless code.

Hope this helps.

15.10.2025 01:19 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

@despair is following 19 prominent accounts