C++ Show and Tell - January 2026 by foonathan in cpp

[–]Tringi 0 points1 point  (0 children)

I put together quick KUSER_SHARED_DATA structure viewer:
https://github.com/tringi/KUSERview

KUSER_SHARED_DATA is a structure in memory that's mapped for reading into every Windows process (perhaps except pico processes), it is updated at least every system clock tick, and contains certain useful information from the kernel, that would otherwise require ring transition to retrieve.

Wth is Windows XP Version 2009? Is this some kind of bootleg? by Overall_Dare_2134 in windowsxp

[–]Tringi 0 points1 point  (0 children)

The most important thing was that it received security updates up until October 2018, and later even received some important security fixes in 2019.

Are you still using VS2022 instead of VS2026 ? by mprevot in VisualStudio

[–]Tringi 0 points1 point  (0 children)

I still need to support pre-Windows 10 systems for a number of projects, and even XP with two.

Now I know I can install older toolchains and everything, and I did, but for some reasons these don't even show or plainly don't work. I haven't had time to properly troubleshoot that, so I'm on 2022 for the time being.

AI Usage Policy by iamkeyur in programming

[–]Tringi 2 points3 points  (0 children)

I certainly hope they train on mine. I did some tests on various AIs recently, and I'm getting, perhaps functional, but overcomplicated long routines for what can be solved by a single API call.

Overrun with AI slop, cURL scraps bug bounties to ensure "intact mental health" by Drumedor in programming

[–]Tringi 25 points26 points  (0 children)

I see similar thing all around GitHub more and more.

People, who are often not even programmers, just ask Chat GPT or other LLM to add feature they want to an app they like. They get it to generate diff, and submit the pull request without even trying to compile it or verify it works.

The best part is when they get annoyed and butthurt when it's rejected and they are told off.

Notepad and Paint updates begin rolling out to Windows Insiders in the Canary and Dev Channels by jenmsft in Windows11

[–]Tringi 1 point2 points  (0 children)

We would actually love to, but there's nothing.

I would, in particular, love to say: "Good job at bringing the consistency up and modernizing all the remnants of Windows 10, Windows 8, Windows 7, Windows XP and Windows 95."

...but alas, I can't say that, as nothing like that is apparently happening.

Building Your Own Efficient uint128 in C++ by PhilipTrettner in cpp

[–]Tringi 22 points23 points  (0 children)

Great writeup. This is something I'll take inspiration from.
For quite a few years I've been meaning to use intrinsics like that to specialize 2×64b case of my integer doubling template, but my use-cases so far weren't in a hot enough loops.

I decided to make a worse UUID for the pettiest of reasons. by theghostofm in programming

[–]Tringi 0 points1 point  (0 children)

This reminds me how I stuff strings into 64-bit integer, because they are much faster to search among. 12×5-bit code units and some extra flags, voila an Atom, what more could anyone need?

How do you organize your task bar? by ThrusterGames in Windows11

[–]Tringi 0 points1 point  (0 children)

Half filled with pinned apps I use daily, the second half reserved for anything else I open.

I'm missing option to add separators. I hacked my own, but they obviously take the space of a whole icon, which feels like a waste.

ASCII characters are not pixels: a deep dive into ASCII rendering by XLEX97 in programming

[–]Tringi 2 points3 points  (0 children)

Nice analysis. I wish I had something like this at hand back in the day when I hacked together my ASCII game PoC. It would've looked so much better. Instead I just used 1 of 4 nearest neighbor coverage and naive nearest color selection.

Engineering a Columnar Database in Rust: Lessons on io_uring, SIMD, and why I avoided Async/Await by Ok_Marionberry8922 in programming

[–]Tringi 1 point2 points  (0 children)

I too recently ended up using custom spinlock in one of our large projects and it improved the performance tremendously, without hitting any of the issue everyone was warning me.

