General
I connected an authentic fruit fly brain to Polymarket order books via WebGL
Robin-kevin vettik DEV Community 周榜
19 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
Semantic tag vs Non-Semantic tag
General
51
Dev.to (EN Zone)
How LinkedIn "Bold" Text Actually Works (It's Not Bold At All)
General
43
Dev.to (EN Zone)
Google ADK Callbacks Are a Policy Plane, Not Just Hooks
General
44
DEV Community 周榜
How I Modelled My Power BI Data — Data Modelling, Relationships & Joins (Kenya Crops Dataset)
General
41
DEV Community 周榜
Comments0
No comments yet — be the first