other-languages

mauricio.szabo 2022-05-13T01:20:50.362849Z

I may have some interesting and weird news - I found out how to drive SWI-Prolog from Javascript with WASM. So... maybe a Spock version that runs in the browser?

🤯 2
🖖 3
🖖🏻 1
mauricio.szabo 2022-05-13T23:03:53.610869Z

Yep, it's possible..... quite bizarre, but possible.

Carlo 2022-05-13T23:14:23.412219Z

amazing! But how? I didn't even know that swi could be compiled to WASM, last time people suggested tau prolog for a prolog running in the browser. But SWI has so much more stuff 😍

mauricio.szabo 2022-05-14T00:17:25.779869Z

Yes! Also, it's WAY FASTER than Tau Prolog! The code is over here: https://gitlab.com/mauricioszabo/spock/-/blob/js-version/src/spock/swi.cljs. It's still at the beginning for now, but I intend to make it easier to use 🙂

❤️ 1
🙌 2