Mark
75302ab716
check that Target is an atom in scoped_clause_to_evacuable ( #2248 )
2023-12-29 10:12:08 -07:00
bakaq
921046e886
Parse as much of a list as possible as a partial string #1404
2023-12-28 15:12:32 -03:00
Markus Triska
10158f62e0
improve structure, naming and explanation of PKCS#8v2 encoding
2023-12-27 21:12:52 +01:00
Mark
42d6749501
throw errors from char_reader.rs and get_n_chars when reading bad UTF8 data ( #2244 )
2023-12-26 12:31:04 -07:00
Markus Triska
47ec5eb6c6
ENHANCED: Use crrl for Ed25519 signing and signature verification.
...
The main motivation for this change is the introduction of the newly
available predicate ed25519_seed_keypair/2, allowing to generate a key
pair from a given seed. In this way, a key pair can be dynamically
generated from (for example) a password, using crypto_password_hash/3
in combination with crypto_data_hkdf/4 to generate the seed. The
advantage of this method is that the private key need not be stored at
all anywhere.
It is not possible to add a corresponding feature to ring, since it is
closed as "not planned": https://github.com/briansmith/ring/issues/1003
I also used this opportunity to move more of the logic to Prolog. We
now have total control of the key pair representation, and I also
changed the representation to conform to the PKCS#8 v2 standard,
something that only later ring versions do, while still being
backwards compatible with tools that produce a wrong representation
including earlier ring versions.
Another great advantage we get from this change is that the Ed25519
predicates now also run on the 32-bit and WASM versions of Scryer.
2023-12-26 07:33:44 +01:00
bakaq
20c6a327ea
Fix anonymous attributed variables not showing in toplevel #2241
2023-12-22 13:07:09 -03:00
Mark
373b08a91e
fix off-by-one error caused logtalk test to crash
2023-12-21 12:14:12 -07:00
Mark
a7154968d8
fix cargo fmt --check
2023-12-21 10:24:01 -07:00
Mark
46e432c4d9
restore [o|i]ip zeroing to trust and fix '$get_clause_p'/3 ( #2238 )
2023-12-20 20:45:15 -07:00
Mark Thom
44a61fa72c
Merge pull request #2218 from bakaq/when
...
Add when/2 and when_si/2
2023-12-20 13:42:46 -07:00
Mark
299df50066
clamp lower_bound_of_target_clause index ( #840 )
2023-12-18 15:21:30 -07:00
Mark
335330690f
don't replace undefined module predicates ( #2232 )
2023-12-18 14:57:22 -07:00
Mark
f30cee7655
fix retraction of local dynamic predicates ( #2215 , #2232 )
2023-12-18 13:28:45 -07:00
Mark
b943afb7c7
fix '$get_clause_p' whose old implementation was broken by the introduction
...
of lookahead indexing
2023-12-18 13:28:45 -07:00
Mark
30f3818c66
improve performance of lower_bound_of_target_clause ( #1598 )
2023-12-18 13:28:45 -07:00
Mark Thom
13624568b5
Merge pull request #2233 from aarroyoc/fix-functor-2214
...
Throw ValidType::Atom error in functor
2023-12-17 20:20:50 -07:00
Adrián Arroyo Calle
d132227860
Throw ValidType::Atom error in functor
2023-12-17 12:38:46 +01:00
Adrián Arroyo Calle
45abb4703d
Fix backslash docs
2023-12-16 19:01:39 +01:00
Mark
e5ea95db8d
Revert "improve performance of lower_bound_of_target_clause ( #1598 )"
...
This reverts commit 8938331915 .
2023-12-15 00:42:58 -07:00
Mark
8938331915
improve performance of lower_bound_of_target_clause ( #1598 )
2023-12-15 00:39:36 -07:00
Mark
399b50b4d7
fix use of copy_term/3 for attribute goals in toplevel ( #888 , #2057 , #2217 )
2023-12-13 12:27:59 -07:00
Mark
82f3731c97
fix cargo style failure
2023-12-11 15:17:02 -07:00
Mark
658258c8c3
dereference port address in socket_server_open ( #2222 )
2023-12-11 14:38:20 -07:00
Mark
d14cce2374
restore print_tcp_listener in printer ( #2221 )
2023-12-11 13:29:27 -07:00
bakaq
f411fb1eb3
Tests for when/2 and solved bug
2023-12-11 12:28:59 -03:00
bakaq
6a30ccc907
Add when/2 and when_si/2
2023-12-10 20:55:50 -03:00
Mark Thom
c0c33392f1
Merge pull request #2203 from coasys/library-use-case
...
Don’t include unbound variables in results returned from run_query()
2023-12-05 13:14:30 -07:00
Nicolas Luck
77ce5a9586
Result with one empty match should be false
2023-12-05 15:00:07 +01:00
Mark
9cd762d88a
remove (\+)//1 ( #1511 )
2023-12-04 13:51:44 -07:00
Mark
eddcdaabef
correct cargo fmt errors
2023-12-04 12:20:54 -07:00
Mark
2c76943d35
emit callable type errors from call/1 and phrase/3 when appropriate ( #2202 )
2023-12-04 12:20:14 -07:00
Nicolas Luck
24e3e1794e
cargo fmt
2023-12-04 20:18:41 +01:00
Nicolas Luck
99055b553a
Don’t include unbound variables in results returned from run_query
2023-12-04 20:10:06 +01:00
Nicolas Luck
576f13df60
Merge branch 'master' into library-use-case
2023-12-04 20:06:14 +01:00
Mark
004201abda
add module name and missing predicate key to module_does_not_contain_claimed_export error ( #2195 )
2023-12-04 11:19:44 -07:00
William Kral
7f5c56a2a8
Revert "Add '%' to the list of graphic_chars ( #2199 )"
2023-12-03 22:32:49 -08:00
William Kral
aff1fdc6aa
Add '%' to the list of graphic_chars ( #2199 )
2023-12-03 21:30:05 -08:00
Markus Triska
eb575b9882
support (#=)/3 and (#<)/3 also in the monotonic execution mode
2023-12-02 22:33:56 +01:00
Mark
e667abb143
move propagated_var_nums insertion to proper scope ( #2183 )
2023-12-01 22:35:36 -07:00
Mark
347ee0211b
propagate variable hits to parent branches in push_missing_vars ( #2183 )
2023-11-30 19:46:32 -07:00
Markus Triska
8cb4dfef62
ADDED: term_si/1, true for terms
...
One use case is to ensure that once/1 is safe to use:
term_si(Goal),
once(Goal)
In such cases, Goal is ground and can yield at most one solution,
therefore once/1 does not remove any solutions.
2023-11-29 21:25:09 +01:00
Mark
de452bb2c2
fix overeager detection of (->)/2 in if position of (;)/2 ( #2183 )
2023-11-29 11:05:04 -07:00
Mark Thom
e8d8b09e52
Merge pull request #2186 from aarroyoc/cpu-now-wasm32
...
Implement $cpu_now in wasm32
2023-11-28 16:17:44 -07:00
Mark
631674db29
open pl files instead of directories ( #2014 )
2023-11-28 15:32:06 -07:00
Adrián Arroyo Calle
4c795018b4
Implement $cpu_now in wasm32
2023-11-28 23:30:02 +01:00
Mark
5cb207d8b3
allocate cut variables properly ( #2183 )
2023-11-28 14:38:48 -07:00
Mark
de5de0cfaf
allocate cut variables as temporaries when in non-allocating clause ( #2183 )
2023-11-28 12:58:54 -07:00
Mark
b8ef367824
bind missing module atom in retract/1 ( #2182 )
2023-11-25 20:59:04 -07:00
Mark Thom
4181c9fab2
Merge branch 'master' into flame
2023-11-24 18:00:55 +01:00
Mark
1fbc7f9842
remove redundant running count increment in mark_non_callable ( #2176 )
2023-11-23 22:05:31 -07:00