Skip to content

Commit

Permalink
deploy: e151518
Browse files Browse the repository at this point in the history
  • Loading branch information
adamziel committed May 1, 2024
1 parent 15eb11b commit d21fa24
Show file tree
Hide file tree
Showing 25 changed files with 120 additions and 131 deletions.
19 changes: 9 additions & 10 deletions architecture/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,15 @@
<div class="wp-block-group is-content-justification-center is-nowrap is-layout-flex wp-container-core-group-is-layout-8 wp-block-group-is-layout-flex">
<div class="wp-block-columns is-layout-flex wp-container-core-columns-is-layout-1 wp-block-columns-is-layout-flex">
<div class="wp-block-column is-layout-flow wp-container-core-column-is-layout-1 wp-block-column-is-layout-flow" style="border-right-style:none;border-right-width:0px;padding-top:var(--wp--preset--spacing--10);padding-right:0;padding-bottom:var(--wp--preset--spacing--10);padding-left:0;flex-basis:400px"><ul class="wp-block-page-list">
<li class="wp-block-pages-list__item has-child menu-item-home">
<a class="wp-block-pages-list__item__link" href="/wordpress-playground/">WordPress Playground</a><ul class="wp-block-navigation__submenu-container">
<li class="wp-block-pages-list__item "><a class="wp-block-pages-list__item__link" href="/wordpress-playground/overview/">Overview</a></li>
<li class="wp-block-pages-list__item "><a class="wp-block-pages-list__item__link" href="/wordpress-playground/start-using-wordpress-playground-in-5-minutes/">Start using WordPress Playground in 5 minutes</a></li>
</ul>
</li>
<li class="wp-block-pages-list__item has-child">
<a class="wp-block-pages-list__item__link" href="/developer-apis/">Developer APIs</a><ul class="wp-block-navigation__submenu-container"><li class="wp-block-pages-list__item "><a class="wp-block-pages-list__item__link" href="/developer-apis/query-api/">Query API</a></li></ul>
</li>
<li class="wp-block-pages-list__item current-menu-item has-child">
<a class="wp-block-pages-list__item__link" href="/architecture/" aria-current="page">Architecture</a><ul class="wp-block-navigation__submenu-container"><li class="wp-block-pages-list__item has-child ">
<a class="wp-block-pages-list__item__link" href="/architecture/webassembly-php/">WebAssembly PHP</a><ul class="wp-block-navigation__submenu-container">
Expand All @@ -158,15 +167,6 @@
</ul>
</li></ul>
</li>
<li class="wp-block-pages-list__item has-child">
<a class="wp-block-pages-list__item__link" href="/developer-apis/">Developer APIs</a><ul class="wp-block-navigation__submenu-container"><li class="wp-block-pages-list__item "><a class="wp-block-pages-list__item__link" href="/developer-apis/query-api/">Query API</a></li></ul>
</li>
<li class="wp-block-pages-list__item has-child menu-item-home">
<a class="wp-block-pages-list__item__link" href="/wordpress-playground/">WordPress Playground</a><ul class="wp-block-navigation__submenu-container">
<li class="wp-block-pages-list__item "><a class="wp-block-pages-list__item__link" href="/wordpress-playground/overview/">Overview</a></li>
<li class="wp-block-pages-list__item "><a class="wp-block-pages-list__item__link" href="/wordpress-playground/start-using-wordpress-playground-in-5-minutes/">Start using WordPress Playground in 5 minutes</a></li>
</ul>
</li>
</ul></div>


Expand Down Expand Up @@ -212,7 +212,6 @@ <h1 class="has-text-align-left alignfull wp-block-post-title">Architecture</h1>


