constraintAutomaton
1f82dafcb6
Useless console.log in the example deleted.
2025-04-08 19:17:20 +02:00
constraintAutomaton
d2dfb7ccda
Update README with working WebAssembly usage example.
2025-04-08 19:12:27 +02:00
Mark Thom
20525e5013
Merge pull request #2869 from triska/format_w
...
ENHANCED: format specifier ~w more faithfully emulates write/1
2025-04-06 15:31:59 -07:00
Markus Triska
14c8fc3e34
move ~w to least prominent position, point to more suitable specifiers
...
In particular, "~q" is a safe better choice.
2025-04-05 10:01:22 +02:00
Markus Triska
3d60094330
ENHANCED: format specifier ~w more faithfully emulates write/1
...
In particular, variables now start with "_".
Example:
?- format("~w", [X]).
%@ _A true.
Found thanks to a discussion initiated by @haijinSk:
https://github.com/mthom/scryer-prolog/discussions/2863
2025-04-05 09:58:06 +02:00
Mark Thom
ae27e78d80
Merge pull request #2861 from averms-forks/update-deps
...
Update and clean up dependencies.
2025-03-31 19:49:54 -07:00
Mark Thom
3826ef38cd
Merge pull request #2860 from averms-forks/push-spzqsznlnlnm
...
Use backticks when referencing predicate in docs.
2025-03-31 19:49:46 -07:00
Aman Verma
7b6f4439bb
Install correct locked version of iai-callgrind-runner in CI.
2025-03-31 04:11:16 -05:00
Aman Verma
464cfd9213
Update lexical.
...
The previous versions of lexical and lexical-core we were using were
subject to the following security advisories:
- https://rustsec.org/advisories/RUSTSEC-2023-0086
- https://rustsec.org/advisories/RUSTSEC-2023-0055
2025-03-31 04:11:16 -05:00
Aman Verma
9dbf592a58
Remove unused deps: regex, assert_cmd, predicates-core.
...
regex was introduced in commit 9e85be11fe
but isn't used anymore.
assert_cmd and predicates-core were introduced in
e1c681fffe for tests but aren't used
anymore.
Dependency count in Cargo.lock drops from 428 to 421.
2025-03-31 04:11:15 -05:00
Aman Verma
e273b007a2
Update ordered-float to 5.0.0.
2025-03-31 04:11:15 -05:00
Aman Verma
6df4eaf809
Update scraper and ego-tree.
...
This gets rid of 4 dependencies, as verified by the output of
yj -tj < Cargo.lock | jq -c '.package | length'
Previously it was 432, now it is 428.
2025-03-31 04:11:15 -05:00
Aman Verma
165d47c7b5
Bump dependencies except for arcu v0.1.1 and half 2.4.1.
...
arcu is not updated for reasons laid out in issue #2749 .
half is not updated because going to 2.5.0 would require an MSRV bump 1.81.
Previous versions of idna, openssl, and ring were subject to the
following security advisories:
- https://rustsec.org/advisories/RUSTSEC-2025-0009
- https://rustsec.org/advisories/RUSTSEC-2025-0004
- https://rustsec.org/advisories/RUSTSEC-2024-0421
2025-03-31 04:10:34 -05:00
Aman Verma
a45a1f6197
Use backticks when referencing predicate in docs.
...
Trivial change but this prevents the HTML output from being erroneously italicized.
2025-03-27 18:56:38 -05:00
Mark Thom
16187390cd
Merge pull request #2847 from triska/call_with_error_context
...
ADDED: type pair
2025-03-09 13:21:25 -07:00
Markus Triska
57bf1ec39b
ADDED: type pair
2025-03-08 14:42:48 +01:00
Mark Thom
7ac84d3565
Merge pull request #2846 from triska/call_with_error_context
...
ADDED: call_with_error_context/2
2025-03-08 00:39:03 -08:00
Markus Triska
32d91449b5
ADDED: call_with_error_context/2
...
See https://github.com/mthom/scryer-prolog/discussions/2839 for more information.
2025-03-08 09:12:17 +01:00
Mark Thom
3799974b82
Merge pull request #2837 from notoria/next
...
Fix conversion from float to rational
2025-03-01 13:40:09 -08:00
Mark Thom
9da0a06afa
Merge pull request #2836 from triska/format_floats
...
Correct handling of floats in format/2 and portray_clause/1
2025-03-01 01:45:55 -08:00
Markus Triska
b8526e0510
FIXED: portray_clause/1 for numbers
2025-02-28 08:41:19 +01:00
Markus Triska
2d4fcf9714
correct handling of floats with N digits (~f and ~Nf)
...
This addresses #2771 . Many thanks to @tmerr for reporting the issue!
The code was posted by @UWN in:
https://github.com/mthom/scryer-prolog/discussions/2805
Many thanks! With additional inputs by @adri326 and @notoria, who also
posted interesting approaches which could help to increase precision
in cases that are currently not ideally handled. Thank you all!
Please see the issue and discussion for more information.
2025-02-28 08:40:53 +01:00
notoria
4f3843742c
Fix conversion from float to rational
2025-02-28 08:00:00 +01:00
Mark Thom
a0e3283d64
Merge pull request #2835 from thierrymarianne/fix-http_open-hanging-on-top-of-main-branch
...
Prevent http_open/3 from hanging
2025-02-27 21:38:58 -08:00
Mark Thom
c9a0f3332e
Merge pull request #2792 from triska/must_be_chars
...
FIXED: instantiation and type check for string arguments
2025-02-27 21:26:40 -08:00
Mark Thom
aeacccbe4c
Merge pull request #2825 from bakaq/wasm_rework
...
Wasm rework
2025-02-27 21:26:20 -08:00
revue_2_presse
5d468d3e19
Replace futures::executor::block_on with tokio::block_in_place
2025-02-25 20:31:19 +01:00
bakaq
080a4fed03
Documentation
2025-02-20 01:04:38 -03:00
bakaq
3b89c1124d
Consult modules
2025-02-20 01:04:38 -03:00
bakaq
236ed93c6c
Send pure objects instead of classes
2025-02-20 01:04:38 -03:00
bakaq
cea8e6b1c9
MachineBuilder constructor
2025-02-20 01:04:38 -03:00
bakaq
93e804eeaa
Rework Wasm interface
2025-02-20 01:04:38 -03:00
bakaq
b32273fc79
Make Wasm compilable
2025-02-20 01:04:38 -03:00
Mark Thom
4fc4152eac
Merge pull request #2817 from adri326/fix-2815-run_module_predicate-backtrack
...
Fix backtracking on the topmost predicate triggering UB in run_module_predicate
2025-02-16 22:47:49 -08:00
Mark Thom
914318b14e
Merge pull request #2799 from bakaq/callback_streams
...
Callback streams for use as library
2025-02-16 22:47:34 -08:00
bakaq
3fc5709c50
Add builder style configuration of user input, output and error
2025-02-16 04:04:48 -03:00
bakaq
28926486e0
More stream tests
2025-02-16 04:04:48 -03:00
bakaq
ad211d5e05
Disallow null streams in output
2025-02-16 04:04:48 -03:00
bakaq
5386c183d2
Make input and output stream configuration public
2025-02-16 04:04:48 -03:00
bakaq
0a2457943e
Configure streams separately
2025-02-16 04:04:48 -03:00
bakaq
baae1dca15
Refactor UserInput to use channels
2025-02-16 04:04:48 -03:00
bakaq
4e032c8a28
Test for callback streams
2025-02-16 04:04:48 -03:00
bakaq
7a6620b52d
Add input stream channel
2025-02-16 04:04:48 -03:00
bakaq
dd6533e76c
Add callback streams
2025-02-16 03:52:52 -03:00
Mark Thom
d262159399
Merge pull request #2791 from Skgland/patch-1
...
Expand the build/install section of the readme
2025-02-12 23:25:21 -08:00
Mark Thom
c77ea48fbd
Merge pull request #2804 from dnmfarrell/line-count-off-by-one
...
Line numbers start at 1
2025-02-12 23:23:44 -08:00
Mark Thom
35c1880937
Merge pull request #2818 from adri326/stream-cleanup
...
Fix various issues around close/1 and stream realiasing
2025-02-12 23:23:11 -08:00
Mark Thom
e5cca9d10a
Merge pull request #2812 from bakaq/attr_vars_arity_fix
...
Fix bug in finding arity for verify attributes
2025-02-12 23:19:34 -08:00
Emilie Burgun
2a218f34b9
Test corner cases of stream aliasing
2025-02-06 23:47:22 +01:00
Emilie Burgun
d8213e29c5
Fix set_output/1 and set_input/1 not updating the alias
...
Before this change, the following set of queries would behave incorrectly:
```
?- open("/tmp/out.log", write, S), set_output(S).
prints(""), write("/tmp/out.log", "S = stream(...)").
?- write(user_output, hello).
prints("hello"), unexpected.
prints(""), write("/tmp/out.log", "hello"). % Expected, but not found.
```
Now, `set_output/1` and `set_input/1` properly bind the `user_output` and
`user_input` aliases, making the queries above behave as expected.
2025-02-06 23:01:38 +01:00