2025-05-13

40 篇热帖

1. Mozilla Firefox – Official GitHub repo (github.com)

The official repository of Mozilla's Firefox web browser. - mozilla-firefox/firefox

2. I hacked a dating app (and how not to treat a security researcher) (alexschapiro.com)

Update: This post received a large amount of attention on Hacker News — see the discussion thread.

5. In a high-stress work environment, prioritize relationships (wqtz.bearblog.dev)

How high is the stress I am talking about? You are commuting all you think is that you might snap today, you might quit today. That is what I am calling a hi...

6. FastVLM: Efficient vision encoding for vision language models (github.com)

This repository contains the official implementation of "FastVLM: Efficient Vision Encoding for Vision Language Models" - CVPR 2025 - apple/ml-fastvlm

8. PDF to Text, a challenging problem (www.marginalia.nu)

The search engine has recently gained the ability to index the PDF file format. The change will deploy over a few months. Extracting text information from PDFs is a significantly bigger challenge than it might seem. The crux of the problem is that the file format isn’t a text format at all, but a graphical format. It doesn’t have text in the way you might think of it, but more of a mapping of glyphs to coordinates on “paper”. These glyphs may be rotated, overlap, and appear out of order, with very little semantic information attached to them.

10. Google is building its own DeX: First look at Android's Desktop Mode (www.androidauthority.com)
  • 功能概述:谷歌正在为其Pixel手机开发一种类似三星DeX的桌面模式。该功能旨在将手机连接到外部显示器时,提供一个传统的桌面用户界面。
  • 核心特性
    • 任务栏:新增的任务栏可固定常用应用、显示最近使用的应用,并集成了改进的应用抽屉。
    • 多窗口操作:支持同时开启多个应用的浮动窗口,这些窗口可以自由移动、调整大小或进行侧边吸附,类似于桌面操作系统,从而方便应用间的内容拖放。
    • 多显示器支持:谷歌正在为Android添加类似PC的外部显示器管理工具,包括重新排列显示器、无缝移动鼠标指针等功能。
  • 技术基础:该桌面模式本质上是谷歌将此前在平板电脑上推出的“桌面窗口化”环境适配到连接外部显示器的手机上。此功能最初于Android 15的第一个季度更新中为平板电脑内置屏幕引入。
  • 发布状态与展望
    • 该功能目前仍处于未完成的早期状态,几乎肯定不会在即将到来的Android 16稳定版中发布
    • 可能的发布时间点是Android 16的某个季度更新(作为可选的开发者选项)或Android 17。
    • 文章作者认为,如果谷歌真的想将桌面计算能力整合到Android中,就需要完善其桌面窗口功能,使更多Android设备的大屏体验得到提升,并希望谷歌能全力以赴,避免仓促发布一个半成品。
11. Why I'm resigning from the National Science Foundation (time.com)

I cannot participate in systems that require dishonesty as the price of belonging.

12. Changes since congestion pricing started in New York (www.nytimes.com)

Fewer cars. Faster travel. Less honking. And some questions we still can’t answer.

13. MCP: An in-depth introduction (www.speakeasy.com)

Learn how the MCP lets your agents or clients connect to real-world tools and data through a universal protocol.

14. Lua for Elixir (davelucia.com)

Execute sandboxed Lua code on the BEAM VM using Luerl

15. Git Bug: Distributed, Offline-First Bug Tracker Embedded in Git, with Bridges (github.com)

Distributed, offline-first bug tracker embedded in git - git-bug/git-bug

16. Odin: A programming language made for me (zylinski.se)

In my book Understanding the Odin Programming Language I wrote that “Odin incorporates some of my favorite C best practices, straight into the language”. But I didn’t really elaborate on the details. Let’s do that here! This brings me to talking a bit about a previous job I had. Back in 2021 I worked at a place called Our Machinery. We were creating a whole game engine in plain C. We used a very comfortable and powerful way to program C.

17. Can you trust that permission pop-up on macOS? (wts.dev)

A security research blog.

20. Understanding LucasArts' iMUSE System (github.com)

iMUSE系统技术摘要

LucasArts的iMUSE(交互式音乐流媒体引擎)是1990年代初的一项革命性技术,彻底改变了交互式媒体(尤其是电子游戏)中音乐的功能。其核心目的是使音乐能够根据玩家的实时互动和叙事进程动态、无缝地变化,从而超越线性播放,提升沉浸感。

核心目的与架构

