Mark Thom
1f90dbec20
Merge pull request #2259 from bakaq/comment_warnings
...
Emit warnings as Prolog comments
2024-01-01 00:33:58 -07:00
Mark Thom
d713456e29
Merge pull request #2258 from triska/faster_scalar_product
...
ENHANCED: Suspend propagation during filtering in scalar product constraints.
2024-01-01 00:33:36 -07:00
bakaq
d9d90d1ae8
Emit warnings as Prolog comments
2023-12-30 17:39:20 -03:00
Markus Triska
62b61107e0
ENHANCED: Suspend propagation during filtering in scalar product constraints.
...
This allows subsequently invoked constraints to take the entire
filtering results into account, instead of being invoked when the
obtained information is not yet entirely used.
It speeds up programs such as the one in:
https://github.com/triska/clpz/issues/26
2023-12-30 10:30:25 +01:00
Mark Thom
1e0fa56786
Merge pull request #2252 from aarroyoc/bump-versions
...
Update ring and bump versions in Cargo.lock
2023-12-29 13:10:19 -07:00
Mark Thom
97d5bf7e97
Merge pull request #2254 from bakaq/issue_1404
...
Parse as much of a list as possible as a partial string
2023-12-29 10:40:19 -07:00
Mark
75302ab716
check that Target is an atom in scoped_clause_to_evacuable ( #2248 )
2023-12-29 10:12:08 -07:00
Adrián Arroyo Calle
742de9e77c
Update ring and bump versions in Cargo.lock
2023-12-28 20:23:01 +01:00
bakaq
921046e886
Parse as much of a list as possible as a partial string #1404
2023-12-28 15:12:32 -03:00
Mark Thom
781f4afe25
Merge pull request #2251 from triska/crrl_ed25519
...
improve structure, naming and explanation of PKCS#8v2 encoding
2023-12-27 17:37:42 -07: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
Mark Thom
2fa46e6b6c
Merge pull request #2245 from triska/crrl_ed25519
...
ENHANCED: Use crrl for Ed25519 signing and signature verification.
2023-12-26 10:09:08 -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
Mark Thom
799035c692
Merge pull request #2243 from bakaq/issue_2241
...
Fix anonymous attributed variables not showing in toplevel
2023-12-22 09:53:40 -07:00
Mark Thom
6c07256dc5
Merge pull request #2242 from triska/starting
...
explain starting Scryer Prolog
2023-12-22 09:52:56 -07:00
bakaq
20c6a327ea
Fix anonymous attributed variables not showing in toplevel #2241
2023-12-22 13:07:09 -03:00
Markus Triska
bcfdc812f9
explain starting Scryer Prolog
2023-12-22 08:36:29 +01: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
Mark Thom
e4f64581ec
Merge pull request #2229 from aarroyoc/fix-backslash-docs
...
Fix backslash docs
2023-12-17 20:20:41 -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 Thom
a66b93c96f
Merge pull request #2226 from mthom/dependabot/cargo/zerocopy-0.7.31
...
Bump zerocopy from 0.7.25 to 0.7.31
2023-12-15 11:33:03 -07: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
dependabot[bot]
749767539a
Bump zerocopy from 0.7.25 to 0.7.31
...
Bumps [zerocopy](https://github.com/google/zerocopy ) from 0.7.25 to 0.7.31.
- [Release notes](https://github.com/google/zerocopy/releases )
- [Changelog](https://github.com/google/zerocopy/blob/main/CHANGELOG.md )
- [Commits](https://github.com/google/zerocopy/compare/v0.7.25...v0.7.31 )
---
updated-dependencies:
- dependency-name: zerocopy
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-12-15 03:52:00 +00: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
1e1426cab0
Merge pull request #2207 from infogulch/ci-build-before-test
...
CI: Make test step output easier to read
2023-12-06 13:45:46 -07:00
Mark Thom
2e750671ca
Merge pull request #2211 from Skgland/file-based-cli-tests
...
fix missing .pl file for singleton test case and move .pl files under `<testcase>.in/`
2023-12-06 13:27:14 -07:00
Skgland
147e47c8eb
fix missing .pl file for singleton test case and move .pl files under <testcase>.in/
...
follow up to #2205
2023-12-06 21:21:28 +01:00
infogulch
7208916230
Clean up test step by compiling in build step
2023-12-05 20:51:04 -06:00
Mark Thom
43556f6df0
Merge pull request #2205 from Skgland/file-based-cli-tests
...
File based cli tests using trycmd
2023-12-05 14:45:00 -07: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 Thom
8665722367
Merge pull request #2204 from mthom/remove_not_as_non_terminal
...
remove (\+)//1 (#1511 )
2023-12-04 15:49:26 -07:00
Skgland
57b52fbe90
fix windows test by not disabling normalization
...
- this re-enables line ending and file path normalization
- the latter might be unwanted, but there is only a shared flag
- this might result in too loose matching of / and \ in stdout and stderr as prolog syntax may be mistaken for a path
2023-12-04 22:59:52 +01:00