Loading video...

Video Failed to Load

Go Home

A FLY IS NOW WRITING PYTHON CODE WITH ITS OWN NERVOUS SYSTEM I genuinely didn't expect a fly to end up behind a code editor. The setup is strangely simple. A fly sits on a keyboard while its neural activity is captured in real time. On the other side...

12,054 views • 1 month ago •via X (Twitter)

0 Comments

No comments available

Comments from the original post will appear here

Related Videos

a real fly brain saw its 40th video 3 seconds ago. it did not choose any of them. it never will. that's FLYTOK. I open-sourced a live simulation of a real fruit fly connectome and gave it a phone. here's exactly what 166,700 neurons do while you scroll: THE WIRING MaleCNS v1.0. the reconstructed central nervous system of a real male Drosophila. 166,700 neurons. 25,582,938 directed connections. 124,177,617 synaptic contacts. nothing cropped. no "simplified 1,000-neuron version" running behind the scenes. the whole graph is in memory on every single step. THE LOCK the app checksums the connectome against SHA-256 before it's allowed to boot. one array off by a byte and the brain refuses to start. you are either watching the real MaleCNS graph or you are watching nothing. THE SPIKES every neuron is a leaky integrate-and-fire cell. crosses −45 mV, it fires. the spike lands 1.8 ms later. 2.2 ms of silence, then it's live again. the network advances in 0.1 ms steps inside a compiled C++ kernel. roughly 1.2 million spikes per simulated second. THE EYES the browser captures the phone at 90×160 pixels. brightness drives 3,335 R1–R6 photoreceptors. color drives 811 R8 cells, blue and green. each one is placed on the screen by inferring its eye column from its real connections onto L1, L2, L3. real input, through real visual wiring. it's measurable. same brain, same saved state. 100 ms of white produced 127,378 spikes. black produced 92,952. the screen changes the brain. THE ALGORITHM while a video plays, I inject a fixed current into all 15 PAM11 dopamine neurons in the mushroom body. that's it. that's the whole trick. matched 200 ms control: 0 PAM11 spikes. drive on: 261. live, it sits at 85–97 Hz for as long as the feed runs. the fly does not earn it. an app decided watching one more should feel good. THE PLASTICITY 7,835 Kenyon-cell connections onto MBON07 and MBON11 can change. dopamine fires while Kenyon cells were active, those synapses weaken, floored at 10% and never flipping sign. after one stimulated run, 3,087 of them no longer matched their original weight. freeze it and they stay put. restore a checkpoint, replay the input, identical spikes bit for bit. THE SWIPE every 3 seconds the front right leg reaches up and strokes the screen, on the same 900 ms timeline as the video transition. wings, legs and head turns come from actual motor firing, MN9, DNp09, left-vs-right DNa02. those are real. the swipe is not. the fly never decides to swipe. the feed decides for it. ONE BRAIN this isn't a video of a simulation. it's the simulation. there is exactly one brain on one server. whoever loads the page first becomes its eyes and supplies the frames. everyone else watches the same brain react in real time. no video, no input, it just waits. no data, no numbers, the overlay shows nothing. it never invents a reading to look alive. THE HONEST PART the wiring is real. the physiology is approximate. the eyes are approximate. the dopamine is artificial. the feed is on a timer. the learning rule is unvalidated on this connectome. nothing here shows the fly enjoys it, prefers it, is addicted, or experiences anything at all. no living fly was involved. it took a few hundred lines of glue code to build a loop out of a screen, a timer and a reward signal wired to the right cells. imagine what an industry with a budget can do. open source. MaleCNS under CC BY 4.0. runs on your own machine, 16 GB RAM and a few GB of disk. the fly is still scrolling. nobody is coming to take the phone away. links in the reply.

sopersone

37,608 views • 1 month ago