iMUSE并非简单的播放器,而是一个音乐导演系统。它旨在处理音乐的非线性、可分支和可交互特性。其架构主要由三大组件构成:

  1. 组合数据库:包含所有音乐序列(如主题、过渡、强调音效)及其内嵌的条件逻辑
  2. 游戏系统(导演系统):游戏引擎根据玩家行为和情节触发向iMUSE发送命令。
  3. 声音驱动器:iMUSE的核心引擎,负责解析命令、解释组合数据库并控制音频播放。它内部包含命令接口、时间控制、文件管理器,以及针对MIDI、CD音频和数字音频(WAVE)的独立模块。

关键创新与技术功能

iMUSE的突破性在于其将智能直接嵌入音乐数据本身,通过以下关键机制实现:

  1. 标记与钩子系统

    • 标记:嵌入在音乐序列(如MIDI文件)中特定音乐时间点(小节、拍、 tick)的指令。当播放到达标记点时,系统会检查是否有游戏事件需要响应。
    • 钩子:由游戏系统设置的逻辑条件(例如,“玩家进入战斗状态”)。当播放到达一个标记点时,系统会评估相关钩子的条件是否满足,如果满足,则执行预设的命令(如跳转到另一段音乐、改变乐器音量等)。
    • 这一机制使得作曲家可以在不破坏音乐性的前提下,定义多个音乐发展方向,并由游戏逻辑在恰当的时机选择路径。
  2. 时间域的协调: iMUSE巧妙管理了三种并存的时间概念:

    • 绝对时间:系统时间,用于确保音频采样播放的精确性和淡入淡出的平滑性。系统通过高频中断(约333Hz)来维护。
    • 音乐时间:基于小节、拍和tick的层次结构。这是进行音乐性导航(如跳转、循环)和速度调整的基础。系统允许在序列内动态跳转而不破坏音乐节奏。
    • 游戏时间:由玩家行为驱动的非线性、不规则时间流。iMUSE通过导演系统的命令间接整合游戏时间。 系统通过嵌套暂停计数、多序列播放器对以及在音乐时间点进行条件判断等机制,协调这三种时间域。
  3. 命令与参数控制: iMUSE提供了一套结构化的命令系统(通过SoundCall函数分发),范围涵盖:

    • 系统命令:控制全局播放(如暂停、恢复、音量组设置)。
    • MIDI命令:针对MIDI序列的特定控制(如跳转到特定音乐位置MdJump、扫描MdScan、设置速度MdSetSpeed)。
    • WAVE命令:控制数字音频流播放。 此外,系统支持丰富的实时参数控制,包括音量、声像、音高移调、播放速度等,并支持这些参数的平滑淡入淡出分组音量总线(如主音量、音效、语音、音乐)允许对音频类别进行统一控制。
  4. 扩展的MIDI文件格式: 为了支持交互性,iMUSE扩展了标准MIDI格式:

    • 引入了Soundbundle容器格式,单个文件可包含针对不同硬件优化的多个版本。
    • 添加了专用头部数据块,为文件提供默认播放参数。
    • 最重要的是,通过系统独占消息定义了自定义消息,用于设置乐器分配、插入钩子标记、定义循环点等,从而将标准MIDI文件转化为带有逻辑的交互式音乐结构。

创作流程与现代意义

为iMUSE创作音乐是一个条件化的过程。作曲家不仅编写旋律,还需设计音乐系统,在关键点(决策点)嵌入分支路径和条件逻辑,并为导演系统编写控制指令。

iMUSE的遗产深远。它开创的许多概念——模块化作曲、实时音乐分支、与游戏状态同步的标记/钩子系统、多层次时间管理——已成为现代自适应音频中间件(如FMOD, Wwise)的基石。尽管硬件限制已被突破,但iMUSE所确立的作曲家与程序员协作的框架、以及将音乐作为对玩家行为的实时响应性表演的核心理念,至今仍是交互式音频设计的核心。现代重现类似系统可受益于更强大的处理能力、高级DSP效果和成熟的音频格式,但其核心架构原则依然适用。

21. RIP Usenix ATC (bcantrill.dtrace.org)

USENIX made the decision this week to discontinue its flagship Annual Technical Conference. When USENIX was started in 1975 — before the Internet, really — conferences were the fastest vector for practitioners to formally share their ideas, and USENIX ATC flourished. Speaking for myself, I came up lionizing ATC: I was an undergraduate in the early 1990s, and programs like the USENIX Summer 1994 conference felt like Renaissance-era Florence for systems practitioners.

