Markus Triska
ad4c17fbb6
add meta_predicate/1 declaration for include/3 and exclude/3
2023-09-09 07:32:06 +02:00
Markus Triska
672979c515
shorter include/3 and exclude/3, relying on improved indexing
2023-09-09 07:32:06 +02:00
Markus Triska
efcc2b81cd
add licensing information, addressing part of #1798
2023-09-09 07:32:06 +02:00
Markus Triska
640f29fe0f
update required Rust version
2023-09-09 07:30:23 +02:00
Joe Taber
13a0085408
Add wasm build steps
2023-09-08 22:47:06 -05:00
Mark Thom
74440d503e
Merge pull request #2004 from triska/generalize_description
...
this holds for all architectures (also 32-bit systems)
2023-09-08 16:11:06 -06:00
Mark Thom
f4769de5c4
Merge pull request #2003 from triska/clpz_comment
...
update comment
2023-09-08 15:22:49 -06:00
Markus Triska
b843b76b7a
this holds for all architectures (also 32-bit systems)
2023-09-08 23:22:36 +02:00
Markus Triska
182afe3b7d
update comment
2023-09-08 22:34:24 +02:00
Mark Thom
920e0c6b56
Merge pull request #1986 from rujialiu/wasm32-support
...
Basic WebAssembly support with minimal Javascript API #615
2023-09-08 11:15:51 -06:00
Rujia Liu
b6ce6b7cdb
Basic WebAssembly support with minimal Javascript API #615 . Currently 6/12 crypto functions supported. Tested in browser with all default features disabled.
2023-09-08 17:27:22 +08:00
Mark
a0b5a24853
check atom == ',' in ambiguity_check mirroring logic in print_op_addendum ( #2000 )
2023-09-05 14:56:26 -06:00
Mark
fa11d6bdd4
remove error printing redundancy and inconsistent state resulting from file_load_cleanup ( #1995 )
2023-09-05 13:53:57 -06:00
Mark Thom
a9aef2bc84
Merge pull request #1980 from Skgland/atomtable
...
make AtomTable consurrency safe
2023-09-05 12:32:20 -06:00
Mark Thom
bf2b73706a
Merge pull request #1997 from triska/countall
...
Corrections to countall/2
2023-09-05 12:04:52 -06:00
Mark
83ebce86b6
call_with_inference_limit/3 should fail if inference limit is exceeded and R term is not inference_limit_exceeded ( #1977 )
2023-09-05 11:51:06 -06:00
Markus Triska
1967518fa2
FIXED: documentation of countall/2 ( #1976 )
2023-09-05 19:42:55 +02:00
Bennet Bleßmann
5928d64d7a
make F64Table concurency safe
2023-09-05 19:39:59 +02:00
Bennet Bleßmann
c7ec5a13a5
remove locks from AtomTable
...
there are technically still two locks
- the Mutex to serialize consurrent updates to the AtomTable
- the RwLock as part of GLOBAL_ATOM_TABLE
the former is the age lock of RESIZE ATOM TABLE in <https://arxiv.org/pdf/1608.00989.pdf >, though we use it for the whole update as we don't match the whole structure and can't reserve an atom slot as is, so we need to also lock concurrent updates without resizing
the later should be uncontendet as we only write AtomTable::new iff the current value is a dangling Weak
2023-09-05 19:39:59 +02:00
Bennet Bleßmann
01aeb7515d
[WIP] move towards lockless AtomTable
2023-09-05 19:39:46 +02:00
Markus Triska
d54c3369b3
FIXED: countall/2 for zero solutions ( #1996 )
...
Example:
?- countall(false, 0).
true.
2023-09-05 19:39:05 +02:00
Skgland
d24e6100a7
fix rust_beta_channel feature
2023-09-05 19:12:23 +02:00
Skgland
cd0e45b70e
fix accidentally left in println!()
2023-09-05 19:12:23 +02:00
Skgland
0f0018abe4
raise msrv for OnceLock support
2023-09-05 19:12:23 +02:00
Skgland
a95c5e26e6
add comment why blocking_write is not used
2023-09-05 19:12:23 +02:00
Skgland
70b6cc8e55
fix deadlock in load_library_as_stream
2023-09-05 19:12:22 +02:00
Bennet Bleßmann
13cbff7eab
[WIP] fix deadlock in AtomTable::build_with
2023-09-05 19:12:22 +02:00
Skgland
86166dbf25
[WIP] make AtomTable concurrentcy ready
2023-09-05 19:12:22 +02:00
Skgland
b2130c2a48
run cargo fmt
2023-09-05 19:12:17 +02:00
Mark
5585e83fd6
correct inference counting over index backtracking, built-ins ( #1977 , #1987 )
2023-09-04 17:15:16 -06:00
Fayeed Pawaskar
7b921fc767
Implemented num_order methods on Integer & Rational numbers
2023-09-04 14:12:47 +05:30
Fayeed Pawaskar
cfd67c8337
Added new unify methods
2023-09-04 14:12:11 +05:30
Fayeed Pawaskar
dc498d4de8
Fixed warning
2023-09-04 14:11:54 +05:30
Fayeed Pawaskar
2c67106f26
Added value method to get the generic type from TypedArenaPtr
2023-09-04 14:11:30 +05:30
Fayeed Pawaskar
b105c33b79
Added latest dashu from github
2023-09-04 14:09:45 +05:30
Mark Thom
2ccc238119
Merge pull request #1991 from triska/discoverable_flags
...
FIXED: make occurs_check and answer_write_options flags discoverable
2023-09-03 18:39:24 -06:00
Mark Thom
e693b7d33b
Merge pull request #1990 from triska/clpb_max
...
remove clpb_max/1 attribute for residual goal projection
2023-09-03 18:39:12 -06:00
Markus Triska
aca0de06cd
FIXED: make occurs_check and answer_write_options flags discoverable
...
Quoting from 7.11 Flags:
NOTE - A built-in predicate current_prolog_flag(Flag, Value)
(8.17.2) enables a program to discover all the flags supported
by a processor and their current values.
2023-09-04 00:56:09 +02:00
Markus Triska
85f4bdbe0b
update answer
2023-09-03 22:01:38 +02:00
Markus Triska
1257ba165f
untabify
2023-09-03 21:57:51 +02:00
Markus Triska
1c33d2a2ed
remove clpb_max/1 attribute for residual goal projection
...
Example:
?- sat(A+B), weighted_maximum([1,1], [A,B], Max).
A = 1, B = 1, Max = 2.
2023-09-03 21:56:15 +02:00
Mark Thom
99bd3d3b1a
Merge pull request #1988 from triska/answer_write_options
...
ADDED: New Prolog flag, answer_write_options.
2023-09-03 11:36:40 -06:00
Mark Thom
d8aed0ac4f
Merge pull request #1989 from triska/mention_binaries
...
mention precompiled binaries
2023-09-03 11:36:07 -06:00
Markus Triska
5ebd4bb2a4
mention precompiled binaries
2023-09-03 14:12:46 +02:00
Markus Triska
c934e06171
ADDED: New Prolog flag, answer_write_options.
...
This lets us specify additional write options used by the top level
for writing answers.
2023-09-03 10:49:07 +02:00
Nicolas Luck
8a0685a3e9
Debug print value of register 6 which leads to failing heap dereference
2023-08-30 20:01:56 +02:00
Nicolas Luck
2b018be392
Add back needed dep. hyper-util and upgrade hyper to rc4
2023-08-30 20:00:56 +02:00
Nicolas Luck
4d19c437e0
Merge branch 'master' into library-use-case
...
# Conflicts:
# Cargo.toml
# src/machine/mock_wam.rs
# src/machine/mod.rs
2023-08-30 18:12:26 +02:00
Nicolas Luck
44c274b9e9
WIP: Pure Rust impl. of run_query
2023-08-30 17:35:36 +02:00
Mark
66f6399b8a
refine is/2 compilation so errors are thrown when expected without needlessly allocating ( #1974 , #1984 )
2023-08-29 16:42:23 -06:00