惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

有赞技术团队
有赞技术团队
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
aimingoo的专栏
aimingoo的专栏
IT之家
IT之家
G
Google Developers Blog
爱范儿
爱范儿
博客园 - 司徒正美
Recent Announcements
Recent Announcements
The Register - Security
The Register - Security
J
Java Code Geeks
The Cloudflare Blog
M
MIT News - Artificial intelligence
Apple Machine Learning Research
Apple Machine Learning Research
Microsoft Security Blog
Microsoft Security Blog
博客园 - Franky
雷峰网
雷峰网
酷 壳 – CoolShell
酷 壳 – CoolShell
Blog — PlanetScale
Blog — PlanetScale
Vercel News
Vercel News
宝玉的分享
宝玉的分享
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
B
Blog
小众软件
小众软件
Microsoft Azure Blog
Microsoft Azure Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
WordPress大学
WordPress大学
T
Troy Hunt's Blog
Application and Cybersecurity Blog
Application and Cybersecurity Blog
H
Hacker News: Front Page
H
Help Net Security
S
Security @ Cisco Blogs
V
V2EX
Security Archives - TechRepublic
Security Archives - TechRepublic
Stack Overflow Blog
Stack Overflow Blog
O
OpenAI News
L
LINUX DO - 最新话题
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
S
Secure Thoughts
Help Net Security
Help Net Security
F
Full Disclosure
博客园 - 叶小钗
The Hacker News
The Hacker News
Spread Privacy
Spread Privacy
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Jina AI
Jina AI
K
Kaspersky official blog
www.infosecurity-magazine.com
www.infosecurity-magazine.com
V
Vulnerabilities – Threatpost
P
Privacy International News Feed
Scott Helme
Scott Helme

Hacker News

