Skip to content

#教程/实践

5 today

Oct 21Wednesday

Oct 20Tuesday

Hacker News front page

Why Is Speculative Decoding Fast?

投机解码之所以快,并非因为每个token的计算量更少——相同序列下总FLOPs反而更高,而是因为它把GPU从逐token解码时的内存受限状态转为计算受限状态,用闲置算力换取速度。在batch size远小于最优token数时,投机解码能利用"免费"算力加速;但batch较大时反而浪费算力,因此vLLM提供--speculative-disable-by-batch-size参数可关闭该功能。

Hacker News front page

Vite+ an excellent toolchain for AI agent development

Vite+ 在作者为期三周、覆盖四个项目的实践中,通过统一命令减少了 AI 智能体、开发者与 CI 之间的工作流歧义。作者用 vp create 创建项目,以 vp check、vp test 和 vp build 验收,并要求保留一个锁文件、避免重复引入格式化工具。

Hacker News front page

An ad-free Android TV

通过 ADB 禁用 Google TV 原生启动器并安装 Projectivy Launcher,可彻底移除主屏广告横幅,同时用 SmartTube 替换官方 YouTube 应用实现无广告播放。

AI HOT · Industry

Apate.ai 用35万个AI拖住骗子,国内年轻人用AI视频反制卖惨账号

澳大利亚公司 Apate.ai 用35万个AI伪装成容易上当的受害者,已与骗子聊天250万次,累计消耗约17年时间。澳大利亚运营商 TPG 将近59万通可疑来电转给这些AI,澳洲联邦银行公开报告的诈骗损失降低76%。Apate.ai 今年8月获得815万美元种子轮融资;材料还提到国内年轻人用AI视频反制AI卖惨账号,但未展开具体案例。

GitHub Blog · AI & ML

How to continue a GitHub Copilot app session in VS Code

GitHub Copilot app 会话可直接在 VS Code 中继续,保留原有任务、计划、对话、代码差异和工作树。教程说明如何通过 Open in VS Code 打开会话,逐行审查改动、继续与 Copilot 对话、手动编辑并运行本地测试。完成后在会话关联的分支上提交并推送,即可更新已有的 pull request,无需复制文件或手动重新关联。

Google Blog · Gemini

4 tips for styling outfits with Gemini

造型师 Sydney Bordonaro 用 Gemini 为分散各地的职业运动员客户预览整套穿搭:上传衣物图片即可合成上身效果图,再通过对话单独替换靴子、外套等单品。她还会把成图发给客户争取确认,并在活动前拍下衣物污渍照片,让 Gemini 给出用现场物品处理的步骤。

AI HOT · Tips & opinions

Numan 如何用 LangGraph 和 LangSmith 构建评测优先的 AI 健康教练 Nu

Numan 用 LangGraph 构建 AI 健康教练 Nu,并通过 LangSmith 评测与追踪对话,将服务限定在生活方式辅导和健康教育范围内。团队按类别评测单轮回复,让测试经过与生产相同的智能体图,并以安全回归测试阻止不合格变更发布;同一套数据集支持其在一天内完成模型供应商迁移。动态模拟患者对话的评测层仍处于原型阶段,其工程师起草的标准须经临床专业人员签核后,才能用于发布门槛或安全声明。

AI HOT · Tips & opinions

Meta 详解 Thin Orchestrator 架构:减少编排层任务以提升 AI 智能体可靠性

Meta 详解 Thin Orchestrator 架构,将路由与可靠性检查留在编排层,把领域推理交给上下文隔离的专门 AI 智能体。其 1,300 行编排器将 20+ 工作流分派给 14 个子智能体,通过工作流模板复用组件,并在运行时按需加载知识。新数据列的配置准备从人工处理的三至四天、此前配置驱动系统的约一天缩短至不到一小时,约三分之二的系统改动无需大量人工修改即可合入。

Oct 19Monday

AI HOT · Tips & opinions

Meta details gigawatt-scale Prometheus supercluster; first phase is training Muse models

Meta says the first phase of its gigawatt-scale Prometheus supercluster is complete and is being used to train the Muse model family. It has hundreds of thousands of GPUs now, with plans to reach about 1 million. Effective throughput tops 85% for Muse Wonder pretraining and 90% for RL training, and a year of engineering work cut cluster interruptions 99% from their peak.

Why it matters: Meta combines in-rack spare GPUs, parallelism-aware fault tolerance and asynchronous checkpointing into a practical method for cutting downtime and repeated compute in large training runs.

AI HOT · Tips & opinions

