Personal channel of @lancern
Topics: programming, hacking, memes, life, and more. Forward anything as you wish.
Join the discussion group for more fun.
Discord: https://discord.gg/RwUx9et7
Topics: programming, hacking, memes, life, and more. Forward anything as you wish.
Join the discussion group for more fun.
Discord: https://discord.gg/RwUx9et7
Windows in a Docker Container https://github.com/dockur/windows
StringZilla: Up to 10x faster strings for C, C++, Python, Rust, and Swift
Comments
via dvk@users.lobste.rs (dvk)
Comments
via dvk@users.lobste.rs (dvk)
C++ Metaprogramming Exercises Vol. I
https://www.slamecka.cz/posts/2021-03-17-cpp-metaprogramming-exercises-1/
https://www.slamecka.cz/posts/2021-03-17-cpp-metaprogramming-exercises-1/
时隔一年多重新开始用 GitHub Copilot,主要用于生成测试,真舒服
今日C++无用冷知识两则:
1. 以下两种写法是合法且等价的:
2. 下面的模板函数定义是合法的;
它等价于:
1. 以下两种写法是合法且等价的:
typedef int i32;
int typedef i32;
2. 下面的模板函数定义是合法的;
template <typename ...T>
void test(T......) {}
它等价于:
template <typename ...T>
void test(T..., ...) {}
Show HN: Pages CMS – A CMS for GitHub https://pagescms.org
Cake – C23 and Beyond (2023) (Score: 150+ in 9 hours)
Link: https://readhacker.news/s/62ztr
Comments: https://readhacker.news/c/62ztr
Link: https://readhacker.news/s/62ztr
Comments: https://readhacker.news/c/62ztr
Understanding every byte in a WASM module https://danielmangum.com/posts/every-byte-wasm-module/
Measuring energy usage: regular code vs. SIMD code
Comments
via mikejsavage@users.lobste.rs (mikejsavage)
Comments
via mikejsavage@users.lobste.rs (mikejsavage)
Fast memory vulnerabilities, written in 100% safe Rust https://github.com/Speykious/cve-rs
Towards memory safety with ownership checks for C http://thradams.com/cake/ownership.html
P1883: file_handle and mapped_file_handle
https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2023/p1883r2.pdf
https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2023/p1883r2.pdf
P2758: Emitting messages at compile time
https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2024/p2758r2.html
TLDR:允许在constant expression求值期间以格式化字符串形式输出编译信息/警告/错误消息
https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2024/p2758r2.html
TLDR:允许在constant expression求值期间以格式化字符串形式输出编译信息/警告/错误消息