JitForge
Enterprise In-Memory Java JIT & Bytecode Microservice Engine on Java 21 Loom Virtual Threads.
๐ผ๏ธ Visual Showcase & Highlights
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
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.
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.
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.
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.
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.
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
curl -X POST http://localhost:8080/api/compile \
-H "Content-Type: application/json" \
-d '{"compiler":"JANINO","sourceCode":"..."}'
curl -X POST http://localhost:8080/api/execute \
-H "Content-Type: application/json" \
-d '{"className":"com.demo.Calculator","methodName":"multiply","args":["6","7"]}'
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.