ty 1.0

Simon Willison · 2026年12月1日

AI 摘要 AI 生成,可能有误

ty 是 Astral 推出的快速 Python 类型检查器,现已发布 1.0 版本,并已被推荐用于生产环境。它是 OpenAI 的默认类型检查器,在数百万行关键 Python 代码上迁移至该工具后,中位数速度提升了 24 倍,峰值内存使用量降低了 73%。此外,在安装 django-types 包后,它还提供内置的 Django 支持。

ty 1.0

Astral's fast type checker for Python has hit 1.0, and they now "recommend it for production use".

ty is now the default and most widely-deployed type checker at OpenAI, providing coverage for many millions of lines of critical Python. Internally, migrating to ty resulted in a median 24x speedup and 73% reduction in peak memory usage.

继续阅读全文

为了尊重作者,这里只展示开头几段。你可以去原文阅读,或者在 HorizonReader 里读:划线做笔记、让 AI 帮忙。

更多来自 Simon Willison

Large CSV imports in Datasette (Datasette Advent Day 1)

AI 摘要The author is publishing daily videos through December demonstrating new Datasette features in an advent calendar format. The first video covers large CSV and TSV imports newly added in Datasette 1.0a46, where files of any size are streamed, parsed in the browser, and sent to the insert API in batches. The demonstration includes importing 26,000 rows of iNaturalist data in seconds, plus faceting for analysis and a new UI for selecting and reordering table columns.

datasette 1.0a46

AI 摘要The datasette 1.0a46 alpha release introduces a major new feature for large CSV imports, which is demonstrated in the first video of a new advent calendar series running up to Christmas. Additionally, row pages now list incoming many-to-one foreign key rows, formatted similarly to the new many-to-many feature.

AT Protocol: The Spaces Public Beta is Now Live

AI 摘要AT Protocol, the open protocol behind Bluesky, has launched the public beta of Spaces, a new feature introducing private and selectively shared data to a network that was previously entirely public. Spaces act as groups whose members gain permission to read private data hosted on the owner's Personal Data Server (PDS), allowing sharing with any group size from a personal journal to a community of millions. Rather than an end-user feature, Spaces is designed as a platform for building new applications on the open social internet.

Quoting Josh Dunsterville

AI 摘要The article quotes Josh Dunsterville responding to the announcement that Cursor has been rebranded as Grok Build, a product from SpaceXSI (previously SpaceXAI, formerly xAI, aka XAI Corp). It highlights the tangled chain of corporate renamings, noting that XAI Corp—owner of X (previously Twitter)—is itself owned by SpaceX. The piece is tagged with grok, ai, and cursor.

datasette 1.0a45

AI 摘要The datasette 1.0a45 alpha release introduces a major new feature: many-to-many relationship display and editing across both tables and row pages. Documentation with details and screenshots is available, and a demo video can be found in the pull request for the new feature.