]>
Repositorios git - scryer-prolog.git/log
notoria [Mon, 21 Dec 2020 19:05:45 +0000 (20:05 +0100)]
Renamed find_optimal_index to first_instantiated_index
notoria [Mon, 21 Dec 2020 19:02:22 +0000 (20:02 +0100)]
Merge pull request #6 from triska/indexing
document first instantiated argument indexing
Markus Triska [Mon, 21 Dec 2020 18:55:15 +0000 (19:55 +0100)]
document first instantiated argument indexing
Many thanks to @notoria for this brilliant idea and implementation!
notoria [Mon, 21 Dec 2020 11:19:21 +0000 (12:19 +0100)]
Organized changes into find_optimal_index
notoria [Sat, 19 Dec 2020 20:04:17 +0000 (21:04 +0100)]
Simplified the code, removed first_arg, the Option
notoria [Sat, 19 Dec 2020 13:52:38 +0000 (14:52 +0100)]
Implemented a different way to index clauses
Mark Thom [Tue, 15 Dec 2020 17:04:46 +0000 (10:04 -0700)]
Merge pull request #729 from brightly-salty/replace-dirs
Replace dirs with dirs-next
brightly-salty [Tue, 15 Dec 2020 12:59:26 +0000 (06:59 -0600)]
Replace dirs with dirs-next
Mark Thom [Sun, 6 Dec 2020 22:50:52 +0000 (15:50 -0700)]
Merge pull request #722 from aarroyoc/history-file
History file support (Rustyline 7.0) (#152)
Mark Thom [Sun, 6 Dec 2020 22:39:42 +0000 (15:39 -0700)]
Merge pull request #720 from aarroyoc/max-min-list
Add list_max & list_min to lists module
Adrián Arroyo Calle [Sun, 6 Dec 2020 22:16:25 +0000 (23:16 +0100)]
History file support (Rustyline 7.0)
Adrián Arroyo Calle [Sun, 6 Dec 2020 20:58:37 +0000 (21:58 +0100)]
Change name to list_max, list_min as PR feedback
Adrián Arroyo Calle [Sun, 6 Dec 2020 16:31:42 +0000 (17:31 +0100)]
Use foldl as PR feedback suggested
Adrián Arroyo Calle [Sat, 5 Dec 2020 13:20:50 +0000 (14:20 +0100)]
Add max_list & min_list to lists
Mark Thom [Sun, 8 Nov 2020 21:40:32 +0000 (14:40 -0700)]
Merge pull request #710 from triska/clpz-reif
ADDED: Provisional support for (#=)/3 and (#<)/3.
Markus Triska [Sun, 8 Nov 2020 08:25:56 +0000 (09:25 +0100)]
ADDED: Provisional support for (#=)/3 and (#<)/3.
These predicates are intended for constructs from library(reif), such
as if_/3. For the time being, they are defined here. If you have any
recommendations or comments regarding the best location of these
predicates, or need more of them, please file an issue.
Suggested by @Qqwy in https://github.com/triska/clpz/issues/12.
Many thanks!
Mark Thom [Wed, 4 Nov 2020 06:38:55 +0000 (23:38 -0700)]
support number/1
Mark Thom [Thu, 22 Oct 2020 06:24:30 +0000 (00:24 -0600)]
Merge branch 'master' of https://github.com/mthom/rusty-wam into master
Mark Thom [Wed, 21 Oct 2020 03:43:03 +0000 (21:43 -0600)]
Merge pull request #706 from malbarbo/fix-num
Fix build with num features
Mark Thom [Tue, 20 Oct 2020 21:25:38 +0000 (15:25 -0600)]
Merge branch 'master' of https://github.com/mthom/rusty-wam into master
Marco A L Barbosa [Sun, 18 Oct 2020 22:20:05 +0000 (19:20 -0300)]
Update num-rug-adapter to fix build with num feature.
Mark Thom [Sat, 3 Oct 2020 18:20:02 +0000 (12:20 -0600)]
Merge pull request #702 from triska/showterm
Add showterm.el and showterm.pl to the distribution
Markus Triska [Sat, 3 Oct 2020 15:13:17 +0000 (17:13 +0200)]
use "r" interactive specifier
Markus Triska [Sat, 3 Oct 2020 07:59:31 +0000 (09:59 +0200)]
refer to new tools directory
Markus Triska [Sat, 3 Oct 2020 07:52:46 +0000 (09:52 +0200)]
ADDED: showterm.el and showterm.pl to draw terms as trees in Emacs
Mark Thom [Thu, 1 Oct 2020 19:41:52 +0000 (13:41 -0600)]
Merge pull request #700 from triska/development_environment
DOC: Development environment recommendations.
Markus Triska [Thu, 1 Oct 2020 19:15:40 +0000 (21:15 +0200)]
DOC: Development environment recommendations.
Mark Thom [Mon, 14 Sep 2020 16:46:11 +0000 (10:46 -0600)]
Merge branch 'master' of https://github.com/mthom/rusty-wam into master
Mark Thom [Sun, 13 Sep 2020 16:30:50 +0000 (10:30 -0600)]
Merge pull request #698 from triska/file_must_exist
ENHANCED: library(files): Error handling if requested files do not exist.
Markus Triska [Sun, 13 Sep 2020 08:21:57 +0000 (10:21 +0200)]
ENHANCED: library(files): Error handling if requested files do not exist.
We now throw exceptions instead of failing silently, or even crashing
when using file_size/2 etc. with nonexistent files.
Mark Thom [Sun, 6 Sep 2020 00:57:03 +0000 (18:57 -0600)]
refactor SystemClauseType::Open in anticipation of #614
Mark Thom [Sun, 6 Sep 2020 00:07:58 +0000 (18:07 -0600)]
preface the 'spelling error' with an explainer comment (#687)
Mark Thom [Sat, 5 Sep 2020 14:50:07 +0000 (08:50 -0600)]
Merge pull request #696 from triska/format_distinct_variables
FIXED: format_//2: Keep different variables distinct.
Markus Triska [Sat, 5 Sep 2020 07:56:32 +0000 (09:56 +0200)]
FIXED: format_//2: Keep different variables distinct.
Example:
?- phrase(format_("~w~w", [_,_]), Ls).
%@ Ls = "AB"
%@ ; false.
Mark Thom [Wed, 2 Sep 2020 18:52:53 +0000 (12:52 -0600)]
Merge pull request #694 from triska/write_all
FIXED: reliably write all characters when using format/3
Markus Triska [Wed, 2 Sep 2020 17:20:49 +0000 (19:20 +0200)]
FIXED: reliably write all characters when using format/3
This addresses #693.
Many thanks to @notoria for a brilliant test case, and the
suggestion of this correction!
Mark Thom [Tue, 25 Aug 2020 15:27:13 +0000 (12:27 -0300)]
Merge pull request #689 from matteoredaelli/patch-1
Update README.md
Matteo Redaelli [Tue, 25 Aug 2020 15:19:45 +0000 (17:19 +0200)]
Update README.md
wrong link to source file dcgs.pl
Mark Thom [Mon, 24 Aug 2020 19:07:40 +0000 (16:07 -0300)]
Merge pull request #686 from triska/call_nth
ADDED: Preliminary version of call_nth/2.
Markus Triska [Sun, 23 Aug 2020 20:13:11 +0000 (22:13 +0200)]
ADDED: First version of call_nth/2.
A thread-safe implementation is possible for example with
'$nb_setarg'/3 (see #390).
Mark Thom [Mon, 24 Aug 2020 01:49:10 +0000 (22:49 -0300)]
flatten passage of cut point B in (,)/2, (->)/2 and (;)/2 (#685, #683)
Mark Thom [Sat, 22 Aug 2020 23:17:32 +0000 (20:17 -0300)]
Merge pull request #682 from triska/dif_improvements
Improvements to dif/2
Markus Triska [Sat, 22 Aug 2020 15:49:02 +0000 (17:49 +0200)]
dif/2: Omit entailed residual goals, if the arguments are not unifiable.
This addresses #135.
Markus Triska [Sat, 22 Aug 2020 15:47:42 +0000 (17:47 +0200)]
dif/2: Succeed unconditionally if the arguments are not unifiable.
This addresses one part of #135.
Mark Thom [Sat, 15 Aug 2020 16:55:48 +0000 (13:55 -0300)]
Merge pull request #677 from notoria/clpz_mod
Made mod stronger and addressed #675
notoria [Sat, 15 Aug 2020 15:56:07 +0000 (17:56 +0200)]
Use nonterminal fd_put//3 in mod from clpz
notoria [Sat, 15 Aug 2020 15:39:34 +0000 (17:39 +0200)]
Simplified the code
notoria [Sat, 15 Aug 2020 15:06:12 +0000 (17:06 +0200)]
Using queue_goal//1 to correctly bind variables
notoria [Sat, 15 Aug 2020 11:37:33 +0000 (13:37 +0200)]
Fixed variable bindings in mod from clpz
notoria [Sat, 15 Aug 2020 10:45:33 +0000 (12:45 +0200)]
Made mod stronger and addressed #675
Mark Thom [Fri, 14 Aug 2020 03:21:19 +0000 (00:21 -0300)]
Merge pull request #674 from notoria/clpz_mod
Improved mod in clpz
notoria [Thu, 13 Aug 2020 08:38:57 +0000 (10:38 +0200)]
More improvement on mod from CLP(Z)
notoria [Mon, 10 Aug 2020 19:00:54 +0000 (21:00 +0200)]
Improved mod in CLP(Z)
This is still a work in progress.
Mark Thom [Wed, 12 Aug 2020 19:59:51 +0000 (16:59 -0300)]
Merge pull request #671 from triska/clpb_restriction
FIXED: CLP(B): Delay BDD restriction until after the instantiation.
Markus Triska [Wed, 12 Aug 2020 17:51:25 +0000 (19:51 +0200)]
FIXED: CLP(B): Delay BDD restriction until after the instantiation.
This is necessary to actually take the new value into account.
Example:
?- sat(A*B>=C*D), A=1,B=0,C=1,D=1.
false.
This addresses #670.
Mark Thom [Tue, 11 Aug 2020 22:53:02 +0000 (19:53 -0300)]
Merge pull request #668 from triska/xbrl
library(sgml): Correctly parse XML leaf nodes that are not text nodes.
Markus Triska [Tue, 11 Aug 2020 19:00:56 +0000 (21:00 +0200)]
library(sgml): Correctly parse XML leaf nodes that are not text nodes.
Example:
?- load_xml("<schemaRef type=\"simple\"/>", Node, []).
Node = [element(schemaRef,[type="simple"],[])].
This is necessary for example to parse XBRL files. See #665.
Mark Thom [Tue, 11 Aug 2020 18:54:34 +0000 (15:54 -0300)]
Merge pull request #667 from triska/clpb_taut
omit internal attributes in residual goals when using taut/2
Markus Triska [Tue, 11 Aug 2020 18:48:37 +0000 (20:48 +0200)]
omit internal attributes in residual goals when using taut/2
Examples:
?- taut(X=:=X,1).
clpb:sat(X=:=X)
; false.
?- taut(X=\=X,0).
clpb:sat(X=:=X)
; false.
Mark Thom [Sat, 8 Aug 2020 22:29:35 +0000 (16:29 -0600)]
update prolog_parser version (#657)
Mark Thom [Sat, 8 Aug 2020 19:12:09 +0000 (13:12 -0600)]
Merge branch 'master' of https://github.com/mthom/scryer-prolog
Mark Thom [Sat, 8 Aug 2020 19:11:09 +0000 (13:11 -0600)]
fix bugs in PausedPrologStream (#661)
Mark Thom [Sat, 8 Aug 2020 15:24:29 +0000 (12:24 -0300)]
Merge pull request #656 from notoria/try_from_number
Fixed some conversion issues
Mark Thom [Sat, 8 Aug 2020 15:23:40 +0000 (12:23 -0300)]
Merge pull request #660 from triska/shorter_crypto
Shorten and improve implementation of several cryptographic routines
Markus Triska [Thu, 6 Aug 2020 21:27:49 +0000 (23:27 +0200)]
ensure proper lengths of key and initialization vector
This avoids crashes when using unsuitable lengths.
Markus Triska [Thu, 6 Aug 2020 21:17:08 +0000 (23:17 +0200)]
remove entailed constraint
Markus Triska [Thu, 6 Aug 2020 18:12:57 +0000 (20:12 +0200)]
use self.deref(...) (see #653)
Markus Triska [Thu, 6 Aug 2020 18:12:23 +0000 (20:12 +0200)]
use atom_argument_to_string
notoria [Thu, 6 Aug 2020 09:39:55 +0000 (11:39 +0200)]
Fixed some conversion issues
Mark Thom [Thu, 6 Aug 2020 06:17:55 +0000 (00:17 -0600)]
fix crash in CryptoPasswordHash (#653), conversion of Rational integers in number_chars/2 (#655)
Mark Thom [Thu, 6 Aug 2020 05:40:51 +0000 (02:40 -0300)]
Merge pull request #654 from triska/aad
ADDED: library(crypto): Support for additional authenticated data (AAD).
Markus Triska [Wed, 5 Aug 2020 18:31:56 +0000 (20:31 +0200)]
shorten, and increase readability
Markus Triska [Wed, 5 Aug 2020 18:10:58 +0000 (20:10 +0200)]
use "octet" as a string literal, reducing the number of arguments
Markus Triska [Wed, 5 Aug 2020 18:09:07 +0000 (20:09 +0200)]
ADDED: library(crypto): Support for additional authenticated data (AAD).
Additional authenticated data can now be specified with the new
aad(Chars) option for encryption and decryption. It is authenticated,
but not encrypted.
Mark Thom [Wed, 5 Aug 2020 05:35:10 +0000 (23:35 -0600)]
update prolog_parser to 0.8.67 (#648)
Mark Thom [Tue, 4 Aug 2020 01:29:53 +0000 (19:29 -0600)]
unify '[]' with proper [] in atom_chars/2 (#569)
Mark Thom [Mon, 3 Aug 2020 05:35:53 +0000 (23:35 -0600)]
reconcile '[]' and [] (#644), solve remaining conformity issues (#648), move (-->) from dcgs.pl to builtins.pl (#649)
Mark Thom [Fri, 31 Jul 2020 21:19:12 +0000 (18:19 -0300)]
Merge pull request #647 from notoria/newline
Improved readline
notoria [Fri, 31 Jul 2020 16:12:38 +0000 (18:12 +0200)]
Improved readline
Mark Thom [Thu, 30 Jul 2020 13:29:20 +0000 (10:29 -0300)]
Merge pull request #645 from triska/curve25519
ADDED: library(crypto): ECDH key exchange over Curve25519 (X25519)
Markus Triska [Wed, 29 Jul 2020 21:14:16 +0000 (23:14 +0200)]
ADDED: library(crypto): ECDH key exchange over Curve25519 (X25519)
Mark Thom [Mon, 27 Jul 2020 22:43:43 +0000 (16:43 -0600)]
the indexer now categorizes partial strings only as lists (#623, #642)
Mark Thom [Mon, 27 Jul 2020 01:16:05 +0000 (19:16 -0600)]
try to build strings from list as potential matches in SwitchOnConstant (#623)
Mark Thom [Sat, 25 Jul 2020 16:20:45 +0000 (13:20 -0300)]
Merge pull request #639 from triska/flush_output
ENHANCED: flush output for impure I/O (format/[2,3], portray_clause/1 etc.)
Markus Triska [Sat, 25 Jul 2020 07:47:59 +0000 (09:47 +0200)]
ENHANCED: flush output for impure I/O (format/[2,3], portray_clause/1 etc.)
Without this, we do not get a (timely) prompt in cases like:
?- format("press a key: ", []), get_single_char(C).
whereas for example write/1 already works in such cases:
?- write('press a key: '), get_single_char(C).
press a key:
Mark Thom [Thu, 23 Jul 2020 22:49:12 +0000 (19:49 -0300)]
Merge pull request #638 from triska/base64
ADDED: chars_base64/3 for efficient bidirectional Base64 conversion.
Markus Triska [Wed, 22 Jul 2020 22:35:23 +0000 (00:35 +0200)]
throw an error if a character cannot be encoded
Markus Triska [Wed, 22 Jul 2020 22:27:31 +0000 (00:27 +0200)]
better error handling for options
Markus Triska [Wed, 22 Jul 2020 18:19:56 +0000 (20:19 +0200)]
use newly available chars_base64/3
Markus Triska [Wed, 22 Jul 2020 18:17:46 +0000 (20:17 +0200)]
ADDED: chars_base64/3 for efficient bidirectional Base64 conversion.
Mark Thom [Sun, 19 Jul 2020 16:16:27 +0000 (13:16 -0300)]
Merge pull request #636 from triska/path_segments
ADDED: path_segments/2 for portable reasoning about path components.
Markus Triska [Sun, 19 Jul 2020 09:07:03 +0000 (11:07 +0200)]
ADDED: path_segments/2 for portable reasoning about path components.
The platform-specific directory separator is taken into account.
The clean representation of segments as a list simplifies reasoning.
Mark Thom [Sat, 18 Jul 2020 15:40:53 +0000 (12:40 -0300)]
Merge pull request #633 from triska/file_time
ADDED: file_creation_time/2 and file_access_time/2.
Mark Thom [Sat, 18 Jul 2020 15:40:28 +0000 (12:40 -0300)]
Merge pull request #631 from cduret/lib_csv
add write_csv & change skip_header to with_header option
Mark Thom [Sat, 18 Jul 2020 15:40:09 +0000 (12:40 -0300)]
Merge pull request #635 from triska/more_links
DOC: add more links to libraries, and include iso_ext in the enumeration
Markus Triska [Sat, 18 Jul 2020 06:09:52 +0000 (08:09 +0200)]
DOC: add more links to libraries, and include iso_ext in the enumeration
Mark Thom [Fri, 17 Jul 2020 17:02:58 +0000 (11:02 -0600)]
look up operator precedence when arity does not match what the atom records, don't print brackets around outermost '+' (#629)
Markus Triska [Fri, 17 Jul 2020 16:48:39 +0000 (18:48 +0200)]
ADDED: file_creation_time/2 and file_access_time/2.
The code can be simplified once if- and while-let-chains are available:
https://github.com/rust-lang/rust/issues/53667
Mark Thom [Fri, 17 Jul 2020 00:03:13 +0000 (21:03 -0300)]
Merge pull request #632 from triska/path_canonical
ADDED: path_canonical/2, obtaining the canonical absolute path.
Cyrille Duret [Thu, 16 Jul 2020 23:21:40 +0000 (01:21 +0200)]
set domain_error exception & use format/3 with setup_call_cleanup/3 for stream writing