QB64.org Forum
Active Forums => QB64 Discussion => Topic started by: CharlieJV on November 24, 2021, 08:38:26 pm
-
ADHD (attention-regulation deficiency), everything is a shiny object.
QB64 and InForm successfully installed. I haven't even yet written and compiled my first program, and I'm thinking: "Can we use QB64 for web app development?"
I may not get far before something else grabs my attention, but if I can tough it out, I need a place where I can keep notes and gather information from the QB64 community. What better place than here?
Somewhere in this forum I haphazardly noticed, and now can't find the post, someone mentioning that in the process of compiling a QB64 program, it gets compiled to C++, and then to EXE. I think I saw that the C++ file exists somewhere after compilation to EXE.
And I've read that Emscripten can be used to compile C++ into "WASM", while also creating an HTML page to go along with the WASM, such that any (?) web browser on whatever machine can run what was originally C++ code. And in our case, if possible, BASIC code !
I'm thinking I really want to try this out somehow.
First TODO on my list is set myself up with a Debian bullseye machine on which I can install the Emscripten package. Then see if I can setup a "Hello World" GB64 program running on the web.
If it makes sense, I'll treat this OP like a wiki page, and add useful references and such.
References
- WebAssembly (https://en.wikipedia.org/wiki/WebAssembly) (aka WASM)
- Emscripten (https://emscripten.org/), Wikipedia article (https://en.wikipedia.org/wiki/Emscripten), Debian (bullseye) package (https://packages.debian.org/bullseye/emscripten)
Videos
- Compiling PGE For Web Browsers! (https://www.youtube.com/watch?v=MrI5kkVY6zk)
Posts in this forum:
- The future of QB64 (https://www.qb64.org/forum/index.php?topic=743.msg6470#msg6470) (Reply 17 by davidshq)