n8n 教程:在 NVIDIA DGX Spark 上离线运行全套 AI 工作流

n8n 教程展示如何在一台 NVIDIA DGX Spark 上部署七个模型,通过 LiteLLM 的统一接口运行不调用云端 API 的 AI 工作流。实测模型栈占用 108GB 内存,发票字段提取关闭思考后从 12.1s 降至 0.59s,并提供模型版本锁定、服务配置与 n8n 接入步骤。并行生成图像时,单用户聊天速度下降 69%,四用户场景下降 65%,共享 GPU 的任务需要安排调度。

Hacker News front page

Sanity's Edge – A voice BBS from 1994

Sanity's Edge 将运行于 1994 年至 1997 年 3 月的电话语音 BBS 保存到网页,恢复了原始录音和交互体验。

Hacker News front page

How RC2's π table was made

研究者用 Fisher–Yates 洗牌、以 π 的十进制数字作为随机源,精确复现了 RC2 密钥调度中 256 字节的 PITABLE 及 RFC 2268 中另一张来源未明的表。每次抽取固定读取三位数字,偏差抽取被丢弃,整个洗牌共使用 828 位数字。该方法与 Rivest 的 MD2 使用同一洗牌但每次读取位数不同,这可能是此前未被发现的原因;结果不影响 RC2 的安全性。

AI HOT · Tips & opinions

Browser Use 讲解浏览器智能体的工作原理与使用时机

Browser Use 讲解浏览器智能体如何通过模型、运行框架和浏览器协作,循环观察页面、选择动作、执行并检查结果。任务有可用 API 时优先使用 API,流程可预测时使用脚本,需要灵活判断时使用智能体。智能体存在结果不一致、网站拦截、提示词注入和成本波动等限制,应设置运行上限,并核验任务是否实际完成。

Computing Life · Share · Yage

相机、无人机与手机哪些已被破解,AI 在硬件逆向中做了什么

消费设备的解锁涉及官方开放、替代固件、隐藏参数、临时内存补丁和持久扩展五类机制,不能统称为攻破底层安全锁。适马 fp 的 fpSup 属于运行内存补丁,重启即失效;大疆 Mavic 4 Pro 的公开信号增强工具修改遥控器侧参数,未改飞机固件。

Oct 18Sunday

Hacker News front page

The Brain Sandwich

工程师 Emily 使用 Brain Sandwich 方法协作编码,流程是先自己理解问题,再交给 AI 执行,最后自己审查结果。启动 AI 智能体前先阅读并形成大致方向,以免被带向错误或无须解决的问题。提交他人审查前,应阅读 diff、判断复杂度是否合理并完善 PR 描述;如果无法解释改了什么以及为什么改,就还没准备好交给别人审查。

Computing Life · Share · Yage

大模型 API 的 ZDR 承诺解读:提示词可能在哪些环节被保留

大模型 API 的 ZDR 承诺有适用范围,文章梳理了应用状态、反滥用监控、缓存及法律保全可能保留数据的路径。文章结合 OpenAI、Anthropic 的政策说明,区分不用于训练与零数据保留,并强调部分端点和高级功能可能不受 ZDR 覆盖。工程应对包括检查调用链与第三方处理者、在数据出网前脱敏,以及为供应商切换或本地模型部署保留退路。

Hacker News front page

AI Can Write the Code. Who Verifies It?

Mihai 提出将 AI 代码审查、自动化测试、安全扫描与人工复核结合,验证 AI 编码智能体生成的代码。文章比较 RoboRev、Claude Code Review、Codex、GitHub Copilot 和 Cursor Bugbot 的审查流程,并给出按提交、PR、部署及生产阶段分配检查的 GitHub Actions 示例,明确示例不能直接作为完整 CI 配置使用。

Oct 17Saturday

Hacker News front page

Neuralwatt on how agent harnesses affect energy use and token efficiency

Neuralwatt analyzed cloud traffic and experimental requests and found that an agent harness editing an existing prompt breaks the cache, adding recomputation and energy use. With the same model and similar input and output lengths, requests that mostly miss the cache use about twice the energy of cache-hit requests, and about 2.5 times for GLM-5.3. When context passes 128k tokens, one broad re-read costs prefill compute roughly equal to 600 ordinary turns.

Why it matters: Neuralwatt traces cache misses request by request and frames stable prompt prefixes and appended state changes as ways to cut an agent's repeated computation.

Oct 16Friday

claude.dev Blog

How the Claude Code team does code review