22. It Awaits Your Experiments (www.rifters.com)

该文章介绍了诗人Christian Bök长达二十余年的《异质文本》项目的最新成就。该项目旨在将一首对话体诗歌(分为“俄耳甫斯”与“欧律狄刻”两部分)编码到细菌的DNA中,使其成为一首能自我复制的“活诗”。

项目的核心挑战与突破:

  • 目标与构想:将诗作“俄耳甫斯”设计为一段兼具文本与基因功能的DNA序列;其编码的蛋白质“欧律狄刻”则构成对话的另一半,并能使细菌发出红色荧光。
  • 历程与挫折:项目始于2000年代初期,最初在大肠杆菌中进行试验,但遇到了表达错误。之后转向更极端的目标微生物——抗辐射奇异球菌(绰号“柯南菌”),因其具有超强的环境耐受性。然而,该细菌的基因组强烈抵抗外来DNA的插入,导致项目曾长期停滞。
  • 最终成功:作者在2025年确认,Bök成功克服了所有困难,诗歌已成功在抗辐射奇异球菌中编码并表达,实现了项目的根本目标。

项目的非凡意义:

  • 科学与艺术的革命性融合:该项目迫使科学家为纯粹的艺术创作开发新技术,颠倒了传统上艺术从属于科学的关系。
  • 永恒的艺术载体:抗辐射奇异球菌能在极端环境(如核反应堆内部、太空、缺乏水源的岩石中)中存活数亿年。这意味着这首诗歌的载体可能比人类文明乃至大部分生命存在得更久,有望在未来被外星智慧生命发现。

新书发布:

  • 项目成果将收录于《异质文本:第二卷》,计划于2025年6月出版。书中包含诗歌、科学叙述、解谜游戏等多种内容。
  • 新书发布会定于2025年5月27日在多伦多举行。
24. Rustls Server-Side Performance (www.memorysafety.org)

ISRG's Prossimo is committed to moving the Internet's security-sensitive software to memory safe code and to encouraging people to prioritize memory safety.

25. A conversation about AI for science with Jason Pruet (www.lanl.gov)

A Conversation with an AI Expert on Technology’s Role in Science and National Security

28. Ex-UK Special Forces break silence on 'war crimes' by colleagues (www.bbc.com)

Veterans who served with the SAS and SBS give BBC Panorama eyewitness accounts of alleged executions.

29. Microsoft is Cutting 3% of All Workers (www.cnbc.com)

It's likely Microsoft's largest job purge since it said goodbye to 10,000 employees in 2023.

30. TransMLA: Multi-head latent attention is all you need (arxiv.org)

Abstract page for arXiv paper 2502.07864: TransMLA: Multi-Head Latent Attention Is All You Need

31. Anti-Personnel Computing (2023) (erratique.ch)

Neologisms for the current computing era.

33. As US vuln-tracking falters, EU enters with its own security bug database (www.theregister.com)

: EUVD comes into play not a moment too soon

34. Lightweight open source reCaptcha alternative (github.com)

GDPR, WCAG 2.2 AA, and EAA compliant, self-hosted CAPTCHA alternative with PoW mechanism. - altcha-org/altcha

35. Byte latent transformer: Patches scale better than tokens (2024) (arxiv.org)

Abstract page for arXiv paper 2412.09871: Byte Latent Transformer: Patches Scale Better Than Tokens

37. One hundred and one rules of effective living (mitchhorowitz.substack.com)

有效生活的101条规则:摘要

本文基于作者三十余年的出版与阅读经验,提炼了101条关于有效生活的准则,强调伦理、责任与实际行动。这些规则涵盖了工作、人际关系、自我管理及智慧应对等多个层面。

核心主题与规则概要

工作与执行

  • 强调立即、高质量地完成工作,并愿意承担基础职责(如规则1, 6)。
  • 重在卓越的执行力而非空想(规则22),并持续练习与复查(规则63, 64)。
  • 聚焦于专精领域并深入掌握(规则26)。

人际关系与沟通

  • 主张坦诚直接、简洁交谈,避免空谈(规则2, 7, 8)。
  • 强调尊重、感谢、及时付款及公平对待(规则5, 17, 24, 39, 57, 99)。
  • 警告要远离残酷的人与霸凌者,不给予无礼者第二次机会(规则20, 23, 35)。
  • 认识到他人可能说谎,且只能通过危机中的行为真正了解一个人(规则21, 47)。
  • 明智选择伙伴,不必强求所有人喜欢,专注于寻找志同道合者(规则29)。

