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
2025-03 的 WG21 提案列表公布了:
https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2025/#mailing2025-03
这一次公布的提案数量很多,一些频道主认为有意思的:
- P0260R16: C++ Concurrent Queues
- P0876R20: fiber_context - fibers without scheduler
- P1967R14: #embed - a simple, scannable preprocessor-based resource acquisition method
- P2287R4: Designated-initializers for base classes
- P2719R4: Type-aware allocation and deallocation function
- P2758R5: Emitting messages at compile time
- P2786R13: Trivial Relocatability for C++26
- P2825R5: Overload resolution hook: declcall( unevaluated-call-expression )
- P2841R7: Concept and variable-template template-parameters
- P2900R14: Contracts for C++
- P2996R10: Reflection for C++26
- P3019R14: Vocabulary Types for Composite Class Design
- P3552R1: Add a Coroutine Task Type
- P3650R0: 21st Century C++
https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2025/#mailing2025-03
这一次公布的提案数量很多,一些频道主认为有意思的:
- P0260R16: C++ Concurrent Queues
- P0876R20: fiber_context - fibers without scheduler
- P1967R14: #embed - a simple, scannable preprocessor-based resource acquisition method
- P2287R4: Designated-initializers for base classes
- P2719R4: Type-aware allocation and deallocation function
- P2758R5: Emitting messages at compile time
- P2786R13: Trivial Relocatability for C++26
- P2825R5: Overload resolution hook: declcall( unevaluated-call-expression )
- P2841R7: Concept and variable-template template-parameters
- P2900R14: Contracts for C++
- P2996R10: Reflection for C++26
- P3019R14: Vocabulary Types for Composite Class Design
- P3552R1: Add a Coroutine Task Type
- P3650R0: 21st Century C++
Big Rust Update Merged For GCC 15 - Lands The Polonius Borrow Checker
https://www.phoronix.com/news/GCC-15-Big-GCCRS-Update
https://www.phoronix.com/news/GCC-15-Big-GCCRS-Update
Recommendations for designing magic numbers of binary file formats https://hackers.town/@zwol/114155595855705796
发现一个完全没用的 C++ 语言“特性”
可以使用
但是在子类中,你也必须使用
另外,在子类中你也不能使用
可以使用
= delete
来定义一个虚函数:
struct B { virtual void m() = delete; };
但是在子类中,你也必须使用
= delete
来定义对 m
的重写:
struct D : B {
void m() override; // ERROR
void m() override = delete; // OK
};
另外,在子类中你也不能使用
= delete
来重写一个在父类中没有被定义为 = delete
的虚函数:
struct B { virtual void m(); };
struct D : B {
void m() override = delete; // ERROR
};
First official release of LLVM Flang https://blog.llvm.org/posts/2025-03-11-flang-new/
https://blog.xiangpeng.systems/posts/system-researchers/
写了一篇非常 offensive 的 blog post,包含了对近期 deepseek, NSF funding 和整个 research community 的思考。有点长,也会引起很多人不适,慎点。
我一直以来都认为 NSF 对 system research 弊大于利;但重点并非政府该不该为自然科学花钱(当然应该!),重点在于这笔钱有没有被可问责的方式分配。
最后推荐一本书,我看了受益匪浅 The Unaccountability Machine: Why Big Systems Make Terrible Decisions - and How The World Lost its Mind
写了一篇非常 offensive 的 blog post,包含了对近期 deepseek, NSF funding 和整个 research community 的思考。有点长,也会引起很多人不适,慎点。
我一直以来都认为 NSF 对 system research 弊大于利;但重点并非政府该不该为自然科学花钱(当然应该!),重点在于这笔钱有没有被可问责的方式分配。
最后推荐一本书,我看了受益匪浅 The Unaccountability Machine: Why Big Systems Make Terrible Decisions - and How The World Lost its Mind