<p>Visit each section to learn more about the specific parts of the architecture.</p>
<!-- -->
</div></main>
</div>
</div>
Expand Down
19 changes: 9 additions & 10 deletions architecture/webassembly-php/asyncify/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,15 @@
<div class="wp-block-group is-content-justification-center is-nowrap is-layout-flex wp-container-core-group-is-layout-8 wp-block-group-is-layout-flex">
<div class="wp-block-columns is-layout-flex wp-container-core-columns-is-layout-1 wp-block-columns-is-layout-flex">
<div class="wp-block-column is-layout-flow wp-container-core-column-is-layout-1 wp-block-column-is-layout-flow" style="border-right-style:none;border-right-width:0px;padding-top:var(--wp--preset--spacing--10);padding-right:0;padding-bottom:var(--wp--preset--spacing--10);padding-left:0;flex-basis:400px"><ul class="wp-block-page-list">
<li class="wp-block-pages-list__item has-child menu-item-home">
<a class="wp-block-pages-list__item__link" href="/wordpress-playground/">WordPress Playground</a><ul class="wp-block-navigation__submenu-container">
<li class="wp-block-pages-list__item "><a class="wp-block-pages-list__item__link" href="/wordpress-playground/overview/">Overview</a></li>
<li class="wp-block-pages-list__item "><a class="wp-block-pages-list__item__link" href="/wordpress-playground/start-using-wordpress-playground-in-5-minutes/">Start using WordPress Playground in 5 minutes</a></li>
</ul>
</li>
<li class="wp-block-pages-list__item has-child">
<a class="wp-block-pages-list__item__link" href="/developer-apis/">Developer APIs</a><ul class="wp-block-navigation__submenu-container"><li class="wp-block-pages-list__item "><a class="wp-block-pages-list__item__link" href="/developer-apis/query-api/">Query API</a></li></ul>
</li>
<li class="wp-block-pages-list__item current-menu-ancestor has-child">
<a class="wp-block-pages-list__item__link" href="/architecture/">Architecture</a><ul class="wp-block-navigation__submenu-container"><li class="wp-block-pages-list__item current-menu-ancestor has-child ">
<a class="wp-block-pages-list__item__link" href="/architecture/webassembly-php/">WebAssembly PHP</a><ul class="wp-block-navigation__submenu-container">
Expand All @@ -164,15 +173,6 @@
</ul>
</li></ul>
</li>
<li class="wp-block-pages-list__item has-child">
<a class="wp-block-pages-list__item__link" href="/developer-apis/">Developer APIs</a><ul class="wp-block-navigation__submenu-container"><li class="wp-block-pages-list__item "><a class="wp-block-pages-list__item__link" href="/developer-apis/query-api/">Query API</a></li></ul>
</li>
<li class="wp-block-pages-list__item has-child menu-item-home">
<a class="wp-block-pages-list__item__link" href="/wordpress-playground/">WordPress Playground</a><ul class="wp-block-navigation__submenu-container">
<li class="wp-block-pages-list__item "><a class="wp-block-pages-list__item__link" href="/wordpress-playground/overview/">Overview</a></li>
<li class="wp-block-pages-list__item "><a class="wp-block-pages-list__item__link" href="/wordpress-playground/start-using-wordpress-playground-in-5-minutes/">Start using WordPress Playground in 5 minutes</a></li>
</ul>
</li>
</ul></div>


