Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
nCPU — Research runtime for differentiable neural computers, GPU-based CPU emulation, and program synthesis. Features neural ALU, constant-time crypto, JEPA world models, and a self-hosting C compiler on Metal. | Kitploit
Tools/GitHubGitHub/robertcprice/ncpu
Static AnalysisReverse EngineeringDebuggersFuzzingCryptographyHardware SecurityBinary AnalysisMachine LearningPapers & ResearchLearning & EducationAI Security
65529243 months agoReviewed by Kitploit
GitHub
robertcprice/ncpu

nCPU

Research runtime for differentiable neural computers, GPU-based CPU emulation, and program synthesis. Features neural ALU, constant-time crypto, JEPA world models, and a self-hosting C compiler on Metal.

View Repository

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

nCPU

A complete computer in which every layer — arithmetic, OS, compiler, display — is either a trained neural network or runs entirely on GPU.
The model doesn't run on the computer. The model is the computer.

Interactive discovery Models Accuracy Coprocessor License


nCPU is one repository pursuing one thesis from five directions: a computer can be built out of learned components, and once the whole execution stack is differentiable, programs stop being things you write and become things you can search for by gradient descent. Each subsystem below stands on its own measurements; together they cover the stack from individual ALU operations to an operating system to program synthesis.

The five subsystems

1. The neural computer

Every ALU operation — addition, subtraction, multiplication, bitwise logic, shifts, division — is a trained neural network. The neural OS (neurOS) manages memory, schedules processes, and compiles code through 11 trained models with no hand-written fallbacks. A neural display renders characters through char→glyph MLPs and a ConvNet (143K parameters). The full pipeline — source code → neural compiler → neural assembler → neural CPU → neural display — is differentiable end to end.

The neural ALU reaches 100% accuracy on 32-bit integer arithmetic, verified exhaustively over every possible input. One result inverts the conventional hardware hierarchy: multiplication is 12x faster than addition here, because addition needs an 8-pass carry chain while multiplication decomposes into parallel byte-pair table lookups.

InstructionStrategyLatency
ADD/SUB/CMPKogge-Stone carry-lookahead (8 passes)248 µs
MULByte-pair LUT (65,536 entries)21 µs
AND/OR/XORVectorized truth table21 µs
SHL/SHRAttention-based bit routing434 µs
DIVRestoring division (neural subtraction)varies

neurOS component accuracy:

ComponentAccuracyComponentAccuracy
MMU100%Assembler codegen100%
TLB99.6%Assembler tokenizer99.4%
Cache99.7%Compiler optimizer95.2%
Scheduler99.2%Watchdog100%
Prefetch97.8%Block allocator98.4%

2. The GPU computer

A self-sufficient computer on a single GPU — the CPU is involved only at bootstrap. The Rust + Metal kernel executes about 200 ARM64 instructions (integer and floating-point) at roughly 1.9M instructions per second, with zero-copy shared memory and zero cycle-count variance across runs (σ = 0.0).

What runs on it:

  • A multi-process UNIX OS: fork/pipe/wait, a 25-command shell, 28 syscalls, up to 15 concurrent processes
  • A self-hosting C compiler (~4,200 lines) that compiles itself, then compiles and runs other programs — entirely on the GPU
  • Real Linux binaries via an ELF64 loader: BusyBox (264KB, 34+ commands) and Alpine Linux v3.20
  • 13+ compiled C applications: SHA-256, AES-128, Tetris, Snake, a Brainfuck interpreter, a Forth REPL, a CHIP-8 emulator, an HTTP server, an MNIST classifier, and others
  • A 26-command deterministic debugger: instruction tracing, breakpoints and watchpoints, time-travel debugging, a memory sanitizer, automated fuzzing, reverse data-flow analysis, and constant-time verification. Deterministic execution is what makes time-travel and exact replay possible; conventional CPUs, with cache- and speculation-induced timing noise, can't offer the same guarantees.

3. nSynth: Universal synthesis engine

