Zephir

Zephir是一门新语言:http://www.zephir-lang.com/

Welcome to Zephir, an open source, high-level/domain specific language designed to ease the creation and maintainability of extensions for PHP with a focus on type and memory safety.

概要地讲,Zephir是专门用来写PHP扩展的一门语言,所以算是DSL(Domain Specific Language)。

因为PHP扩展通常是用C来写,而Zephir简单地讲是:把Zephir语句转化为C代码,然后用C编译器来编译成PHP扩展。

Phalcon( https://phalconphp.com  ) 从2.0开始,就用Zephir作为主要实现语言。也可以说,Zephir是Phalcon的副产品。

在我了解了Zephir以后,产生了一个想法:用Zephir把ThinkPHP实现出来。

1、这个算是突发奇想,如果你也对此同样感兴趣,欢迎和我联系、交流( QQ:1569352868 )。

2、ThinkPHP在国内应用相当广,也经常有人抱怨其性能稍差(虽然不全是ThinkPHP的原因)。如果能用Zephir把ThinkPHP重新实现一遍,那么现有的很多程序就能享受性能大幅度提高的好处了。

3、这还是个想法,有很多的知识需要我学习,最终未必能完成,也是我一贯的原则:Just for fun !

你可能感兴趣的:(Zephir)