All Projects → cyberaurora → Azeroth Vm

cyberaurora / Azeroth Vm

JVM written in Rust

Programming Languages

rust
11053 projects

Labels

Projects that are alternatives of or similar to Azeroth Vm

Arquillian Extension Drone
Arquillian Drone provides a simple way to write functional tests for web apps. Drone brings the power of WebDriver into the Arquillian, and the power of Arquillian to WebDriver.
Stars: ✭ 45 (-42.31%)
Mutual labels:  jvm
Understandingjvm
《深入理解Java虚拟机》读书笔记
Stars: ✭ 64 (-17.95%)
Mutual labels:  jvm
Hobbyscript
Yet Another JVM/LLVM Dynamic Language (LLVM Backend WIP)
Stars: ✭ 72 (-7.69%)
Mutual labels:  jvm
Staged Streams.scala
Stars: ✭ 55 (-29.49%)
Mutual labels:  jvm
Jstack Review
Javascript based JVM thread dump analyzer
Stars: ✭ 61 (-21.79%)
Mutual labels:  jvm
Byte Buddy Tutorial
“Byte Buddy Tutorial” 中文翻译:Byte Buddy 教程。
Stars: ✭ 67 (-14.1%)
Mutual labels:  jvm
J J Jvm
JVM bytecode interpreter written in Java
Stars: ✭ 40 (-48.72%)
Mutual labels:  jvm
Jdk
JDK main-line development
Stars: ✭ 11,764 (+14982.05%)
Mutual labels:  jvm
Ore
Repository software for Sponge plugins and Forge mods
Stars: ✭ 63 (-19.23%)
Mutual labels:  jvm
State Machine
🤖 A state machine library for Kotlin, with extensions for Android.
Stars: ✭ 72 (-7.69%)
Mutual labels:  jvm
Ea Async
EA Async implements async-await methods in the JVM.
Stars: ✭ 1,085 (+1291.03%)
Mutual labels:  jvm
Rjni
Run Java code from Rust!
Stars: ✭ 59 (-24.36%)
Mutual labels:  jvm
Onnx Scala
An ONNX (Open Neural Network eXchange) API and Backend for Typeful, Functional Deep Learning in Scala
Stars: ✭ 68 (-12.82%)
Mutual labels:  jvm
Graceful Shutdown Spring Boot
Graceful Shutdown with Spring Boot (Demo)
Stars: ✭ 51 (-34.62%)
Mutual labels:  jvm
Javacore
Java程序员所需要掌握的核心知识: 集合框架&JVM机制&多线程与并发框架&网络协议&Spring&Dubbo&MySQL&微服务等;希望胖友小手一抖,右上角来个 Star,感恩 1024
Stars: ✭ 73 (-6.41%)
Mutual labels:  jvm
Kotlin Boot Camp
kotlin course materials
Stars: ✭ 43 (-44.87%)
Mutual labels:  jvm
Capsule
Dead-Simple Packaging and Deployment for JVM Apps
Stars: ✭ 1,143 (+1365.38%)
Mutual labels:  jvm
Kotlin Inline Logger
A logger facilitating lazily-evaluated log calls via Kotlin's inline classes & functions.
Stars: ✭ 77 (-1.28%)
Mutual labels:  jvm
Avian
[INACTIVE] Avian is a lightweight virtual machine and class library designed to provide a useful subset of Java's features, suitable for building self-contained applications.
Stars: ✭ 1,188 (+1423.08%)
Mutual labels:  jvm
Gojvm
JVM implementation by Go
Stars: ✭ 69 (-11.54%)
Mutual labels:  jvm

AzerothVM

JNI is still working in progress, the code snippet below works just fine.

public class HelloWorld implements A {

    private int a;

    public void incr() {
        a = a + 1;
    }

    public void decr() {
        a = a - 1;
    }

    static int sum;

    static {
        sum = HelloRust.count;
        for (int i = 0; i < 5; i++) {
            sum += i;
        }
    }

    public static void main(String[] args) {
        HelloWorld s = new HelloWorld();
        s.incr();
        s.decr();
        A a = new HelloRust();
        a.decr();
        HelloRust.say(1, sum);
        int[] array = new int[10];
        int[][] _2darray = new int[10][];
        String[] sarray = new String[10];
        array[0] = 0xcafebabe;
        int tmp = array[0];
        String hello = "Hello, World.";
    }


    public static class HelloRust extends HelloWorld {

        static int count = 100;

        public void incr() {
        }

        public static int say(int i, int sum) {
            return i + sum;
        }
    }
}

interface A {

    void decr();
}

Compile and run

cargo build
export JAVA_HOME=${...}
cd java_test && javac *.java
../target/debug/java --classpath . HelloWorld
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].