You thought text encoding is solved problem for more than 25 years already? Nope! Exactly the same issues just like in the 1990's.
24.02.2026 17:16 — 👍 0 🔁 0 💬 0 📌 0@marekknapek.bsky.social
Level 33 C++ sourcerer. https://about.me/marek.knapek
You thought text encoding is solved problem for more than 25 years already? Nope! Exactly the same issues just like in the 1990's.
24.02.2026 17:16 — 👍 0 🔁 0 💬 0 📌 0remote: 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.
MicroSlop strikes again: hachyderm.io/@MarekKnapek...
05.02.2026 01:19 — 👍 0 🔁 0 💬 0 📌 0Three body problem? Double pendulum? Anything from chaos theory?
01.02.2026 07:12 — 👍 1 🔁 0 💬 0 📌 0Notepad opening a 5 GB text file.
27.01.2026 20:43 — 👍 0 🔁 0 💬 0 📌 0Batch file scripting is unreasonably difficult. Try PowerShell, VBScript, bash or python.
05.01.2026 08:59 — 👍 1 🔁 0 💬 0 📌 0some_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
25.12.2025 12:04 — 👍 0 🔁 0 💬 0 📌 0Remember 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?
22.12.2025 19:03 — 👍 0 🔁 0 💬 0 📌 0Me 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).
04.12.2025 21:52 — 👍 0 🔁 0 💬 0 📌 0Does C++ have destructive move yet?
08.11.2025 15:34 — 👍 0 🔁 0 💬 0 📌 0nt!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.
19.10.2025 11:44 — 👍 1 🔁 0 💬 0 📌 0CRASH
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
14.10.2025 17:54 — 👍 0 🔁 0 💬 0 📌 0POS 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.
03.10.2025 20:32 — 👍 0 🔁 0 💬 0 📌 0Last time I used em dash, I also googled hbox overfull. Might save you some time.
03.10.2025 08:42 — 👍 0 🔁 0 💬 0 📌 0JavaScript: 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?
01.10.2025 02:00 — 👍 0 🔁 0 💬 1 📌 0WoW, 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/
01.10.2025 00:55 — 👍 0 🔁 0 💬 0 📌 0Windows 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
23.09.2025 22:26 — 👍 42 🔁 7 💬 6 📌 0What 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.
24.09.2025 05:51 — 👍 0 🔁 0 💬 0 📌 0I was half expecting that MB_ICONSTOP is zero, but it isn't.
19.09.2025 04:57 — 👍 1 🔁 0 💬 0 📌 0Clang 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?
Because I don't know the difference. My goal is to run C in web browser. I wanted to do everything "by hand" and use as little code as possible (including generated code). And I achieved my goal to my satisfaction. The repo is for my own reference in the future. I will research more your suggestion.
17.09.2025 20:44 — 👍 0 🔁 0 💬 1 📌 0OK the problem was on my side, I was doing something wrong. I set the stack pointer to zero and in WASM code it underflowed under zero. I learned from my mistake and created minimal WASM repo at github.com/MarekKnapek/...
17.09.2025 19:23 — 👍 0 🔁 0 💬 1 📌 0TIL: In Emscripten/WASM you can not pass a pointer to a stack variable (eg string buffer) out to JS environment (eg to console.log).
16.09.2025 19:57 — 👍 0 🔁 0 💬 1 📌 0The concept of Certificate Authorities is a joke. It always been. Any CA can issue cert for any domain. Be it by mistake or maliciously. Certificate transparency logs caught this, but humans didn't notice until much later. Does DANE solve this? blog.cloudflare.com/unauthorized...
04.09.2025 23:50 — 👍 1 🔁 0 💬 0 📌 0TIL: const in function parameters in C++ does matter, for name mangling at least.
18.08.2025 19:56 — 👍 0 🔁 0 💬 0 📌 0