Introducing Claude Opus 4.7 Qwen Studio The Future of Everything is Lies, I Guess: Where Do We Go From Here? GitHub - SeanFDZ/macmind: Single-layer transformer in HyperTalk for the classic Macintosh Show HN: Agent-cache – Multi-tier LLM/tool/session caching for Valkey and Redis Moving a large-scale metrics pipeline from StatsD to OpenTelemetry / Prometheus GitHub - Nightmare-Eclipse/RedSun: The Red Sun vulnerability repository GitHub - SethPyle376/hiraeth: Local AWS emulator focused on fast integration testing, with SQS support, SQLite-backed state, and a debug-friendly web UI. GitHub - macOS26/Agent: Any AI, replaces Claude Code, Cursor, OpenClaw. Over 18 LLM providers (Claude, OpenAI, Gemini, Ollama, Zai, HF, Qwen) wired into a native Mac app that writes code, builds Xcode projects, bumps versions, manages git, automates Safari, use AppleScript, JS or Accessibility, extend Agent! w/ MCP Servers, run tasks from your iPhone via Messages. YouTube now lets you turn off Shorts I Made a Terminal Pager Burgers | マクドナルド公式 Commands — HackerNews CLI documentation ChatGPT for Excel PiCore - Raspberry Pi Port of Tiny Core Linux Live Nation illegally monopolized ticketing market, jury finds Google Broke Its Promise to Me. Now ICE Has My Data. Founding Engineer at Adaptional | Y Combinator CRISPR takes important step toward silencing Down syndrome’s extra chromosome GitHub - saffron-health/libretto: The AI toolkit for building reliable browser automations US v. Heppner (S.D.N.Y. 2026) no attorney-client privilege for AI chats [pdf] Unexpected €54k billing spike in 13 hours: Firebase browser key without API restrictions used for Gemini requests Retrofitting JIT Compilers into C Interpreters IPv6 – Google The Accursèd Alphabetical Clock Cybersecurity Looks Like Proof of Work Now Fragments: April 14 Cal.com Goes Closed Source: Why AI Security Is Forcing Our Decision | Cal.com - Scheduling Software for Online Bookings Laravel raised money and now injects ads directly into your agent When moving fast, talking is the first thing to break Too much Discussion of the XOR swap trick – Heather Cafe Introduction to Spherical Harmonics for Graphics Programmers The Grand Line Building a Z-Machine in the worst possible language High-Level Rust: Getting 80% of the Benefits with 20% of the Pain GitHub - duguyue100/midnight-captain: Inspired by Midnight Commander, tailored to my taste. How to build a `git diff` driver · Jamie Tanna | Software Engineer Center for Responsible, Decentralized Intelligence at Berkeley The Local Universe’s Expansion Rate Is Clearer Than Ever, but Still Doesn’t Add Up - A new synthesis of astronomical measurements confirms a persistent mismatch that could point to physics beyond current models The air throughout our homes is infused with microplastics. But there are things you can do to breathe less of them The disturbing white paper Red Hat is trying to erase from the internet – OSnews The Future of Everything is Lies, I Guess: Annoyances ‘Abhorrent’: the inside story of the Polymarket gamblers betting millions on war Productive procrastination — Max van IJsselmuiden maps, territory and LMs 447 Terabytes per Square Centimetre at Zero Retention Energy: Non-Volatile Memory at the Atomic Scale on Fluorographane Show HN: Pardonned.com – A searchable database of US Pardons 20 Years on AWS and Never Not My Job The Seasons are Wrong Artemis II crew splashes down near San Diego after historic moon mission We gave an AI a 3 year retail lease in SF and asked it to make a profit | Andon Labs How a dancer with ALS used brainwaves to perform live On filing the corners off my MacBooks Installing every* Firefox extension OpenClaw’s memory is unreliable, and you don’t know when it will break Steve Blank Nowhere Is Safe Chimpanzees in Uganda locked in vicious 'civil war', say researchers watgo - a WebAssembly Toolkit for Go linux/Documentation/process/coding-assistants.rst at master · torvalds/linux GitHub - callumlocke/json-formatter: Makes JSON easy to read. Founding Product Engineer at Bild AI | Y Combinator A compelling title that is cryptic enough to get you to take action on it GitHub - Keychron/Keychron-Keyboards-Hardware-Design: Industrial design files for Keychron keyboards and mice. 100+ models with CAD assets in STEP, DXF, DWG, and PDF. Source-available, with commercial use allowed for original compatible accessories within the license terms. [ANNOUNCE] WireGuardNT v0.11 and WireGuard for Windows v0.6 Released 1D-Chess Helium Is Hard to Replace Cooperative Vectors Introduction | Evolve Keeping a Postgres queue healthy — PlanetScale Our response to the Axios developer tool compromise Do Americans read print books, e-books or audiobooks more? The Zettelkasten Method in Obsidian: A Practical Setup Guide Artemis II Is Competency Porn and We Are Starving For It WeakC4 Flight Viz — Cockpit View A Mexican surveillance giant you’ve never heard of is now watching the U.S. border Surelock: Deadlock-Free Mutexes for Rust RISC-V 101 – what is it and what does it mean for Canonical? | Ubuntu The Problem That Built an Industry How Much Linear Memory Access Is Enough? | Solidean Investigating Split Locks on x86-64 Simplest hash functions Sybilproof reputation mechanisms (2005) [pdf] What is a property? How Complex is my Code? Static code analysis in Kotlin — tools overview Toffoli gates are all you need PGLite evangelism dcmake: a new CMake debugger UI Clojure on Fennel part one: Persistent Data Structures Fragments: April 2 Python Release Python install manager 26.1 The Life and Death of the Book Review - Liberties Introducing Database Traffic Control — PlanetScale Bitcoin miners are losing $19,000 on every BTC produced as difficulty drops 7.8% God sleeps in the minerals Building slogbox Apple Silicon and Virtual Machines: Beating the 2 VM Limit Who was “Not Even Wrong” first? Pokemon Evolution Vs Darwinian Evolution The APL Programming Language Source Code
GitHub - office233/Nexuscortex: Experimental sparse cognitive architecture written in Go. SDR attention, ternary compute, memory systems, sleep consolidation, 137 tests.
2026-05-29 · via Hacker News

CI

Experimental sparse cognitive architecture written in Go.

NexusCortex is a research and learning project exploring whether ideas from Sparse Distributed Representations, associative memory, online learning, sparse routing, and local-first compute can be combined into a small cognitive-system prototype.

This is not a replacement for frontier LLMs. It is not an AGI claim. The goal is to understand and implement low-level AI system primitives from scratch.

What It ImplementsArchitectureQuick StartDashboardBenchmarksRoadmap


