Does C++ have destructive move yet?
08.11.2025 15:34 — 👍 0 🔁 0 💬 0 📌 0@marekknapek.bsky.social
Level 33 C++ sourcerer. https://about.me/marek.knapek
Does 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 📌 0JSON 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 📌 0Another one, from the Wine project.
08.07.2025 00:34 — 👍 0 🔁 0 💬 0 📌 0This is funny.
07.07.2025 22:03 — 👍 0 🔁 0 💬 1 📌 0Not 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 📌 0C99 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 📌 0Windows 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 📌 0WebP is kinda sorta OK to use nowadays. JPEG-XL on the other hand...
25.05.2025 10:49 — 👍 5 🔁 0 💬 0 📌 0Please 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.
ISO-8601?
06.04.2025 22:13 — 👍 0 🔁 0 💬 0 📌 0How to eat all your RAM in 26 easy steps: godbolt.org/z/6x1nc5xbK
27.03.2025 04:09 — 👍 0 🔁 0 💬 0 📌 0