Stefan Reinalter's Avatar

Stefan Reinalter

@molecularmusing.bsky.social

Founder of Molecular Matters • C++ & low-level programming • Created Live++ (@liveplusplus.bsky.social) https://liveplusplus.tech

323 Followers  |  181 Following  |  137 Posts  |  Joined: 18.11.2024  |  1.9554

Latest posts by molecularmusing.bsky.social on Bluesky

Post image Post image

Mario Chocolate

02.08.2025 17:38 — 👍 1    🔁 0    💬 0    📌 0
Preview
Microsoft CEO channels inner Fallout boss to say 9,000 layoffs are no big deal because "we're investing more," then AI brain hits: "Imagine if all 8 billion people could summon a researcher, an analys... "This is the enigma of success," apparently

www.gamesradar.com/games/micros...

Somebody needs to stop them from drinking the Kool Aid.

26.07.2025 14:04 — 👍 3    🔁 0    💬 0    📌 0

Read the blog and have a lovely, lovely weekend. It's just a great trip down memory lane, and he actually got it working and running *nicely* on a stock C64.
When I read the blog back then I remember how utterly amazed I was at the tricks he pulled.

12.07.2025 12:55 — 👍 1    🔁 0    💬 1    📌 0
Prince of Persia C64 - Development Blog This blog will document the development history of the C64 conversion of Prince of Persia. I will talk you through the steps that were taken and explain the technical details of how the game works and...

A colleague of mine ported Prince of Persia to C64. Without source code or assets, purely based on running the game in an emulator.

The amount of craziness this requires is mind-boggling.

He wrote a blog about it years ago:
popc64.blogspot.com?m=1

12.07.2025 12:50 — 👍 1    🔁 0    💬 1    📌 0

I have nothing but the highest respect for people porting *anything* without source code.

That's not porting, that's reverse engineering, eyeballing, and being very good at your profession.

11.07.2025 19:12 — 👍 18    🔁 0    💬 1    📌 0

Casey presents some optimizations that seem intuitive and they work correctly for determining separation. However, when computing distance and closest points there are some cases which should not be skipped.

11.07.2025 15:09 — 👍 8    🔁 2    💬 0    📌 0
A whitewashed pub wall, with mortar standing proud of the stones.

A whitewashed pub wall, with mortar standing proud of the stones.

When I found a pub with an inverted normal map. (If you understand what this means, you have to repost.)

09.07.2025 22:21 — 👍 1864    🔁 905    💬 54    📌 23

Regarding my idea for Live++ 3, here we go:
Hot-Redirect.

Hook any function in any module to your own impl., hot-reload that as often as you want.
Can all be done on the fly.
And the best: got it working on consoles too, which I believe is a first.

Think DTrace & ProcMon & Hot-Reload on steroids.

09.07.2025 15:42 — 👍 9    🔁 0    💬 0    📌 0

I think one of the most beautiful things that happens when you work on a game long enough is that every feature evokes a specific person in your mind.

Particles are someone you started this job with, ocean waves are your deskmate, clouds are your boss, moths flying around are your best man.

04.07.2025 10:50 — 👍 21    🔁 1    💬 4    📌 0

I just had an idea for Live++ 3 for something that no other middleware - hot-reload solution or otherwise - allows you to do, which could be tremendously helpful for debugging.

08.07.2025 15:28 — 👍 8    🔁 1    💬 0    📌 0
Post image

Live++ 2.9.3 out now:
liveplusplus.tech/releases.html

Last month was busy!
A lot of bugfixes across all platforms and vastly improved loading times for projects with several dozens of dynamic libraries.

Extra thanks to Resmi Hasankolli from EA for his help with Frostbite support.

#cpp

08.07.2025 11:23 — 👍 4    🔁 1    💬 0    📌 0
Compiler Explorer - C++ (x86-64 clang 20.1.0) struct POD { int value; }; // name with -O1: "_ZL5g_pod.0" // name with -O0: "_ZL5g_pod" static POD g_pod; void Foo() { g_pod.value++; }

Regarding my last post, here's a Compiler Explorer link: godbolt.org/z/Mc6s3bvea