What It Implements

  • SDR-based attention — popcount similarity and top-K retrieval (sdr_attention.go)
  • Sparse ternary compute — RGBA32 packed weights, 0.25 bytes/param (neurotexture.go, ternary.go)
  • 10 neural region modules — Wernicke, Broca, Hippocampus, Prefrontal, Cerebellum, Emotion, Curiosity, Sleep, Sensory, Reward
  • Episodic and semantic memory — storage and retrieval prototypes (hippocampus.go)
  • Online learning — continuous learning without full retraining
  • Sleep consolidation — replay-inspired episodic → semantic memory transfer (sleep_consolidation.go)
  • Fractal architecture — multi-block expert routing (fractal_cortex.go)
  • Thousand Brains Theory — Jeff Hawkins-inspired implementation (thousand_brains.go)
  • Local dashboard — web UI for inspecting runtime state, emotional compass, cognitive vitals
  • CUDA compute backend — optional GPU acceleration for sparse forward passes
  • Go tests — 137 tests + 3 fuzz smoke tests, go vet, staticcheck, gosec, govulncheck

Why I Built It

I wanted to learn what sits below API-level AI development: memory, retrieval, sparse representations, inference loops, state, routing, and performance constraints.

Instead of only calling model APIs, I built experimental components from scratch to understand how these mechanisms behave.


System Overview

graph TD
    Input["📥 Input Layer"] --> Sensory["Sensory Cortex"]

    Sensory --> SDR["⚡ SDR Attention Hub"]

    SDR --> Wernicke["Wernicke\n(Comprehension)"]
    SDR --> Broca["Broca\n(Production)"]
    SDR --> Hippocampus["Hippocampus\n(Memory)"]
    SDR --> Prefrontal["Prefrontal\n(Reasoning)"]
    SDR --> Cerebellum["Cerebellum\n(Sequences)"]
    SDR --> Emotion["Emotion\n(Valence)"]
    SDR --> Curiosity["Curiosity\n(Novelty)"]
    SDR --> Sleep["Sleep\n(Consolidation)"]
    SDR --> Reward["Reward\n(Reinforcement)"]

    Hippocampus --> Memory["🧠 Memory System\n(Episodic + Semantic)"]
    Sleep --> SleepC["🌙 Sleep Consolidation\n(Replay & Pruning)"]
    SleepC --> Memory

    Wernicke --> Broca
    Prefrontal --> Broca
    Emotion --> Prefrontal
    Reward --> Curiosity

    Broca --> Output["📤 Output Layer"]
Loading

Architecture

Neural Regions

Module Inspired By What It Does
Wernicke Wernicke's area Language comprehension — encodes input into sparse representations
Broca Broca's area Language production — generates output from neural activity
Hippocampus Hippocampus Episodic & semantic memory formation, storage, retrieval
Prefrontal Prefrontal cortex Reasoning, decision-making, reservoir computing
Cerebellum Cerebellum Motor planning and sequence coordination
Emotion Limbic system Valence-arousal emotional state modulation
Curiosity Dopaminergic system Novelty detection, exploration drive
Sleep Sleep cycles Memory consolidation, synaptic pruning, replay
Sensory Sensory cortex Input encoding and signal processing
Reward Reward circuits Reinforcement learning signals

Project Structure

Nexuscortex/
├── cmd/
│   ├── cortex/              # Interactive CLI
│   ├── cortex-train/        # Curriculum trainer
│   ├── cortex-eval/         # Evaluation runner
│   ├── cortex-autonomous/   # Autonomous learning loop
│   ├── cortex-web/          # Dashboard server
│   ├── cortex-tokenizer/    # Tokenizer tools
│   ├── cortex-diagnose/     # System diagnostics
│   ├── corpus-convert/      # Corpus format converter
│   └── train/               # Alternative trainer
├── cortex/                  # Core engine (all regions, compute, tests)
├── cuda/                    # CUDA kernel implementations
├── web/                     # Dashboard UI
├── data/
│   ├── corpus/              # Training corpora
│   └── evals/               # Evaluation suites
├── docs/                    # Research docs & benchmarks
└── .github/workflows/       # CI/CD pipeline

Benchmark Performance (local, vs own dense baseline)

Operation Speed Allocations
RadioNeuron Pack 0.24 ns/op 0 allocs
RadioBus Emit (256 channels) 1.65 ns/op 0 allocs
RadioCortex 100K neurons/tick 1.18 ms 0 allocs
RadioCortex 1M neurons/tick 11.8 ms 0 allocs
ForwardSparse vs Dense 26.3× faster
ForwardQuantum vs Dense 73.9× faster
NeuroRadioCortex 100K tiles/tick 15.2 ms 0 allocs

