4 ms·
I understood that Drupal/php is compiled to WASM and then run on a WASM runtime. So no WASM inside Drupal, but Drupal run as, and in WASM.
by berkes 3y ago
I understood that Drupal/php is compiled to WASM and then run on a WASM runtime.
So no WASM inside Drupal, but Drupal run as, and in WASM.
- angelmm 3y agoExactly. The Drupal code is unmodified and runs on top of the PHP interpreter compiled to Wasm [0]. The Drupal PHP code is not compiled to Wasm. - [0] https://github.com/vmware-labs/webassembly-language-runtimes https://github.com/vmware-labs/webassembly-language-runtimes
- berkes 3y agoIs that possible, though? To compile PHP to WASM seems possible¹, but not sure if Drupal can be compiled: drupal does (did? back when I did Drupal it certainly did. I certainly did) some really funky metaprogramming and eval() stuff. Like keeping PHP in the database. ¹https://github.com/wapm-packages/php https://github.com/wapm-packages/php