With optimizations, Clang will add a ".0" suffix (don't know why) to the name, so e.g.:

struct POD
{
int value;
};

// name with -O1: "_ZL5g_pod.0"
// name with -O0: "_ZL5g_pod"
static POD g_pod;

08.07.2025 08:31 — 👍 1    🔁 0    💬 0    📌 0
Screenshot of a modal assert message. It has ASCII art of Gandalf alongside the text "YOU SHALL NOT PASS invalid parameters." Below this is text explaining that the caller to my function passed it NaN values, and the function is triggering an immediate fatal assert to ensure the callstack indicates the function supplying the bad data at the moment it's sent into the system.  It's like a defensive moat at the interface between gameplay code and the engine system.

Screenshot of a modal assert message. It has ASCII art of Gandalf alongside the text "YOU SHALL NOT PASS invalid parameters." Below this is text explaining that the caller to my function passed it NaN values, and the function is triggering an immediate fatal assert to ensure the callstack indicates the function supplying the bad data at the moment it's sent into the system. It's like a defensive moat at the interface between gameplay code and the engine system.

Years later, still the best assert message I've written.

07.07.2025 19:08 — 👍 21    🔁 6    💬 1    📌 0

Just found a case where the compiler emits a symbol in .bss with a different name, depending on whether optimizations are turned on or off, which messes with Hot-Deoptimize.

There are so many strange things I learn about compilers.

07.07.2025 18:01 — 👍 4    🔁 0    💬 0    📌 0
Preview
Elon Musk confirms xAI is buying an overseas power plant and shipping the whole thing to the U.S. to power its new data center — 1 million AI GPUs and up to 2 Gigawatts of power under one roof, equiva... Premises already acquired.

www.tomshardware.com/tech-industr...

I would love to still be alive in 100-200 years, only to hear historians talk about the current era.

04.07.2025 22:58 — 👍 0    🔁 0    💬 0    📌 0

I honestly thought this was satire when I first read it yesterday. How can someone be so completely tone deaf and oblivious? My condolences to anyone still in a job together with people who think like this..

04.07.2025 08:32 — 👍 15    🔁 2    💬 1    📌 0

Reading this has me going through a few Debra Dexter expletives.

04.07.2025 21:46 — 👍 1    🔁 0    💬 1    📌 0

Q: How far removed from the real world can a person possibly be?
A: Yes.

04.07.2025 21:45 — 👍 1    🔁 0    💬 1    📌 0

It's a good workaround, but I really wonder what's going on underneath in addition to the bazillion thrown exceptions and loading symbols from a thousand PDBs.

I exaggerate, but only slightly. I'm on a 64-core machine, it should blaze right through.

03.07.2025 14:54 — 👍 1    🔁 0    💬 1    📌 0

Trying to debug a VSIX extension by launching with F5 in VS, which opens a debuggable, experimental VS instance must be the ultimate "Why is everything *sooo* slow?" experience.

Try it.

03.07.2025 12:32 — 👍 4    🔁 0    💬 1    📌 0
Post image

Definitely one of the hackiest pieces of code I've written in the last decade or so, it's nasty.

01.07.2025 10:50 — 👍 5    🔁 0    💬 1    📌 0
Post image

Rip and tear, until it is done.

30.06.2025 15:10 — 👍 3    🔁 0    💬 0    📌 0
Preview
Developer Community Developer Community

New personal record: MSFT fixed a bug I reported more than 7 (!) years ago:
developercommunity.visualstudio.com/t/Dereferenc...

Though I hope it's been fixed already a long time ago and they just made a cleanup of the bug database...

27.06.2025 09:57 — 👍 7    🔁 0    💬 1    📌 0
Post image

After debugging for a week, I guess I'm a member of the "have to work around a platform SDK bug" now.

Do I get a medal or something?

24.06.2025 16:00 — 👍 5    🔁 0    💬 0    📌 0
Post image

Thanks Adrian!

liveplusplus.tech/testimonials...

24.06.2025 11:50 — 👍 3    🔁 1    💬 0    📌 0

Forgot one thing regarding server host: companies and servers in the EU preferred.

23.06.2025 13:34 — 👍 0    🔁 0    💬 1    📌 0

Due to unforeseen circumstances and a major blunder on my current host's behalf: I'm looking for a new RELIABLE server host, managed/dedicated. Recommendations?

Contacted Hetzner already, but haven't heard back in 2.5 days, which does not instill confidence. How is their support?

23.06.2025 13:20 — 👍 1    🔁 0    💬 2    📌 0

Sounds like a plan!
Let me know about that company once it comes into existence...

22.06.2025 16:35 — 👍 1    🔁 0    💬 1    📌 0

I can see that vacation has its perks :)

22.06.2025 15:58 — 👍 0    🔁 0    💬 1    📌 0

Thanks, I hope so too! I'm now in good hands at a therapist, but it will take weeeeks before I can go back to running, which sucks, because summer is the best time for it (for me).

The pain is negligible, need to put on muscle to reduce the strain on both my knees.

22.06.2025 08:57 — 👍 1    🔁 0    💬 1    📌 0

@molecularmusing is following 20 prominent accounts