Hey everyone, that enthusiastic PHP dude talking right here :)It happened, and it is extremely amazing! First, a picture for all of you to look at...
--
You received this message because you are subscribed to the Google Groups "appjs-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to appjs-dev+...@googlegroups.com.
To post to this group, send email to appj...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
And now the explanation.What you are seeing there, is the output of a PHP backend into the browser. No, it is not a nodejs+router trick, it is PURE PHP. There is no extra trickery or anything :).The PHP used to make this possible is being driven by the pthreads extension, so we have a multithreading PHP. That way, we have one thread for the Browser execution, and another for the webserver. The main thread belongs to the running script, including the main sript that is supplied via the .desk file.Currently I am always just returning a dump of $_SERVER. However, that is going to be changed ASAP. I will be implementing a full webserver that way and have it act just like you are used to from nodejs and such - with the difference that this is PHP.The main script can add/remove event listeners that are fired off when a message thru the remote debug protocol comes in. Like:Event::on("CSS.styleSheetAdded", function($params){echo "A new style was added. Src: ".$params->href."\n";});Whenever the browser sends the named event, this callback will be executed.The next steps- Providing an API to interact with the Remote Debugging Protocol.- A Windows port. I am sure Simon is going to litterally jump on this :)For the windows port, we need to have pthreads and curl extension.For this, libcurl and pthreads are required to be installed on the OS.Download the libraries, compile them. Then do the following, assuming you downloaded a copy of PHP 5.5.3 like I did:$ cd php-5.5.3/ext$ git clone https://github.com/krakjoe/pthreads$ cd ../$ rm configure$ ./buildconf --force$ ./configure --enable-maintainer-zts --with-curl --enable-pthreads --enable-sockets$ make$ make installPlease note, I never built on windows, its your task to adopt these UNIX instructions :)- Finally developing the appIO extension in PHP and JavaScript to provide an layer above the rDebug protocol to do more crazy stuff - mainly to simulate the old "v8 bridge" ;)A stable release will come out soon... ^^Another todo- Modifying the Chromium .xib files on Mac OS to ensure that the end-user will not have all the controll we'd like to give him. :)Regards, IngwiePS. Now that this is done, and the webserver is soon going to be completed, we will have a port of drag0n soon :)