-
I found a way to measure space usage in SWI-Prolog:
```
/* SWI-Prolog */
space(G) :-
garbage_collect, trim_stacks,
statistics(stack, A),
G,
garbage_collect, trim_stacks,
statist…
-
@guregu Hi, we're running into this weird behavior, it's probably a trealla thing, since it doesn't happen with swi-prolog. Is there a quick fix or workaround?
-
I found a way to measure space usage in SWI-Prolog:
```
/* SWI-Prolog */
space(G) :-
garbage_collect, trim_stacks,
statistics(stack, A),
G,
garbage_collect, trim_stacks,
statist…
-
I assume this is a glitch:
```
/* Scryer Prolog Playground */
?- variant(f(A,B), f(C,D)).
error(existence_error(procedure,variant/2),variant/2).
```
Ok I can call it with a module prefix:
``…
-
Using v2.59.9:
```text
$ cat data1.pl
:- module(data1, [a/1]).
a(1).
a(2).
a(3).
```
```text
$ cat data2.pl
:- module(data2, [a/1]).
a(4).
a(5).
a(6).
```
Loading the first …
-
See work here: https://github.com/guregu/trealla-js
Looks like this should actually be pretty doable. Trealla supports WASI as a target (https://github.com/trealla-prolog/trealla) and is already on…
-
Current JSON library (borrowed from Scryer) is nice but slow (https://github.com/mthom/scryer-prolog/issues/1566).
I had the potentially terrible idea of using regular Prolog terms to represent JSO…
-
Hi,
Would you accept a patch to add support for [trealla](https://trealla-prolog.github.io/trealla/) in ediprolog?
-
```
?- [user].
:- module(b, [b/0]).
b:b.
?- module(M).
M = user.
?- module(b), member(X,[b]).
X = b.
?- module(b), member(X,[b]).
throw(error(existence_error(procedure,member/2),…
-
Thanks for merging my WASM PRs. I'm making this issue to help me keep track of what hasn't been upstreamed yet.
All of this stuff is available at: https://github.com/guregu/trealla
- [x] WASM buil…