fatfree as a php extension

83 views
Skip to first unread message

Farhad Sakhaei

unread,
Dec 26, 2016, 2:37:22 AM12/26/16
to Fat-Free Framework
Hi,

What do you think if we make fat-free as a PHP extension?
I am sure it will get much more performance as a PHP extension,

I know which we can make it using http://hhvm.com or https://zephir-lang.com/

There is a Micro-framework which it uses Zephir for it's compilation , It compared some frameworks,
But I believe fat-free will get much performance than others if it be as a PHP extension,
And also Fat-Free is very easy to use and flexible

It's time to make PHP extension frameworks for these days, look another here: http://yafdev.com/
It's a core PHP framework as an extension developed by a core PHP developer

What do you think?

ved

unread,
Dec 26, 2016, 3:27:11 PM12/26/16
to f3-fra...@googlegroups.com
My $0.02

What do you think if we make fat-free as a PHP extension?

Usually I would say something like "fork away" to something like this, but from what I read, this would require a full rewrite of the framework functionality in C?

 
I am sure it will get much more performance as a PHP extension,

I'm not sure the speed advantages would compensate, for example, the lost community involvement since it would then be a C extension (with all it entails, compilation, installation, packaging, etc?) instead of plain php code.
Also, the requirement to have a php extension installed would greatly reduce the possibility of using F3 across a lot of shared hosts.Would developers need to compile their own extension? Apt and Yum repos? pecl install? Can we use composer update? etc etc.
 

It's time to make PHP extension frameworks for these days, look another here: http://yafdev.com/
It's a core PHP framework as an extension developed by a core PHP developer

What do you think?

I actually think the opposite, with hhvm, php7+, and dirt cheap computing price these days, i think creating native extensions is much more of a niche thing than an actual overall necessity. Unless you're dealing with massive workloads or trying to squeeze every last cpu cycle it would be more cost effective to get an extra/upgraded server than put another piece of tech/language into your stack. (imho).

Still, if you or anyone wish to implement the F3 api in a native extension I'll surely give it a try since I usually run my own hosts and could install any needed extensions and it should definitely be faster.

Farhad Sakhaei

unread,
Dec 26, 2016, 3:47:59 PM12/26/16
to Fat-Free Framework


On Monday, December 26, 2016 at 11:57:11 PM UTC+3:30, ved wrote:

Usually I would say something like "fork away" to something like this, but from what I read, this would require a full rewrite of the framework functionality in C?

No, It can be PHP: Both HHVM and Zephir
 

 
I am sure it will get much more performance as a PHP extension,

I'm not sure the speed advantages would compensate, for example, the lost community involvement since it would then be a C extension (with all it entails, compilation, installation, packaging, etc?) instead of plain php code.

As I said , It can be PHP , So community can continue participate in every where...
 
Also, the requirement to have a php extension installed would greatly reduce the possibility of using F3 across a lot of shared hosts.Would developers need to compile their own extension? Apt and Yum repos? pecl install? Can we use composer update? etc etc.

Yes, It is require to include a extension for PHP to use the compiled version, But everybody can use PHP version too... We don't ignore it !
Developers use core framework class as PHP extension and grow their own extension as PHP...

I actually think the opposite, with hhvm, php7+, and dirt cheap computing price these days, i think creating native extensions is much more of a niche thing than an actual overall necessity. Unless you're dealing with massive workloads or trying to squeeze every last cpu cycle it would be more cost effective to get an extra/upgraded server than put another piece of tech/language into your stack. (imho).

We have a micro framework, I think it doesn't take much much time to compatible Fat-Free as a PHP extension
 
Still, if you or anyone wish to implement the F3 api in a native extension I'll surely give it a try since I usually run my own hosts and could install any needed extensions and it should definitely be faster.

Sure...
I like to hear from other members too... 

bcosca

unread,
Dec 26, 2016, 8:40:18 PM12/26/16
to Fat-Free Framework
For completeness of discussion, I suggest you read: https://kinsta.com/blog/hhvm-vs-php-7/

Farhad Sakhaei

unread,
Dec 26, 2016, 11:17:03 PM12/26/16
to Fat-Free Framework
Short and Great Point ! Thank you Bong

Anatol

unread,
Jan 3, 2017, 5:18:26 AM1/3/17
to Fat-Free Framework
I´m still more than happy with the boost of PHP7, further I´m happy installing as little as possible extra stuff on
my servers. In other words I can live without it ;)
Reply all
Reply to author
Forward
0 new messages