mclout99 wrote: ↑Mon 16 Jan 2023, 08:09
I have always wondered if there is a way to run a custom local or hosted server side component ourselves, and if not can we make that happen so we do not have a single point of failure.
It's unclear whether Maksim did or did not succeed in building a working BBCSDL using a recent version of Emscripten. If he did it's frustrating because I'd like to be able to do that, and I don't know what he changed to make it work.
Either way I am pretty confident that it will work if you use the existing makefile with the same (ancient) version of Emscripten that I use: 2.0.5.
If you try, do report back what success or otherwise you have. This is the command I use to test it locally:
Hated Moron wrote: ↑Thu 22 Dec 2022, 13:00
On 22/12/2022 10:27, Maksim AbuAjamieh wrote (cross-posted from the DIscussion Group):
If I was to host a similar server at my office/home, are there any build steps available ?
Yes, the makefile is here (you may need to change some paths to suit your installation). It should create the following files, all of which must be hosted together: bbcsdl.data, bbcsdl.html, bbcsdl.js, bbcsdl.wasm and bbcsdl.worker.js. In practice I gzip the files and serve them with a Content-Encoding: gzip header for efficiency, but that's not essential.
There is a potential gotcha however. The last time I tried to build it using a recent version of Emscripten it didn't run; it appeared that something related to running multi-threaded code in Web Assembly was broken (possibly in Emscripten itself, or perhaps more likely in SDL2; maybe even an incompatibility with my code).
I'm pleased to be able to report that the most recent release (1.34a) of the in-browser edition of BBC BASIC for SDL 2.0can be built using the latest version of Emscripten, so the caveat mentioned above no longer applies.