ru
Feedback
Lancern's Treasure Chest

Lancern's Treasure Chest

Закрытый канал

Personal channel of @lancern Topics: programming, hacking, memes, life, cat, and more. Forward anything as you wish. Join the discussion group for more fun. Discord: https://discord.gg/RwUx9et7

Больше
528
Подписчики
Нет данных24 часа
+17 дней
Нет данных30 день
Архив постов
Repost from Hacker News
Zig's new bitCast semantics and LLVM back end improvements https://ziglang.org/devlog/2026/#2026-06-25

Repost from Hacker News
The time the x86 emulator team found code so bad they fixed it during emulation https://devblogs.microsoft.com/oldnewthing/20260615-00/?p=112419

Repost from Lobste.rs

Repost from Hacker News
A Gentle Introduction to Lattice-Based Cryptography [pdf] https://cryptography101.ca/wp-content/uploads/lattice-based-cryptography.pdf

2026.05 又有哪些有意思的 C++ 标准提案 P3568: break label; and continue label; 允许 continuebreak 语句通过指定 label 的方式跳出更外层的循环 / switch 结构:
outer: for (...) {
  for (...)
    break outer;
}

outer: switch (...) {
case 0:
  while (...)
    break outer;
}
需要注意的是类似的语法在 C 那边已经进入了 C2y 标准。 P4148: protocol: Structural Subtyping for C++ 和 proxy 的目标类似,实现结构化子类型的效果。使用 proxy 需要用一套专门的类型 dsl 来定义接口,protocol 在 C++26 反射的加持下可以直接识别 struct 中的成员,提取接口定义。
struct Interface { void foo(); };

struct Impl {
  void foo() { std::println("hello"); }
};

int main() {
  protocol<Interface> p(std::in_place_type<Impl>);
  p.foo();  // <-- Print "hello"
}
提供两个类型:protocol<I> 带所有权,protocol_view<I> 不带所有权。

https://discourse.llvm.org/t/rfc-open-access-to-standards-documents/90856 目前,C/C++/Fortran 的官方标准文档是不免费公开的,个人或组织必须向 ISO 支付费用才能获取官方标准文档(以及 ISO 组织所维护的其他标准文档)。但是,由 C/C++/Fortran 标准委员会处理的各项功能提案、缺陷报告、会议纪要等文档大部分是免费公开的,任何个人或组织都可以在 https://www.open-std.org 上直接获取这些文档。此为背景。 现在,ISO 开始站出来说“我觉得我们太 open 了”,想要收回这些文档的公开访问权限。显然,大部分开源 C/C++/Fortran 编译器和标准库的开发者和维护者并不是 ISO 的成员,如果这些文档的访问权限被收回,那么这些开发者将彻底丧失获取标准文本的能力,很有可能无法继续参与编译器或标准库的开发,冲击这些开源项目的开发流程和组织结构。 JTC1(可以理解为比 C/C++ 标准委员会更上一层的 ISO 部门)目前正在积极游说 ISO,希望 ISO 不要做出收回访问权限的决定。LLVM 社区也正在撰写一篇文档向 ISO 组织强调开放权限的重要性。