bf
Maker
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
bf
-
Resources for generating and execution JVM bytecode
I also used ProGuardCORE in a Brainfuck compiler that generates bytecode/classfiles in a jar: https://github.com/mrjameshamilton/bf/blob/master/src/main/kotlin/eu/jameshamilton/bf/backend/jvm/JvmCodeGenerator.kt
- Show HN: A Brainfuck compiler with JVM, C, smali, LLVM IR back ends
-
Show HN: I spent my vacation writing a modern JVM assembler
Something else that could make your code generation for your JVM language easier: ProGuardCORE (https://github.com/Guardsquare/proguard-core). It can be used to read, generate and analyse Java bytecode.
Some examples for code generation: ProGuard where the project originated (https://github.com/Guardsquare/proguard), Brainf*ck compiler (https://github.com/mrjameshamilton/bf), Lox compiler (https://github.com/mrjameshamilton/klox)
Disclaimer: I work at Guardsquare on ProGuardCORE so may be biased ;)
Maker
-
Any news on the Classfile API?
If you want an alternative to ASM, try Cojen/Maker, which is designed to be much easier to use than any of the other class writing APIs, including the one proposed by JEP-8280389. Here's a comparison.
-
Jdk.Classfile Javadoc (in-development)
That's a lot right arrow operators just to implement a simple Hello World program (5). I can't even begin to imagine how difficult it might be to generate anything more interesting than this. Here's a comparison against a classfile API which is designed to be easy to use: https://github.com/cojen/Maker/wiki/JEP-8280389
- JEP draft: Classfile API
-
Show HN: I spent my vacation writing a modern JVM assembler
For the code generation phase, it might be easier to bypass emitting a text-based assembly format and just use the ASM library directly. If you want something easier, I wrote a code generation library specifically for that purpose: https://github.com/cojen/Maker It also includes an example "Mini-C" language compiler.
- Show HN: Cojen/Maker – lightweight Java class generator designed for ease of use
What are some alternatives?
kotlin-explorer - Desktop tool to quickly explore disassembled Kotlin code.
obfuscator - A java obfuscator (GUI)
proguard-core - Library to read, write, analyze, and process java bytecode
JavaParser - Java 1-17 Parser and Abstract Syntax Tree for Java with advanced analysis functionalities.
proguard-assembler - Assembler and disassembler for Java class files
proguard - ProGuard, Java optimizer and obfuscator
jdk-sandbox - JDK Committers Sandbox
sift - A CLI tool to analyze and reverse model software system designs from JVM bytecode.
Javassist - Java bytecode engineering toolkit
jssembly - Jssembly is a library that allows you to execute native assembly from Java.
golo-lang - Golo - a lightweight dynamic language for the JVM.