Jekejeke Prolog 1.3.4 (web server and JSON support)

Jan Burse, created Jan 30. 2019 Dear All, We just uploaded a new release of Jekejeke Prolog. We improved the web compatibility of the Prolog interpreter: - Pseudo Strings: There is a new pseudo datatype for strings. These are just compounds of the form '$STR'(<atom>). Directly reading and writing JSON is now a matter of setting the double_quotes option to the new value 'string'. Also we provide a new option terminator(none) for streamed reading. - Module "json": This is a new take on JSON, not anymore mapping it to the DOM. The module provides predicates for JSON objects analogously to the predicates for Prolog dicts. Also there is an integration with the module "func", so that dot notation is possible on JSON objects. Examples: ?- {X}, T = {X}.emojis._, T.code = "1f601", R = T.name. R = "grin" ?- {X}, T = {X}.emojis._, T.name = "grin", R = T.code. R = "1f601" - Module "http": This module provides a simple web server that understands the HTTP protocol and can also upgrade to the WS protocol. You can already run as many web servers in parallel as you wish in the same process. Just provide a Prolog term to the predicate run_http/2 that implements the server methods. Happy coding! Android Appstores: Google Play Download: Jekejeke Runtime

Comments