[PRES] [presentations] master: Spice up slides a little

From: Date: Wed, 21 May 2025 14:54:09 +0000
Subject: [PRES] [presentations] master: Spice up slides a little
Groups: php.pres 
Request: Send a blank email to pres+get-2469@lists.php.net to get a copy of this message
Author: Derick Rethans (derickr) Date: 2025-05-21T09:42:37-05:00 Commit: https://github.com/php/presentations/commit/4fb07e908359a3505db5936d6b357a310194e539 Raw diff: https://github.com/php/presentations/commit/4fb07e908359a3505db5936d6b357a310194e539.diff Spice up slides a little Changed paths: M php-ipc25.xml M php-phpday25.xml M slides/internals/config.w32.xml M slides/internals/debug.xml M slides/internals/extension-parts.xml M slides/internals/extension-why-speed.xml M slides/internals/extension.c-part2.xml M slides/internals/function.xml M slides/internals/phpize.xml M slides/internals/rdp-intro3.xml M slides/internals/rdp-intro4.xml M slides/internals/rdp-test.xml M slides/internals/rdp_simplify-c.xml M slides/internals/rdp_simplify-convert-data.xml M slides/internals/rdp_simplify-php.xml M slides/internals/rdp_simplify-run-algorithm.xml M slides/mongodb/me.xml M slides/mongodb/resources.xml M slides/mongodb/title.xml M slides/xdebug/resources.xml Diff: diff --git a/php-ipc25.xml b/php-ipc25.xml index b62777c9..32ca996e 100644 --- a/php-ipc25.xml +++ b/php-ipc25.xml @@ -40,6 +40,9 @@ https://wiki.php.net/rfc/closures_in_const_expr https://wiki.php.net/rfc/fcc_in_const_expr <slide>slides/internals/php85-fcc-in-constant-expressions.xml</slide> +https://wiki.php.net/rfc/pipe-operator-v3 +<slide>slides/internals/php85-pipes.xml</slide> + Major additions: https://wiki.php.net/rfc/domdocument_html5_parser diff --git a/php-phpday25.xml b/php-phpday25.xml index 3f0fc375..41df128b 100644 --- a/php-phpday25.xml +++ b/php-phpday25.xml @@ -37,12 +37,12 @@ https://wiki.php.net/rfc/new_without_parentheses https://wiki.php.net/rfc/closures_in_const_expr <slide>slides/internals/php85-closures-in-constant-expressions.xml</slide> -https://wiki.php.net/rfc/pipe-operator-v3 -<slide>slides/internals/php85-pipes.xml</slide> - https://wiki.php.net/rfc/fcc_in_const_expr <slide>slides/internals/php85-fcc-in-constant-expressions.xml</slide> +https://wiki.php.net/rfc/pipe-operator-v3 +<slide>slides/internals/php85-pipes.xml</slide> + Major additions: https://wiki.php.net/rfc/domdocument_html5_parser diff --git a/slides/internals/config.w32.xml b/slides/internals/config.w32.xml index eb46c372..18ef1a02 100644 --- a/slides/internals/config.w32.xml +++ b/slides/internals/config.w32.xml @@ -3,8 +3,8 @@ <subtitle>config.w32</subtitle> <blurb>Comments:</blurb> -<example><![CDATA[ -// vim:ft=javascript +<example inline="2"><![CDATA[ +// vim:ft=*javascript* ]]></example> <blurb>Configure option definition:</blurb> diff --git a/slides/internals/debug.xml b/slides/internals/debug.xml index 4bd2adba..7abf2ed2 100644 --- a/slides/internals/debug.xml +++ b/slides/internals/debug.xml @@ -1,12 +1,19 @@ <slide> <title>Debugging Tools</title> +<div effect="fade-in"> +<break lines="2"/> <blurb>%gdb%</blurb> <blurb class="small">→ allows the inspection of programs when they're running</blurb> <blurb class="small">→ %export USE_ZEND_ALLOC=0%</blurb> <break/> +</div> +<div effect="fade-in"> +<break lines="2"/> <blurb>%valgrind%</blurb> <blurb class="small">→ tells you about memory corruption and allocation issues</blurb> <blurb class="small">→ %export ZEND_DONT_UNLOAD_MODULES=1%</blurb> +</div> + </slide> diff --git a/slides/internals/extension-parts.xml b/slides/internals/extension-parts.xml index 60f5860d..decfd6f5 100644 --- a/slides/internals/extension-parts.xml +++ b/slides/internals/extension-parts.xml @@ -1,11 +1,13 @@ <slide> <title>What makes up an Extension?</title> -<list> +<break lines="3"/> + +<ordered-list> <bullet>%config.m4% / %config.w32%<br/>configure options and build instructions</bullet> <bullet>%php_extension.h%<br/>header files and glue</bullet> <bullet>%extension.c%<br/>extension definition and function implementation</bullet> <bullet>%lib/algorithm.c%<br/>C implementation of algorithms</bullet> <bullet>%tests/*.phpt%<br/>Tests written in PHP</bullet> -</list> +</ordered-list> </slide> diff --git a/slides/internals/extension-why-speed.xml b/slides/internals/extension-why-speed.xml index e1f85db6..bc06aae4 100644 --- a/slides/internals/extension-why-speed.xml +++ b/slides/internals/extension-why-speed.xml @@ -1,9 +1,12 @@ <slide background="tracing.jpg" template="black"> <title>Speed</title> +<break lines="8"/> +<blurb class="quote">PHP is fast, but things can be ~faster~</blurb> + +<div effect="fade-in"> <break lines="3"/> -<list> - <bullet>PHP is fast, but things can be ~faster~</bullet> - <bullet>Implementations in C (and C++) usually ~outperform~ code in PHP</bullet> -</list> +<blurb class="quote">Implementations in C (and C++) usually ~outperform~ code in PHP</blurb> +</div> + </slide> diff --git a/slides/internals/extension.c-part2.xml b/slides/internals/extension.c-part2.xml index f1b7fe8c..febb8c94 100644 --- a/slides/internals/extension.c-part2.xml +++ b/slides/internals/extension.c-part2.xml @@ -5,9 +5,7 @@ <blurb>Module (Extension) definition:</blurb> <example><![CDATA[ zend_module_entry geospatial_module_entry = { -#if ZEND_MODULE_API_NO >= 20010901 STANDARD_MODULE_HEADER, -#endif "geospatial", ext_functions, PHP_MINIT(geospatial), @@ -15,9 +13,7 @@ zend_module_entry geospatial_module_entry = { NULL, NULL, PHP_MINFO(geospatial), -#if ZEND_MODULE_API_NO >= 20010901 PHP_GEOSPATIAL_VERSION, -#endif STANDARD_MODULE_PROPERTIES }; ]]></example> diff --git a/slides/internals/function.xml b/slides/internals/function.xml index b78af9a3..048e9c31 100644 --- a/slides/internals/function.xml +++ b/slides/internals/function.xml @@ -1,13 +1,15 @@ <slide> <title>Implementing the function</title> -<list> +<break lines="3"/> + +<ordered-list> <bullet>Parse Input Parameters</bullet> <bullet>Convert Data into Right Format</bullet> <bullet>Run Algorithm</bullet> <bullet>Return Result</bullet> -</list> +</ordered-list> -<break lines="3"/> +<break lines="6"/> <image filename="einstein.jpg"/> </slide> diff --git a/slides/internals/phpize.xml b/slides/internals/phpize.xml index 3800d67a..e75dffd0 100644 --- a/slides/internals/phpize.xml +++ b/slides/internals/phpize.xml @@ -1,9 +1,15 @@ <slide> <title>Building the Extension</title> -<list> +<break lines="3"/> + +<blurb class="quote">As easy as 1 - 2 - 3</blurb> + +<break lines="3"/> + +<ordered-list> <bullet>%phpize%<break/>Brings in headers and creates %configure% script</bullet> <bullet>%./configure%<break/>Runs system checks, and creates %Makefile%</bullet> <bullet>%make%<break/>Builds the extension</bullet> -</list> +</ordered-list> </slide> diff --git a/slides/internals/rdp-intro3.xml b/slides/internals/rdp-intro3.xml index a41a37bf..20d5a862 100644 --- a/slides/internals/rdp-intro3.xml +++ b/slides/internals/rdp-intro3.xml @@ -1,14 +1,12 @@ <slide> <title>Ramer–Douglas–Peucker algorithm</title> +<break lines="3"/> <list> <bullet>Recursive algorithm for line/polygon simplification</bullet> <bullet>Computationally intensive</bullet> - <bullet>100 runs with episilon of 0.01:<list> - <bullet>PHP function: *45.3s*</bullet> - <bullet>C implementation in extension: *0.37s*</bullet> - </list></bullet> + <bullet>100 runs with episilon of 0.01 for ~Belgium~: *45.3 seconds*</bullet> </list> -<break/> +<break lines="5"/> <image filename="Douglas-Peucker_animated.gif" attr="https://commons.wikimedia.org/wiki/File:Douglas-Peucker_animated.gif — CC-By_SA"/> </slide> diff --git a/slides/internals/rdp-intro4.xml b/slides/internals/rdp-intro4.xml index cb358a42..58fe5cd3 100644 --- a/slides/internals/rdp-intro4.xml +++ b/slides/internals/rdp-intro4.xml @@ -1,3 +1,5 @@ <slide style="title" background="warp.png" background_attr="NASA/JPL-Caltech/STScI/IRAM + Modifications"> +<div effect="fade-in"> <title>From 45.3s down to 0.37s</title> +</div> </slide> diff --git a/slides/internals/rdp-test.xml b/slides/internals/rdp-test.xml index a414f5f0..2b40f674 100644 --- a/slides/internals/rdp-test.xml +++ b/slides/internals/rdp-test.xml @@ -8,15 +8,15 @@ Test for rdp_simplify *--FILE--* &lt;?php -$json = json_decode( file_get_contents( dirname( &#95;&#95;FILE&#95;&#95; ) . '/rdp-belgium.json' ) ); +$json = json_decode(file_get_contents(dirname(&#95;&#95;FILE&#95;&#95;) . '/rdp-belgium.json')); $points = $json[0]->geometry->coordinates[0]; -$result = RDP_Simplify( $points, 0.001 ); -var_dump( count( $result ) ); +$result = RDP_Simplify($points, 0.001); +var_dump(count($result)); -$result = RDP_Simplify( $points, 0.01 ); -var_dump( count( $result ) ); -?> +$result = RDP_Simplify($points, 0.01); +var_dump(count($result)); +*?>* *--EXPECT--* int(1029) int(261) diff --git a/slides/internals/rdp_simplify-c.xml b/slides/internals/rdp_simplify-c.xml index 04ce9c74..3825d008 100644 --- a/slides/internals/rdp_simplify-c.xml +++ b/slides/internals/rdp_simplify-c.xml @@ -33,7 +33,7 @@ void rdp_simplify(geo_array *points, double epsilon, int start, int end) return; } else { for (i = start + 1; i < end; i++) { - points->status[i] = 0; + points->status[i] = false; } return; } diff --git a/slides/internals/rdp_simplify-convert-data.xml b/slides/internals/rdp_simplify-convert-data.xml index eba211a8..a6d86bcd 100644 --- a/slides/internals/rdp_simplify-convert-data.xml +++ b/slides/internals/rdp_simplify-convert-data.xml @@ -3,7 +3,7 @@ <div effect="fade-out"> <example><![CDATA[ - points = geo_hashtable_to_array(points_array TSRMLS_CC); + points = geo_hashtable_to_array(points_array); if (!points) { return; } @@ -12,30 +12,27 @@ <div effect="fade-in"> <example inline="2"><![CDATA[ -geo_array \*geo_hashtable_to_array(zval \*array TSRMLS_DC) +geo_array \*geo_hashtable_to_array(zval \*array) { geo_array *tmp; - int element_count, i = 0; - zval *entry; - double lon, lat; + int i = 0, element_count; + zval *entry; + double lon, lat; element_count = *zend_hash_num_elements*(Z_ARRVAL_P(array)); *tmp = geo_array_ctor(element_count);* *ZEND_HASH_FOREACH_VAL*(Z_ARRVAL_P(array), entry) { - if (!parse_point_pair(entry, &lon, &lat TSRMLS_CC)) { + if (!parse_point_pair(entry, &lon, &lat)) { goto failure; } - tmp->x[i] = lon; tmp->y[i] = lat; - tmp->status[i] = 1; - + tmp->status[i] = true; i++; } ZEND_HASH_FOREACH_END(); return tmp; - failure: *geo_array_dtor(tmp);* return NULL; diff --git a/slides/internals/rdp_simplify-php.xml b/slides/internals/rdp_simplify-php.xml index b401672d..f11288f7 100644 --- a/slides/internals/rdp_simplify-php.xml +++ b/slides/internals/rdp_simplify-php.xml @@ -9,31 +9,31 @@ static private function simplifyInternal( &$points, $epsilon, $start, $end ) $index = -1; $dist = 0; - if ( $end - $start < 2 ) { + if ($end - $start < 2) { return; } - for ( $i = $start + 1; $i < $end; $i++ ) { - if ( !isset( $points[$i] ) ) { + for ($i = $start + 1; $i < $end; $i++) { + if (! isset($points[$i])) { continue; } - $cDist = self::findPerpendicularDistance( $points[ $i ], $firstPoint, $lastPoint ); + $cDist = self::findPerpendicularDistance($points[$i], $firstPoint, $lastPoint); - if ( $cDist > $dist ) { + if ($cDist > $dist) { $dist = $cDist; $index = $i; } } - if ( $dist > $epsilon ) { - self::simplifyInternal( $points, $epsilon, $start, $index ); - self::simplifyInternal( $points, $epsilon, $index, $end ); + if ($dist > $epsilon) { + self::simplifyInternal($points, $epsilon, $start, $index); + self::simplifyInternal($points, $epsilon, $index, $end); return; } else { - for ( $i = $start + 1; $i < $end; $i++ ) { - unset( $points[$i] ); + for ($i = $start + 1; $i < $end; $i++) { + unset($points[$i]); } return; } diff --git a/slides/internals/rdp_simplify-run-algorithm.xml b/slides/internals/rdp_simplify-run-algorithm.xml index aaceb103..eb97b849 100644 --- a/slides/internals/rdp_simplify-run-algorithm.xml +++ b/slides/internals/rdp_simplify-run-algorithm.xml @@ -1,6 +1,7 @@ <slide> <title>Run Algorithm</title> +<break lines="6"/> <example><![CDATA[ rdp_simplify(points, epsilon, 0, points->count - 1);]]></example> <break lines="6"/> <image filename="Douglas-Peucker_animated.gif" attr="https://commons.wikimedia.org/wiki/File:Douglas-Peucker_animated.gif — CC-By_SA"/> diff --git a/slides/mongodb/me.xml b/slides/mongodb/me.xml index 92b310ef..45e75e95 100644 --- a/slides/mongodb/me.xml +++ b/slides/mongodb/me.xml @@ -2,6 +2,8 @@ <slide> <title>About Me</title> +<break lines="7"/> + <image filename="../xdebug/derick-new-512x512.png" align="right" pdf-float="1" x-offset="21.3" y-offset="10" pdf-scale="0.25"/> <blurb>Derick Rethans</blurb> @@ -9,7 +11,6 @@ <bullet>I'm European, living in London</bullet> <bullet>*PHP Foundation*</bullet> <bullet>*Xdebug* &amp; PHP's Date/Time support</bullet> - <bullet>I am |999999|g|root!</bullet> <bullet>I ♥🌍 maps, I ♥🍺 beer, I ♥🥃 whisky</bullet> <bullet>mastodon: :-:mastodon:-:</bullet> </list> diff --git a/slides/mongodb/resources.xml b/slides/mongodb/resources.xml index a58d208b..16da908a 100644 --- a/slides/mongodb/resources.xml +++ b/slides/mongodb/resources.xml @@ -2,6 +2,6 @@ <break/> <qrcode>http://derickrethans.nl/talks/:-:talk_id:-:</qrcode> <break/> -<blurb align="center" class="pres-url-small">*Slides &amp; Resources*<br/>:-:joindin:-:</blurb> -<blurb align="center" class="pres-url-small">*Contact*<br/>:-:email:-:—@:-:twitter:-:</blurb> +<blurb align="center" class="pres-url-small">*Slides &amp; Resources*<br/>:-:url:-:</blurb> +<blurb align="center" class="pres-url-small">*Contact*<br/>:-:email:-:—:-:mastodon:-:</blurb> </slide> diff --git a/slides/mongodb/title.xml b/slides/mongodb/title.xml index 8792ee1e..c885a242 100644 --- a/slides/mongodb/title.xml +++ b/slides/mongodb/title.xml @@ -3,6 +3,6 @@ <blurb class="event-title">:-:title:-:</blurb> <break lines="1"/> <blurb class="event-presenter">:-:speaker:-:</blurb> -<blurb class="pres-url-small">:-:email:-:—@:-:twitter:-:</blurb> +<blurb class="pres-url-small">:-:email:-:—:-:mastodon:-:</blurb> <blurb class="pres-url-small">:-:url:-:</blurb> </slide> diff --git a/slides/xdebug/resources.xml b/slides/xdebug/resources.xml index 0aa16d44..5ed912e8 100644 --- a/slides/xdebug/resources.xml +++ b/slides/xdebug/resources.xml @@ -6,10 +6,13 @@ <break line="2"/> <blurb class="center">*Slides*</blurb> <blurb class="center">%:-:url:-:%</blurb> - <blurb class="center">%:-:joindin:-:%</blurb> + +<break line="1"/> + <blurb class="center">*Sites*</blurb> + <blurb class="center">%https://xdebug.org%</blurb> <blurb class="center">%https://xdebug.cloud%</blurb> -<break line="3"/> - <!--<blurb class="center">%https://phpinternals.news%</blurb>--> -<break line="3"/> + +<break line="1"/> + <blurb class="center">*Contact*</blurb> <blurb class="center">:-:speaker:-: — :-:mastodon:-: — :-:email:-:</blurb> </slide>

« previous php.pres (#2469) next »