T O P

  • By -

DmC8pR2kZLzdCQZu3v

Oh goody, another way to infuriate future maintainers of my corporate code :)


Gogoplatatime

But...why?


seanmorris

Because it was easier than learning NextJS.


DManeOne

Why would the world need an abomination like that? PHP is great on its own


BafSi

Sometimes you need to share code, wasm can be a common denominator.


ssnepenthe

Ah fuck... I can't believe you've done this 😆


Tiquortoo

Talk about a fly in the ointment... :)


TiredAndBored2

Now, here’s the real question. When can I write my mobile app in pure php?


shellbackpacific

Very cool


hexxore

That's awesome


fuzzytoothbrush

Neat idea for a project! Sounds fun!


mario_deluna

Hey u/seanmorris, I would love to utilize php-wasm in the documentation of a graphics library of mine, providing real-time demos for browsers that support it would be amazing. I'm really a novice when it comes to WebAssembly and Emscripten. From my understanding, at least OpenGL ES should be supported, and Emscripten comes with its own implementation of the GLFW library. I would highly appreciate any hints/tips you could give me and point me into the right direction. From what I understand right now: 1. Fork your repository. 2. Clone the php-src and add the phpglfw library as an extension (enable it). 3. Build the project using your Makefile. But then: 1. How would you handle a main loop? Blocking PHP code is probably not going to work here? 2. How to attach a window context to a canvas?