{"slug": "turn-your-regular-javascript-code-into-a-neural-net", "title": "Turn your regular JavaScript code into a neural net", "summary": "Handwired converts ordinary JavaScript code into a fully differentiable neural network with no training required, running in a browser without a GPU, according to the project's demos. The Mini OS demo renders a small desktop to regular DOM through 130 layers and 9,909 weights with zero training, while a separate demo searches 100,000 JSON documents by compiling regex matching, JSON parsing and highlighting into WebGPU kernels. The project also lets users unfreeze a compiled program's weights and train them in real time.", "body_md": "# Turn your regular JavaScript code into a neural net.\n\nNo training, exact yet also fully differentiable, runnable in a browser without GPU.\n\n## Demos\n\n### Mini OS\n\nA small desktop written in JS, transformed with Handwired. Giant lists, animation, stacking, scrolling, drag, input, pictures, all rendering to regular DOM.\n\n- weights\n- 9,909\n- layers\n- 130\n- training\n- 0\n\n### Learned gallery\n\nUnfreeze a compiled program’s weights & train them in *real time*.\n\n### Search 100,000 JSON documents\n\nThe regex matching, JSON parsing & highlighting are all written in JS, then turned into WebGPU kernels for massive parallelism.", "url": "https://wpnews.pro/news/turn-your-regular-javascript-code-into-a-neural-net", "canonical_source": "https://chenglou.me/handwired/", "published_at": "2026-10-15 12:41:45+00:00", "updated_at": "2026-10-15 12:50:08.290336+00:00", "lang": "en", "topics": ["neural-networks", "developer-tools", "artificial-intelligence"], "entities": ["Handwired", "JavaScript", "WebGPU", "Mini OS"], "also_reported_by": [], "alternates": {"html": "https://wpnews.pro/news/turn-your-regular-javascript-code-into-a-neural-net", "markdown": "https://wpnews.pro/news/turn-your-regular-javascript-code-into-a-neural-net.md", "text": "https://wpnews.pro/news/turn-your-regular-javascript-code-into-a-neural-net.txt", "jsonld": "https://wpnews.pro/news/turn-your-regular-javascript-code-into-a-neural-net.jsonld"}}