← Today · Tue, Sep 1

Introducing @huggingface/kernels: 200+ WebGPU Kernels for Local AI

Covered by 2 outlets.

At a glance

  • huggingface.co: Introducing @huggingface/kernels: 200+ WebGPU Kernels for Local AI
  • simonwillison.net: Introducing wrapture

The story

simonwillison.net: Introducing wrapture New from Graham Dumpleton (of wrapt , mod_wsgi, and New Relic's Python agent fame), who describes Wrapture as taking the monkeypatching ideas from wrapt and extending them to apply to testing and tracing at the same time. Wrapture ( full documentation here ) makes it easy to wrap any function or method such that all access can be traced, or can be overridden to return a different value. It acts as both an alternative to unittest.mock and a way to implement tracing against an existing project: Attaching observation to code you do not control, recording what flows through it, and doing so without disturbing the program being watched, is a problem I have never really stopped thinking about. Wrapture includes OpenTelemetry support and even has an entirely configuration-based mechanism for adding tracing to an existing Python project, which looks like this: capture = " summary " [[ observe ]] target = " domain:Calculator " name = [ " outer " , " inner " ] [[ sink ]] type = " jsonlines " path = " trace.jsonl " This is still a very young project - just a few weeks old - but it's off to a very promising start. Interestingly, this is also Graham's first attempt at large entirely agent-driven project: Every line of code and documentation in wrapture was written by an AI assistant working under my direction. I want to be upfront about that, and equally upfront about what it was not. This was not vibe coding, where a one-shot prompt produces a pile of generated code and the person driving hopes for the best because they lack the knowledge to judge what came back. Vibe coding has earned its bad reputation. I engineered wrapture carefully from the start. I have spent a long time in this particular corner of Python and knew exactly what the result needed to be, and the AI was the means of producing it rather than the source of the design. In a follow-up post, Unit testing with wrapture , Graham shows the testing patterns supported by the new library: def test_

Get tomorrow's scan at 7am

The same ranked list, in your inbox. Nothing else, ever.

← Back to Today