# RustPHP **Repository Path**: wuwenxian/RustPHP ## Basic Information - **Project Name**: RustPHP - **Description**: 用Rust语言重写PHP虚拟机 - **Primary Language**: Rust - **License**: GPL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 4 - **Created**: 2019-07-18 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 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,并在命令行上可访问 2. 运行demo - cargo run demo.php #### QQ技术交流群 544160222