Replies: 2 comments 7 replies
-
There is one important consideration that should be taken into account when porting libraries to Scryer Prolog: Scryer Prolog sets a new standard for efficient encoding of lists of characters, which we mean when we say "strings" in the context of Scryer Prolog. A key advantage of the efficient encoding is that DCGs can be used for describing the string, since it is simply a list. A good infrastructure for processing JSON with Scryer Prolog uses this representation, and describes JSON format with a DCG. With such a nonterminal, we can use Scryer Prolog's string representation is so efficient that it subsumes several features that other Prolog systems provide with more ad hoc datatypes and predicates. For instance, |
Beta Was this translation helpful? Give feedback.
-
I'll start working on my own |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I need a JSON reading/writing library for a project I'm starting.
The gold standard in the Prolog community seems to be
http/json
.I notice that there are already several modules ported from SWI Prolog:
tabling
,ordsets
,assoc
, andxpath
.My questions in no particular order:
http/json
useslibrary(record)
,library(memfile)
, andlibrary(option)
, none of which seem to be available in Scryer.scryer-prolog
repository via a pull request?Beta Was this translation helpful? Give feedback.
All reactions