Current mood: punpckldq.
Posts by Marek Knápek
Here goes my constexpr C++
error MSB6006: "CL.exe" exited with code -1073741571.
Unhandled exception at 0x00007FFBE165E529 (c1xx.dll) in cl.exe.10668.dmp: 0xC00000FD: Stack overflow (parameters: 0x0000000000000001, 0x000000CF99403FE8).
Should be possible since C++14.
I can not see any reason why not. If you write your own Python interpreter in constexpr C++14 that is.
Hooking adventures: Did you know that the HeapCreate function calls the RtlAllocateHeap function? And never calls any free function for this allocation? Yeah, it is kinda useless to do so. But my home made leak detector complains about a leaked memory.
MicroSlop:
nt!KeBugCheckEx
nt!ExFreeHeapPool
nt!ExFreePool
KslD!tk::CCrashDump::Cleanup
KslD!CDriver::DriverUnload
Wdf01000!FxDriverUnload::Invoke
Wdf01000!FxDriver::Unload
KslD!FxStubDriverUnload
nt!IopLoadUnloadDriver
nt!ExpWorkerThread
nt!PspSystemThreadStartup
nt!KiStartSystemThread
You thought text encoding is solved problem for more than 25 years already? Nope! Exactly the same issues just like in the 1990's.
remote: warning: unable to access 'aaa/bbb/ccc/ddd/eee/fff/ggg/.gitattributes': Filename too long
Hey git, are you insane? WindowsNT supports 64kB UCS-2/UTF-16 file paths since NTv3.10.
Three body problem? Double pendulum? Anything from chaos theory?
Notepad opening a 5 GB text file.
Batch file scripting is unreasonably difficult. Try PowerShell, VBScript, bash or python.
some_library.lib : fatal error LNK1248: image size (101931E1A) exceeds maximum allowable size (FFFFFFFF)
That is new achievement or something...eh.
The dynamic array guy @tsoding.bsky.social is a certified freaking genius. Two semesters of math and 3D theory compressed into a 20 minute tutorial. youtu.be/qjWkNZ0SXfo
Remember a few years back (2018) when the Ryū algorithm for converting floating point numbers to strings was the new hot shiny thing? Guess what, the Żmij algorithm is roughly 3× faster. Will CPUs in a few years have dedicated float to string instruction?
Me after installing Visual Studio 2015: Wow, that editor is fast and responsive, much better than Visual Studio 2026. Me after loading few thousand files project: Wow, VS2015 is slow as heck. Everything was single threaded (and single process).
Does C++ have destructive move yet?
nt!KeBugCheckEx
nt!ExFreeHeapPool
nt!ExFreePool
NETIO!KfdFilterFreeNotify
NETIO!KfdCommitTransaction
NETIO!IoctlKfdCommitTransaction
tcpip!KfdDispatchDevCtl
tcpip!NlDispatchDeviceControl
nt!IofCallDriver
nt!IopSynchronousServiceTail
nt!IopXxxControlFile
nt!NtDeviceIoControlFile
I'm happy with Server 2022 (on a desktop computer). Not sure how Server 2025 behaves.
CRASH
KeBugCheckEx
VerifierBugCheckIfAppropriate+0xe0
VerifierFreeTrackedPool+0x41
ExFreeHeapPool+0x186916
ExFreePool+0x9
MiFinishVadDeletion+0x351
MiDeleteVad+0x238
MiUnmapVad+0x49
MiCleanVad+0x2f
MmCleanProcessAddressSpace+0xfc
PspRundownSingleProcess+0x207
PspExitThread+0x606
Love this. I have been writing NatVis files, and before that, AutoExp.dat files, for 15 YEARS. It helps to understand other people's code. It TREMENDOUSLY helps you to fix your own bugs. youtu.be/nFQ4fLDlbFs
POS terminal displaying the word "pßtek" instead of "pátek" on dot matrix LCD display.
This happens when you send a cp1252 encoded text into a device that understands only a cp852 encoded text. cp852 is otherwise known as Latin-2.
Last time I used em dash, I also googled hbox overfull. Might save you some time.
JavaScript: Everything is a callback. Not a function pointer callback, but a closure object callback.
Also: They already have a Uint8Array data type, but they lack any memcmp-like function.
Is diskette read speed fast enough to play the video in real time?
WoW, Firefox's WASM is faster on my ARM64 Android phone than on my x64 desktop computer. Put some big file to my SHA-512 calculator and see the speed for yourself. marekknapek.github.io/hash/
Windows Explorer screenshot showing vfcompat.dll and appverifUI.dll in the root of C:\
It's <s>so cool</s> that in 2025 Microsoft still accidentally installs vfcompat.dll and appverifUI.dll in the root of the C drive. I assume that this comes from installing the Windows 11 SDK as part of Visual Studio. This feels very professional
What is the value of QueryPerformanceFrequency on your computer? I thought that it is almost always 10 MHz, but on my computer it is 100 MHz.
I was half expecting that MB_ICONSTOP is zero, but it isn't.
Clang inside WASM inside web browser ... I have an idea ... offline Compiler Explorer!
Everything is slowly shifting from desktop apps to web apps. What about entire operating system inside WASM and web browser?