Hatchet 发布无服务器端点与持久流功能
Hatchet 推出无服务器端点与持久流两项新功能,并以一个分布式光线追踪演示展示其能力:该演示用语言模型编写 SDF 场景代码,将图像分块并行渲染,底层算力运行在 Cloudflare Workers 的 Rust 环境中。该演示同时验证了用代码表示场景、便于 LLM 迭代优化的技术路径。
报道正文
What is this?
This demo renders images through a ray-tracing technique called Signed Distance Fields. The entire ray-traced scene is represented as code and written by a language model. Because this technique is embarrassingly parallel, each tile of the image can render simultaneously up to a very high resolution. Hatchet is used to orchestrate the parallel tiles, using Cloudflare Workers running Rust as the underlying compute (with an option to run on even larger, standalone machines if needed). The coding agent also uses Hatchet + Cloudflare and durable streams are used for passing messages back to each frontend.
This was built to showcase two new Hatchet features:
Signed Distance Fields are a technique popularized by Inigo Quilez. This renderer uses a DSL based on Rhai and Fidget to define the SDFs, which you can edit yourself. This approach is uniquely suited to refining with LLMs because it represents the entire ray-traced scene as code.
The renderer itself is a slightly modified version of rpt.