跳到正文
每分钟自动更新
11月24日周二
  1. Simon Willison

    Ladybird's first alpha release

    中文摘要

    中文摘要待更新

    英文原文

    Ladybird is an astonishingly ambitious project: a new browser, in 2026, with its own implementation of most of the key components - HTML parsing, CSS engine, layout, JavaScript, even WebAssembly. It still uses a few external components - things like HarfBuzz for text shaping, Skia for 2D graphics, ffmpeg for video, and SQLite for the things you do with SQLite. Everything else is part of Ladybird, or code brought in from Ladybird's even more ambitious predecessor project SerenityOS . This morning the Ladybird project released their first alpha , which means you can now install the browser (on macOS or Linux) without having to compile it yourself! I've been trying it out today, and it's very impressive. It feels fast, the UI is lightweight and intuitive, and most of the websites I've tried to load in it have worked as they should. It looks like this (showing my video-compressor tool): Here's the process tree after I opened six tabs in one window and another tab in a second window (generated by this script , thanks Claude): Ladybird (72925) [240 MB] └── Hub (72926) [61 MB] ├── RequestServer (72927) [29 MB] ├── ProcessReaper (72928) [1 MB] ├── Compositor (72930) [123 MB] ├── RequestSer

11月18日周三
  1. Simon Willison

    External sandboxes for coding agents

    中文摘要

    针对代码代理的外部沙盒我一直在探索新的方式,对代理执行的代码进行沙盒处理,重点是让尝试本地模型更加安全,而不用担心错误或提示注入攻击可能导致它们对机器造成损害。我与Prime Radiant合作完成了这个项目,Prime Radiant是Superpowers和其他项目的AI研究实验室。我在Prime Radiant的博客上发表的文章介绍了外部沙盒模式,其中代理执行的代码在专用沙盒中运行,而代理本身则位于该沙盒之外。为了演示这一模式,我们发布了三个沙盒服务器实现:external-sandbox-v86运行一个Node.js服务器,然后使用v86在WebAssembly中运行Alpine Linux。external-sandbox-container是一个Python Web服务器,在Apple Containers实例中运行Alpine Linux的沙盒。external-sandbox-quicksand是另一个Python Web服务器,这次使用了微软的Quicksand沙盒库,该库将QEMU和Alpine Linux打包在一个Python包中!这些实现都提供了相同的localhost API。然后你可以将Pi、Claude Code或Codex配置为向该沙盒发送API调用。

    英文原文

    External sandboxes for coding agents I've been exploring new ways to sandbox code that is executed by agents, with a focus on making it safer to try out local models without worrying that a mistake or prompt injection attack might cause them to take damaging actions on a machine. I worked on this project with Prime Radiant , the AI research lab behind Superpowers and other projects . My post on the Prime Radiant blog introduces the external sandbox pattern, where code executed by the agent runs inside a dedicated sandbox while the agent itself lives outside of that sandbox. To demonstrate this pattern we've released three sandbox server implementations: external-sandbox-v86 runs a Node.js server which then uses v86 to run Alpine Linux inside WebAssembly. external-sandbox-container is a Python web server which runs the sandbox in Alpine Linux inside an Apple Containers instance. external-sandbox-quicksand is another Python web server, this time using Microsoft's Quicksand sandboxing library, which bundles QEMU and Alpine Linux in a Python package! Each of these implementations offers the same localhost API. You can then configure Pi, Claude Code, or Codex to send API calls to that s

  2. Simon Willison

    Running the full server-side Datasette Python app in the browser with service workers and Pyodide

    中文摘要

    Datasette Lite是我将Datasette Python应用程序移植到浏览器中运行的版本,使用的是WebAssembly和Pyodide。我使用service workers发布了Datasette Lite的完整重写版本,现在它几乎与真正的服务器端应用程序无法区分。现在你可以使用精心设计的URL lite.datasette.io完成以下所有操作:加载客户端的Datasette来浏览任何SQLite数据库、JSON文件、CSV文件或SQL脚本;从PyPI中选择一个发布的Datasette版本进行加载;从Datasette GitHub仓库中选择特定的提交、标签或分支名称;从超过100个SQLite版本中进行选择,与Datasette一起使用;从PyPI或wheel文件的URL中安装额外的Datasette插件,包括JavaScript可视化工具。能够加载特定的Datasette引用、插件和SQLite版本,使这成为一种极好的工具,可以链接到正在进行中的功能演示或错误复现,而无需启动完整的Web服务器来提供该演示。例如,考虑以下URL:https://lite.datasette.io/?install=datasette-maplibre&url=https://gist.githubusercontent.com/simonw/39fa5d399465766039549912e2b3d291/raw/f6dfba9

    英文原文

    Datasette Lite is my port of the Datasette Python application to run directly in the browser using WebAssembly and Pyodide . I've released a complete rewrite of Datasette Lite using service workers, and it's now almost indistinguishable from the real server-side application. You can now do all of the following, using a carefully crafted URL to lite.datasette.io : Load client-side Datasette to browse any SQLite database, JSON file, CSV file or SQL script Select a released version of Datasette to load from PyPI Load a specific commit, tag, or branch name from the Datasette GitHub repository Pick from over 100 versions of SQLite to use with Datasette Install additional Datasette plugins from PyPI or URLs to wheel files, including JavaScript visualization tools The ability to load specific Datasette references, plugins, and SQLite versions makes this a fantastic tool for linking to demos of work-in-progress features or bug reproductions, without needing to spin up a full web server to serve that demo. As an example, consider the following URL: https://lite.datasette.io/?install=datasette-maplibre&url=https://gist.githubusercontent.com/simonw/39fa5d399465766039549912e2b3d291/raw/f6dfba9

