Peter Ludemann
Peter Ludemann
These are the systems that I tried it on (Debian is a ChromeBook where I build swipl; Ubuntu is a desktop where I use the dev-PPA version - and where...
If you're trying to get the binary form of a float, you could use a foreign function, such as `protobufs:float64_codes/2`: ``` ?- use_module(library(protobufs)). true. ?- protobufs:float64_codes(15.1234, Codes). Codes = [30,...
I have no problem with exporting `protobufs:float64_codes/2`, although I wonder if it's the best module for the predicate (not very discoverable). Maybe @JanWielemaker has an opinion? Protobufs use little-endian encoding...
If `protobufs:float_64_codes` isn't public, you shouldn't depend on it because the maintainer (currently me, but who knows in the future?) isn't under any obligation to keep it. Let's see what...
Also reported here: https://swi-prolog.discourse.group/t/error-could-not-find-system-resources-when-trying-to-use-pyswip/5517/10
See Issue #143 -- it appears that the problem is due to an unexpected version of SWi-Prolog being used. pyswip can check for this using https://www.swi-prolog.org/pldoc/doc_for?object=c(%27PL_version_info%27)
Every other options handler that I could easily find (Python, C, bash, library(optparse)) takes the last in case of duplicates. Only library(options) takes the first. I suggest the following changes...
One other thing needs to be done with code that uses library(option) ... I've seen code that sets defaults by putting them at the beginning of the options (e.g.: `do_something(...,...
My last comment is backwards -- if the last option is used, then defaults can be put at the beginning, of course. Of course, `option/3` can be used to supply...
lib2to3 is approaching deprecation: https://bugs.python.org/issue40360 I'm thinking about augmenting stdlib ast module to have some lib2to3 features. If this is of interest to you: https://mail.python.org/archives/list/[email protected]/thread/X2HJ6I6XLIGRZDB27HRHIVQC3RXNZAY4/ (No promises that I'll do...