nSynth is a Rust-based program synthesis system that discovers executable programs from input/output examples using gradient descent, enumeration, and search. Combined with a comprehensive ML/tensor engine and complete web stack, it enables synthesis of:

  • Algorithms: Arithmetic, bitwise, data structures, algorithms
  • ML Models: CNNs, RNNs, Transformers, GNNs, Diffusion, Flows, RL agents
  • Web Apps: Full-stack React/Next.js, APIs, styling, WebGL, WASM applications

Coverage: 420/420 synthesis problems (Mog: 315/315, nSynth: 105/105)

Three Pillars:

  1. Program Synthesis (Core): 105/105 problems solved via gradient-based search, enumerative synthesis, template matching, and search families
  2. ML/Tensor Engine (1000+ APIs): Comprehensive tensor operations with automatic differentiation, enabling synthesis of ANY ML architecture:
    • Attention mechanisms (MultiHeadAttention, RoPE, ALiBi, FlashAttention, Linformer, Performer)
    • Generative models (Diffusion DDPM/DDIM, Normalizing Flows RealNVP/MAF, Neural ODE)
    • Vision (3D Conv, Deformable Conv, Fourier Features, NeRF volume rendering)
    • RL (Policy Gradients, PPO, A3C, Experience Replay, GAE, Value Functions)
    • Meta-Learning (MAML, Reptile, DARTS, ENAS NAS)
    • Probabilistic ML (Bayesian NN, MC Dropout, Variational Inference, KL Divergence)
    • Efficiency (Pruning, Quantization, Knowledge Distillation, Distributed Training)
  3. Web Stack (500+ APIs): Full-stack web synthesis with complete coverage:
    • Core: HTTP, WebSocket, SSL, JSON, Cookies, Forms, Middleware
    • Frameworks: React, Vue, Svelte, Solid, Next.js, Remix
    • Modern: WASM, WebGPU, WebAuthn, WebRTC, PWA
    • APIs: GraphQL, gRPC, tRPC, OpenAPI
    • Styling: CSS, Tailwind, responsive, dark mode
    • Bundling: Vite, webpack, esbuild
cd nsynth
cargo run --release --bin nsynth_codegen --lang python --examples '{
  "name":"reverse","signature":"fn reverse(arr: List<i64>) -> List<i64>",
  "examples":[{"inputs":[[1,2,3]],"expected":[3,2,1]}]
}'
# → def reverse(arr): return arr[::-1]

4. The differentiable coprocessor

The neural ALU injected into a transformer's forward pass as a routed expert. A learned per-token gate decides whether each token flows through the original MLP or through the neural ALU. Bilinear soft truth tables provide differentiable logic, tensor ops provide differentiable arithmetic, and gating is modulated by model confidence.

Results from an 11-model sweep across the Qwen 2.5/3/3.5 families, on arithmetic tasks:

ModelArithmetic accuracyNote
Qwen3.5-2B (instruct)14.5% → 71.0% (+56.5 pp)best overall
Qwen3.5-2B (base)15.5% → 63.0% (+47.5 pp)100% on ADD/SUB/MUL/DIV
Qwen3.5-4B+51.0 pplargest base-model gain (tied)
Qwen3.5-9B+51.0 pplargest base-model gain (tied)

Real-world transfer is measured, not extrapolated: on full HumanEval (Qwen3.5-4B, A100), 62.2% → 64.6% — four additional problems solved.

5. JEPA predictive machine dynamics

A predictive world model of the computer itself. Alongside exact execution, a JEPA-style network (Joint Embedding Predictive Architecture) learns to predict machine state transitions in a compressed latent space:

latent_state_t + instruction → predictor → latent_state_{t+1}

It runs at two levels. A Python demo (ncpu/jepa_neural_cpu/) executes real programs next to the predictor, turning prediction error into a live anomaly signal. A Rust Metal implementation (kernels/rust_metal/src/jepa/, 2,858 lines) observes deterministic GPU execution and actively steers scheduling through learned bias overrides.

Download Tool