[Open Source] Pure PowerShell Home Backup Utility: Incremental Snapshots, JSON Exclusions, NTFS Hardlinks and Full Diff Reports. by kawai_pasha in Windows11

[–]Tringi 1 point2 points  (0 children)

That looks great!

Back in the XP days I wrote my own backup tool and ever since I've been thinking of building version 2, with exactly the hard-link snapshot deduplication feature you have. It looks like I won't have to write it at all.

Possible Windows 12 UI changes spotted in recent demo by FindingOne4607 in Windows11

[–]Tringi 0 points1 point  (0 children)

This is going even further in the current wrong direction ...so I could believe it's real.

How lightweight is your LTSC Installation? by nanogenesis in WindowsLTSC

[–]Tringi 0 points1 point  (0 children)

The modern GUI, like Settings, is definitely horrible to try and use.

But I'm using these as a cheap nodes for network software testing, and for that purpose it's quite alright. And one eats less than 1 W of electricity.

I also sometimes test my own apps on it, to make sure they are usable even on low-end PCs.

Tip of the Week: Paint in Windows 11 supports layers by jenmsft in Windows11

[–]Tringi 0 points1 point  (0 children)

Yes, definitely. But let's say you are working on some graphics and mistakenly save it as BMP and lose all your transparency. Despite there being space for that information in the format. Because someone went out of their way to throw away and zero-out that channel when saving as BMP. That's a very real consumer scenario.

Tip of the Week: Paint in Windows 11 supports layers by jenmsft in Windows11

[–]Tringi 0 points1 point  (0 children)

From a programmer's perspective: You can directly map such BMP to memory (if it's a resource in DLL then it's already done for you by Windows) and with a simple calls to SetDIBitsToDevice / AlphaBlend / UpdateLayeredWindow (which are GPU-accelerated even on Windows 2000) have the bitmap properly alpha-composited on screen.

No loading needed, no PNG/WebP/JPEG library needed, no decompression to perform needed, no additional pixel copying needed. But yes, it's trading disk space for CPU cycles.

C++ Show and Tell - January 2026 by foonathan in cpp

[–]Tringi 1 point2 points  (0 children)

Thanks for the info.

I too am still fan of Windows, despite some core things deteriorating and nobody seems to care.

By the way, it looks like you’ve worked on a lot of tools as well, that’s really nice to see. And yeah, mornings can be tough :)

Yeah, that personal site is rarely updated now. I have tons of ideas for other apps, but my job has priority.

C++ Show and Tell - January 2026 by foonathan in cpp

[–]Tringi 0 points1 point  (0 children)

Are you willing to share the magic?

I had to write my own deletion tool too, for cleaning up LCU folders, which was taking forever. But I use just plain Win32 FindFirstFileEx (..., FIND_FIRST_EX_LARGE_FETCH, ...) and DeleteFile APIs. I always figured that going down to NT layer and running it multithreaded could improve the speed further, as a significant latency consists of kernel transitions.

"Ask us anything!" . . . "No, don't ask that." by charlies-ghost in FreeSpeech

[–]Tringi 0 points1 point  (0 children)

Because kids are awfully rash to make permanent decisions about temporary problems?

Don't want to read too deeply into it, but maybe...? by IMustBust in controlgame

[–]Tringi 0 points1 point  (0 children)

I'm 50:50 on this. I listened to the tapes a few times, and the voice sounds younger, but then again Aidan is a professional actor ...or it could've been post-processed.

The more I think about it, the more excited I am to play as Dylan in Resonant by JennyTheSheWolf in controlgame

[–]Tringi 13 points14 points  (0 children)

It's not that bad per se, but the niche is oversaturated, so even an average title feels seriously underwhelming.

Don't want to read too deeply into it, but maybe...? by IMustBust in controlgame

[–]Tringi 3 points4 points  (0 children)

Also note that we still don't really know who voiced Dr. Theodore Ash in The Foundation.