Research Foundations

Theory Implementation
Sparse Distributed Representations (Numenta) sdr.go, sdr_fast.go, sdr_pool.go
Thousand Brains Theory (Jeff Hawkins) thousand_brains.go
BitNet b1.58 (ternary weights) ternary.go, neurotexture.go
Mixture of Experts (Switch Transformer) fractal_cortex.go, expert_shard.go
Global Workspace Theory (Baars) workspace.go
Predictive Coding predictor.go, confidence.go
Hebbian/STDP Learning error_learning.go, reward.go
Memory Consolidation (sleep replay) sleep_consolidation.go
Hyperdimensional Computing sdr_attention.go

Test Results

ok   nexus-cortex/cmd/cortex       1.3s    ✅
ok   nexus-cortex/cmd/cortex-web   9.5s    ✅
ok   nexus-cortex/cortex          86.3s    ✅  (137 tests + 3 fuzz tests)

Current Limitations

  • Language generation is not comparable to modern LLMs. This is a sparse-compute prototype, not a language model.
  • Benchmarks are local and should be treated as directional until independently reproduced.
  • Some modules are experimental and need stronger evaluation and ablation testing.
  • Several architecture ideas are exploratory, not proven — the neuroscience-inspired design is speculative.
  • This project is useful as an AI systems learning/research prototype, not as a production model.

Best Code Entry Points

If you want to explore the codebase, start here:

File What It Shows
cortex/sdr_attention.go SDR attention and scratch-buffer optimization
cortex/hippocampus.go Memory storage and retrieval experiments
cortex/fractal_cortex.go Sparse/expert routing experiments
cortex/sleep_consolidation.go Memory consolidation via replay
.github/workflows/ci.yml Validation pipeline (test, vet, fuzz, security)

Tech Stack

Layer What
Language Go 1.21+
Compute CPU-first, optional CUDA kernels
Weight format RGBA32 ternary tiles (0.25 bytes/param)
Storage JSON persistence + NTX1 binary format
Dashboard Vanilla HTML/CSS/JS
CI GitHub Actions (go test -race, go vet, govulncheck, staticcheck, gosec)
Dependencies 4 Go modules: govaluate, mmap-go, go-webgpu, golang.org/x/sys

Neural Dashboard

A local web UI for inspecting cognitive state, emotional compass, memory stats, and interacting with the system in real time.

go run ./cmd/cortex-web -port 8080 -data-dir ./data/cortex -open

Quick Start

Prerequisites

  • Go 1.21+ (tested on 1.26)
  • No other dependencies required

Build & Run

# Clone
git clone https://github.com/office233/Nexuscortex.git
cd Nexuscortex

# Build
go build ./...

# Train on demo corpus
go run ./cmd/cortex-train \
  -data-dir ./data/cortex \
  -corpus ./data/corpus/general.jsonl \
  -epochs 15 \
  -curriculum=true \
  -revisit=true

# Run evaluation
go run ./cmd/cortex-eval -data-dir ./data/cortex

# Start dashboard
go run ./cmd/cortex-web -port 8080 -data-dir ./data/cortex -open

Roadmap

  • 10 neural regions with sparse compute
  • Curriculum training with surprise-based replay
  • Sleep consolidation
  • Neural Dashboard
  • Autonomous learning loop
  • CUDA compute backend
  • 137 unit tests + 3 fuzz tests
  • CI/CD pipeline
  • NTX binary checkpoint format (mmap-friendly)
  • Expert Atlas with disk-backed experts
  • Top-K expert routing
  • Improved language generator (Broca 2.0)
  • BPE tokenizer (32K vocab)
  • Benchmark arena (1000+ test cases)
  • WebGPU compute backend

FAQ

Why Go? Speed, simplicity, easy concurrency, single binary output, no dependency hell. Go compiles the entire project in 5 seconds.

Do I need a GPU? No. CPU-first design. CUDA is optional and only accelerates sparse ternary forward passes.

How many parameters? ~500M with a single cortex block. Scales with FractalCortex blocks.


License

MIT


⭐ Star this repo if you're interested in low-level AI systems and sparse compute.