cvs: presentations / php-ticks.xml /slides/internals apache-module.xml cgi.xml compile.png compile.xml dump1.png example-byref-2.xml
example-byref-3.xml example-byref-4.xml example-byref.xml execute.png execute1.xml execute3.xml how_ccache_serialize.xml intro2.xml lex.xml opcode.xml
opcode2.xml parse_error.xml serialize.png tokenize.png tokenizer1.xml tokenizer2.xml vld-example.xml vld2.xml /slides/perf accelerators.xml

From: Date: Mon, 12 Sep 2005 19:46:13 +0000
Subject: cvs: presentations / php-ticks.xml /slides/internals apache-module.xml cgi.xml compile.png compile.xml dump1.png example-byref-2.xml
example-byref-3.xml example-byref-4.xml example-byref.xml execute.png execute1.xml execute3.xml how_ccache_serialize.xml intro2.xml lex.xml opcode.xml
opcode2.xml parse_error.xml serialize.png tokenize.png tokenizer1.xml tokenizer2.xml vld-example.xml vld2.xml /slides/perf accelerators.xml
Groups: php.pres 
Request: Send a blank email to pres+get-1186@lists.php.net to get a copy of this message
derick Mon Sep 12 15:46:13 2005 EDT Added files: /presentations/slides/internals example-byref-2.xml example-byref-3.xml example-byref-4.xml example-byref.xml how_ccache_serialize.xml intro2.xml serialize.png Modified files: /presentations php-ticks.xml /presentations/slides/internals apache-module.xml cgi.xml compile.png compile.xml dump1.png execute.png execute1.xml execute3.xml lex.xml opcode.xml opcode2.xml parse_error.xml tokenize.png tokenizer1.xml tokenizer2.xml vld-example.xml vld2.xml /presentations/slides/perf accelerators.xml Log: - Updated internals talk.

http://cvs.php.net/diff.php/presentations/php-ticks.xml?r1=1.1&r2=1.2&ty=u Index: presentations/php-ticks.xml diff -u presentations/php-ticks.xml:1.1 presentations/php-ticks.xml:1.2 --- presentations/php-ticks.xml:1.1 Fri Sep 9 11:04:35 2005 +++ presentations/php-ticks.xml Mon Sep 12 15:46:08 2005 @@ -18,8 +18,7 @@ <url>http://derickrethans.nl/talks.php</url> <slide>slides/internals/title.xml</slide> -<slide>slides/internals/intro.xml</slide> -<slide>slides/internals/clearness.xml</slide> +<slide>slides/internals/intro2.xml</slide> <slide>slides/internals/apache-module.xml</slide> <slide>slides/internals/cgi.xml</slide> @@ -45,6 +44,7 @@ <!-- CACHES --> <slide>slides/perf/how_ccache.xml</slide> +<slide>slides/internals/how_ccache_serialize.xml</slide> <slide>slides/perf/accelerators.xml</slide> <!-- Accelerators --> <!-- VARIABLES --> @@ -59,5 +59,11 @@ <slide>slides/internals/variables9.xml</slide> <slide>slides/internals/variables10.xml</slide> +<!-- BY REF EXAMPLE --> +<slide>slides/internals/example-byref.xml</slide> +<slide>slides/internals/example-byref-2.xml</slide> +<slide>slides/internals/example-byref-3.xml</slide> +<slide>slides/internals/example-byref-4.xml</slide> + <slide>slides/internals/resources.xml</slide> </presentation> http://cvs.php.net/diff.php/presentations/slides/internals/apache-module.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/internals/apache-module.xml diff -u presentations/slides/internals/apache-module.xml:1.1 presentations/slides/internals/apache-module.xml:1.2 --- presentations/slides/internals/apache-module.xml:1.1 Tue Oct 28 04:51:25 2003 +++ presentations/slides/internals/apache-module.xml Mon Sep 12 15:46:11 2005 @@ -2,24 +2,25 @@ <slide fontsize="6em"> <title>Input: Apache module</title> - <break /> - <list fontsize="4.5em"> - <bullet>PHP registers handlers for:</bullet> - <bullet marginleft="1.5em" fontsize="2.5em">Mime types:</bullet> - <bullet marginleft="4em" fontsize="2em">%application/x-httpd-php%</bullet> - <bullet marginleft="4em" fontsize="2em">%application/x-httpd-php-source%</bullet> - - <bullet marginleft="1.5em" fontsize="2.5em">Others:</bullet> - <bullet marginleft="4em" fontsize="2em">%text/html% (Apache xbithack)</bullet> - <bullet marginleft="4em" fontsize="2em">%php-script% (Apache 2)</bullet> + <blurb>PHP registers handlers for:</blurb> + <blurb>Mime types:</blurb> + <list> + <bullet>%application/x-httpd-php%</bullet> + <bullet>%application/x-httpd-php-source%</bullet> + </list> + <blurb>Others:</blurb> + <list> + <bullet>%text/html% (Apache xbithack)</bullet> + <bullet>%php-script% (Apache 2)</bullet> </list> - <list fontsize="4.5em"> - <bullet>On a request, Apache:</bullet> - <bullet marginleft="1.5em" fontsize="2.5em">checks if there is a handler for the mime type</bullet> - <bullet marginleft="1.5em" fontsize="2.5em">opens the file</bullet> - <bullet marginleft="1.5em" fontsize="2.5em">fills a meta data record</bullet> - <bullet marginleft="1.5em" fontsize="2.5em">hands PHP a filepointer</bullet> + + <blurb>On a request, Apache:</blurb> + <list> + <bullet>checks for the MIME type handler</bullet> + <bullet>opens the file</bullet> + <bullet>fills a meta data record</bullet> + <bullet>hands PHP a filepointer</bullet> </list> </slide> http://cvs.php.net/diff.php/presentations/slides/internals/cgi.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/internals/cgi.xml diff -u presentations/slides/internals/cgi.xml:1.1 presentations/slides/internals/cgi.xml:1.2 --- presentations/slides/internals/cgi.xml:1.1 Tue Oct 28 04:51:25 2003 +++ presentations/slides/internals/cgi.xml Mon Sep 12 15:46:11 2005 @@ -2,20 +2,18 @@ <slide fontsize="6em"> <title>Input: Apache/CGI</title> - <break /> - <list fontsize="4.5em"> - <bullet>CGI binary is linked to mime-type:</bullet> - </list> - <break /> + <blurb>CGI binary is linked to mime-type:</blurb> +<break /> + <example><![CDATA[ScriptAlias /php/ /usr/local/bin/php-cgi AddType application/x-httpd-php .php Action application/x-httpd-php "/php/php.exe"]]></example> - <break /> +<break /> - <list fontsize="4.5em"> - <bullet>On a request, Apache:</bullet> - <bullet marginleft="1.5em" fontsize="2.5em">checks if there is a handler for the mime type</bullet> - <bullet marginleft="1.5em" fontsize="2.5em">fills in needed environment variables</bullet> - <bullet marginleft="1.5em" fontsize="2.5em">executes the CGI processor</bullet> + <blurb>On a request, Apache:</blurb> + <list> + <bullet>checks if there is a handler for the mime type</bullet> + <bullet>fills in needed environment variables</bullet> + <bullet>executes the CGI processor</bullet> </list> </slide> http://cvs.php.net/diff.php/presentations/slides/internals/compile.png?r1=1.1&r2=1.2&ty=u Index: presentations/slides/internals/compile.png http://cvs.php.net/diff.php/presentations/slides/internals/compile.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/internals/compile.xml diff -u presentations/slides/internals/compile.xml:1.1 presentations/slides/internals/compile.xml:1.2 --- presentations/slides/internals/compile.xml:1.1 Tue Oct 28 04:51:25 2003 +++ presentations/slides/internals/compile.xml Mon Sep 12 15:46:11 2005 @@ -2,14 +2,9 @@ <slide fontsize="6em"> <title>Compiling</title> - <break lines="7"/> <list fontsize="5em"> <bullet>Interpreting tokens</bullet> - </list> - <list fontsize="5em"> <bullet>Generating execution units</bullet> - </list> - <list fontsize="5em"> <bullet>Generating class and function tables</bullet> </list> http://cvs.php.net/diff.php/presentations/slides/internals/dump1.png?r1=1.1&r2=1.2&ty=u Index: presentations/slides/internals/dump1.png http://cvs.php.net/diff.php/presentations/slides/internals/execute.png?r1=1.1&r2=1.2&ty=u Index: presentations/slides/internals/execute.png http://cvs.php.net/diff.php/presentations/slides/internals/execute1.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/internals/execute1.xml diff -u presentations/slides/internals/execute1.xml:1.1 presentations/slides/internals/execute1.xml:1.2 --- presentations/slides/internals/execute1.xml:1.1 Tue Oct 28 04:51:25 2003 +++ presentations/slides/internals/execute1.xml Mon Sep 12 15:46:11 2005 @@ -2,17 +2,9 @@ <slide fontsize="6em"> <title>Executing</title> - <blurb> </blurb> - <blurb> </blurb> - <blurb> </blurb> - <blurb> </blurb> <list fontsize="5em"> <bullet>Executor executes opcodes</bullet> - </list> - <list fontsize="5em"> <bullet>116 or 140 different opcodes</bullet> - </list> - <list fontsize="5em"> <bullet>Per file execution</bullet> </list> </slide> http://cvs.php.net/diff.php/presentations/slides/internals/execute3.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/internals/execute3.xml diff -u presentations/slides/internals/execute3.xml:1.1 presentations/slides/internals/execute3.xml:1.2 --- presentations/slides/internals/execute3.xml:1.1 Tue Oct 28 04:51:25 2003 +++ presentations/slides/internals/execute3.xml Mon Sep 12 15:46:11 2005 @@ -2,18 +2,17 @@ <slide fontsize="6em"> <title>Executing: Example (1)</title> - <blurb> </blurb> <blurb>test.inc:</blurb> <example fontsize="1.7em"><![CDATA[<?php function foo () { echo "bar\n"; } echo "inc\n"; -? > +?> ]]></example> +<break lines="2"/> - <blurb> </blurb> - <blurb>test.php</blurb> + <blurb>test.php:</blurb> <example fontsize="1.7em"><![CDATA[<?php echo "foo\n"; include "test.inc"; http://cvs.php.net/diff.php/presentations/slides/internals/lex.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/internals/lex.xml diff -u presentations/slides/internals/lex.xml:1.1 presentations/slides/internals/lex.xml:1.2 --- presentations/slides/internals/lex.xml:1.1 Tue Oct 28 04:51:25 2003 +++ presentations/slides/internals/lex.xml Mon Sep 12 15:46:11 2005 @@ -2,8 +2,7 @@ <slide fontsize="6em"> <title>Parsing: Tokenize</title> - <break lines="4"/> - <image align="center" filename="tokenize.png"/> - <break lines="2"/> - <blurb align="center" fontsize="6em">Syntax highlighting = Tokenizing</blurb> + <blurb>Syntax highlighting = Tokenizing</blurb> +<break lines="3"/> + <image filename="tokenize.png"/> </slide> http://cvs.php.net/diff.php/presentations/slides/internals/opcode.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/internals/opcode.xml diff -u presentations/slides/internals/opcode.xml:1.1 presentations/slides/internals/opcode.xml:1.2 --- presentations/slides/internals/opcode.xml:1.1 Tue Oct 28 04:51:25 2003 +++ presentations/slides/internals/opcode.xml Mon Sep 12 15:46:11 2005 @@ -2,20 +2,13 @@ <slide fontsize="6em"> <title>Compiling: Oparrays</title> - <blurb> </blurb> - <blurb> </blurb> - <list fontsize="5em"> - <bullet>Oparrays</bullet> - </list> + <blurb>Oparrays</blurb> <list fontsize="4em" marginleft="2em"> <bullet>Compiled code</bullet> <bullet>One for every script element</bullet> </list> - <blurb> </blurb> - <list fontsize="5em"> - <bullet>Opcode</bullet> - </list> + <blurb>Opcode</blurb> <list fontsize="4em" marginleft="2em"> <bullet>Basic execution unit</bullet> <bullet>Two operands</bullet> http://cvs.php.net/diff.php/presentations/slides/internals/opcode2.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/internals/opcode2.xml diff -u presentations/slides/internals/opcode2.xml:1.1 presentations/slides/internals/opcode2.xml:1.2 --- presentations/slides/internals/opcode2.xml:1.1 Tue Oct 28 04:51:25 2003 +++ presentations/slides/internals/opcode2.xml Mon Sep 12 15:46:11 2005 @@ -2,7 +2,5 @@ <slide fontsize="6em"> <title>Compiling: Diagram</title> - <break lines="4"/> <image align="center" filename="compile.png"/> - <break lines="2"/> </slide> http://cvs.php.net/diff.php/presentations/slides/internals/parse_error.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/internals/parse_error.xml diff -u presentations/slides/internals/parse_error.xml:1.1 presentations/slides/internals/parse_error.xml:1.2 --- presentations/slides/internals/parse_error.xml:1.1 Tue Oct 28 04:51:25 2003 +++ presentations/slides/internals/parse_error.xml Mon Sep 12 15:46:11 2005 @@ -8,14 +8,10 @@ <bullet>Lexical analyze script source</bullet> <bullet>Divide into logical blocks of characters</bullet> <bullet>Give special blocks a meaning</bullet> - <bullet>%flex%</bullet> + <bullet>%flex% (but only 2.5.4!)</bullet> </list> - <blurb> </blurb> - <blurb> </blurb> - <blurb> </blurb> - - <blurb>Our friend Mr Parse Error: </blurb> + <blurb>The Parse Error: </blurb> <example><![CDATA[Parse error: parse error, unexpected T_CLASS, expecting ',' or ';' in - on line 2 http://cvs.php.net/diff.php/presentations/slides/internals/tokenize.png?r1=1.1&r2=1.2&ty=u Index: presentations/slides/internals/tokenize.png http://cvs.php.net/diff.php/presentations/slides/internals/tokenizer1.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/internals/tokenizer1.xml diff -u presentations/slides/internals/tokenizer1.xml:1.1 presentations/slides/internals/tokenizer1.xml:1.2 --- presentations/slides/internals/tokenizer1.xml:1.1 Tue Oct 28 04:51:25 2003 +++ presentations/slides/internals/tokenizer1.xml Mon Sep 12 15:46:11 2005 @@ -2,14 +2,16 @@ <slide fontsize="6em"> <title>Parsing: Example (1)</title> - <blurb fontsize="4em">Tokenizer extension:</blurb> + <blurb>Tokenizer extension:</blurb> +<break/> <blurb>magic.php:</blurb> <example fontsize="1.7em"><![CDATA[<?php function apply_magic(&$a) { $a = $a + rand(0,3); } -? >]]></example> +?>]]></example> +<break/> <blurb>tokenize.php:</blurb> <example fontsize="1.7em"><![CDATA[<?php @@ -20,6 +22,6 @@ printf ("%-25s [%s]\n", "", $token[0]); } } -? >]]></example> +?>]]></example> </slide> http://cvs.php.net/diff.php/presentations/slides/internals/tokenizer2.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/internals/tokenizer2.xml diff -u presentations/slides/internals/tokenizer2.xml:1.1 presentations/slides/internals/tokenizer2.xml:1.2 --- presentations/slides/internals/tokenizer2.xml:1.1 Tue Oct 28 04:51:25 2003 +++ presentations/slides/internals/tokenizer2.xml Mon Sep 12 15:46:11 2005 @@ -6,7 +6,7 @@ function apply_magic(&$a) { $a = $a + rand(0,3); } -? >]]></example> +?>]]></example> <example type="text" fontsize="1.1em"><![CDATA[T_OPEN_TAG [<?php\n] T_WHITESPACE [ ] http://cvs.php.net/diff.php/presentations/slides/internals/vld-example.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/internals/vld-example.xml diff -u presentations/slides/internals/vld-example.xml:1.1 presentations/slides/internals/vld-example.xml:1.2 --- presentations/slides/internals/vld-example.xml:1.1 Tue Oct 28 04:51:25 2003 +++ presentations/slides/internals/vld-example.xml Mon Sep 12 15:46:11 2005 @@ -27,5 +27,5 @@ } echo fibonacci($argv[1])."\n"; -? >]]></example> +?>]]></example> </slide> http://cvs.php.net/diff.php/presentations/slides/internals/vld2.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/internals/vld2.xml diff -u presentations/slides/internals/vld2.xml:1.1 presentations/slides/internals/vld2.xml:1.2 --- presentations/slides/internals/vld2.xml:1.1 Tue Oct 28 04:51:25 2003 +++ presentations/slides/internals/vld2.xml Mon Sep 12 15:46:11 2005 @@ -2,14 +2,18 @@ <slide fontsize="6em"> <title>Compiling: Disassembler</title> - <break lines="8"/> - <list fontsize="5em"> - <bullet>Disassembler: vld</bullet> - <bullet>Dumps oparray per element:</bullet> - </list> + <blurb>Disassembler: vld</blurb> + <blurb>Dumps oparray per element:</blurb> <list marginleft="3em" fontsize="4em"> <bullet>main script</bullet> <bullet>function</bullet> <bullet>class method</bullet> </list> +<break/> + <blurb>Usage:</blurb> + <example><![CDATA[wget wget http://pecl.php.net/get/vld-0.8.0.tgz +tar -xvzf vld-0.8.0.tgz +cd vld-0.8.0 +phpize && make && make install +php -dextension=vld.so -dvld.active=1 script.php]]></example> </slide> http://cvs.php.net/diff.php/presentations/slides/perf/accelerators.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/perf/accelerators.xml diff -u presentations/slides/perf/accelerators.xml:1.1 presentations/slides/perf/accelerators.xml:1.2 --- presentations/slides/perf/accelerators.xml:1.1 Mon Sep 13 09:41:18 2004 +++ presentations/slides/perf/accelerators.xml Mon Sep 12 15:46:11 2005 @@ -3,12 +3,11 @@ <title>PHP Accelerators</title> <list> - <li>APC</li> - <li>Zend Performance Suite</li> - <li>Turck MM Cache</li> - <li>PHP Accelerator</li> + <li>*Zend Platform*: commercial</li> + <li>*Turck MM Cache*: abandonned</li> + <li>*eAcelerator*: seems struggeling, GPL</li> + <li>*PHP Accelerator*: updated, but not improved</li> + <li>*APC*: active development, PHP license</li> </list> - - <image marginleft='4em' filename='caches.png'/> </slide> http://cvs.php.net/co.php/presentations/slides/internals/example-byref-2.xml?r=1.1&p=1 Index: presentations/slides/internals/example-byref-2.xml +++ presentations/slides/internals/example-byref-2.xml <?xml version="1.0" encoding="utf-8"?> <slide fontsize="6em"> <title>By-Reference Example</title> <subtitle>Deux</subtitle> <example result="1"><![CDATA[<?php function get_filename_parts($file) { $extension = end(explode(".", $file)); $filename = substr($file, 0, -(strlen($extension)+1) ); return array($filename, $extension); } var_dump(get_filename_parts(__FILE__)); ?>]]></example> </slide> http://cvs.php.net/co.php/presentations/slides/internals/example-byref-3.xml?r=1.1&p=1 Index: presentations/slides/internals/example-byref-3.xml +++ presentations/slides/internals/example-byref-3.xml <?xml version="1.0" encoding="utf-8"?> <slide fontsize="6em"> <title>By-Reference Example</title> <subtitle>Three</subtitle> <example result="1"><![CDATA[<?php function &dosomething($a) { $b = false; return empty($a) ? $b: $a; } $a = 42; $foo =& dosomething($a); ?>]]></example> </slide> http://cvs.php.net/co.php/presentations/slides/internals/example-byref-4.xml?r=1.1&p=1 Index: presentations/slides/internals/example-byref-4.xml +++ presentations/slides/internals/example-byref-4.xml <?xml version="1.0" encoding="utf-8"?> <slide fontsize="6em"> <title>By-Reference Example</title> <subtitle>Fire</subtitle> <example result="1"><![CDATA[<?php $x = current(explode(' ','a b')); echo $x; ?>]]></example> </slide> http://cvs.php.net/co.php/presentations/slides/internals/example-byref.xml?r=1.1&p=1 Index: presentations/slides/internals/example-byref.xml +++ presentations/slides/internals/example-byref.xml <?xml version="1.0" encoding="iso-8859-1"?> <slide fontsize="6em"> <title>By-Reference Example</title> <subtitle>Éen</subtitle> <example result="1"><![CDATA[<?php $var="pippo"; function printme(&$var) { echo "{$var}\n"; } printme(serialize($var)); ?>]]></example> </slide> http://cvs.php.net/co.php/presentations/slides/internals/how_ccache_serialize.xml?r=1.1&p=1 Index: presentations/slides/internals/how_ccache_serialize.xml +++ presentations/slides/internals/how_ccache_serialize.xml <slide> <title>Compiler Caches</title> <subtitle>Serialization</subtitle> <image align="center" filename="serialize.png"/> <break lines="3"/> <list> <bullet>Serialization into SHM</bullet> <bullet>Direct execution from SHM (mostly)</bullet> </list> </slide> http://cvs.php.net/co.php/presentations/slides/internals/intro2.xml?r=1.1&p=1 Index: presentations/slides/internals/intro2.xml +++ presentations/slides/internals/intro2.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Introduction</title> <image align="center" filename="clearness.png"/> </slide>
« previous php.pres (#1186) next »