The Claude Code team hands most code reading to automated review, sets human approval by risk level, and controls errors with staged rollouts and fast rollbacks. From June to September, merged PRs more than doubled while the share needing rollback fell more than 40%. Low-risk changes can merge after automated checks pass with no human approval; medium and high risk need one and two approvers. Past incidents feed a daily eval, and review that reaches three rounds forces the team to reconsider the approach.

Why it matters: The team chains automated review, risk tiers and fast rollback into one process, saving human approval for high-risk changes and feeding incidents back into review.

OpenAI News

How Localiza reorganized work around generative AI

巴西出行平台 Localiza 将生成式 AI 视为新的计算界面而非单纯生产力工具,围绕三大支柱重组业务:规模化实验、自然语言客户入口和 AI 原生产品。2026 年 3 月,它成为巴西首个、也是拉美首批将应用直接集成进 ChatGPT 的出行平台,用户可在对话中浏览租车、订阅和二手车选项。

AI HOT · Tips & opinions

How Meta built its Forum app with AI-native engineering

Meta used AI agents in Forum's planning, implementation, testing and verification, and a small team reached parity with Facebook Groups' core features in 8 weeks. The team supported agent work with readable app state, automated verification and build isolation. Engineers still joined some stages to iterate, and signed off on every shipped result.

Why it matters: Meta wired automated tests, UI checks and verification records into the agent workflow, so engineers review code against checkable results and keep the release sign-off.

Oct 15Thursday

AI HOT · Tips & opinions

OpenAI engineer shares how the GPT-6 series and Codex maintain a codebase

OpenAI's Core Experimentation team used the GPT-6 series and Codex to clean up code and stale experiments, merging more than 1,400 maintenance PRs and deleting over 800k lines of code.

Why it matters: The team started Codex on small maintenance tasks, backed cleanup proposals with runtime data, and fed human review feedback into the next round of prompts.

Hacker News front page

Things to know when you get cancer – 2026 Edition

GitLab 联合创始人 Sid 创办的 Sijbrandij Foundation 发布《确诊癌症后需要知道的事》2026 版,作者以 2026 年 5 月确诊口腔鳞状细胞癌的亲身经历给出建议。文中提到 AI 模型曾一度淡化病情、倾向判断"你没有癌症",并建议患者主动要求全面基因检测、尽早寻求第二诊疗意见、参考 NCCN 指南。

Oct 14Wednesday

Simon Willison

Redesigning source control at Anthropic

Anthropic 自建源码版本控制系统 Scion 替代 Git,由7人团队在5个月内完成迁移,以应对代码变更量的快速增长。每日合并的代码变更从2026年5月约2,500次增至9月超过30,000次,CI 每天约执行2,500万次代码检出,按朴素方式获取将产生超过600 PB的Git流量。

Google DeepMind

How Google DeepMind develops Gemini 4 Argon safely and responsibly

Google DeepMind built abuse safeguards, real-time misalignment monitoring and prompt-injection defenses for Gemini 4 Argon, and has started widening access to the model. The protections combine input screening, internal activation probes and continuous monitoring. Shortcut or cheating attempts on coding benchmarks fell to 2%, and on Gray Swan's IPI benchmark the attack success rate was 0.7% after 15 adaptive attack attempts.

Why it matters: Google DeepMind pairs live behavior monitoring with a training principle that does not punish chain-of-thought, keeping an agent's rule-breaking attempts observable.

Hacker News front page

XBOW builds a full Chrome exploit chain in six days

XBOW built a complete Chrome exploit chain in six days, escalating JavaScript execution in an ordinary tab to code execution outside the renderer sandbox. Google paid a $250,000 bounty for the chain.

Why it matters: XBOW split bug hunting and exploit development into parallel tasks with clear interfaces and fallback paths, so a duplicate bug could be swapped out without rebuilding the whole chain.

Google Blog · Gemini

Google details Gemini 4 Argon safety work and responsible development

Google outlined the safety measures behind Gemini 4 Argon, covering abuse prevention, real-time misalignment monitoring and prompt injection resistance, as the model starts a broad rollout today. Protections include input screening, internal activation probes and continuous monitoring. On Gray Swan's IPI benchmark, the model's attack success rate was 0.7% after 15 adaptive attack attempts.

Why it matters: Google pairs real-time monitoring with not penalizing the chain of thought, and its finding that penalizing it in training raised silent cheating offers a lesson for monitoring design.

GitHub Blog · AI & ML

GitHub details secret credential detection model: more real credentials, fewer false positives

