Marek Knápek's Avatar

Marek Knápek

@marekknapek.bsky.social

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

50 Followers  |  213 Following  |  48 Posts  |  Joined: 11.11.2024  |  1.7878

Latest posts by marekknapek.bsky.social on Bluesky

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

JSON is text and text has its pitfalls too. Various encodings, is it cp1250, UTF-8, UTF-16? UTF-8 is not trivial to get right (overlong sequences, non valid code points, surrogate pairs, normalization forms). JavaScript escape sequences in JSON. How to escape quotes? Parsing numbers, dates. Oh boi.

16.08.2025 08:30 — 👍 2    🔁 0    💬 1    📌 0
Post image

Another one, from the Wine project.

08.07.2025 00:34 — 👍 0    🔁 0    💬 0    📌 0
Post image Post image

This is funny.

07.07.2025 22:03 — 👍 0    🔁 0    💬 1    📌 0

Not C standard function. Not POSIX standard function. It is a Linux system call. So...Linux API with threatening aura.

06.07.2025 05:55 — 👍 1    🔁 0    💬 0    📌 0

C99 does not have `typeof` that is since C23, nor `_Generic` that is since C11. I am eager to see the solution.

04.07.2025 15:05 — 👍 0    🔁 0    💬 0    📌 0
nt!KeBugCheckExnt!KiBugCheckDispatch+0x69nt!KiDoubleFaultAbort+0x31cnt!Rtl - Pastebin.com Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.

Windows kernel experts: I found my machine crashed. Is there bug when disconnecting something? Or is some attacker trying to put a break-point into my computer? pastebin.com/j4sBU4is

03.06.2025 17:36 — 👍 1    🔁 1    💬 0    📌 0

WebP is kinda sorta OK to use nowadays. JPEG-XL on the other hand...

25.05.2025 10:49 — 👍 5    🔁 0    💬 0    📌 0

Please break the ABI in the C++ and C compilers. So correctness and performance improvements could become available.

If ABI stability is important for a big customer, 1) they should design their product to be ABI agnostic 2) MSVC could provide backwards compatibility as opt-in.

14.05.2025 06:09 — 👍 0    🔁 0    💬 0    📌 0

ISO-8601?

06.04.2025 22:13 — 👍 0    🔁 0    💬 0    📌 0
Preview
Compiler Explorer - C++ (x86-64 clang 20.1.0) #define my_value_a 1 #define my_value_b 2 #define my_value_c 3 #define my_value_d 4 #define my_value_e 5 #define my_value_f 6 #define my_value_g 7 #define my_value_h 8 #define my_value_i 9 #define my_...

How to eat all your RAM in 26 easy steps: godbolt.org/z/6x1nc5xbK

27.03.2025 04:09 — 👍 0    🔁 0    💬 0    📌 0

@marekknapek is following 20 prominent accounts