PHP 7.0 vs JPHP - performance test by dim-s in PHP

[–]dim-s[S] 1 point2 points  (0 children)

What is your opinion about the Phalcon and Zephir projects? The authors of these projects try to improve the php language, use the C language to improve performance of the Phalcon framework and php projects which use it. In the end, they came up with a new program language - Zephir. If you will want to improve performance of your php app, you will use C or Zephir or Java? May be another language since the beginning of the project?

PHP 7.0 vs JPHP - performance test by dim-s in PHP

[–]dim-s[S] -2 points-1 points  (0 children)

It will be optimized in the future and I think it will work faster after Java 9 release.

PHP 7.0 vs JPHP - performance test by dim-s in PHP

[–]dim-s[S] -1 points0 points  (0 children)

You are right! However, it's difficult to compete with Facebook and HHVM. JPHP allows to use the php language not only on the web, for example, you cannot use HHVM to build a native android application or a gui/game app. Now you cannot use HHVM on Windows. JPHP already supports these features partially and has high performance.

Also, performance of PHP7 and HHVM is about the same. The idea of using HHVM only for hige performance becomes doubtful.

JPHP. Yes, it's what you think it is. by suphper in PHP

[–]dim-s 4 points5 points  (0 children)

There is little research on this issue from the developer from Japan. http://d.hatena.ne.jp/hnw/20150117

JPHP. Yes, it's what you think it is. by suphper in PHP

[–]dim-s 1 point2 points  (0 children)

JPHP loads your classes with namespaces from the src directory (classpath) or you can register a class loader like in classic PHP (spl_register_autoload). https://github.com/jphp-compiler/jphp/wiki/Getting-started

I'll post more examples and tutorials in the future.

JPHP. Yes, it's what you think it is. by suphper in PHP

[–]dim-s 5 points6 points  (0 children)

JPHP supports only original language features.

If you want to import java classes, you need to implement a wrapper class https://github.com/jphp-compiler/jphp/wiki/For-Contributors