Skip to content
Oeiuwq Faith Blog OpenSource Porfolio

mirkosertic/Bytecoder

Framework to interpret and transpile JVM bytecode to JavaScript, OpenCL or WebAssembly.

mirkosertic/Bytecoder.json
{
"createdAt": "2017-04-13T10:21:59Z",
"defaultBranch": "master",
"description": "Framework to interpret and transpile JVM bytecode to JavaScript, OpenCL or WebAssembly.",
"fullName": "mirkosertic/Bytecoder",
"homepage": "https://www.mirkosertic.de/blog/2017/06/compiling-bytecode-to-javascript/",
"language": "Java",
"name": "Bytecoder",
"pushedAt": "2025-08-23T21:34:02Z",
"stargazersCount": 931,
"topics": [
"bytecode",
"compiler",
"decompiler",
"java-bytecode",
"javascript",
"jvm-bytecode",
"kotlin",
"llvm",
"llvm-frontend",
"opencl",
"transpiler",
"webassembly"
],
"updatedAt": "2025-11-25T14:35:58Z",
"url": "https://github.com/mirkosertic/Bytecoder"
}

Bytecoder is a Rich Domain Model for Java Bytecode and Framework to interpret and transpile it to other languages such as JavaScript, OpenCL or WebAssembly.

Current Build status: Build Workflow Maven Central

  • Ability to cross-compile JVM Bytecode to JavaScript, WebAssembly, OpenCL and other languages
  • Primary compile targets are JavaScript and WebAssembly
  • Supports Java 8 up to Java 20
  • Work well with Debugger Toolchains and SourceMaps
  • Allow integration with other UI-Frameworks such as vue.js
  • Backed by OpenJDK 20 as JRE Classlib

The JVM Bytecode is parsed and transformed into an intermediate representation. This intermediate representation is passed thru optimizer stages and sent to a backend implementation for target code generation.

The JavaScript backend transforms the intermediate representation into JavaScript.

The WebAssembly backend transforms the intermediate representation into WebAssembly text and binary code.

The OpenCL backend is used to compile single algorithms into OpenCL and execute them on the GPU. This backend is designed to enhance existing programs running on the JVM to utilize the vast power of modern GPUs.

The Bytecoder User Manual and a full set of example applications is available here.