General
I connected an authentic fruit fly brain to Polymarket order books via WebGL
Robin-kevin vettik DEV Community 周榜
1 views
ost algorithmic trading bots rely on standard linear heuristics or basic prompt-chained LLMs. We decided to take an experimental detour into computational neurobiology.
We built Degeneret Fly, an open-source pipeline that drives a WebGL character using authentic reconstructed MaleCNS v1.0 fruit fly neuron morphology (SWC skeletons) and live market telemetry.
How the Pipeline Works
Sensory Drive: Top-of-book depth imbalance and bid/ask spread velocity from Polymarket's CLOB WebSocket are normalized and injected directly as synaptic current ($I_{syn}$) into sensory neuron clusters.
Biophysical Loop: A continuous 8.333 ms Leaky Integrate-and-Fire (LIF) integration loop computes dynamic membrane voltages ($V_m$) against leak conductances.
Volatility Modulator: Octopamine (the insect stress/arousal neuromodulator) scales with spread velocity, dynamically lowering action potential thresholds.
Kinematics & Execution: Descending neurons (DNge104) gate 3D character animations and execution decisions in real time.
Stack
Rendering: Three.js / WebGL2 custom shaders
Physics/LIF: TypeScript 8.333 ms integration loop
Data: Polymarket CLOB WebSocket API
Live Demo & Open Source
We have the entire visualizer and execution engine streaming live right now:
🔴 Live Stream: https://kick.com/degenaratefly
The repository, SWC parsing scripts, and LIF solver are 100% open source under the MIT license:
💻 GitHub: https://github.com/Rob-bio4/degeneretfly
Feedback on conductance equations and WebGL optimization is welcome!
Read original: https://dev.to/robillionair/i-connected-an-authentic-fruit-fly-brain-to-polymarket-order-books-via-webgl-4aam
← Previous
AI Agent Architecture Patterns: A Deep Dive into Modern Agent Design
Next →
Playwright email verification can pass for the wrong reason: six checks for a trustworthy test
Related
The Sky Becomes a Data Center: The Race to Put AI in Orbit
General
2
DEV Community 周榜
Nvidia เปิดสูตรเหรียญทอง IMO ทั้งชุด หลังนักคณิตศาสตร์เตือนเรื่อง AI
General
2
DEV Community 周榜
Stop Eating Free Scope: The Change Log Habit That Saved My Freelance Hours
General
0
DEV Community
The Workflow Ran With Four Personas Instead of Five and Looked Fine
General
2
DEV Community 周榜
Comments0
No comments yet — be the first