JitForge icon
โšก JVM JIT Engine Open Source

JitForge

In-Memory Bytecode JIT Engine

Enterprise In-Memory Java JIT & Bytecode Microservice Engine on Java 21 Loom Virtual Threads.

Java 21+Loom Virtual ThreadsMulti-Engine (Javac/Janino/Groovy)4-Tier StorageRedis & PostgreSQLAST Sandboxing

๐Ÿ–ผ๏ธ Visual Showcase & Highlights

JitForge visual preview
JitForge visual preview
JitForge visual preview
JitForge visual preview
JitForge visual preview
JitForge visual preview

A high-performance in-memory Java runtime compilation, JIT execution, and cloud-native bytecode synthesis engine. Compiles and executes dynamic Java code entirely in RAM with zero disk I/O, sub-millisecond caching, 4-tier storage hierarchy, multi-engine JIT switching, and sandboxed security on Java 21 Loom Virtual Threads.

Core Capabilities & Architecture

In-Memory Compilation & Execution
โšก In-Memory Compilation & Execution

Zero interface or base class constraints. Pass plain Java source code and let the engine infer AST definitions. Reflection-free dynamic invocation (invoke, invokeStatic, newInstance) in RAM with zero disk footprint.

4-Tier Distributed Bytecode Storage
๐Ÿ’พ 4-Tier Distributed Bytecode Storage

Chain-of-responsibility storage hierarchy: ClassLoader RAM (<1ยตs) โ†’ Redis Cache (<1ms) โ†’ Pod Local Volume (2-5ms) โ†’ PostgreSQL DB (5-15ms) with automated upstream cache warming.

Multi-Engine JIT & Bytecode Ecosystem
โš™๏ธ Multi-Engine JIT Ecosystem

Dynamic per-request compiler engine selection: JAVAC (standard in-memory), JANINO (<15ms embedded JIT), GROOVY (@CompileStatic), Byte Buddy (proxy synthesis), Javassist, and MVEL 2 expression evaluator.

Cloud-Native REST Microservice
๐ŸŒ Cloud-Native REST Microservice

Java 21 Loom Virtual Threads for non-blocking million-scale concurrency. Exposes REST endpoints (/api/compile, /api/execute, /api/bytecode, /api/classes, /api/tiers, /api/health) ready for Podman and Kubernetes.

AST Lexical Sandboxing & Security
๐Ÿ”’ AST Lexical Sandboxing & Security

CodeSecurityValidator proactively inspects source tokens before compilation to block RCE, System.exit, forbidden reflection, and file/network I/O. SandboxedExecutor bounds execution times against infinite loops.

Bytecode Distribution & Client Interop
๐Ÿ“ฆ URLClassLoader & Client Interop

Remote client JVMs load server-compiled bytecodes dynamically via standard Java URLClassLoader (GET /api/classes/), Base64 JSON payloads, or raw binary .class downloads over HTTP.

๐Ÿš€ Microservice REST API & Client Integration

1. Compile Dynamic Code in RAM
curl -X POST http://localhost:8080/api/compile \
  -H "Content-Type: application/json" \
  -d '{"compiler":"JANINO","sourceCode":"..."}'
2. Dynamic Server Execution
curl -X POST http://localhost:8080/api/execute \
  -H "Content-Type: application/json" \
  -d '{"className":"com.demo.Calculator","methodName":"multiply","args":["6","7"]}'
3. Direct URLClassLoader Streaming
URL[] urls = { URI.create("http://localhost:8080/api/classes/").toURL() };
URLClassLoader loader = new URLClassLoader(urls, getClassLoader());

โšก Developer Quickstart & Source Access

This enterprise system tool is fully configured for cloud-native containerized execution (Podman, Docker, Helm) and local development workflows.

View Repository on GitHub ↗