Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mirkosertic/bytecoder
Framework to interpret and transpile JVM bytecode to JavaScript, OpenCL or WebAssembly.
https://github.com/mirkosertic/bytecoder
bytecode compiler decompiler java-bytecode javascript jvm-bytecode kotlin llvm llvm-frontend opencl transpiler webassembly
Last synced: 5 days ago
JSON representation
Framework to interpret and transpile JVM bytecode to JavaScript, OpenCL or WebAssembly.
- Host: GitHub
- URL: https://github.com/mirkosertic/bytecoder
- Owner: mirkosertic
- License: apache-2.0
- Created: 2017-04-13T10:21:59.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2024-05-15T09:06:16.000Z (9 months ago)
- Last Synced: 2024-10-29T17:31:34.934Z (3 months ago)
- Topics: bytecode, compiler, decompiler, java-bytecode, javascript, jvm-bytecode, kotlin, llvm, llvm-frontend, opencl, transpiler, webassembly
- Language: Java
- Homepage: https://www.mirkosertic.de/blog/2017/06/compiling-bytecode-to-javascript/
- Size: 2.21 GB
- Stars: 897
- Watchers: 25
- Forks: 58
- Open Issues: 33
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://github.com/mirkosertic/Bytecoder/workflows/Build%20Workflow/badge.svg) [![Maven Central](https://maven-badges.herokuapp.com/maven-central/de.mirkosertic.bytecoder/bytecoder-parent/badge.svg)](https://maven-badges.herokuapp.com/maven-central/de.mirkosertic.bytecoder/bytecoder-parent/badge.svg)
## High Level Goals
* 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## Compiling strategies
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.## User Manual
The Bytecoder User Manual and a full set of example applications is available [here](https://mirkosertic.github.io/Bytecoder/).