com presentations: Tweaks: slides/intro/autofilt1.xml slides/intro/php54_trip.xml slides/intro/php55. xml slides/intro/wwht2.xml
| From: | Rasmus Lerdorf | Date: | Fri, 08 Feb 2013 07:00:11 +0000 |
| Subject: | com presentations: Tweaks: slides/intro/autofilt1.xml slides/intro/php54_trip.xml slides/intro/php55. xml slides/intro/wwht2.xml | ||
| Groups: | php.pres | ||
| Request: | Send a blank email to pres+get-1868@lists.php.net to get a copy of this message | ||
Commit: fd428feb105e52a3cb3ef23c5fc66369a8478c18
Author: Rasmus Lerdorf <rasmus@php.net> Thu, 7 Feb 2013 23:00:11 -0800
Parents: c134dbb482b2e67d6ffbe3b2846250c3117cdc0b
Branches: master
Link: http://git.php.net/?p=presentations.git;a=commitdiff;h=fd428feb105e52a3cb3ef23c5fc66369a8478c18
Log:
Tweaks
Changed paths:
M slides/intro/autofilt1.xml
M slides/intro/php54_trip.xml
M slides/intro/php55.xml
M slides/intro/wwht2.xml
diff --git a/slides/intro/autofilt1.xml b/slides/intro/autofilt1.xml index cd6b9e2..d93850b 100644 --- a/slides/intro/autofilt1.xml +++ b/slides/intro/autofilt1.xml @@ -60,34 +60,34 @@ class MyParent { <image filename="autofilt3.png" width="842" height="222" align="center"/> <example title="opcodes for c2.php" fontsize="1.3em" type="shell"> -line # * op fetch ext return operands +line # * op fetch ext return operands --------------------------------------------------------------------------------- - 2 0 > SEND_VAL 'MyParent' - 1 DO_FCALL 1 $0 'class_exists' - 2 BOOL_NOT ~1 $0 - 3 > JMPZ ~1, ->6 - 4 > INCLUDE_OR_EVAL 'p2.php', INCLUDE - 5 > JMP ->6 - 3 6 > ZEND_FETCH_CLASS :3 'MyParent' - 7 ZEND_DECLARE_INHERITED_CLASS '%00child2%2Fvar%2Fwww%2Fc3.php0x7f7a5af32054', 'child2' - 8 8 > RETURN 1 + 2 0 > SEND_VAL 'MyParent' + 1 DO_FCALL 1 $0 'class_exists' + 2 BOOL_NOT ~1 $0 + 3 > JMPZ ~1, ->6 + 4 > INCLUDE_OR_EVAL 'p2.php', INCLUDE + 5 > JMP ->6 + 3 6 > ZEND_FETCH_CLASS :3 'MyParent' + 7 ZEND_DECLARE_INHERITED_CLASS '%00child2%2Fvar%2Fwww%2Fc3.php0x7f7a5af32054', 'child2' + 8 8 > RETURN 1 </example> <blurb fontsize="4em">If indexA is hit first</blurb> <image filename="autofilt2.png" width="842" height="262" align="center"/> <example title="opcodes for c2.php" fontsize="1.3em" type="shell"> -line # * op fetch ext return operands ---------------------------------------------------------------------------------- - 2 0 > SEND_VAL 'MyParent' - 1 DO_FCALL 1 $0 'class_exists' - 2 BOOL_NOT ~1 $0 - 3 > JMPZ ~1, ->6 - 4 > INCLUDE_OR_EVAL 'p2.php', INCLUDE - 5 > JMP ->6 +line # * op fetch ext return operands +----------------------------------------------------------------------------- + 2 0 > SEND_VAL 'MyParent' + 1 DO_FCALL 1 $0 'class_exists' + 2 BOOL_NOT ~1 $0 + 3 > JMPZ ~1, ->6 + 4 > INCLUDE_OR_EVAL 'p2.php', INCLUDE + 5 > JMP ->6 3 6 > NOP 7 NOP - 8 8 > RETURN 1 + 8 8 > RETURN 1 </example> diff --git a/slides/intro/php54_trip.xml b/slides/intro/php54_trip.xml index 56b4783..64f1214 100644 --- a/slides/intro/php54_trip.xml +++ b/slides/intro/php54_trip.xml @@ -48,12 +48,13 @@ label:]]></example> } class Foo extends Base { public function __construct($bar) {} -// FATAL Declaration of Foo::__construct() must be compatible with Base::__construct() +// FATAL Declaration of Foo::__construct() must be compatible +// with Base::__construct() } ]]></example> <break lines="1" /> -<blurb fontsize="4em">✔ stream_select() preserves keys of passed array</blurb> +<blurb fontsize="4em">✔ stream_select() preserves keys of array arg</blurb> <break lines="1" /> <blurb fontsize="4em">✔ XSLT writes are disabled by default</blurb> diff --git a/slides/intro/php55.xml b/slides/intro/php55.xml index f4c0bd3..5f381ed 100644 --- a/slides/intro/php55.xml +++ b/slides/intro/php55.xml @@ -2,7 +2,7 @@ <break lines="1" /> <blurb fontsize="6em">Performance Improvements</blurb> -<list> +<list fontsize="4em" marginleft="1.5em"> <item>Nested calls</item> <item>Call stack pre-allocated by compiler</item> <item>Bundled opcode cache</item> @@ -10,7 +10,7 @@ <break lines="1" /> <blurb fontsize="4em">✔ Generators</blurb> -<example fontsize="2em" result='0' title=""><![CDATA[<?php +<example fontsize="2em" marginleft="7em" result='0' title=""><![CDATA[<?php function xrange($start, $end) { for ($i = $start; $i <= $end; $i ++) { yield $i; @@ -22,7 +22,7 @@ foreach (xrange(0, 5) as $i) { <break lines="1" /> <blurb fontsize="4em">✔ finally</blurb> -<example fontsize="2em" result='0' title=""><![CDATA[<?php +<example fontsize="2em" marginleft="7em" result='0' title=""><![CDATA[<?php $db = mysqli_connect(); try { call_some_function($db); @@ -32,7 +32,7 @@ try { <break lines="1" /> <blurb fontsize="4em">✔ list() in foreach</blurb> -<example fontsize="2em" result='0' title=""><![CDATA[<?php +<example fontsize="2em" marginleft="7em" result='0' title=""><![CDATA[<?php $names = [ ['John','Smith'], ['Fred','Johnson'] ]; foreach($names as list($first,$last)) { echo $first,$last; @@ -40,13 +40,13 @@ foreach($names as list($first,$last)) { <break lines="1" /> <blurb fontsize="4em">✔ Const array/string Dereferencing</blurb> -<example fontsize="2em" result='0' title=""><![CDATA[<?php +<example fontsize="2em" marginleft="7em" result='0' title=""><![CDATA[<?php echo array(1, 2, 3)[0]; //output 1 echo "foobar"[3]; //output b echo [1,3,4][2]; //output 4]]></example> <break lines="1" /> -<blurb fontsize="4em">✔ empty() support for functions and expressions</blurb> +<blurb fontsize="4em">✔ empty() support for functions/expressions</blurb> <break lines="1" /> <blurb fontsize="4em">✔ curl upload functionality rewritten</blurb> diff --git a/slides/intro/wwht2.xml b/slides/intro/wwht2.xml index 305c610..210980c 100644 --- a/slides/intro/wwht2.xml +++ b/slides/intro/wwht2.xml @@ -3,21 +3,21 @@ <blurb fontsize="6em">Performance</blurb> <list> -<bullet fontsize="3em" marginleft="2em" type="bullet">Create mod_php</bullet> -<bullet fontsize="3em" marginleft="2em" type="bullet">Create shared-nothing perfect sandbox model</bullet> +<bullet fontsize="2.6em" marginleft="1em" type="bullet">Create mod_php</bullet> +<bullet fontsize="2.6em" marginleft="1em" type="bullet">Create shared-nothing perfect sandbox model</bullet> </list> <blurb fontsize="6em">Robustness</blurb> <list> -<bullet fontsize="3em" marginleft="2em" type="bullet">Create SQL LIMIT clause</bullet> -<bullet fontsize="3em" marginleft="2em" type="bullet">Promote Prefork shared-nothing model</bullet> +<bullet fontsize="2.6em" marginleft="1em" type="bullet">Create SQL LIMIT clause</bullet> +<bullet fontsize="2.6em" marginleft="1em" type="bullet">Promote Prefork shared-nothing model</bullet> </list> <blurb fontsize="6em">Security</blurb> <list> -<bullet fontsize="3em" marginleft="2em" type="bullet">max_execution_time</bullet> -<bullet fontsize="3em" marginleft="2em" type="bullet">memory_limit</bullet> -<bullet fontsize="3em" marginleft="2em" type="bullet">safe mode</bullet> +<bullet fontsize="2.6em" marginleft="1em" type="bullet">max_execution_time</bullet> +<bullet fontsize="2.6em" marginleft="1em" type="bullet">memory_limit</bullet> +<bullet fontsize="2.6em" marginleft="1em" type="bullet">safe mode</bullet> </list> </slide>
diff --git a/slides/intro/autofilt1.xml b/slides/intro/autofilt1.xml index cd6b9e2..d93850b 100644 --- a/slides/intro/autofilt1.xml +++ b/slides/intro/autofilt1.xml @@ -60,34 +60,34 @@ class MyParent { <image filename="autofilt3.png" width="842" height="222" align="center"/> <example title="opcodes for c2.php" fontsize="1.3em" type="shell"> -line # * op fetch ext return operands +line # * op fetch ext return operands --------------------------------------------------------------------------------- - 2 0 > SEND_VAL 'MyParent' - 1 DO_FCALL 1 $0 'class_exists' - 2 BOOL_NOT ~1 $0 - 3 > JMPZ ~1, ->6 - 4 > INCLUDE_OR_EVAL 'p2.php', INCLUDE - 5 > JMP ->6 - 3 6 > ZEND_FETCH_CLASS :3 'MyParent' - 7 ZEND_DECLARE_INHERITED_CLASS '%00child2%2Fvar%2Fwww%2Fc3.php0x7f7a5af32054', 'child2' - 8 8 > RETURN 1 + 2 0 > SEND_VAL 'MyParent' + 1 DO_FCALL 1 $0 'class_exists' + 2 BOOL_NOT ~1 $0 + 3 > JMPZ ~1, ->6 + 4 > INCLUDE_OR_EVAL 'p2.php', INCLUDE + 5 > JMP ->6 + 3 6 > ZEND_FETCH_CLASS :3 'MyParent' + 7 ZEND_DECLARE_INHERITED_CLASS '%00child2%2Fvar%2Fwww%2Fc3.php0x7f7a5af32054', 'child2' + 8 8 > RETURN 1 </example> <blurb fontsize="4em">If indexA is hit first</blurb> <image filename="autofilt2.png" width="842" height="262" align="center"/> <example title="opcodes for c2.php" fontsize="1.3em" type="shell"> -line # * op fetch ext return operands ---------------------------------------------------------------------------------- - 2 0 > SEND_VAL 'MyParent' - 1 DO_FCALL 1 $0 'class_exists' - 2 BOOL_NOT ~1 $0 - 3 > JMPZ ~1, ->6 - 4 > INCLUDE_OR_EVAL 'p2.php', INCLUDE - 5 > JMP ->6 +line # * op fetch ext return operands +----------------------------------------------------------------------------- + 2 0 > SEND_VAL 'MyParent' + 1 DO_FCALL 1 $0 'class_exists' + 2 BOOL_NOT ~1 $0 + 3 > JMPZ ~1, ->6 + 4 > INCLUDE_OR_EVAL 'p2.php', INCLUDE + 5 > JMP ->6 3 6 > NOP 7 NOP - 8 8 > RETURN 1 + 8 8 > RETURN 1 </example> diff --git a/slides/intro/php54_trip.xml b/slides/intro/php54_trip.xml index 56b4783..64f1214 100644 --- a/slides/intro/php54_trip.xml +++ b/slides/intro/php54_trip.xml @@ -48,12 +48,13 @@ label:]]></example> } class Foo extends Base { public function __construct($bar) {} -// FATAL Declaration of Foo::__construct() must be compatible with Base::__construct() +// FATAL Declaration of Foo::__construct() must be compatible +// with Base::__construct() } ]]></example> <break lines="1" /> -<blurb fontsize="4em">✔ stream_select() preserves keys of passed array</blurb> +<blurb fontsize="4em">✔ stream_select() preserves keys of array arg</blurb> <break lines="1" /> <blurb fontsize="4em">✔ XSLT writes are disabled by default</blurb> diff --git a/slides/intro/php55.xml b/slides/intro/php55.xml index f4c0bd3..5f381ed 100644 --- a/slides/intro/php55.xml +++ b/slides/intro/php55.xml @@ -2,7 +2,7 @@ <break lines="1" /> <blurb fontsize="6em">Performance Improvements</blurb> -<list> +<list fontsize="4em" marginleft="1.5em"> <item>Nested calls</item> <item>Call stack pre-allocated by compiler</item> <item>Bundled opcode cache</item> @@ -10,7 +10,7 @@ <break lines="1" /> <blurb fontsize="4em">✔ Generators</blurb> -<example fontsize="2em" result='0' title=""><![CDATA[<?php +<example fontsize="2em" marginleft="7em" result='0' title=""><![CDATA[<?php function xrange($start, $end) { for ($i = $start; $i <= $end; $i ++) { yield $i; @@ -22,7 +22,7 @@ foreach (xrange(0, 5) as $i) { <break lines="1" /> <blurb fontsize="4em">✔ finally</blurb> -<example fontsize="2em" result='0' title=""><![CDATA[<?php +<example fontsize="2em" marginleft="7em" result='0' title=""><![CDATA[<?php $db = mysqli_connect(); try { call_some_function($db); @@ -32,7 +32,7 @@ try { <break lines="1" /> <blurb fontsize="4em">✔ list() in foreach</blurb> -<example fontsize="2em" result='0' title=""><![CDATA[<?php +<example fontsize="2em" marginleft="7em" result='0' title=""><![CDATA[<?php $names = [ ['John','Smith'], ['Fred','Johnson'] ]; foreach($names as list($first,$last)) { echo $first,$last; @@ -40,13 +40,13 @@ foreach($names as list($first,$last)) { <break lines="1" /> <blurb fontsize="4em">✔ Const array/string Dereferencing</blurb> -<example fontsize="2em" result='0' title=""><![CDATA[<?php +<example fontsize="2em" marginleft="7em" result='0' title=""><![CDATA[<?php echo array(1, 2, 3)[0]; //output 1 echo "foobar"[3]; //output b echo [1,3,4][2]; //output 4]]></example> <break lines="1" /> -<blurb fontsize="4em">✔ empty() support for functions and expressions</blurb> +<blurb fontsize="4em">✔ empty() support for functions/expressions</blurb> <break lines="1" /> <blurb fontsize="4em">✔ curl upload functionality rewritten</blurb> diff --git a/slides/intro/wwht2.xml b/slides/intro/wwht2.xml index 305c610..210980c 100644 --- a/slides/intro/wwht2.xml +++ b/slides/intro/wwht2.xml @@ -3,21 +3,21 @@ <blurb fontsize="6em">Performance</blurb> <list> -<bullet fontsize="3em" marginleft="2em" type="bullet">Create mod_php</bullet> -<bullet fontsize="3em" marginleft="2em" type="bullet">Create shared-nothing perfect sandbox model</bullet> +<bullet fontsize="2.6em" marginleft="1em" type="bullet">Create mod_php</bullet> +<bullet fontsize="2.6em" marginleft="1em" type="bullet">Create shared-nothing perfect sandbox model</bullet> </list> <blurb fontsize="6em">Robustness</blurb> <list> -<bullet fontsize="3em" marginleft="2em" type="bullet">Create SQL LIMIT clause</bullet> -<bullet fontsize="3em" marginleft="2em" type="bullet">Promote Prefork shared-nothing model</bullet> +<bullet fontsize="2.6em" marginleft="1em" type="bullet">Create SQL LIMIT clause</bullet> +<bullet fontsize="2.6em" marginleft="1em" type="bullet">Promote Prefork shared-nothing model</bullet> </list> <blurb fontsize="6em">Security</blurb> <list> -<bullet fontsize="3em" marginleft="2em" type="bullet">max_execution_time</bullet> -<bullet fontsize="3em" marginleft="2em" type="bullet">memory_limit</bullet> -<bullet fontsize="3em" marginleft="2em" type="bullet">safe mode</bullet> +<bullet fontsize="2.6em" marginleft="1em" type="bullet">max_execution_time</bullet> +<bullet fontsize="2.6em" marginleft="1em" type="bullet">memory_limit</bullet> +<bullet fontsize="2.6em" marginleft="1em" type="bullet">safe mode</bullet> </list> </slide>