11月17日周二
  1. Simon Willison

    llm 0.37.3

    中文摘要

    发布:llm 0.37.3 一个针对LLM的错误修复版本,主要是为了解决该软件最新Homebrew包的问题。现在Homebrew提供了最新的SQLite 3.54.1版本,该版本包含一个修复程序,导致LLM的日志代码出现故障。简而言之:在SQLite 3.54.0中,以下SQL语句:select json_object('a', (select json_array(1))) 返回结果为:{"a":[1]} 但在3.54.1中,相同的查询返回结果为:{"a":"[1]"} 根据D. Richard Hipp的说法:这是一个错误修复。根据文档,(SELECT json_array(...)) 返回的是SQL文本,而不是JSON。因此,3.54.1的行为是正确的,而3.54.0是一个错误。解决方法如下:select json_object('a', json((select json_array(1)))) 标签:llm,webassembly,sqlite,generative-ai,ai,llms,d-richard-hipp

    英文原文

    Release: llm 0.37.3 A bug fix release for LLM , mainly to cover a problem with the most recent Homebrew package of the software. Homebrew now ships the latest SQLite, 3.54.1 , which includes a fix that broke LLM's logging code . Short version: in SQLite 3.54.0 the following SQL: select json_object('a', (select json_array(1))) Returns this: {"a":[1]} But in 3.54.1 the same query returns this: {"a":"[1]"} According to D. Richard Hipp : That was a bug fix. Per the documentation, (SELECT json_array(...)) returns SQL text, not JSON. Hence the 3.54.1 behavior is correct and 3.54.0 was a bug. The workaround looks like this: select json_object('a', json((select json_array(1)))) Tags: llm , webassembly , sqlite , generative-ai , ai , llms , d-richard-hipp

10月15日周四
  1. Simon Willison

    AI is mass decompiling games. That's both awesome and scary.

    中文摘要

    人工智能正在大规模反编译游戏。这既令人兴奋又令人害怕。独立游戏开发者Popcar谈论了最近由人工智能驱动的现有游戏反编译浪潮,这使得现有游戏之间可以产生奇怪的混搭,并推动了游戏保存项目的繁荣,使旧游戏能够在新硬件上运行(通常是在浏览器中使用WebAssembly)。我喜欢这篇文章对这一新发展所带来的正反两面的描述:大多数人现在已经意识到可怕的一面。如果人工智能可以反编译游戏和软件,那么整个科技行业即将爆发。任何人都可以反编译其他软件并以他们想要的任何方式使用,而没有人能阻止他们。公司之间可以互相窃取。你购买的游戏或应用程序可能会在你不同意的情况下被开源。这不仅仅局限于旧视频游戏,我们可以将这种技术应用于任何软件。 [...] 这对保存工作来说也是一个巨大的胜利。旧游戏可以更容易地被移植、修改、增强,并比以前更加容易访问。 [...] 随着主机制造商全力投入数字领域,而由于服务器关闭游戏变得完全无法运行,这真是个好消息。无论公司怎么想,我们都可以拥有自己购买的软件。

    英文原文

    AI is mass decompiling games. That's both awesome and scary. Indie game developer Popcar talks about the recent wave of AI-powered decompilation of existing games, enabling weird mashups between existing games, and producing a boom in game preservation projects to get old games working on new hardware (often in a browser using WebAssembly). I like how this piece captures both the positives and the negatives of this new development: Most people already realized the scary part by now. If AI can decompile games and software, then the entire tech industry is about to explode. Anybody can decompile other software and use it any way they'd like, and nobody can stop them. Companies can steal from competitors. Your paid game or app can be open-sourced against your will. This isn't exclusive to old video games, we can apply this to any software. [...] This is also a big win for preservation. Old games can be ported, modified, enhanced, and made much more easily accessible than before. [...[ With console makers going all in on digital and games becoming entirely unplayable due to servers shutting down, this is fantastic news. We could own software we bought regardless of what the company thi

10月2日周五
  1. Simon Willison

    pwasm 0.2a0

    中文摘要

    发布:pwasm 0.2a0 pwasm 是我的一个愚蠢项目——一个完全通过 vibe 编码的纯 Python WebAssembly 引擎,我在一月份第一次陷入人工智能狂热期间开发了它。自从一月份以来,我再也没有碰过它,所以我决定让 Claude Opus 5.5 来处理它,看看它是否能做出任何显著的改进:评估 pwasm 当前的状态——然后考虑要让它运行研究仓库中的 MicroPython 和 micro JavaScript 实验需要做些什么——以及要让它提速需要做些什么。在 42 次提交之后(仅需最少的后续提示),它现在几乎可以处理所有的 WASM 规范,而 PyPI 上的 wheel 包含了 MicroPython、QuickJS 和 Micro QuickJS 的工作型 WASM 构建。我完全不信任这个东西——因此打上了 alpha 版本标签——但看到今天的模型能改进 10 个月前模型的工作成果,这很有趣。 标签:python、webassembly、vibe-coding

    英文原文

    Release: pwasm 0.2a0 pwasm is one of my folly projects - an entirely vibe-coded pure Python WebAssembly engine that I built in January during my first bout of AI mania . I hadn't touched it since January, so I decided to let Claude Opus 5.5 loose on it and see if it could make any significant improvements: Evaluate current state of pwasm - then consider what it would take to get the MicroPython and micro JavaScript experiments from the research repo working under it - and what it would take to speed it up 42 commits later (with minimal follow-up prompting) it now handles almost all of the WASM specification, and the wheel from PyPI bundles working WASM builds of MicroPython , QuickJS and Micro QuickJS . I wouldn't trust this thing at all - hence the alpha version tag - but it's interesting seeing how today's models can improve on the work of models from 10 months ago. Tags: python , webassembly , vibe-coding