]> Repositorios git - scryer-prolog.git/log
scryer-prolog.git
21 months agoFix warnings
bakaq [Fri, 6 Sep 2024 20:56:12 +0000 (17:56 -0300)]
Fix warnings

21 months agoMake macros private
bakaq [Fri, 6 Sep 2024 19:51:10 +0000 (16:51 -0300)]
Make macros private

21 months agoBe conservative with visibility
bakaq [Tue, 20 Aug 2024 02:19:09 +0000 (23:19 -0300)]
Be conservative with visibility

21 months agoMerge pull request #2491 from coasys/reqwest-version-relax
Mark Thom [Thu, 29 Aug 2024 18:22:46 +0000 (12:22 -0600)]
Merge pull request #2491 from coasys/reqwest-version-relax

Relax version constraint on reqwest dependency

21 months agoFix spelling of reqWest
Nicolas Luck [Thu, 22 Aug 2024 10:55:32 +0000 (12:55 +0200)]
Fix spelling of reqWest

Co-authored-by: Bennet Bleßmann <[email protected]>
21 months agoClean-up comment
Nicolas Luck [Tue, 20 Aug 2024 20:09:32 +0000 (22:09 +0200)]
Clean-up comment

21 months agoMore precise comment mentioning Deno
Nicolas Luck [Tue, 20 Aug 2024 20:08:11 +0000 (22:08 +0200)]
More precise comment mentioning Deno

Co-authored-by: Bennet Bleßmann <[email protected]>
21 months agoMerge pull request #2475 from bakaq/value_heap_walk
Mark Thom [Mon, 19 Aug 2024 22:33:13 +0000 (16:33 -0600)]
Merge pull request #2475 from bakaq/value_heap_walk

Value heap walk in lib_machine

21 months agoFix order of variables in bindings
bakaq [Mon, 19 Aug 2024 17:20:43 +0000 (14:20 -0300)]
Fix order of variables in bindings

21 months agoMerge pull request #2474 from Skgland/fix-looping-memory-allocation
Mark Thom [Sun, 18 Aug 2024 02:58:03 +0000 (20:58 -0600)]
Merge pull request #2474 from Skgland/fix-looping-memory-allocation

Fix looping memory allocation

21 months agoMerge pull request #2495 from Skgland/fix2467
Mark Thom [Sun, 18 Aug 2024 02:56:23 +0000 (20:56 -0600)]
Merge pull request #2495 from Skgland/fix2467

fix looping from issue #2467

21 months agofix looping from issue 2467
Bennet Bleßmann [Sat, 17 Aug 2024 21:33:32 +0000 (23:33 +0200)]
fix looping from issue 2467

21 months agoExplanatory comment for the wildcard patch version
Nicolas Luck [Fri, 16 Aug 2024 14:16:16 +0000 (16:16 +0200)]
Explanatory comment for the wildcard patch version

21 months agoExplanatory comment for the wildcard patch version
Nicolas Luck [Fri, 16 Aug 2024 14:15:10 +0000 (16:15 +0200)]
Explanatory comment for the wildcard patch version

21 months agoFix partial strings ending in lists
bakaq [Fri, 16 Aug 2024 11:08:05 +0000 (08:08 -0300)]
Fix partial strings ending in lists

21 months agoFix lists of chars as strings
bakaq [Fri, 16 Aug 2024 03:34:46 +0000 (00:34 -0300)]
Fix lists of chars as strings

21 months agoRepresent atom [] as empty list
bakaq [Fri, 16 Aug 2024 03:01:25 +0000 (00:01 -0300)]
Represent atom [] as empty list

21 months agoDifferentiate anonymous variables
bakaq [Thu, 15 Aug 2024 07:55:20 +0000 (04:55 -0300)]
Differentiate anonymous variables

21 months agotypo
Nicolas Luck [Thu, 15 Aug 2024 20:41:48 +0000 (22:41 +0200)]
typo

