You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently there is a PR open in npm-swipl-wasm to properly use swipl.js for node rather than copying swipl-web.js to swipl.js (see SWI-Prolog/npm-swipl-wasm#101).
So my question is; are swipl.wasm and swipl.data going to be the same as the swipl-web.wasm and swipl-web.data; in which case we can just take a short term solution of duplicating those files; or patching the lookup paths in the generated .js files. Or do we need to generate distinct swipl.wasm and swipl.data from EmscriptenTargets.cmake - in which case I'd ask someone else with more expertise to take it on as I am going to be time poor for the next couple of months.
The text was updated successfully, but these errors were encountered:
I don't know that much about the WASM build. AFAIK though, we build swipl.js/wasm such that it uses the native filesystem, which you can see if you run node src/swipl.js in the build directory. We need such a version to perform the Prolog build steps, producing home/boot.prc and the various .qlf (Quick Load File) files.
I don't know what to think about swipl.js/wasm. I am inclined to consider it just an intermediate build product. We could also distribute it along with a the libraries as a file hierarchy, so you get something similar to the normal distributions that consist of the executable and the libraries. Wasn't it true that swipl-web.js and the bundles also run under Node? If that is true the only thing wrong seems the misleading "web" in the name?
Currently there is a PR open in npm-swipl-wasm to properly use
swipl.js
for node rather than copyingswipl-web.js
toswipl.js
(see SWI-Prolog/npm-swipl-wasm#101).As can be seen in the CI; this is currently failing because there is no
swipl.wasm
orswipl.data
available; and it would appear that they are not being generated by https://github.com/SWI-Prolog/swipl-devel/blob/master/cmake/EmscriptenTargets.cmake in the way thatswipl-devel/cmake/EmscriptenTargets.cmake
Lines 50 to 61 in a511639
So my question is; are
swipl.wasm
andswipl.data
going to be the same as theswipl-web.wasm
andswipl-web.data
; in which case we can just take a short term solution of duplicating those files; or patching the lookup paths in the generated.js
files. Or do we need to generate distinctswipl.wasm
andswipl.data
fromEmscriptenTargets.cmake
- in which case I'd ask someone else with more expertise to take it on as I am going to be time poor for the next couple of months.The text was updated successfully, but these errors were encountered: