ZetaVM 特点:安装及基本使用: 介绍
ZetaVM 是动态编程语言的虚拟机和JIT编译器。 它实现了一个基本的核心运行时环境,其中编程动态语言可以用相对较少的精力实现。
特点:
-
支持动态打字
-
垃圾收集
-
JIT 编译
-
动态生长对象(类似 JS)
-
动态类型的数组(JS / Python 类)
-
64 位整数和浮点运算
-
不可变 UTF-8 字符串
-
基于文本的图像文件(类似 JSON)
-
能够暂停和恢复程序
-
图形和音频库
安装及基本使用:
# Clone this repository git clone [email protected]:maximecb/zetavm.git # Run the configure script and compile zetavm # Note: run configure with `--with-sdl2` to build graphics support cd zetavm ./configure make # Optionally run tests to check that everything works properly make test # To run programs, pass the path to a source file to zetavm, for example: ./zeta benchmarks/fib29.pls