# Handwired - Turn regular JavaScript into a neural net

> Hacker News story 50172984 · language: en · submitted 2026-10-20
> Web version: https://zeli.app/story/50172984
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 44 · by [chenglou](<https://news.ycombinator.com/user?id=chenglou>) · 💬 12
[original](<https://chenglou.me/handwired/>) · [HN discussion](<https://news.ycombinator.com/item?id=50172984>)

## Summary

Handwired transforms your ordinary JavaScript code into a fully differentiable neural network without any training. It converts control flow like conditionals into ReLU-based operations, making your program exact yet trainable. Run it in the browser without a GPU. Demos include a mini OS with DOM rendering, a photo gallery with real-time weight training, and a JSON search engine that compiles to WebGPU kernels. It's a novel way to bridge traditional coding and neural networks, perfect for developers exploring differentiable programming.

## Key quote

> No training, exact yet also fully differentiable, runnable in a browser without GPU.

## HN discussion (12 comments)

### [gregsadetsky](<https://news.ycombinator.com/item?id=50200423>)

> As far as I understand, this doesn't turn "regular" JavaScript into a NN, it's rather "write your logic in a DSL that creates a neural-net-shaped circuit"
>
> the source code for the OS demo is not "regular" code, it's full of `emiRelu`... https://github.com/chenglou/handwired/blob/main/src/handwire...
>
> The main site & readme seem to overclaim, while the docs say things like "With Handwired you write a numeric program" and "No tool converts existing JavaScript source into a program" - https://github.com/chenglou/handwired/tree/main/docs
>
> happy to be proven wrong, to have misunderstood this, etc.

### [dvrp](<https://news.ycombinator.com/item?id=50173048>)

> I think for everyone interested in this project checking your OG twitter thread is also somewhat mandatory:
>
> https://x.com/_chenglou/status/2110557373651931267
>
> It took me a bit to wrap my head around what you did.

### [auraham](<https://news.ycombinator.com/item?id=50200337>)

> It seems interesting but I am confused. What is the purpose of that landing page? It is not clear since it showcases several (not related) ideas:
>
> \- turning js code into something else, arguably high-level code for training neural networks
>
> \- a mini OS inside the browser
>
> \- a gallery
>
> \- document search

---

## Cite

- Page: https://zeli.app/story/50172984
- Date: 2026-10-20
- Source: chenglou.me (https://chenglou.me/handwired/)
- Hacker News: https://news.ycombinator.com/item?id=50172984

## Other languages

- zh: https://zeli.app/zh/story/50172984 · markdown: https://zeli.app/zh/story/50172984.md
- ja: https://zeli.app/ja/story/50172984 · markdown: https://zeli.app/ja/story/50172984.md
- ko: https://zeli.app/ko/story/50172984 · markdown: https://zeli.app/ko/story/50172984.md
- de: https://zeli.app/de/story/50172984 · markdown: https://zeli.app/de/story/50172984.md
- es: https://zeli.app/es/story/50172984 · markdown: https://zeli.app/es/story/50172984.md
- ru: https://zeli.app/ru/story/50172984 · markdown: https://zeli.app/ru/story/50172984.md
