]> Repositorios git - scryer-prolog.git/log
scryer-prolog.git
2 years agofix formatting
Skgland [Mon, 4 Dec 2023 21:41:25 +0000 (22:41 +0100)]
fix formatting

2 years agorename to match toml file
Skgland [Mon, 4 Dec 2023 21:23:04 +0000 (22:23 +0100)]
rename to match toml file

- goals.pl is used by both compound_goal.toml and multiple_goals.toml therefor renamed the later to share a common prefix with goals.pl, to keep them together

2 years agomove .pl files from tests-pl next to the .toml of the test that uses them
Skgland [Mon, 4 Dec 2023 21:16:04 +0000 (22:16 +0100)]
move .pl files from tests-pl next to the .toml of the test that uses them

2 years agoFile-oriented testing
Skgland [Mon, 4 Dec 2023 21:00:52 +0000 (22:00 +0100)]
File-oriented testing

inspired by #2191 but for the `run_top_level_test_with_args`s and  `run_top_level_test_no_args instead of the `load_module_test`s

2 years agocorrect cargo fmt errors
Mark [Mon, 4 Dec 2023 19:20:54 +0000 (12:20 -0700)]
correct cargo fmt errors

2 years agoemit callable type errors from call/1 and phrase/3 when appropriate (#2202)
Mark [Mon, 4 Dec 2023 19:20:14 +0000 (12:20 -0700)]
emit callable type errors from call/1 and phrase/3 when appropriate (#2202)

2 years agoadd module name and missing predicate key to module_does_not_contain_claimed_export...
Mark [Mon, 4 Dec 2023 18:19:36 +0000 (11:19 -0700)]
add module name and missing predicate key to module_does_not_contain_claimed_export error (#2195)

2 years agoMerge pull request #2201 from wkral/revert-2200-percent-graphic-char
Mark Thom [Mon, 4 Dec 2023 17:46:37 +0000 (10:46 -0700)]
Merge pull request #2201 from wkral/revert-2200-percent-graphic-char

Revert "Add '%' to the list of graphic_chars (#2199)"

2 years agoRevert "Add '%' to the list of graphic_chars (#2199)"
William Kral [Mon, 4 Dec 2023 06:19:59 +0000 (22:19 -0800)]
Revert "Add '%' to the list of graphic_chars (#2199)"

2 years agoMerge pull request #2200 from wkral/percent-graphic-char
Mark Thom [Mon, 4 Dec 2023 06:02:05 +0000 (23:02 -0700)]
Merge pull request #2200 from wkral/percent-graphic-char

Add '%' to the list of graphic_chars (#2119)

2 years agoAdd '%' to the list of graphic_chars (#2199)
William Kral [Mon, 4 Dec 2023 03:38:40 +0000 (19:38 -0800)]
Add '%' to the list of graphic_chars (#2199)

2 years agoMerge pull request #2194 from triska/clpz_monotonic
Mark Thom [Sun, 3 Dec 2023 03:16:59 +0000 (20:16 -0700)]
Merge pull request #2194 from triska/clpz_monotonic

support (#=)/3 and (#<)/3 also in the monotonic execution mode

2 years agosupport (#=)/3 and (#<)/3 also in the monotonic execution mode
Markus Triska [Sat, 2 Dec 2023 21:33:56 +0000 (22:33 +0100)]
support (#=)/3 and (#<)/3 also in the monotonic execution mode

2 years agomove propagated_var_nums insertion to proper scope (#2183)
Mark [Sat, 2 Dec 2023 05:35:36 +0000 (22:35 -0700)]
move propagated_var_nums insertion to proper scope (#2183)

2 years agopropagate variable hits to parent branches in push_missing_vars (#2183)
Mark [Thu, 30 Nov 2023 19:25:28 +0000 (12:25 -0700)]
propagate variable hits to parent branches in push_missing_vars (#2183)

2 years agoMerge pull request #2187 from triska/term_si
Mark Thom [Wed, 29 Nov 2023 20:52:38 +0000 (13:52 -0700)]
Merge pull request #2187 from triska/term_si

ADDED: term_si/1, true for terms

2 years agoADDED: term_si/1, true for terms
Markus Triska [Wed, 29 Nov 2023 20:24:54 +0000 (21:24 +0100)]
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.

2 years agofix overeager detection of (->)/2 in if position of (;)/2 (#2183)
Mark [Wed, 29 Nov 2023 17:51:55 +0000 (10:51 -0700)]
fix overeager detection of (->)/2 in if position of (;)/2 (#2183)

2 years agoMerge pull request #2186 from aarroyoc/cpu-now-wasm32
Mark Thom [Tue, 28 Nov 2023 23:17:44 +0000 (16:17 -0700)]
Merge pull request #2186 from aarroyoc/cpu-now-wasm32

Implement $cpu_now in wasm32

2 years agoopen pl files instead of directories (#2014)
Mark [Tue, 28 Nov 2023 22:31:00 +0000 (15:31 -0700)]
open pl files instead of directories (#2014)

2 years agoMerge pull request #2184 from mthom/dependabot/cargo/openssl-0.10.60
Mark Thom [Tue, 28 Nov 2023 22:31:53 +0000 (15:31 -0700)]
Merge pull request #2184 from mthom/dependabot/cargo/openssl-0.10.60

Bump openssl from 0.10.57 to 0.10.60

2 years agoImplement $cpu_now in wasm32
Adrián Arroyo Calle [Tue, 28 Nov 2023 22:11:52 +0000 (23:11 +0100)]
Implement $cpu_now in wasm32

2 years agoBump openssl from 0.10.57 to 0.10.60
dependabot[bot] [Tue, 28 Nov 2023 21:43:23 +0000 (21:43 +0000)]
Bump openssl from 0.10.57 to 0.10.60

Bumps [openssl](https://github.com/sfackler/rust-openssl) from 0.10.57 to 0.10.60.
- [Release notes](https://github.com/sfackler/rust-openssl/releases)
- [Commits](https://github.com/sfackler/rust-openssl/compare/openssl-v0.10.57...openssl-v0.10.60)

---
updated-dependencies:
- dependency-name: openssl
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
2 years agoallocate cut variables properly (#2183)
Mark [Tue, 28 Nov 2023 21:38:48 +0000 (14:38 -0700)]
allocate cut variables properly (#2183)

2 years agoallocate cut variables as temporaries when in non-allocating clause (#2183)
Mark [Tue, 28 Nov 2023 19:58:54 +0000 (12:58 -0700)]
allocate cut variables as temporaries when in non-allocating clause (#2183)

2 years agobind missing module atom in retract/1 (#2182)
Mark [Sun, 26 Nov 2023 03:59:01 +0000 (20:59 -0700)]
bind missing module atom in retract/1 (#2182)

2 years agoMerge pull request #2169 from infogulch/flame
Mark Thom [Fri, 24 Nov 2023 17:57:13 +0000 (18:57 +0100)]
Merge pull request #2169 from infogulch/flame

Benchmark improvements

2 years agoMerge branch 'master' into flame
Mark Thom [Fri, 24 Nov 2023 17:00:55 +0000 (18:00 +0100)]
Merge branch 'master' into flame

2 years agoremove redundant running count increment in mark_non_callable (#2176)
Mark [Fri, 24 Nov 2023 05:01:21 +0000 (22:01 -0700)]
remove redundant running count increment in mark_non_callable (#2176)

2 years agoMerge pull request #2179 from mthom/fix_stress_integration_test
Mark Thom [Thu, 23 Nov 2023 20:31:12 +0000 (21:31 +0100)]
Merge pull request #2179 from mthom/fix_stress_integration_test

Fix stress integration test

2 years agoset b0 to b for run_query call
Mark [Thu, 23 Nov 2023 19:55:55 +0000 (12:55 -0700)]
set b0 to b for run_query call

2 years agoMerge pull request #2173 from aarroyoc/js-eval
Mark Thom [Wed, 22 Nov 2023 20:52:49 +0000 (21:52 +0100)]
Merge pull request #2173 from aarroyoc/js-eval

Add js_eval/2 for wasm32

2 years agoAdd js_eval/2 for wasm32
Adrián Arroyo Calle [Mon, 20 Nov 2023 16:45:22 +0000 (17:45 +0100)]
Add js_eval/2 for wasm32

2 years agoMerge pull request #2177 from mthom/remove_assertx
Mark Thom [Wed, 22 Nov 2023 16:54:55 +0000 (17:54 +0100)]
Merge pull request #2177 from mthom/remove_assertx

Remove assert(a,z)/2 (#1975)

2 years agoremove assert(a,z)/2 (#1975)
Mark [Wed, 22 Nov 2023 16:24:07 +0000 (09:24 -0700)]
remove assert(a,z)/2 (#1975)

2 years agoadd CutPoint to select_switch_on_term_index (#2176)
Mark [Wed, 22 Nov 2023 15:57:23 +0000 (08:57 -0700)]
add CutPoint to select_switch_on_term_index (#2176)

2 years agoExpose inference counts on Machine; publish to CI
infogulch [Wed, 22 Nov 2023 00:12:26 +0000 (18:12 -0600)]
Expose inference counts on Machine; publish to CI

2 years agoUpgrade to latest iai for summary output
infogulch [Tue, 21 Nov 2023 19:07:33 +0000 (13:07 -0600)]
Upgrade to latest iai for summary output

2 years agoMerge pull request #1999 from triska/time_inferences
Mark Thom [Tue, 21 Nov 2023 22:04:26 +0000 (23:04 +0100)]
Merge pull request #1999 from triska/time_inferences

ENHANCED: time/1 now shows the number of inferences

2 years agofix copy_term/2 variable copying bug in lists (#923, #2127)
Mark [Tue, 21 Nov 2023 19:50:10 +0000 (12:50 -0700)]
fix copy_term/2 variable copying bug in lists (#923, #2127)

2 years agoBenchmark improvements
infogulch [Thu, 16 Nov 2023 05:18:41 +0000 (23:18 -0600)]
Benchmark improvements

* CI: Clean offline; display cleaned bytes; one artifact upload
* Add missing csv bench to iai benchmarks
* Generate flamegraphs for benchmarks
* Validate benchmark results separately

2 years agoRemove accidentally committed files
infogulch [Wed, 15 Nov 2023 21:55:20 +0000 (15:55 -0600)]
Remove accidentally committed files

2 years agoENHANCED: time/1 now shows the number of inferences
Markus Triska [Tue, 21 Nov 2023 19:31:48 +0000 (20:31 +0100)]
ENHANCED: time/1 now shows the number of inferences

Example:

    ?- time(member(X, "abc")).
       % CPU time: 0.000s, 1 inference
       X = a
    ;  % CPU time: 0.000s, 3 inferences
       X = b
    ;  % CPU time: 0.000s, 3 inferences
       X = c.

This is an initial step towards addressing #1039.

2 years agofix error detection in int_pow (#2161)
Mark [Tue, 21 Nov 2023 15:28:55 +0000 (08:28 -0700)]
fix error detection in int_pow (#2161)

2 years agoadd global_count inference counter that is always incremented (#2009)
Mark [Mon, 20 Nov 2023 23:24:31 +0000 (16:24 -0700)]
add global_count inference counter that is always incremented (#2009)

2 years agofix dif:vars_remove_goal/2 (#2175), untabify forms.rs to appease format check
Mark [Mon, 20 Nov 2023 20:40:58 +0000 (13:40 -0700)]
fix dif:vars_remove_goal/2 (#2175), untabify forms.rs to appease format check

2 years agoremove unnecessary spaces around (|) (#2164)
Mark [Sun, 19 Nov 2023 15:46:20 +0000 (08:46 -0700)]
remove unnecessary spaces around (|) (#2164)

2 years agoMerge pull request #2168 from aarroyoc/update-web-2023-11-15
Mark Thom [Thu, 16 Nov 2023 20:07:25 +0000 (21:07 +0100)]
Merge pull request #2168 from aarroyoc/update-web-2023-11-15

Remove Scryer Prolog meetup banner :(

2 years agoMerge pull request #2159 from mthom/dependabot/cargo/rustix-0.38.21
Mark Thom [Thu, 16 Nov 2023 20:07:03 +0000 (21:07 +0100)]
Merge pull request #2159 from mthom/dependabot/cargo/rustix-0.38.21

Bump rustix from 0.38.14 to 0.38.21

2 years agoBump rustix from 0.38.14 to 0.38.21
dependabot[bot] [Thu, 16 Nov 2023 19:27:40 +0000 (19:27 +0000)]
Bump rustix from 0.38.14 to 0.38.21

Bumps [rustix](https://github.com/bytecodealliance/rustix) from 0.38.14 to 0.38.21.
- [Release notes](https://github.com/bytecodealliance/rustix/releases)
- [Commits](https://github.com/bytecodealliance/rustix/compare/v0.38.14...v0.38.21)

---
updated-dependencies:
- dependency-name: rustix
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
2 years agoMerge pull request #2167 from infogulch/ci-checks-permission
Mark Thom [Thu, 16 Nov 2023 08:30:27 +0000 (09:30 +0100)]
Merge pull request #2167 from infogulch/ci-checks-permission

Add checks permission to ci workflow

2 years agoRemove Scryer Prolog meetup banner :(
Adrián Arroyo Calle [Wed, 15 Nov 2023 21:42:18 +0000 (22:42 +0100)]
Remove Scryer Prolog meetup banner :(

2 years agofix sign/1 (#2157)
Mark Thom [Wed, 15 Nov 2023 19:38:24 +0000 (20:38 +0100)]
fix sign/1 (#2157)

2 years agoAdd checks permission to ci workflow
infogulch [Wed, 15 Nov 2023 19:07:45 +0000 (13:07 -0600)]
Add checks permission to ci workflow

This should allow dependabot builds to complete

2 years agofix shr crash (#2158)
Mark Thom [Tue, 14 Nov 2023 07:10:12 +0000 (08:10 +0100)]
fix shr crash (#2158)

2 years agoMerge pull request #2165 from infogulch/bench-csv
Mark Thom [Tue, 14 Nov 2023 06:32:07 +0000 (07:32 +0100)]
Merge pull request #2165 from infogulch/bench-csv

Bench csv

2 years agoMerge pull request #2166 from triska/more_tests
Mark Thom [Tue, 14 Nov 2023 06:31:52 +0000 (07:31 +0100)]
Merge pull request #2166 from triska/more_tests

mention more passing tests

2 years agomention more passing tests
Markus Triska [Tue, 14 Nov 2023 03:06:33 +0000 (04:06 +0100)]
mention more passing tests

2 years agoFix lint
infogulch [Mon, 13 Nov 2023 21:41:15 +0000 (15:41 -0600)]
Fix lint

2 years agoAdd csv parsing benchmark #1403
infogulch [Mon, 13 Nov 2023 21:41:06 +0000 (15:41 -0600)]
Add csv parsing benchmark #1403

2 years agoSimplify benchmark setup; support mutating machine
infogulch [Mon, 13 Nov 2023 20:58:18 +0000 (14:58 -0600)]
Simplify benchmark setup; support mutating machine

2 years agoMerge pull request #2153 from infogulch/benchmark
Mark Thom [Sun, 12 Nov 2023 06:21:25 +0000 (07:21 +0100)]
Merge pull request #2153 from infogulch/benchmark

Add benchmarks

2 years agoFix formatting issues
Joe Taber [Sat, 11 Nov 2023 19:33:19 +0000 (13:33 -0600)]
Fix formatting issues

2 years agoAdd benchmarks using library interface
infogulch [Sat, 11 Nov 2023 17:22:02 +0000 (11:22 -0600)]
Add benchmarks using library interface

2 years agoCI: Setup rust in new action; split style & report actions
infogulch [Tue, 7 Nov 2023 17:56:28 +0000 (11:56 -0600)]
CI: Setup rust in new action; split style & report actions

2 years agocorrect style failures
Mark Thom [Sat, 11 Nov 2023 17:41:46 +0000 (18:41 +0100)]
correct style failures

2 years agofix permanent variable handling over branches and cells (#2154)
Mark Thom [Sat, 11 Nov 2023 16:20:22 +0000 (17:20 +0100)]
fix permanent variable handling over branches and cells (#2154)

2 years agofix compare_pstr_to_string (#2148)
Mark [Sun, 5 Nov 2023 01:32:23 +0000 (19:32 -0600)]
fix compare_pstr_to_string (#2148)

2 years agoMerge pull request #2147 from infogulch/lint-format
Mark Thom [Sat, 4 Nov 2023 17:34:11 +0000 (11:34 -0600)]
Merge pull request #2147 from infogulch/lint-format

Resolve all lints and formating; split style checks into separate job

2 years agoSplit style checks, test reports into separate job
infogulch [Sat, 4 Nov 2023 07:22:24 +0000 (02:22 -0500)]
Split style checks, test reports into separate job

2 years agoBump Cargo.lock to reflect new scryer version
infogulch [Sat, 4 Nov 2023 07:20:55 +0000 (02:20 -0500)]
Bump Cargo.lock to reflect new scryer version

2 years agoAdd previous commit to .git-blame-ignore-revs
infogulch [Sat, 4 Nov 2023 07:20:37 +0000 (02:20 -0500)]
Add previous commit to .git-blame-ignore-revs

2 years agoResolve lints and format
infogulch [Sat, 4 Nov 2023 07:16:54 +0000 (02:16 -0500)]
Resolve lints and format

2 years agoupdate release version linked on website
Mark [Thu, 2 Nov 2023 23:34:49 +0000 (17:34 -0600)]
update release version linked on website

2 years agoupdate release link
Mark [Thu, 2 Nov 2023 23:32:33 +0000 (17:32 -0600)]
update release link

2 years agobump version number to v0.9.3 v0.9.3
Mark [Thu, 2 Nov 2023 23:01:50 +0000 (17:01 -0600)]
bump version number to v0.9.3

2 years agoMerge pull request #1880 from coasys/library-use-case remove
Mark Thom [Thu, 2 Nov 2023 22:50:01 +0000 (16:50 -0600)]
Merge pull request #1880 from coasys/library-use-case

Programatic use of Machine / Scryer as library

2 years agoCheck for target_arch = “wasm32”
Nicolas Luck [Thu, 2 Nov 2023 18:07:55 +0000 (19:07 +0100)]
Check for target_arch = “wasm32”

instead of target_os = “wasi”

2 years agoMerge branch 'master' into library-use-case
Nicolas Luck [Thu, 2 Nov 2023 10:12:54 +0000 (11:12 +0100)]
Merge branch 'master' into library-use-case

2 years agocorrect (\+)/1 (#2141)
Mark [Wed, 1 Nov 2023 05:58:59 +0000 (23:58 -0600)]
correct (\+)/1 (#2141)

2 years agoremove non-conforming hyperbolic and log10 evaluable functors
Mark [Sun, 29 Oct 2023 00:17:43 +0000 (18:17 -0600)]
remove non-conforming hyperbolic and log10 evaluable functors

2 years agofix signed modulus bug (#2134)
Mark [Sun, 29 Oct 2023 00:13:42 +0000 (18:13 -0600)]
fix signed modulus bug (#2134)

2 years agoMerge pull request #2140 from aarroyoc/rename-to-upper
Mark Thom [Sat, 28 Oct 2023 20:48:10 +0000 (14:48 -0600)]
Merge pull request #2140 from aarroyoc/rename-to-upper

Rename `to_upper` to `upper` and `to_lower` to `lower`

2 years agoRename `to_upper` to `upper` and `to_lower` to `lower`
Adrián Arroyo Calle [Sat, 28 Oct 2023 17:16:07 +0000 (19:16 +0200)]
Rename `to_upper` to `upper` and `to_lower` to `lower`

2 years agoMerge pull request #2137 from infogulch/master
Mark Thom [Thu, 26 Oct 2023 20:07:18 +0000 (14:07 -0600)]
Merge pull request #2137 from infogulch/master

CI: compile wasm separately; default 22.04; matrix

2 years agoCI: compile wasm separately; default 22.04; matrix
infogulch [Thu, 26 Oct 2023 04:29:07 +0000 (23:29 -0500)]
CI: compile wasm separately; default 22.04; matrix

2 years agoqualify dif/2 call in reinforce_goal (#2135)
Mark [Wed, 25 Oct 2023 18:26:01 +0000 (12:26 -0600)]
qualify dif/2 call in reinforce_goal (#2135)

2 years agocorrect char_type/2 (#2132)
Mark [Tue, 24 Oct 2023 21:35:37 +0000 (15:35 -0600)]
correct char_type/2 (#2132)

2 years agoremove unnecessary macros inclusion in mock_wam.rs
Mark [Tue, 24 Oct 2023 21:15:29 +0000 (15:15 -0600)]
remove unnecessary macros inclusion in mock_wam.rs

2 years agocorrect modulus bug (#2118, #2119)
Mark [Tue, 24 Oct 2023 20:20:26 +0000 (14:20 -0600)]
correct modulus bug (#2118, #2119)

2 years agoremove list remnants from stack iteration in printer when cyclic (#2131)
Mark [Tue, 24 Oct 2023 20:10:11 +0000 (14:10 -0600)]
remove list remnants from stack iteration in printer when cyclic (#2131)

2 years agofix cycle detection in lists by looking backward analogously to the same process...
Mark [Tue, 24 Oct 2023 18:23:05 +0000 (12:23 -0600)]
fix cycle detection in lists by looking backward analogously to the same process for structures (#2130)

2 years agocorrect LIS backward bug in cycle_detection.rs
Mark [Mon, 23 Oct 2023 19:28:44 +0000 (13:28 -0600)]
correct LIS backward bug in cycle_detection.rs

2 years agoadd STOP_AT_CYCLES const parameter for CycleDetectingIter
Mark [Mon, 23 Oct 2023 18:03:25 +0000 (12:03 -0600)]
add STOP_AT_CYCLES const parameter for CycleDetectingIter

2 years agouse Deutsch-Schorr-Waite to implement acyclic_term/1 (#2128)
Mark [Sun, 22 Oct 2023 03:37:27 +0000 (21:37 -0600)]
use Deutsch-Schorr-Waite to implement acyclic_term/1 (#2128)

2 years agouse topo_sort to correct acyclic_term (#2124, #2125)
Mark [Wed, 18 Oct 2023 17:58:04 +0000 (11:58 -0600)]
use topo_sort to correct acyclic_term (#2124, #2125)

2 years agoCleanup Cargo.toml
Nicolas Luck [Tue, 17 Oct 2023 20:09:34 +0000 (22:09 +0200)]
Cleanup Cargo.toml

2 years agoFix wasm warnings
Nicolas Luck [Tue, 17 Oct 2023 20:07:38 +0000 (22:07 +0200)]
Fix wasm warnings

2 years agofix cyclicity detection through variables (#2122, #2123)
Mark [Mon, 16 Oct 2023 20:20:40 +0000 (14:20 -0600)]
fix cyclicity detection through variables (#2122, #2123)

2 years agoUse std::sync::RwLock instead of tokio::sync::RwLock (by @aarroyoc)
Nicolas Luck [Mon, 16 Oct 2023 12:59:06 +0000 (14:59 +0200)]
Use std::sync::RwLock instead of tokio::sync::RwLock (by @aarroyoc)