Nicolas Luck
3cf3c0ea99
Integration stress test showing Machine blocking on query
2023-08-03 19:51:12 +02:00
Nicolas Luck
ac61055d43
Remove some unused code from lib_toplevel.pl
2023-08-03 17:41:20 +02:00
Joshua Parkin
65eb93793c
dont spawn a runtime in machine; inherit from outside with runtime::handle::Current
2023-08-03 16:22:03 +01:00
Nicolas Luck
3ff02da314
Deactivate some debugging outputs
2023-08-02 16:25:53 +02:00
Nicolas Luck
df048a4f42
Switch back to run_input_once and use duplicated write_eqs/2 without any input handling
2023-08-02 14:52:49 +02:00
Nicolas Luck
21c36880f1
Fix build
2023-08-02 14:51:41 +02:00
Nicolas Luck
c2658dc6da
Try triska's toplevel and add some debugging println!s.
2023-07-27 14:46:00 +02:00
Nicolas Luck
30dac8ea41
HashSet -> BTreeSet: Make parsing or results and thus tests deterministic. Add comments.
2023-07-27 12:06:03 +02:00
Nicolas Luck
0d28404aad
Add special case when parsing
2023-07-27 11:50:38 +02:00
Nicolas Luck
2f99bb025c
Add consult that works with streams / strings in library use-case
2023-07-27 11:41:52 +02:00
Nicolas Luck
9fd6e18d59
Dedupe machine results
2023-07-22 00:32:24 +02:00
Nicolas Luck
d8a9475460
Add missing list_last_item to lib_toplevel.pl and increase MaxDepth of write_eq to avoid truncation of results
2023-07-22 00:31:49 +02:00
Nicolas Luck
9e85be11fe
Fix result parsing for complex string results
2023-07-21 14:35:44 +02:00
Nicolas Luck
0b833bd2f3
Add missing write_goal/3 to lib_toplevel.pl
2023-07-21 00:23:35 +02:00
Nicolas Luck
7c93450aa7
type QueryResult = Result<QueryResolution, String>
2023-07-20 22:31:20 +02:00
Nicolas Luck
cae32d6a00
Error handling
2023-07-20 22:23:51 +02:00
Nicolas Luck
836f6c1d5b
Don't panic when parsing results fails
2023-07-20 21:34:43 +02:00
Nicolas Luck
644559b7f7
Add back newline at end of toplevel.pl
2023-07-17 21:52:17 +02:00
Nicolas Luck
bb95ed3ad0
Add back all needed predicates to lib_toplevel.pl
2023-07-17 21:48:05 +02:00
Nicolas Luck
3947390877
Use lib constructor in lib tests
2023-07-17 21:47:43 +02:00
Nicolas Luck
e7f1e32ee3
fmt machine/parsed_results.rs
2023-07-17 21:35:00 +02:00
Nicolas Luck
5f8cc3c64b
WIP: refactor to generalize Machine::run_top_level()
2023-07-17 21:34:26 +02:00
Nicolas Luck
c0dd94c8a3
Add test for programatic queries
2023-07-12 11:57:53 +02:00
Nicolas Luck
f65675836c
Fix build warnings
2023-07-12 11:38:53 +02:00
Nicolas Luck
f324c9591d
Refactor result parsing to idiomatic Rust and extract into parsed_results.rs
2023-07-12 10:34:07 +02:00
Nicolas Luck
3347f830c7
Remove debug println!s
2023-07-12 01:26:54 +02:00
Nicolas Luck
568abef5b8
Parsed QueryResult
2023-07-12 01:24:39 +02:00
Nicolas Luck
703efdb22d
Make run_input_once/0 match and print all results
2023-07-12 00:03:47 +02:00
Nicolas Luck
2f45f0cfed
Add convenience methods Machine::load_module_string() and Machine::run_query()
2023-07-11 14:51:58 +02:00
Nicolas Luck
112d398175
Add Machine::run_input_once() which reads one goal from user input and runs it
2023-07-11 14:24:30 +02:00
Nicolas Luck
95b31146b5
Add Machine::set_user_input(&mut self, input: String) and get_user_output() -> String. Make read_term_from_user_input() handle Stream::Byte.
2023-07-11 14:22:27 +02:00
Mark Thom
eb9d865635
Merge pull request #1635 from mthom/rebis-dev
...
Test / windows (push) Has been cancelled
Docker Publish / build (push) Has been cancelled
Test / build (macos-10.15, beta) (push) Has been cancelled
Test / build (macos-10.15, stable) (push) Has been cancelled
Test / build (ubuntu-20.04, beta) (push) Has been cancelled
Test / build (ubuntu-20.04, stable) (push) Has been cancelled
Test / msrv (macos-10.15) (push) Has been cancelled
Test / msrv (ubuntu-20.04) (push) Has been cancelled
Merge rebis-dev into master
v0.9.1
2022-11-10 07:18:10 +01:00
Mark Thom
694c87cb61
bump version to 0.9.1
2022-11-10 06:59:03 +01:00
Mark Thom
c41aba6b90
remove num-rug-adapter
2022-11-10 06:56:57 +01:00
Mark Thom
28ea672e36
move asserta/2, assertz/2 to iso_ext
2022-11-10 06:47:32 +01:00
Mark Thom
9366a48d6d
introduce InlineTermStream to avoid arena allocations during call_inline ( #1576 )
2022-11-09 00:01:01 +01:00
Mark Thom
c7e1f5d568
Merge pull request #1630 from epilys/fix-1625
...
fix type_error with instantiated EOF -1 byte literal in get_byte/2
2022-10-26 23:37:36 -06:00
Markus Triska
d91ee5b77c
FIXED: CLP(ℤ): Correctly remove all attributes during propagation of all_distinct/1 and other global constraints.
...
The constraints from library(clpz) were already correctly removed, but
others such as pending freeze/2 goals were not, potentially leading to
an accumulation of redundant constraints during propagation.
Test case:
?- freeze(A,(X=1;X=2)), all_distinct([A]), A = 1.
A = 1, X = 1
; A = 1, X = 2.
The combination of freeze/2 and CLP(ℤ) is useful for example when
creating animations of search processes.
This addresses #1624 .
2022-10-26 23:36:07 -06:00
Mark Thom
fd97b84916
build partial strings using PStrLoc in write_term_to_heap ( #1627 )
2022-10-26 23:36:07 -06:00
Mark Thom
23f59970cb
export asserta/2 ( #1623 )
2022-10-26 23:36:07 -06:00
Mark Thom
8781e03863
cache ball terms before unifying in handle_ball/3 ( #1608 )
2022-10-26 23:36:07 -06:00
Adrián Arroyo Calle
f2940ddfcf
Some minor fixes. Thanks to @triska for them!
2022-10-26 23:36:07 -06:00
Mark Thom
140149f051
fix crash in read_term ( #1616 )
2022-10-26 23:36:07 -06:00
Skgland
9055370326
adjust rust-version declaration
2022-10-26 23:36:07 -06:00
Adrián Arroyo Calle
1af62c8d11
Set default Shell
2022-10-26 23:36:07 -06:00
Adrián Arroyo Calle
ec5430826e
Add Windows MSYS2
2022-10-26 23:36:07 -06:00
Markus Triska
b2cccab768
ENHANCED: library(crypto): Faster conversion to bytes when the integer is known.
...
These entailed constraints only affect performance, and can be removed
without affecting the correctness of the code. They speed up scalar
multiplication of a curve point, used for example in Bitcoinolog.
2022-10-26 23:36:07 -06:00
Markus Triska
579aa8acd4
use newly available u8s_to_string
2022-10-26 23:36:07 -06:00
Markus Triska
9c2cb144b5
remove redundant error handling, since this case is checked in Prolog
...
This restores f668640e3d , where this
change was already made. It seems it was accidentally overwritten in
0404c3bd94 .
2022-10-26 23:36:07 -06:00
Markus Triska
3d04689660
introduce and use u8s_to_string
2022-10-26 23:36:07 -06:00