Expand Down Expand Up @@ -273,7 +273,6 @@ <h2 class="wp-block-heading">The upcoming JSPI API will make Asyncify unnecessar
<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="has-medium-font-size">The current implementation in V8 is essentially &#8216;experimental status&#8217;. We have arm64 and x64 implementations.<br>The next steps are to implement on 32 bit arm/intel. That requires us to solve some issues that we did not have to solve so far.<br>As for node.js, my guess is that it is already in node, behind a flag.<br>To remove the flag requirement involves getting other implementations. The best estimate for that is towards the end of this year; but it obviously depends on resources and funding.<br>In addition, it would need further progress in the standardization effort; but, given that it is a &#8216;small&#8217; spec, that should not be a long term burden.<br>Hope that this helps you understand the roadmap 🙂</p>
</blockquote>
<!-- -->
</div></main>
</div>
</div>
Expand Down
19 changes: 9 additions & 10 deletions architecture/webassembly-php/compiling-php/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,15 @@
<div class="wp-block-group is-content-justification-center is-nowrap is-layout-flex wp-container-core-group-is-layout-8 wp-block-group-is-layout-flex">
<div class="wp-block-columns is-layout-flex wp-container-core-columns-is-layout-1 wp-block-columns-is-layout-flex">
<div class="wp-block-column is-layout-flow wp-container-core-column-is-layout-1 wp-block-column-is-layout-flow" style="border-right-style:none;border-right-width:0px;padding-top:var(--wp--preset--spacing--10);padding-right:0;padding-bottom:var(--wp--preset--spacing--10);padding-left:0;flex-basis:400px"><ul class="wp-block-page-list">
<li class="wp-block-pages-list__item has-child menu-item-home">
<a class="wp-block-pages-list__item__link" href="/wordpress-playground/">WordPress Playground</a><ul class="wp-block-navigation__submenu-container">
<li class="wp-block-pages-list__item "><a class="wp-block-pages-list__item__link" href="/wordpress-playground/overview/">Overview</a></li>
<li class="wp-block-pages-list__item "><a class="wp-block-pages-list__item__link" href="/wordpress-playground/start-using-wordpress-playground-in-5-minutes/">Start using WordPress Playground in 5 minutes</a></li>
</ul>
</li>
<li class="wp-block-pages-list__item has-child">
<a class="wp-block-pages-list__item__link" href="/developer-apis/">Developer APIs</a><ul class="wp-block-navigation__submenu-container"><li class="wp-block-pages-list__item "><a class="wp-block-pages-list__item__link" href="/developer-apis/query-api/">Query API</a></li></ul>
</li>
<li class="wp-block-pages-list__item current-menu-ancestor has-child">
<a class="wp-block-pages-list__item__link" href="/architecture/">Architecture</a><ul class="wp-block-navigation__submenu-container"><li class="wp-block-pages-list__item current-menu-ancestor has-child ">
<a class="wp-block-pages-list__item__link" href="/architecture/webassembly-php/">WebAssembly PHP</a><ul class="wp-block-navigation__submenu-container">
Expand All @@ -160,15 +169,6 @@
</ul>
</li></ul>
</li>
<li class="wp-block-pages-list__item has-child">
<a class="wp-block-pages-list__item__link" href="/developer-apis/">Developer APIs</a><ul class="wp-block-navigation__submenu-container"><li class="wp-block-pages-list__item "><a class="wp-block-pages-list__item__link" href="/developer-apis/query-api/">Query API</a></li></ul>
</li>
<li class="wp-block-pages-list__item has-child menu-item-home">
<a class="wp-block-pages-list__item__link" href="/wordpress-playground/">WordPress Playground</a><ul class="wp-block-navigation__submenu-container">
<li class="wp-block-pages-list__item "><a class="wp-block-pages-list__item__link" href="/wordpress-playground/overview/">Overview</a></li>
<li class="wp-block-pages-list__item "><a class="wp-block-pages-list__item__link" href="/wordpress-playground/start-using-wordpress-playground-in-5-minutes/">Start using WordPress Playground in 5 minutes</a></li>
</ul>
</li>
</ul></div>


Expand Down Expand Up @@ -342,7 +342,6 @@ <h3 class="wp-block-heading">Loading the PHP runtime</h3>

