Hacker News 热门文章摘要 (2025-12-27)
这是今日 Hacker News 上最热门的文章摘要。
1. Show HN: Xcc700:700行代码实现的ESP32 (Xtensa) 自举迷你C编译器
原文标题: Show HN: Xcc700: Self-hosting mini C compiler for ESP32 (Xtensa) in 700 lines
原文链接: https://github.com/valdanylchuk/xcc700
“xcc700”项目呈现了一个卓越的自举式迷你C编译器,专为ESP32 (Xtensa架构)设计,仅用700行C代码编写。其主要吸引力在于简洁性,使其易于理解、修改,并能适应其他语言或用途。
该编译器面向ESP32,接收单个C源文件并生成可重定位的ELF输出。这些ELF文件可由ESP-IDF的elf_loader直接运行,从而实现在ESP32上快速测试/调试循环、热修复或持续集成。用户可以在PC上将xcc700作为交叉编译器运行,直接在ESP32上编译它(它能自举编译),或者将其作为固件中的一个函数进行集成。
xcc700支持一个足以构建自身的最小C特性集,包括基本的控制流(while、if/else)、int/char/指针/数组、函数调用以及算术/位运算符。然而,它有意省略了许多高级C特性(例如,for/do循环、structs、floats、预处理器、健壮的错误处理或优化),优先考虑简洁性。为此牺牲了性能,自举编译的版本比GCC编译的版本更大且更慢。
该项目根据MIT许可证发布,作者鼓励为教育目的、编程马拉松或探索极简计算而进行分叉和扩展。该项目堪称一份“艺术宣言”,质疑对资源密集型软件的需求,并展示了简单、易于修改的工具在ESP32等低功耗设备上的强大潜力。
2. UBlockOrigin 和 UBlacklist AI 黑名单
原文标题: UBlockOrigin and UBlacklist AI Blocklist
原文链接: https://github.com/laylavish/uBlockOrigin-HUGE-AI-Blocklist
本文章介绍了一个“巨型AI黑名单”,这是一个手动整理的列表,包含了1000多个包含AI生成内容的网站,旨在清理Google、DuckDuckGo和Bing上的图片搜索结果。
该黑名单兼容各种平台和工具。对于PC/桌面用户,可以通过一键链接或手动URL输入轻松导入到uBlock Origin或uBlacklist扩展中。移动设备支持方面,iOS/iPadOS用户可通过uBlacklist Safari扩展使用,Android用户则可通过Firefox使用uBlock Origin或uBlacklist。此外,还提供了一个Hosts文件版本,用于通过Pi-hole和Adguard进行全网络范围的屏蔽。
除了主黑名单,还有一个可选的“核弹级列表”,专门针对那些混合了真实内容和AI生成内容的网站(例如DeviantArt)。用户可以通过在uBlock Origin或uBlacklist中设置特定网站的白名单来定制自己的体验。该指南还详细介绍了“扩展过滤”功能,使用户能够通过uBlock Origin的自定义过滤器或uBlacklist的正则表达式,根据特定关键词(例如“AI Art”、“Midjourney”)屏蔽搜索结果。
欢迎通过拉取请求或问题报告对列表做出贡献。文章最后列出了几个涉及SEO垃圾邮件、AI音乐和AI图像检测的相关项目,并包含了一条支持LGBTQ+权益的信息。
3. 展示HN:基于 Rust/WASM 的 AutoLISP 解释器 — 33 年前发明的 CAD 工作流
原文标题: Show HN: AutoLISP interpreter in Rust/WASM – a CAD workflow invented 33 yrs ago
原文链接: https://acadlisp.de/noscript.html
acadlisp 是一个用Rust编写并编译成WebAssembly的AutoLISP解释器,它允许AutoLISP代码直接在网页浏览器中执行,无需安装AutoCAD。
该项目源于作者在1991年为一家德国电气公司发明的一种CAD工作流。这个创新系统结合CSV文件、模板和AutoLISP代码,自动化生成定制电气原理图。在电子表格中定义的组件会自动生成完整的技术图纸。作者创建acadlisp,部分是出于怀旧,部分是为了保存这种他认为已在很大程度上被遗忘的独特工作流。
文章还强调了LISP作为早期AI语言的历史意义,强调了其关键特性:同像性(代码和数据共享列表结构)、自修改和符号处理。1991年的原理图生成器就体现了这些特性,其代码能够编写和修改自身,从而触发进一步的组件插入和模板生成。
从技术上讲,acadlisp使用Rust,目标是WebAssembly,并支持SVG和DXF(AutoCAD R12)等输出格式。它实现了各种常见的AutoLISP函数,包括defun、setq、控制流语句(if、while、cond)、数学运算、列表操作(car、cdr)以及AutoCAD交互(command、princ)。提供了交互式演示和源代码。
4. 医疗软件公司CEO因十亿美元欺诈案获刑
原文标题: CEO of Health Care Software Company Sentenced for $1B Fraud Conspiracy
原文链接: https://www.justice.gov/opa/pr/ceo-health-care-software-company-sentenced-1b-fraud-conspiracy
摘要:
一家医疗软件公司的前首席执行官桑尼·巴尔瓦尼,因其在与电子健康记录(EHR)激励计划相关的10亿美元欺诈阴谋中的作用,被判处13年监禁。巴尔瓦尼与其他人共同策划了一项欺诈美国政府和医疗服务提供者的计划。
该阴谋涉及巴尔瓦尼及其同谋谎报其EHR软件的功能和合规性,以获得认证并诱使服务提供者购买。他们据称向客户支付回扣以留住他们并隐藏缺陷。这些行为使得包括医生和医院在内的客户能够虚假证明其使用了合规的EHR软件,从而根据《HITECH法案》获得了数亿美元的联邦激励付款。
巴尔瓦尼被判犯有共谋实施医疗欺诈和电信欺诈罪,以及五项医疗欺诈罪。起诉书详细说明了该公司的软件如何未能满足基本的互操作性和数据可移植性要求,影响了患者护理,并欺骗了政府和医疗系统。除了监禁,巴尔瓦尼还被责令支付2.702亿美元的赔偿金并没收100万美元。其他同谋和该公司此前也因参与此广泛欺诈而面临定罪和处罚。
5. 关于恢复达什的文告
原文标题: A Proclamation Regarding the Restoration of the Dash
原文链接: https://blog.nawaz.org/posts/2025/Dec/a-proclamation-regarding-the-restoration-of-the-dash/
2025年12月26日,作者发布了一项声明,哀叹现代社会对优雅的破折号(—)存在的偏见。破折号传统上用于插入语、突转和节奏性停顿,但现在却受到不公正的诋毁,常被视为“不假思索的机器”,如大型语言模型(作者声称它们只是拙劣地模仿了复杂性)的“告密迹象”。
作者还批评了日益增多的对“不起眼的连字符”(-)的误用,将其视为“大胆破折号”的“懦弱替代品”,认为它使散文变得平淡无奇。作者拒绝将古典标点符号拱手让给算法,也拒绝因害怕显得“人工化”而退缩,并因此颁布了“破折号复兴”的命令。
在其博客范围内,作者为人类作家夺回了破折号,并将连字符从所有标点和停顿的角色中驱逐,在所有文体风格的实例中,都用“光荣的、不悔的破折号”取而代之。作为对这种误判的抗议,作者(他本人已经习惯手动输入破折号)创建了一个插件,将其博客上的所有连字符都转换为破折号,即使在连字符传统上是恰当的地方,并敦促读者“加入这场革命”。
6. Unix find表达式编译为字节码
原文标题: Unix “find” expressions compiled to bytecode
原文链接: https://nullprogram.com/blog/2025/12/23/
本文描述了一个自定义编译器 findc,它将 Unix find 表达式翻译成字节码,与实际 find 工具中常见的树遍历解释器形成对比。作者开发这项技术是为了提高效率,因为 find 适用于处理大量文件。
find 表达式使用 -a (AND)、-o (OR) 和 ! (NOT) 等运算符,带有隐式的 -a 和默认的 -print 动作。括号用于表示优先级,并且操作是短路的,尽管作者指出 find 的 -regex 无论如何都会进行预编译。
该字节码设计适用于单寄存器、1位机器,使用五个操作码:halt、not、braf(如果为假则分支)、brat(如果为真则分支)和 action NAME [ARGS...]。跳转始终是向前的。
编译过程主要包括两个步骤:
- 解析: 使用调度场算法将
find的中缀参数转换为后缀标记流,处理运算符优先级以及隐式的-a和-print动作。 - 编译: 然后将此后缀流翻译成字节码。编译器维护一个字节码片段堆栈。动作变为
action指令。!操作符附加not指令。像-a和-o这样的二元运算符会弹出两个片段,插入braf或brat指令以实现短路,即如果第一个片段的评估结果允许,则跳过第二个片段。最终结果是一个由halt指令终止的单一程序片段。
作者指出了通过窥孔优化改进生成的字节码的机会,例如消除冗余的 not 指令以及优化分支目标。
7. 零宽字符绘图
原文标题: Drawing with zero-width characters
原文链接: https://zw.swerdlow.dev
这篇题为《零宽字符绘图》的文章,旨在提供一个实践演示,而非传统的文字解释。作者通过指出一组通常在《古兰经》中出现的18个Unicode字符,深刻改变了他们对文本渲染方式的设想,从而引入了这个概念。
文章的核心内容是一个视觉上引人注目的排布,主要由这些零宽或组合Unicode字符构成。在这个错综复杂的图案中,“零宽字符绘图”这句话被巧妙地“描绘”出来,实际上正是利用了文章所讨论的这些字符。这展示了这些特殊Unicode元素不同寻常的图形潜力。尽管它们本身不占用任何水平空间,但它们可以与前置字符组合并进行修改,从而创造出复杂的视觉效果,并在基于文本的媒介中展示了一种非传统的视觉艺术方法。
8. High school student discovers 1.5M potential new astronomical objects
原文标题: High school student discovers 1.5M potential new astronomical objects
生成摘要时出错
9. Janet Jackson had the power to crash laptop computers (2022)
原文标题: Janet Jackson had the power to crash laptop computers (2022)
原文链接: https://devblogs.microsoft.com/oldnewthing/20220816-00/?p=106994
生成摘要时出错
10. Inside the proton, the ‘most complicated thing you could possibly imagine’ (2022)
原文标题: Inside the proton, the ‘most complicated thing you could possibly imagine’ (2022)
原文链接: https://www.quantamagazine.org/inside-the-proton-the-most-complicated-thing-imaginable-20221019/
生成摘要时出错
11. Grok and the Naked King: The Ultimate Argument Against AI Alignment
原文标题: Grok and the Naked King: The Ultimate Argument Against AI Alignment
原文链接: https://ibrahimcesar.cloud/blog/grok-and-the-naked-king/
生成摘要时出错
12. Building an AI agent inside a 7-year-old Rails monolith
原文标题: Building an AI agent inside a 7-year-old Rails monolith
原文链接: https://catalinionescu.dev/ai-agent/building-ai-agent-part-1/
生成摘要时出错
13. ICE’s interest in high-tech gear raises new questions: ‘What is it for?’
原文标题: ICE’s interest in high-tech gear raises new questions: ‘What is it for?’
生成摘要时出错
14. Ultimate-Linux: Userspace for Linux in Pure JavaScript
原文标题: Ultimate-Linux: Userspace for Linux in Pure JavaScript
原文链接: https://github.com/popovicu/ultimate-linux
生成摘要时出错
15. Governments in the West Are Turning Their Sights on VPNs
原文标题: Governments in the West Are Turning Their Sights on VPNs
生成摘要时出错
16. Pre-commit hooks are broken
原文标题: Pre-commit hooks are broken
原文链接: https://jyn.dev/pre-commit-hooks-are-fundamentally-broken/
生成摘要时出错
17. Codex vs. Claude Code (today)
原文标题: Codex vs. Claude Code (today)
原文链接: https://build.ms/2025/12/22/codex-vs-claude-code-today/
生成摘要时出错
18. Gpg.fail
原文标题: Gpg.fail
原文链接: https://gpg.fail
生成摘要时出错
19. MongoBleed
原文标题: MongoBleed
原文链接: https://github.com/joe-desimone/mongobleed/blob/main/mongobleed.py
生成摘要时出错
20. URL Pattern API
原文标题: URL Pattern API
原文链接: https://developer.mozilla.org/en-US/docs/Web/API/URL_Pattern_API
生成摘要时出错
21. ZJIT is now available in Ruby 4.0
原文标题: ZJIT is now available in Ruby 4.0
原文链接: https://railsatscale.com/2025-12-24-launch-zjit/
生成摘要时出错
22. CloudFlare is ruining the internet (for me)
原文标题: CloudFlare is ruining the internet (for me)
原文链接: https://www.slashgeek.net/2016/05/17/cloudflare-is-ruining-the-internet-for-me/
生成摘要时出错
23. How I think about Kubernetes
原文标题: How I think about Kubernetes
原文链接: https://garnaudov.com/writings/how-i-think-about-kubernetes/
The author proposes thinking of Kubernetes as a runtime for declarative infrastructure with a type system, rather than merely a container orchestrator.
The “type system” refers to Kubernetes’ resource kinds (Pod, Deployment, Service) which function like types in a programming language. Each has strict definitions, semantics, and rules for composition, abstracting away processes and containers. Custom Resource Definitions (CRDs) extend this, allowing users to define new infrastructure types.
The “runtime” describes how Kubernetes operates. Applying a YAML manifest is submitting a typed declaration of desired state, not executing a script. The API server stores this intent as durable cluster state. Crucially, controllers continuously reconcile this desired state with the actual state of the infrastructure. If the actual state deviates, Kubernetes constantly works to revert it to the declared intent. This continuous reconciliation explains why manual edits often get reverted and why spec (desired) and status (observed) are key for debugging.
This model clarifies GitOps: Git becomes the “true desired state,” with a GitOps controller continuously reconciling Git (source of truth) with the cluster’s API objects (runtime state). This implies kubectl edit is a debugging tool, as direct changes will likely be reverted by the GitOps controller.
Adopting this perspective leads to practical operational principles: always change the desired state, trust reconciliation, make ownership explicit, and leverage Kubernetes’ inherent type system.
24. VSCode rebrands as “The open source AI code editor”
原文标题: VSCode rebrands as “The open source AI code editor”
原文链接: https://code.visualstudio.com
生成摘要时出错
25. How we automated federal retirements
原文标题: How we automated federal retirements
原文链接: https://ndstudio.gov/posts/automating-federal-retirements
生成摘要时出错
26. More dynamic cronjobs
原文标题: More dynamic cronjobs
原文链接: https://george.mand.is/2025/09/more-dynamic-cronjobs/
生成摘要时出错
27. Steve wants us to make the Macintosh boot faster
原文标题: Steve wants us to make the Macintosh boot faster
原文链接: https://www.folklore.org/Saving_Lives.html
生成摘要时出错
28. When a driver challenges the kernel’s assumptions
原文标题: When a driver challenges the kernel’s assumptions
原文链接: http://miod.online.fr/software/openbsd/stories/udl.html
生成摘要时出错
29. The battle to stop clever people betting
原文标题: The battle to stop clever people betting
原文链接: https://www.economist.com/christmas-specials/2025/12/18/the-battle-to-stop-clever-people-betting
生成摘要时出错
30. Memory Safety
原文标题: Memory Safety
原文链接: https://www.memorysafety.org/
生成摘要时出错
31. Geometric Algorithms for Translucency Sorting in Minecraft [pdf]
原文标题: Geometric Algorithms for Translucency Sorting in Minecraft [pdf]
原文链接: https://douira.dev/assets/document/douira-master-thesis.pdf
生成摘要时出错
32. OrangePi 6 Plus Review
原文标题: OrangePi 6 Plus Review
原文链接: https://boilingsteam.com/orange-pi-6-plus-review/
生成摘要时出错
33. Splice a Fibre
原文标题: Splice a Fibre
原文链接: https://react-networks-lib.rackout.net/fibre
生成摘要时出错
34. Gaussian Splatting 3 Ways
原文标题: Gaussian Splatting 3 Ways
原文链接: https://github.com/NullandKale/NullSplats
生成摘要时出错
35. Mostlymatter: A fork of Mattermost by Framasoft
原文标题: Mostlymatter: A fork of Mattermost by Framasoft
原文链接: https://packages.framasoft.org/projects/mostlymatter/
生成摘要时出错
36. USD Share as Global Reserve Currency Drops to Lowest Since 1994
原文标题: USD Share as Global Reserve Currency Drops to Lowest Since 1994
生成摘要时出错
37. What on earth is Kubernetes? (a beginners intro)
原文标题: What on earth is Kubernetes? (a beginners intro)
原文链接: https://kylejeong.com/blog/what-is-kubernetes
生成摘要时出错
38. Karpathy on Programming
原文标题: Karpathy on Programming
原文链接: https://twitter.com/karpathy/status/2004607146781278521
生成摘要时出错
39. The First Web Server
原文标题: The First Web Server
原文链接: https://dfarq.homeip.net/the-first-web-server/
生成摘要时出错
40. No shares in company, but 550 employees received a $240M gift from their owner
原文标题: No shares in company, but 550 employees received a $240M gift from their owner
生成摘要时出错
41. C/C++ Embedded Files (2013)
原文标题: C/C++ Embedded Files (2013)
原文链接: https://www.4rknova.com//blog/2013/01/27/cpp-embedded-files
生成摘要时出错
42. Questions engineers should ask future employers in interviews
原文标题: Questions engineers should ask future employers in interviews
原文链接: https://dollardhingra.substack.com/p/questions-software-engineers-should
生成摘要时出错
43. Weight-loss pill approval set to accelerate food industry product overhauls
原文标题: Weight-loss pill approval set to accelerate food industry product overhauls
生成摘要时出错
44. This PNG shows a different version when loaded in Chrome than in Safari
原文标题: This PNG shows a different version when loaded in Chrome than in Safari
原文链接: https://lr0.org/blog/p/pngchanges/
生成摘要时出错
45. New York to require social media platforms to display mental health warnings
原文标题: New York to require social media platforms to display mental health warnings
生成摘要时出错
46. NYC phone ban reveals some students can’t read clocks
原文标题: NYC phone ban reveals some students can’t read clocks
原文链接: https://gothamist.com/news/nyc-phone-ban-reveals-some-students-cant-read-clocks
生成摘要时出错
47. I built a quiet site for finding ambient albums while working
原文标题: I built a quiet site for finding ambient albums while working
原文链接: https://ambientmusic.com/
生成摘要时出错
48. Show HN: Private blogging and journaling with a simulated audience
原文标题: Show HN: Private blogging and journaling with a simulated audience
原文链接: https://tempblog-psi.vercel.app/
生成摘要时出错
49. Former ULA President and CEO Tory Bruno Joins Blue Origin
原文标题: Former ULA President and CEO Tory Bruno Joins Blue Origin
原文链接: https://spaceflightnow.com/2025/12/26/former-ula-president-and-ceo-tory-bruno-joins-blue-origin/
生成摘要时出错
50. A Century of Noether’s Theorem
原文标题: A Century of Noether’s Theorem
原文链接: https://arxiv.org/abs/1902.01989
生成摘要时出错
51. Cjanet
原文标题: Cjanet
原文链接: https://github.com/janet-lang/spork/blob/cjanet-jit/spork/cjanet.janet
生成摘要时出错
52. The AI bubble is all over now, baby blue
原文标题: The AI bubble is all over now, baby blue
原文链接: https://garymarcus.substack.com/p/the-ai-bubble-is-all-over-now-baby
生成摘要时出错
53. GNU Mes and the Module System
原文标题: GNU Mes and the Module System
原文链接: https://ekaitz.elenq.tech/fasterMes5.html
生成摘要时出错
54. Officials discover a million more documents potentially related to Epstein case
原文标题: Officials discover a million more documents potentially related to Epstein case
原文链接: https://www.bbc.com/news/articles/czdgz84dn35o
生成摘要时出错
55. We “solved” C10K years ago yet we keep reinventing it (2003)
原文标题: We “solved” C10K years ago yet we keep reinventing it (2003)
原文链接: https://www.kegel.com/c10k.html
生成摘要时出错
56. Easel Turns One One year of building my own IDE in Clojure
原文标题: Easel Turns One One year of building my own IDE in Clojure
原文链接: https://blog.phronemophobic.com/easel-one-year.html
生成摘要时出错
57. Retreating from EVs could be hazardous for Western carmakers
原文标题: Retreating from EVs could be hazardous for Western carmakers
生成摘要时出错