Cheers, Cliff/Bruce.
The interwebs is certainly a-buzz with Hip-Hop. This article just delivered
to me:
"if it is so great and it works, I'll deploy it on my servers as soon as I
can get my hands on the source code. Well, unfortunately things are not
quite so simple"
http://ilia.ws/archives/213-My-Thoughts-on-HipHop.html
Aaron
----- Original Message -----
From: "Cliff Black" <[email protected]>
To: <[email protected]>
Sent: Wednesday, February 03, 2010 2:08 PM
Subject: RE: [phpug] hiphop php to c++
It's very much an ASP.NET/IIS approach (which is a good one) by the looks.
IIS/.NET will compile a ASP.NET page on the fly the first time it's
navigated to by an end user, and then draw on the compiled file from there
on.
You can also pre-compile to avoid IIS doing the initial compilation
therefore increasing the speed of the site from the get-go (handy if you
have hundreds of pages).
Pre compilation also provides a more secure method of distribution of your
code - as it's precompiled, it can't be modified/altered etc without your
permission.
Will be interesting to see how HipHop PHP is implemented - if it's anything
like the .NET implementation, it'll be highly sought after by a number of
larger companies (and small ones too!).
If it requires little or no adjustment to present code, it'll take off like
a rocket!
~C
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf
Of Bruce Clement
Sent: Wednesday, 3 February 2010 2:02 p.m.
To: [email protected]
Subject: Re: [phpug] hiphop php to c++
I haven't studied the details of this implementation, but they
generally work something like this.
(Apache is only being used as an example, this could be a different
web server, the details would change, but the principle remains the
same)
In normal use Apache has a module that detects the .php extension and
passes execution to the php interpreter.
With a scheme like this Apache would pass control to compiled version
of the page instead.
This could be global (for all .php on the machine) or could be managed
through mod rewrite or similar.
Depending on the implementation, the compiled version could be an
Apache module loaded with Apache or could be an external executable
that Apache launches on demand.
Bruce
On 3 February 2010 13:54, Aaron Cooper <[email protected]> wrote:
I get the concept, I follow the benefits, but I can't quite get my head
around the usage of this.
I understand fully what Roadsend is for, but how does this apply to PHP
pages serving XHTML to a browser?
For instance, where does www.facebook.com/home.php fit into all this? Or
any
public front-facing application page for that matter?
----- Original Message ----- From: "Bruce Clement"
<[email protected]>
To: <[email protected]>
Sent: Wednesday, February 03, 2010 1:35 PM
Subject: Re: [phpug] hiphop php to c++
On 3 February 2010 13:24, Sid Bachtiar <[email protected]> wrote:
...
to lower level codes. I guess I should have said anything that is
comparable to what Facebook is doing with HipHop.
Well, having RTFA (Original facebook blog), I hope I won't lose too
many geek points by quoting it "Even compiling PHP isn't a new idea,
open source projects like Roadsend and phc compile PHP to C, Quercus
compiles PHP to Java, and Phalanger compiles PHP to .Net."
--
Bruce Clement
When a co-worker said he didn't want his kids getting the H1N1 vaccine
because it was too new and "they haven't tested it enough", I blurted
out something like, "So you'd rather test a new and poorly understood
virus on them instead?"
I'm not entirely proud of fighting vague and irrational fear of the
unknown by invoking vague and irrational fear of the unknown, but I
think it did make an impression.
Petréa Mitchell
--
NZ PHP Users Group: http://groups.google.com/group/nzphpug
To post, send email to [email protected]
To unsubscribe, send email to
[email protected]
--
NZ PHP Users Group: http://groups.google.com/group/nzphpug
To post, send email to [email protected]
To unsubscribe, send email to
[email protected]
--
Bruce Clement
When a co-worker said he didn't want his kids getting the H1N1 vaccine
because it was too new and "they haven't tested it enough", I blurted
out something like, "So you'd rather test a new and poorly understood
virus on them instead?"
I'm not entirely proud of fighting vague and irrational fear of the
unknown by invoking vague and irrational fear of the unknown, but I
think it did make an impression.
Petréa Mitchell
--
NZ PHP Users Group: http://groups.google.com/group/nzphpug
To post, send email to [email protected]
To unsubscribe, send email to
[email protected]
--
NZ PHP Users Group: http://groups.google.com/group/nzphpug
To post, send email to [email protected]
To unsubscribe, send email to
[email protected]
--
NZ PHP Users Group: http://groups.google.com/group/nzphpug
To post, send email to [email protected]
To unsubscribe, send email to
[email protected]