GitHub explains its two-stage secret scanning pipeline: regex generates candidates, then a fine-tuned ModernBERT uses context to separate real credentials from false positives. Offline evaluation shows 13% higher precision and 19% higher recall than the earlier LLM pipeline, and a customer A/B test found an 11.5% rise in alert acceptance rate weighted by repository owner. Median post-push scan runtime dropped 86% and serving cost fell more than 98%, letting generic secret detection extend to push protection.

Why it matters: GitHub filters candidates with regex, then has a small classifier use context to drop false positives, splitting deterministic scanning and machine learning for a well-bounded detection task.

Computing Life · Share · Yage

Three ways to connect a ChatGPT subscription to dev tools, and their limits

A ChatGPT subscription can reach external dev tools three ways: an official API key, Sign in with ChatGPT, and reusing the Codex client identity. The article compares billing and usage limits for each.

Why it matters: It lays out how the three paths differ on billing, feature limits and protocol guarantees when wiring a ChatGPT subscription into dev tools.

Oct 13Tuesday

Computing Life · Share · Yage

Anthropic cost guide: tune effort first, or switch models?

Anthropic's cost guide says to compare models by cost per successful task, and to test effort settings before deciding whether a multi-model tier is cheaper. Switching models mid-conversation can break prompt caching, while changing effort does not. On SWE-bench Pro, running low effort first and rerunning failures at high effort scored 97.0% at $0.17 per task; running high effort throughout scored 95.3% at $0.29.

Why it matters: Anthropic sets single-model low-effort cost per task as the baseline for judging tiered setups, giving routing architectures a concrete cost benchmark.

Hacker News front page

Instant Software Factory runs Claude Code scheduled agents to maintain projects

Instant Software Factory supplies prompts for setting up a software factory through Claude Code cloud routines, where scheduled agents keep investigating, implementing and reviewing project improvements. Unattended changes are held in check by independent review, human approval and shutdown tests.

Why it matters: It splits continuous maintenance work across scheduled agents while keeping unattended changes behind independent review, human approval and shutdown tests.

AI HOT · Tips & opinions

Vapi's in-house code review bot cut PR merge time in half

Vapi built a review bot called Pedantic Review Bot that now reviews every PR engineers open. Average merge time fell from over 130 hours to 65. Before flagging an issue, the bot can trace calls, run tests or write a reproduction. The analysis job runs without Git credentials, and a separate job validates results and posts comments. The bot cannot approve or push code.

Why it matters: Vapi splits analysis from comment posting and requires tests or reproductions before reporting issues, a permission-isolation pattern for teams building their own review bots.

Oct 12Monday

AI HOT · Tips & opinions

Constraining coding agents with only the repo files you already have

Repo constraints for coding agents fall into four kinds of files: instructions, path rules, capability config and checks. The author adds them one at a time on the same ticket and re-tests to see what each one does. CLAUDE.md and .claude/rules/ give guidance, capability config limits which tools are available, and .claude/hooks/ can reject writes, sharing check logic with CI's make gate.

Why it matters: Adding repo constraints one at a time on the same ticket and re-testing separates instructions, rules, capabilities and checks, so each constraint maps to a concrete check result.

Oct 11Sunday

Hacker News front page

After burning 500B tokens, an AI agent decompiles a first-person shooter

Over three months a team used AI agents to rebuild the C++ source of a first-person shooter, covering 99% of functions, with 83% matching byte-for-byte. Early code ran but was semantically wrong, so the team switched to the original compiler and byte-match checks, refreshing instructions hourly and blocking agents from drifting off task or editing the verification scripts. The author estimates real usage at 600-700 billion tokens, calls the project done, and will keep the code private.

Why it matters: The team turned correctness into a machine-checkable acceptance test, so reviewers are not swayed by excuses written into code comments.

Oct 10Saturday

Hacker News front page

Software engineer uses AI to search historical archives, finding forgotten meteors, rhinos and volcanic eruptions

A software engineer used AI to search millions of pages of historical archives, turning up a meteorite report, shipping records for 3 rhinos and 3 candidate volcanic eruption records. The pipeline combines semantic search, Jev for first-pass filtering, Claude Haiku for close reading and Claude Code to check the original scans, and was tested against known historical events. The main findings were checked against original pages and accessible catalogs, but no relevant expert has reviewed them yet. The author is open-sourcing the investigation workflow as the Antiquity toolkit.

Why it matters: A software engineer chains semantic search, low-cost model filtering and original-scan verification, then tests the pipeline on known events, offering a transferable method for large-scale archive research.