<li>Waits until the entire loading sequence is finished</li>
</ul>
<!-- -->
</div></main>
</div>
</div>
Expand Down
25 changes: 12 additions & 13 deletions architecture/webassembly-php/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,15 @@
<div class="wp-block-group is-content-justification-center is-nowrap is-layout-flex wp-container-core-group-is-layout-8 wp-block-group-is-layout-flex">
<div class="wp-block-columns is-layout-flex wp-container-core-columns-is-layout-1 wp-block-columns-is-layout-flex">
<div class="wp-block-column is-layout-flow wp-container-core-column-is-layout-1 wp-block-column-is-layout-flow" style="border-right-style:none;border-right-width:0px;padding-top:var(--wp--preset--spacing--10);padding-right:0;padding-bottom:var(--wp--preset--spacing--10);padding-left:0;flex-basis:400px"><ul class="wp-block-page-list">
<li class="wp-block-pages-list__item has-child menu-item-home">
<a class="wp-block-pages-list__item__link" href="/wordpress-playground/">WordPress Playground</a><ul class="wp-block-navigation__submenu-container">
<li class="wp-block-pages-list__item "><a class="wp-block-pages-list__item__link" href="/wordpress-playground/overview/">Overview</a></li>
<li class="wp-block-pages-list__item "><a class="wp-block-pages-list__item__link" href="/wordpress-playground/start-using-wordpress-playground-in-5-minutes/">Start using WordPress Playground in 5 minutes</a></li>
</ul>
</li>
<li class="wp-block-pages-list__item has-child">
<a class="wp-block-pages-list__item__link" href="/developer-apis/">Developer APIs</a><ul class="wp-block-navigation__submenu-container"><li class="wp-block-pages-list__item "><a class="wp-block-pages-list__item__link" href="/developer-apis/query-api/">Query API</a></li></ul>
</li>
<li class="wp-block-pages-list__item current-menu-ancestor has-child">
<a class="wp-block-pages-list__item__link" href="/architecture/">Architecture</a><ul class="wp-block-navigation__submenu-container"><li class="wp-block-pages-list__item current-menu-item has-child ">
<a class="wp-block-pages-list__item__link" href="/architecture/webassembly-php/" aria-current="page">WebAssembly PHP</a><ul class="wp-block-navigation__submenu-container">
Expand All @@ -160,15 +169,6 @@
</ul>
</li></ul>
</li>
<li class="wp-block-pages-list__item has-child">
<a class="wp-block-pages-list__item__link" href="/developer-apis/">Developer APIs</a><ul class="wp-block-navigation__submenu-container"><li class="wp-block-pages-list__item "><a class="wp-block-pages-list__item__link" href="/developer-apis/query-api/">Query API</a></li></ul>
</li>
<li class="wp-block-pages-list__item has-child menu-item-home">
<a class="wp-block-pages-list__item__link" href="/wordpress-playground/">WordPress Playground</a><ul class="wp-block-navigation__submenu-container">
<li class="wp-block-pages-list__item "><a class="wp-block-pages-list__item__link" href="/wordpress-playground/overview/">Overview</a></li>
<li class="wp-block-pages-list__item "><a class="wp-block-pages-list__item__link" href="/wordpress-playground/start-using-wordpress-playground-in-5-minutes/">Start using WordPress Playground in 5 minutes</a></li>
</ul>
</li>
</ul></div>


Expand All @@ -190,15 +190,15 @@ <h1 class="has-text-align-left alignfull wp-block-post-title">WebAssembly PHP</h



<figure class="wp-block-image size-full"><img fetchpriority="high" decoding="async" width="3456" height="2234" src="/wp-content/uploads/2024/04/36_c-programs-general-dc8c885b6c55e554f0c504f32e49ad8d.png" alt="" class="wp-image-36" srcset="/wp-content/uploads/2024/04/36_c-programs-general-dc8c885b6c55e554f0c504f32e49ad8d.png 3456w, /wp-content/uploads/2024/04/36_c-programs-general-dc8c885b6c55e554f0c504f32e49ad8d-1536x993.png 1536w, /wp-content/uploads/2024/04/36_c-programs-general-dc8c885b6c55e554f0c504f32e49ad8d-2048x1324.png 2048w" sizes="(max-width: 3456px) 100vw, 3456px"></figure>
<figure class="wp-block-image size-full"><img decoding="async" src="/wp-content/uploads/2024/04/36_c-programs-general-dc8c885b6c55e554f0c504f32e49ad8d.png" alt="" class="wp-image-36"></figure>



