Advertisement · 728 × 90

Posts by Marek Knápek

Current mood: punpckldq.

18 hours ago 0 0 0 0
2 weeks ago 0 0 0 0

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).

2 weeks ago 0 0 0 1

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.

3 weeks ago 3 0 0 0

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.

3 weeks ago 0 0 0 0

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

3 weeks ago 0 0 0 0
Post image

You thought text encoding is solved problem for more than 25 years already? Nope! Exactly the same issues just like in the 1990's.

1 month ago 0 0 0 0
Advertisement

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.

2 months ago 1 0 0 0
Marek Knápek (@MarekKnapek@hachyderm.io) MicroSlop strikes again: nt!KeBugCheckEx rdbss!RxExceptionFilter+0xf0 rdbss!RxFsdCommonDispatch$filt$0+0x18 nt!_C_specific_handler+0x9f rdbss!_GSHandlerCheck_SEH+0x6a nt!RtlpExecuteHandlerForExceptio...

MicroSlop strikes again: hachyderm.io/@MarekKnapek...

2 months ago 0 0 0 0

Three body problem? Double pendulum? Anything from chaos theory?

2 months ago 1 0 0 0
Post image

Notepad opening a 5 GB text file.

2 months ago 0 0 0 0

Batch file scripting is unreasonably difficult. Try PowerShell, VBScript, bash or python.

3 months ago 1 0 0 0

some_library.lib : fatal error LNK1248: image size (101931E1A) exceeds maximum allowable size (FFFFFFFF)

That is new achievement or something...eh.

3 months ago 0 0 0 0
One Formula That Demystifies 3D Graphics
One Formula That Demystifies 3D Graphics YouTube video by Tsoding

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

3 months ago 0 0 0 0

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?

4 months ago 0 0 0 0

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).

4 months ago 0 0 0 0
Advertisement
Post image

Does C++ have destructive move yet?

5 months ago 0 0 0 0

nt!KeBugCheckEx
nt!ExFreeHeapPool
nt!ExFreePool
NETIO!KfdFilterFreeNotify
NETIO!KfdCommitTransaction
NETIO!IoctlKfdCommitTransaction
tcpip!KfdDispatchDevCtl
tcpip!NlDispatchDeviceControl
nt!IofCallDriver
nt!IopSynchronousServiceTail
nt!IopXxxControlFile
nt!NtDeviceIoControlFile

6 months ago 0 0 0 0

I'm happy with Server 2022 (on a desktop computer). Not sure how Server 2025 behaves.

6 months ago 1 0 0 0

CRASH

KeBugCheckEx
VerifierBugCheckIfAppropriate+0xe0
VerifierFreeTrackedPool+0x41
ExFreeHeapPool+0x186916
ExFreePool+0x9
MiFinishVadDeletion+0x351
MiDeleteVad+0x238
MiUnmapVad+0x49
MiCleanVad+0x2f
MmCleanProcessAddressSpace+0xfc
PspRundownSingleProcess+0x207
PspExitThread+0x606

6 months ago 0 0 0 0
Braden Ganetsky - Debugger Visualizers to Make Your Code Accessible
Braden Ganetsky - Debugger Visualizers to Make Your Code Accessible YouTube video by CppNorth

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

6 months ago 0 0 0 0
POS terminal displaying the word "pßtek" instead of "pátek" on dot matrix LCD display.

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.

6 months ago 0 0 0 0

Last time I used em dash, I also googled hbox overfull. Might save you some time.

6 months ago 0 0 0 0
Advertisement

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.

6 months ago 0 0 0 0

Is diskette read speed fast enough to play the video in real time?

6 months ago 0 0 1 0

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/

6 months ago 0 0 0 0
Windows Explorer screenshot showing vfcompat.dll and appverifUI.dll in the root of C:\

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

6 months ago 41 7 5 0

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.

6 months ago 0 0 0 0

I was half expecting that MB_ICONSTOP is zero, but it isn't.

7 months ago 1 0 0 0

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?

7 months ago 0 0 0 0
Advertisement