4 ms·
> very fast yet logically pure I/O Sounds interesting, do you have a link or something else to share regarding your conception of logically pure I/O?
by felixyz 7y ago
> very fast yet logically pure I/O
Sounds interesting, do you have a link or something else to share regarding your conception of logically pure I/O?
- falsissime 7y agoSee https://github.com/mthom/scryer-prolog/issues/251 https://github.com/mthom/scryer-prolog/issues/251
- Avshalom 7y agohttps://www.swi-prolog.org/pldoc/man?section=pio https://www.swi-prolog.org/pldoc/man?section=pio https://github.com/SWI-Prolog/swipl-devel/blob/master/library/pure_input.pl https://github.com/SWI-Prolog/swipl-devel/blob/master/librar... this (I assume) is the library(pio) mentioned in the github issue
- falsissime 7y agoFrom the interface (mostly yes, that, is apart from the impure extensions added later, and that chars are used and not codes) it is the same. But from the implementation behind it´s different. In particular from the space requirements. A text of n characters requires 3 * 8 * n bytes in SWI, but n + 2 * 8 bytes in Scryer. So there is a factor 24 in space requirements (on 64bit). Also, there is now ample room for input that SWI once almost offered.