Metrics
0
Watch 3 Star 19 Fork 3

CRM8000 / RustPHPRustGPL-3.0

Sign up for free
Explore and code with more than 2 million developers,Free private repositories !:)
Sign up
用Rust语言重写PHP虚拟机 spread retract

Clone or download
Loading...
README.md

RustPHP

介绍

用Rust实现PHP虚拟机

背景资料参见:https://my.oschina.net/u/134395/blog/3051135

技术架构

  1. parser: lalrpop - https://github.com/lalrpop/lalrpop

  2. JIT: CraneStation - https://github.com/CraneStation/cranelift

  3. GC - https://github.com/kyren/gc-arena

参考资料

  1. lua - https://github.com/kyren/luster

  2. RustPython - https://github.com/RustPython/RustPython

开发环境

64位Win7 / 64位Linux

  1. 编译 - cargo build
  1. 考虑到国内网络,请设置好crate镜像,参见:https://lug.ustc.edu.cn/wiki/mirrors/help/rust-crates

  2. 需要先安装python 3,并在命令行上可访问

  1. 运行demo - cargo run demo.php

QQ技术交流群

544160222

Help Search