Marek Knápek's Avatar

Marek Knápek

@marekknapek.bsky.social

Level 33 C++ sourcerer. https://about.me/marek.knapek

53 Followers  |  215 Following  |  58 Posts  |  Joined: 11.11.2024  |  1.5689

Latest posts by marekknapek.bsky.social on Bluesky


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.

24.02.2026 17:16 — 👍 0    🔁 0    💬 0    📌 0

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.

21.02.2026 08:28 — 👍 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...

05.02.2026 01:19 — 👍 0    🔁 0    💬 0    📌 0

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

01.02.2026 07:12 — 👍 1    🔁 0    💬 0    📌 0
Post image

Notepad opening a 5 GB text file.

27.01.2026 20:43 — 👍 0    🔁 0    💬 0    📌 0

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

05.01.2026 08:59 — 👍 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.

31.12.2025 18:47 — 👍 0    🔁 0    💬 0    📌 0
One Formula That Demystifies 3D Graphics
YouTube video by Tsoding One Formula That Demystifies 3D Graphics

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    📌 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?

22.12.2025 19:03 — 👍 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).

04.12.2025 21:52 — 👍 0    🔁 0    💬 0    📌 0
Post image

Does C++ have destructive move yet?

08.11.2025 15:34 — 👍 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

22.10.2025 07:26 — 👍 0    🔁 0    💬 0    📌 0

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

19.10.2025 11:44 — 👍 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

15.10.2025 00:48 — 👍 0    🔁 0    💬 0    📌 0
Braden Ganetsky - Debugger Visualizers to Make Your Code Accessible
YouTube video by CppNorth Braden Ganetsky - Debugger Visualizers to Make Your Code Accessible

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

03.10.2025 20:32 — 👍 0    🔁 0    💬 0    📌 0

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

03.10.2025 08:42 — 👍 0    🔁 0    💬 0    📌 0

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.

03.10.2025 05:02 — 👍 0    🔁 0    💬 0    📌 0

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

01.10.2025 02:00 — 👍 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/

01.10.2025 00:55 — 👍 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

23.09.2025 22:26 — 👍 42    🔁 7    💬 6    📌 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.

24.09.2025 05:51 — 👍 0    🔁 0    💬 0    📌 0

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

19.09.2025 04:57 — 👍 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?

17.09.2025 21:12 — 👍 0    🔁 0    💬 0    📌 0

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    📌 0

OK 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    📌 0

TIL: 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    📌 0
Preview
Addressing the unauthorized issuance of multiple TLS certificates for 1.1.1.1 Unauthorized TLS certificates were issued for 1.1.1.1 by a Certification Authority without permission from Cloudflare. These rogue certificates have now been revoked. Read our blog to see how this cou...

The 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    📌 0
Post image

TIL: const in function parameters in C++ does matter, for name mangling at least.

18.08.2025 19:56 — 👍 0    🔁 0    💬 0    📌 0
GDPR meant nothing: chat control ends privacy for the EU
YouTube video by Louis Rossmann GDPR meant nothing: chat control ends privacy for the EU

www.youtube.com/watch?v=3NyU...

17.08.2025 00:53 — 👍 0    🔁 0    💬 0    📌 0

@marekknapek is following 20 prominent accounts