Featured answer
Give me an overview of handwired
Handwired is a TypeScript project from chenglou/handwired that turns ordinary JavaScript numeric code into a neural net made of matrix multiplication and ReLU, with no training step. It is aimed at developers who want programs with if-else branches, loops and state to stay exact and fully differentiable, by rewriting those constructs as addition, multiplication and ReLU and collecting them into one large matrix multiplication that runs on JavaScript or WebGPU. The Application layer, which holds 645 of the 955 files, centers on the src directory, which supplies the shared plumbing for building typed numeric circuits and compiling them into GPU-ready programs. The Types and Config layers are each a single file, while Docs & Tooling holds 134 files, including the scripts directory that builds, validates and serves the demo site pages, and assets/index.html. To start reading, open README.md for the approach and its primitives, then template/main.ts for a runnable end-to-end example, and lab/json-search/million/run.ts for the JSON search demo.
| Layer | Files |
|---|---|
| Application | 645 |
| Types | 1 |
| Config | 1 |
| Docs & Tooling | 134 |
Basis: Inferred · knowledge graph· as of 4ea7fcb