4 ms·
Author here. Faster than it has ever been in the Edge via WebAssembly :) But you are completely right pointing out that there's still some room to improve, spe
by syrusakbary 2y ago
Author here. Faster than it has ever been in the Edge via WebAssembly :)
But you are completely right pointing out that there's still some room to improve, specially when compared to running PHP natively.
Right now there's some price to pay for the isolation and sandboxing, but we are working hard to reduce the gap to zero. Stay tuned for more updates on this front!
- stracer 2y agoIs this tech meant for developers' needs only, or can regular, already existing PHP websites (e-shops...) somehow take advantage of it as well?
- the_duke 2y agoIt's meant for direct usage, not just for developers. You can deploy apps on the Wasmer Edge cloud, and also host things yourself if you want to, though in the later case the setup will be non-trivial.
- maxloh 2y agoGiven that we run PHP on the edge, what is the point of running the PHP interpreter on top of a WebAssembly interpreter (Wasmer) instead of just running the PHP interpreter directly? The latter will always be faster.
- Cyberdog 2y agoFrom what I can tell it's because some of these "edge" service providers will expect you to give them a WASM binary instead of a PHP script. The other caveats about "edge" throughout this discussion aside, if I needed to do this, I'd try to write something in Zig or (gag) JS or something else that compiles to WASM directly rather than writing a script for an interpreter that runs under WASM.
- mike_d 2y agoHey you should really check out fly.io if you want to run stuff on the edge. They have it pretty much figured out. FrankenPHP is also really good and probably a much smarter play than trying to get your code running under WebAssembly.