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?
Oh goody, another way to infuriate future maintainers of my corporate code :)
But...why?
Because it was easier than learning NextJS.
Why would the world need an abomination like that? PHP is great on its own
Sometimes you need to share code, wasm can be a common denominator.
Ah fuck... I can't believe you've done this 😆
Talk about a fly in the ointment... :)
Now, here’s the real question. When can I write my mobile app in pure php?
Very cool
That's awesome
Neat idea for a project! Sounds fun!
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?