Hacker News new | ask | show | jobs
by asadkn 1365 days ago
For those wondering about the "why", this post details the motivation: https://make.wordpress.org/core/2022/09/23/client-side-webas...

Basically for learning/interactive tutorials, trying out something quickly in different PHP versions (which is cumbersome right now), secure and easy demos for themes and plugins.

1 comments

Pretty amazing to get all of PHP working in WASM. Next maybe we can get full MySQL, too (like the Crunchy Postgres port [0] [1]).

Would also love to see it for Java, Go, Perl, Sed, and Awk :)

What if Intelli-J could run in the browser? Yes please.

I bet some of these even already exist. What a time to be alive, 15 years ago I'd never have guessed Javascript could evolve into this!

[0] https://www.crunchydata.com/blog/crazy-idea-to-postgres-in-t...

[1] https://news.ycombinator.com/item?id=32498435 (August 22, 2022; 814 points, 172 comments)

^ n.b. Submitted by @samwillis

Is it my turn to post this prophetic talk? https://www.destroyallsoftware.com/talks/the-birth-and-death...
You mean to say that PHP and different versions of it are able to be simulated via JS on Web apps? Kind of crazy actually
I don’t think it’s via JS, it’s via WebAssembly. WebAssembly doesn’t use JS, it’s separate, although you can interface with WASM via JS.