<p>Building PHP to WebAssembly is very similar to building vanilla PHP. The wasm build required <a href="https://github.com/WordPress/wordpress-playground/blob/0d451c33936a8db5b7a158fa8aad288c19370a7d/packages/php-wasm/compile/build-assets/php7.1.patch#L8-L9">adjusting a function signature here</a>, <a href="https://github.com/WordPress/wordpress-playground/blob/0d451c33936a8db5b7a158fa8aad288c19370a7d/packages/php-wasm/compile/Dockerfile#L495">forcing a config variable there</a>, and applying <a href="https://github.com/WordPress/wordpress-playground/tree/0d451c33936a8db5b7a158fa8aad288c19370a7d/packages/php-wasm/compile/build-assets">a few small patches</a>, but there&#8217;s relatively few adjustments involved.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="3456" height="2234" src="/wp-content/uploads/2024/04/37_c-programs-php-4a55d44329eb4e6403983664c6492f5b.png" alt="" class="wp-image-37" srcset="/wp-content/uploads/2024/04/37_c-programs-php-4a55d44329eb4e6403983664c6492f5b.png 3456w, /wp-content/uploads/2024/04/37_c-programs-php-4a55d44329eb4e6403983664c6492f5b-1536x993.png 1536w, /wp-content/uploads/2024/04/37_c-programs-php-4a55d44329eb4e6403983664c6492f5b-2048x1324.png 2048w" sizes="(max-width: 3456px) 100vw, 3456px"></figure>
<figure class="wp-block-image size-full"><img decoding="async" src="/wp-content/uploads/2024/04/37_c-programs-php-4a55d44329eb4e6403983664c6492f5b.png" alt="" class="wp-image-37"></figure>



Expand All @@ -210,7 +210,7 @@ <h1 class="has-text-align-left alignfull wp-block-post-title">WebAssembly PHP</h



<figure class="wp-block-image size-full"><img decoding="async" width="3456" height="2234" src="/wp-content/uploads/2024/04/38_c-programs-php-versions-d204a7325079ab708fd605a6a1d2681b.png" alt="" class="wp-image-38" srcset="/wp-content/uploads/2024/04/38_c-programs-php-versions-d204a7325079ab708fd605a6a1d2681b.png 3456w, /wp-content/uploads/2024/04/38_c-programs-php-versions-d204a7325079ab708fd605a6a1d2681b-1536x993.png 1536w, /wp-content/uploads/2024/04/38_c-programs-php-versions-d204a7325079ab708fd605a6a1d2681b-2048x1324.png 2048w" sizes="(max-width: 3456px) 100vw, 3456px"></figure>
<figure class="wp-block-image size-full"><img decoding="async" src="/wp-content/uploads/2024/04/38_c-programs-php-versions-d204a7325079ab708fd605a6a1d2681b.png" alt="" class="wp-image-38"></figure>



Expand All @@ -227,7 +227,6 @@ <h3 class="wp-block-heading">Networking support varies between platforms</h3>


<p>In the browser, networking is supported to a limited extent. Network calls initiated using <code>wp_safe_remote_get</code>, like the ones in the plugin directory or the font library, are translated into <code>fetch()</code> calls and succeed if the remote server sends the correct CORS headers. However, a full support for arbitrary HTTPS connection involves opening a raw TCP socket which is not possible in the browser. There is an <a href="https://github.com/WordPress/wordpress-playground/issues/85">open GitHub issue</a> that explores possible ways of addressing this problem.</p>
<!-- -->
</div></main>
</div>
</div>
Expand Down
Loading

0 comments on commit d21fa24

Please sign in to comment.