自我认知与管理

  • 鼓励承认失败、道歉、不抱怨,并正视自身情绪与不安感(规则3, 9, 16, 33)。
  • 强调思想与经验之间的深刻联系,以及情绪强于理智的力量(规则4, 60)。
  • 保持私人愿望,了解自身偏好,并警惕自身可能对他人产生偏见(规则54, 69, 25)。
  • 主张减少饮食摄入,并区分道德(评判他人)与伦理(评判自我)(规则44, 71)。

决策与行动

  • 倡导独立研究、果断行动、并作好周密准备(规则11, 53, 19, 95)。
  • 建议预期腐败,但永不侮辱或嘲弄他人(规则12, 24, 90)。
  • 指出唯一真正的紧急情况是医疗紧急事件(规则34)。
  • 在战争或自然灾害等极端情况下,生存成为最高法则(规则74)。

智慧、认知与引用

  • 多次引用孙武、老子、马基雅维利、塔木德等经典,强调策略、谦逊、恐惧与爱的权衡、借贷伦理等智慧(规则13, 30, 51, 58, 88)。
  • 认为不存在所谓的“常识”(规则59),愤世嫉俗者一无所知(规则62)。
  • 指出语言越浮夸,行为往往越低下(规则14),而信心与无知常相伴(规则98)。
  • 接受悖论,并警惕沉迷于不喜欢自己的人(规则94, 后记)。
  • 强调坚持是解脱的最佳机会,但需避免陷入疯狂的坚持(规则52, 93)。

给予与财务

  • 建议宁可赠送也不借款(规则84),真正能给予他人的是金钱或时间(规则92)。
  • 从投资角度指出,长期来看几乎没有能超越指数基金的选择(规则31)。

总结 这些规则整体上倡导一种务实、自律、尊重他人且内心清醒的生活方式,强调行动高于空谈,品格重于言辞,并在复杂现实中保持平衡与韧性。

38. Wtfis: Passive hostname, domain and IP lookup tool for non-robots (github.com)

Passive hostname, domain and IP lookup tool for non-robots - pirxthepilot/wtfis

39. Nextcloud cries foul over Google Play Store app rejection (www.theregister.com)

欧洲软件商Nextcloud指控谷歌通过撤销其Android文件应用的“All files access”权限,故意削弱其功能。该应用拥有超80万用户,自2016年起便具备读写所有文件类型的权限,但2024年谷歌Play商店撤销该权限,要求改用更“隐私友好”的工具。

Nextcloud指出,谷歌推荐的存储访问框架(SAF)和MediaStore API均无法满足需求,前者用于与其他应用共享文件,后者仅允许访问媒体文件。尽管多次申诉,谷歌仅重复开发指南,未恢复权限。

Nextcloud认为此事件是大型科技公司打压竞争的典型行为,并援引微软WordPerfect等历史案例。该公司曾在2021年就微软的反竞争行为向欧盟投诉,但四年未果。

Nextcloud强调,小公司面对应用商店的严格限制几乎无能为力,要么削减功能,要么面临下架风险。其指出,监管进程缓慢且处罚力度不足,导致大公司得以维持市场主导地位。

谷歌未对此事作出回应。

40. Fast machines, slow machines (2023) (jmmv.dev)

Well, that was unexpected. I recorded a couple of crappy videos in 5 minutes, posted them on a Twitter thread, and went viral with 8.8K likes at this point. I really could not have predicted that, given that I’ve been posting what-I-believe-is interesting content for years and… nothing, almost-zero interest. Now that things have cooled down, it’s time to stir the pot and elaborate on those thoughts a bit more rationally. To summarize, the Twitter thread shows two videos: one of an old computer running Windows NT 3.51 and one of a new computer running Windows 11. In each video, I opened and closed a command prompt, File Explorer, Notepad, and Paint. You can clearly see how apps on the old computer open up instantly whereas apps on the new computer show significant lag as they load. I questioned how computers are actually getting better when trivial things like this have regressed. And boom, the likes and reshares started coming in. Obviously some people had issues with my claims, but there seems to be an overwhelming majority of people that agree we have a problem. To open up, I’ll stand my ground: latency in modern computer interfaces, with modern OSes and modern applications, is terrible and getting worse. This applies to smartphones as well. At the same time, while UIs were much more responsible on computers of the past, those computers were also awful in many ways: new systems have changed our lives substantially. So, what gives?