Skip to content

Java Virtual Machine written in Typescript and executed with BunJS

Notifications You must be signed in to change notification settings

Fabccc/LeTrollVM

Repository files navigation

LeTrollVM

Java Virtual Machine written in Typescript and executed with BunJS.

Roadmap

  • Printing
  • Arithmetic
  • Polymorphism
  • JDK base classes (auto-Boxing)
    • Number
      • Integer
      • Float
      • Long
      • Double
    • Collections
      • ArrayList
      • HashMap
      • HashSet
      • LinkedList
    • String manipulation
      • StringBuilder
      • StringBuffer
  • Multithreading
    • Thread
    • Atomics
      • AtomicInteger

Requirements

  • JDK >= 19.0.2
    • javac
    • javap

Installation

bun install
./build_class.sh

Tests:

bun test
bun run index.ts <ClassName>

Resources

Java doc

https://docs.oracle.com/en/java/javase/19/docs/api/index.html

Java specs (for bytecode interpretation)

https://docs.oracle.com/javase/specs/jvms/se19/html/jvms-4.html https://docs.oracle.com/javase/specs/jvms/se19/html/jvms-5.html https://docs.oracle.com/javase/specs/jvms/se19/html/jvms-6.html

About

Java Virtual Machine written in Typescript and executed with BunJS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published