21 months agoRelax constraint on version of reqwest dependency (Cargo will pick the latest patch...
Nicolas Luck [Thu, 15 Aug 2024 20:40:35 +0000 (22:40 +0200)]
Relax constraint on version of reqwest dependency (Cargo will pick the latest patch that's possible, but not fail if another dep. has it pinned to something below patch 27)

21 months agoValue::from_heapcell() implemented with heap walk
bakaq [Sun, 11 Aug 2024 19:17:40 +0000 (16:17 -0300)]
Value::from_heapcell() implemented with heap walk

21 months agoValue::from_heapcell()
bakaq [Sun, 11 Aug 2024 17:12:34 +0000 (14:12 -0300)]
Value::from_heapcell()

21 months agoMerge pull request #2472 from bakaq/query_iterator
Mark Thom [Thu, 15 Aug 2024 02:26:03 +0000 (20:26 -0600)]
Merge pull request #2472 from bakaq/query_iterator

Add run_query_iter()

21 months agoTests for run_query_iter()
bakaq [Wed, 14 Aug 2024 21:30:56 +0000 (18:30 -0300)]
Tests for run_query_iter()

21 months agoImplement run_query() in terms of run_query_iter()
bakaq [Wed, 14 Aug 2024 21:44:10 +0000 (18:44 -0300)]
Implement run_query() in terms of run_query_iter()

21 months agoAdd run_query_iter()
bakaq [Wed, 14 Aug 2024 21:39:59 +0000 (18:39 -0300)]
Add run_query_iter()

21 months agoMerge pull request #2482 from bakaq/flake
Mark Thom [Wed, 14 Aug 2024 12:36:16 +0000 (06:36 -0600)]
Merge pull request #2482 from bakaq/flake

Add flake.nix

21 months agoMerge pull request #2485 from aarroyoc/learn-pages-docs
Mark Thom [Wed, 14 Aug 2024 12:35:58 +0000 (06:35 -0600)]
Merge pull request #2485 from aarroyoc/learn-pages-docs

Upgrade docs to DocLog 2.0. Includes a test learning page

21 months agoUpgrade docs to DocLog 2.0. Includes a test learning page
Adrián Arroyo Calle [Wed, 14 Aug 2024 09:19:08 +0000 (11:19 +0200)]
Upgrade docs to DocLog 2.0. Includes a test learning page

21 months agoflake.nix
bakaq [Tue, 13 Aug 2024 17:27:48 +0000 (14:27 -0300)]
flake.nix

22 months agoinclude the type name for better pin-pointing of the error source
Bennet Bleßmann [Sun, 11 Aug 2024 19:53:02 +0000 (21:53 +0200)]
include the type name for better pin-pointing of the error source

- only done here as all other places are non-generic and the panic already includes file and line info, only here are we in a generic context and might need more differentiation

22 months agocheck whether (re-)allocation succeeded
Bennet Bleßmann [Sun, 11 Aug 2024 17:19:00 +0000 (19:19 +0200)]
check whether (re-)allocation succeeded

fixes mthom/scryer-prolog#2449

22 months agoadd detail to comment
Bennet Bleßmann [Sun, 11 Aug 2024 17:18:35 +0000 (19:18 +0200)]
add detail to comment

22 months agoMerge pull request #2463 from Skgland/split-up-inconsitent-entry-error
Mark Thom [Mon, 5 Aug 2024 20:25:33 +0000 (14:25 -0600)]
Merge pull request #2463 from Skgland/split-up-inconsitent-entry-error

Split up inconsistent entry error

22 months agoswitch invalid term from type to domain error
Bennet Bleßmann [Sun, 4 Aug 2024 13:16:37 +0000 (15:16 +0200)]
switch invalid term from type to domain error

22 months agofix remaining use of declaration instead of directive
Bennet Bleßmann [Sun, 4 Aug 2024 10:24:44 +0000 (12:24 +0200)]
fix remaining use of declaration instead of directive

22 months agoremove obsolete ExistenceError::Declaration
Bennet Bleßmann [Sun, 4 Aug 2024 10:23:31 +0000 (12:23 +0200)]
remove obsolete ExistenceError::Declaration

22 months agochange declaration to directive
Bennet Bleßmann [Sun, 4 Aug 2024 10:10:15 +0000 (12:10 +0200)]
change declaration to directive

22 months agoajust/add devlaration errors to be more standard compliant
Bennet Bleßmann [Sat, 3 Aug 2024 20:59:29 +0000 (22:59 +0200)]
ajust/add devlaration errors to be more standard compliant

22 months agoimpl PartialEq<str> and PartialEq<&str> for Atom
Bennet Bleßmann [Sat, 3 Aug 2024 20:41:02 +0000 (22:41 +0200)]
impl PartialEq<str> and PartialEq<&str> for Atom

22 months agoadjust errors to be more standard compliant
Bennet Bleßmann [Sat, 3 Aug 2024 20:07:48 +0000 (22:07 +0200)]
adjust errors to be more standard compliant

22 months agofix compilation for 1.77
Bennet Bleßmann [Sat, 3 Aug 2024 18:04:16 +0000 (20:04 +0200)]
fix compilation for 1.77

22 months agosplit up CompilationError::InconsistentEntry
Bennet Bleßmann [Wed, 31 Jul 2024 21:49:42 +0000 (23:49 +0200)]
split up CompilationError::InconsistentEntry

22 months agoadd test for declaration errors
Bennet Bleßmann [Sat, 3 Aug 2024 16:34:34 +0000 (18:34 +0200)]
add test for declaration errors

22 months agouse an enum for OpDesc spec
Bennet Bleßmann [Wed, 31 Jul 2024 21:48:27 +0000 (23:48 +0200)]
use an enum for OpDesc spec

22 months agoMerge pull request #2466 from Skgland/upgrade-deps
Mark Thom [Mon, 5 Aug 2024 18:59:42 +0000 (12:59 -0600)]
Merge pull request #2466 from Skgland/upgrade-deps

Upgrade dependencies

22 months agoreplace derive_deref with derive_more
Bennet Bleßmann [Sun, 4 Aug 2024 00:40:26 +0000 (02:40 +0200)]
replace derive_deref with derive_more

- the latter already used in our transitive dependencies
- derive_more appears better maintained

22 months agoreplace select by scrape
Bennet Bleßmann [Sun, 4 Aug 2024 00:35:36 +0000 (02:35 +0200)]
replace select by scrape

- the latter appears better maintained and more up to date
- removes some dupplicate/outdated transitive deps

22 months agoresolve problems from deps upgrade
Bennet Bleßmann [Sat, 3 Aug 2024 23:39:31 +0000 (01:39 +0200)]
resolve problems from deps upgrade

- downgrade reqwest to 0.11.27
  - fixes problems with missmatched transitive dependencies between it and warp, mainly http
- replace deprecated ripemd160 with ripemd (as specified in the formers readme)
- indexmap: replace deprecated remove with functionally identical swap_remove

22 months agoupdate/upgrade dependencies
Bennet Bleßmann [Sat, 3 Aug 2024 22:01:45 +0000 (00:01 +0200)]
update/upgrade dependencies

22 months agoMerge pull request #2462 from Skgland/fix-segfault
Mark Thom [Sat, 3 Aug 2024 20:05:13 +0000 (14:05 -0600)]
Merge pull request #2462 from Skgland/fix-segfault

fix segfault by dropping loader state payload after resetting machine

22 months agoprevent accidental double free by checking tag before drop
Bennet Bleßmann [Sat, 3 Aug 2024 17:36:05 +0000 (19:36 +0200)]
prevent accidental double free by checking tag before drop

22 months agodrop payload after resetting machine
Bennet Bleßmann [Sat, 3 Aug 2024 17:27:32 +0000 (19:27 +0200)]
drop payload after resetting machine

- under some circumstances the payload is accessed durring reset which would cause a segfault if we drop the payload too early

22 months agoMerge pull request #2457 from Skgland/library
Mark Thom [Fri, 26 Jul 2024 17:29:12 +0000 (11:29 -0600)]
Merge pull request #2457 from Skgland/library

simplify generated libraries map by using `include_str!`

22 months agoFix build on WASM after #2442
Adrián Arroyo Calle [Mon, 8 Jul 2024 14:12:10 +0000 (16:12 +0200)]
Fix build on WASM after #2442

(cherry-pick of 3acf4c637b6f8b17bb0230edeaaae0507d9030d1 from PR
mthom/scryer-prolog#2446)

22 months agofix copy-past error
Bennet Bleßmann [Thu, 25 Jul 2024 22:13:49 +0000 (00:13 +0200)]
fix copy-past error

22 months agoadd a features for gating things we can use once 1.80 is msrv
Bennet Bleßmann [Thu, 25 Jul 2024 21:09:17 +0000 (23:09 +0200)]
add a features for gating things we can use once 1.80 is msrv

22 months agouse a OnceLock static for LIBRARIES instead of thread_local! static
Bennet Bleßmann [Thu, 25 Jul 2024 16:58:29 +0000 (18:58 +0200)]
use a OnceLock static for LIBRARIES instead of thread_local! static

22 months agomove the creation of the LIBRARIES IndexMap out of the generated file
Bennet Bleßmann [Thu, 25 Jul 2024 16:53:36 +0000 (18:53 +0200)]
move the creation of the LIBRARIES IndexMap out of the generated file

- only leave the filling of the map in the generated code

22 months agorun rustfmt
Bennet Bleßmann [Mon, 22 Jul 2024 22:01:58 +0000 (00:01 +0200)]
run rustfmt

22 months agouse include_str! for the build in libraries
Bennet Bleßmann [Mon, 22 Jul 2024 22:01:29 +0000 (00:01 +0200)]
use include_str! for the build in libraries

instead of "copy-paste-ing" the prolog source into rust string literals in the generated files

22 months agoMerge pull request #2439 from Skgland/miri
Mark Thom [Mon, 22 Jul 2024 19:40:57 +0000 (13:40 -0600)]
Merge pull request #2439 from Skgland/miri

Some cleanup and miri fixes

23 months agoMerge pull request #2442 from aarroyoc/fix-http-at-end-of-stream
Mark Thom [Sun, 7 Jul 2024 22:02:51 +0000 (16:02 -0600)]
Merge pull request #2442 from aarroyoc/fix-http-at-end-of-stream

Fix at_end_of_stream/1 for http read stream

23 months agoMerge pull request #2440 from triska/statistics
Mark Thom [Sun, 7 Jul 2024 21:59:44 +0000 (15:59 -0600)]
Merge pull request #2440 from triska/statistics

ADDED: Preliminary support for statistics/2.

23 months agofix leak of slaps with dropped payload
Bennet Bleßmann [Sun, 7 Jul 2024 13:51:22 +0000 (15:51 +0200)]
fix leak of slaps with dropped payload

23 months agocleanup the slab types
Bennet Bleßmann [Sun, 7 Jul 2024 13:47:50 +0000 (15:47 +0200)]
cleanup the slab types

- get rid of HeaderOrIdxPtr
- add IndexPtrSlab
- add UntypedArenaSlab
- add to_untyped for converting a typed slab into an unsyped slab
- remove TypedArenaPtr::new, as they shouldn't be created outside of this module

23 months agowrap Payloads that are dropped eraly in ManuallyDrop
Bennet Bleßmann [Sun, 7 Jul 2024 13:21:08 +0000 (15:21 +0200)]
wrap Payloads that are dropped eraly in ManuallyDrop

23 months agocheck that we don't attempt to un-drop while evacuating
Bennet Bleßmann [Sun, 7 Jul 2024 12:37:28 +0000 (14:37 +0200)]
check that we don't attempt to un-drop while evacuating

23 months agoadd `AllocateInArena` as a Pivot for `arena_alloc!`
Bennet Bleßmann [Sun, 7 Jul 2024 12:36:53 +0000 (14:36 +0200)]
add `AllocateInArena` as a Pivot for  `arena_alloc!`

so that the value type passed to `arena_alloc!` can differ from the `ArenaAllocated::Payload` type

23 months agoremove unsafe `impl From<UntypedArenaPtr> for CodeIndex`
Bennet Bleßmann [Sun, 7 Jul 2024 12:18:50 +0000 (14:18 +0200)]
remove unsafe `impl From<UntypedArenaPtr> for CodeIndex`

23 months agoignore `pstr_iter_tests` test in miri as it takes too long
Skgland [Sun, 7 Jul 2024 09:06:11 +0000 (11:06 +0200)]
ignore `pstr_iter_tests` test in miri as it takes too long

23 months agofix clippy again
Bennet Bleßmann [Sat, 6 Jul 2024 21:18:35 +0000 (23:18 +0200)]
fix clippy again

23 months agofix leak of ArenaAllocated IndexPtr
Bennet Bleßmann [Sat, 6 Jul 2024 21:08:21 +0000 (23:08 +0200)]
fix leak of ArenaAllocated IndexPtr

23 months agoreplace static Once and two mut statics with one static OnceLock
Bennet Bleßmann [Sat, 6 Jul 2024 20:48:04 +0000 (22:48 +0200)]
replace static Once and two mut statics with one static OnceLock

23 months agoreduce span of unsafe block
Bennet Bleßmann [Sat, 6 Jul 2024 20:47:22 +0000 (22:47 +0200)]
reduce span of unsafe block

23 months agoswitch macos to latest as macos-11 has been removed
Bennet Bleßmann [Sat, 6 Jul 2024 16:47:35 +0000 (18:47 +0200)]
switch macos to latest as macos-11 has been removed

See https://github.com/actions/runner-images/issues/9255

23 months agofix clippy
Bennet Bleßmann [Sat, 6 Jul 2024 16:26:34 +0000 (18:26 +0200)]
fix clippy

23 months agoadjust ignore reason
Bennet Bleßmann [Sat, 6 Jul 2024 16:24:16 +0000 (18:24 +0200)]
adjust ignore reason

23 months agoif UB un IndexPtr ArenaAllocated impl
Bennet Bleßmann [Sat, 6 Jul 2024 15:43:13 +0000 (17:43 +0200)]
if UB un IndexPtr ArenaAllocated impl

23 months agoreplace `ref_thread_local::ref_thread_local!` with `std::thread_local!`
Bennet Bleßmann [Sat, 6 Jul 2024 14:56:41 +0000 (16:56 +0200)]
replace `ref_thread_local::ref_thread_local!` with `std::thread_local!`

removes `ref_thread_local` which was still at 0.0.0 released October 2018 while latest 0.1.1 was released mid November 2021

fixes libraries.rs UB

23 months agofix stack alignement
Bennet Bleßmann [Sat, 6 Jul 2024 14:21:20 +0000 (16:21 +0200)]
fix stack alignement

- adjust align() in RawBlockTraits impl for Stack
- ensure ptr is always aligned in RawBlock::allock

23 months agomake components a comma seperated string instead of a list
Bennet Bleßmann [Sat, 6 Jul 2024 14:01:52 +0000 (16:01 +0200)]
make components a comma seperated string instead of a list

23 months agoFix at_end_of_stream/1 for http read stream
Adrián Arroyo Calle [Sat, 6 Jul 2024 14:00:50 +0000 (16:00 +0200)]
Fix at_end_of_stream/1 for http read stream

23 months agoadd miri to CI
Bennet Bleßmann [Sat, 6 Jul 2024 13:46:04 +0000 (15:46 +0200)]
add miri to CI

23 months agoadd associated Payload type to ArenaAllocated
Bennet Bleßmann [Sat, 6 Jul 2024 13:37:08 +0000 (15:37 +0200)]
add associated Payload type to ArenaAllocated

23 months agoswitch Rcu to the arcu crate
Bennet Bleßmann [Sat, 6 Jul 2024 12:49:19 +0000 (14:49 +0200)]
switch Rcu to the arcu crate

The arcu crate is a more general implementation of the Rcu I implemented in here in scryer. It contains some bug-fixes regarding race-conditions in the Rcu update function, which could cause leaks and uses after free.

Source of the problem was the Relaxed load/strore/update of the reference count in side the Arc not being properly ordered with other load/stores.

23 months agofix stream.rs UB
Bennet Bleßmann [Sat, 6 Jul 2024 12:01:51 +0000 (14:01 +0200)]
fix stream.rs UB

23 months agosomehow this was never marked as bad
Bennet Bleßmann [Sat, 6 Jul 2024 11:41:35 +0000 (13:41 +0200)]
somehow this was never marked as bad

23 months agoclippy: change ToString impl to Display
Bennet Bleßmann [Sat, 6 Jul 2024 11:28:44 +0000 (13:28 +0200)]
clippy: change ToString impl to Display

- write directly to formatter, eliminating intermediate String allocations
- take Value by reference eliminating clones
- remove trim() called on the result of  QueryResolution::to_string
    - we only  emit "true", "false", or "[<resolutions>]"
      neither of which contains trailing or leading withespace,
      so the calls was effectively a noop

23 months agoclippy: use type associated constants
Bennet Bleßmann [Sat, 6 Jul 2024 11:08:59 +0000 (13:08 +0200)]
clippy: use type associated constants

23 months agoclippy: ptr dereference in safe function
Bennet Bleßmann [Sat, 6 Jul 2024 11:07:26 +0000 (13:07 +0200)]
clippy: ptr dereference in safe function

23 months agoclippy: identity conversion
Bennet Bleßmann [Sat, 6 Jul 2024 11:06:50 +0000 (13:06 +0200)]
clippy: identity conversion

23 months agofix saftey comment
Bennet Bleßmann [Sat, 6 Jul 2024 11:06:24 +0000 (13:06 +0200)]
fix saftey comment

23 months agoclippy: explicit ptr addrs comparision
Bennet Bleßmann [Sat, 6 Jul 2024 11:06:13 +0000 (13:06 +0200)]
clippy: explicit ptr addrs comparision

relevant for wide pointers i.e. pointers with metadata

23 months agoclippy: allow new without default
Bennet Bleßmann [Sat, 6 Jul 2024 11:04:55 +0000 (13:04 +0200)]
clippy: allow new without default

23 months agoclippy: use clone_from rather than clone
Bennet Bleßmann [Sat, 6 Jul 2024 11:03:14 +0000 (13:03 +0200)]
clippy: use clone_from rather than clone

23 months agoclippy: ignore unused fields on PrologBenchmark struct
Bennet Bleßmann [Sat, 6 Jul 2024 11:01:19 +0000 (13:01 +0200)]
clippy: ignore unused fields on PrologBenchmark struct

23 months agoADDED: Preliminary support for statistics/2.
Markus Triska [Sat, 6 Jul 2024 09:15:30 +0000 (11:15 +0200)]
ADDED: Preliminary support for statistics/2.

This is needed for benchmarking library(reif) and its newly provided
goal expansion (#2433).

It partly addresses #321.

23 months agorun rustfmt
Bennet Bleßmann [Sat, 6 Jul 2024 02:18:02 +0000 (04:18 +0200)]
run rustfmt

23 months agoupdate ignore reason
Bennet Bleßmann [Sat, 6 Jul 2024 02:01:41 +0000 (04:01 +0200)]
update ignore reason