wr function in Ersatz
Hi, This may be more a question for Alex. Is there a reason why 'wr is not included in Ersatz? Or am I missing something? chri -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
Re: wr function in Ersatz
Hi Christophe, > Is there a reason why 'wr is not included in Ersatz? It is simply because the whole family of binary I/O functions is not supported. The plain 'wr' would be quite trivial to implement, but then there should be also 'rd' and 'pr' for completeness. The latter two functions need the PLIO format, and that's not available currently in ErsatzLisp. (In fact, PLIO for Java exists, in "java/InOut.java", so this could be all put together.) ♪♫ Alex -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
Re: wr function in Ersatz
On Sun, Dec 27, 2015 at 10:18 AM, Alexander Burger wrote: > Hi Christophe, Hi Alex, >> Is there a reason why 'wr is not included in Ersatz? > > It is simply because the whole family of binary I/O functions is not > supported. > > The plain 'wr' would be quite trivial to implement, but then there > should be also 'rd' and 'pr' for completeness. You mean «aesthetically»? Maybe even «API-sthetically»? ;) Or is there a technical reason? > The latter two functions need the PLIO format, I don't know anything about this one, and any search about it is an unlucky one. Could you provide some details ? > and that's not available currently in ErsatzLisp. > (In fact, PLIO for Java exists, in "java/InOut.java", so this could be > all put together.) I guess you wrote the sentence in parentheses after a bit of research. I could not find anything about java/InOut.java myself though. So there is some hope ! chri -- http://profgra.org/lycee/ (site pro) http://delicious.com/profgraorg (liens, favoris) https://twitter.com/profgraorg http://microalg.info (langage de programmation pédagogique) http://expressions.club/ (structure des expressions mathématiques) -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
Re: wr function in Ersatz
Hi Christophe, > >> Is there a reason why 'wr is not included in Ersatz? > > > > It is simply because the whole family of binary I/O functions is not > > supported. > > > > The plain 'wr' would be quite trivial to implement, but then there > > should be also 'rd' and 'pr' for completeness. > > You mean «aesthetically»? Maybe even «API-sthetically»? ;) > Or is there a technical reason? Partial documentations? Questions why it is not fully implemented? > > > The latter two functions need the PLIO format, > > I don't know anything about this one, and any search about it is an unlucky > one. > Could you provide some details ? PLIO is the "PicoLisp I/O" binary format. It is used for almost everything internally: To serialize object to the database, communicate via IPC, talk with external programs (like the JVM in "java/lib.l"). There are libraries for C (software-lab.de/plio.tgz), JavaScript ("lib/plio.js" in the distribution), or Java (as mentioned here). ♪♫ Alex -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
Re: wr function in Ersatz
Hi all, On Tue, Dec 29, 2015 at 8:44 AM, Alexander Burger wrote: > > Partial documentations? Questions why it is not fully implemented? Indeed. But anyway, here you have another question: «why is it not implemented at all?» ! Maybe you could add those binary functions to the «There is no support for:» section in the http://software-lab.de/ersatz/README Or will it take less time for you to implement them ;) ? Anyway, I'm not even sure if wr is suitable for what I want: writing image files like bitmap files from a list of bytes. Is it? Or is 'wr only meant to be read with 'rd? chri -- http://profgra.org/lycee/ (site pro) http://delicious.com/profgraorg (liens, favoris) https://twitter.com/profgraorg http://microalg.info (langage de programmation pédagogique) http://expressions.club/ (structure des expressions mathématiques) -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
Re: wr function in Ersatz
Hi Christophe, > > Partial documentations? Questions why it is not fully implemented? > > Indeed. But anyway, here you have another question: > «why is it not implemented at all?» ! What I meant above is: If we implement only [the trivial] part of binary I/O, then we also must write a separate documentation for it. > Maybe you could add those binary functions to the > «There is no support for:» section in the > http://software-lab.de/ersatz/README Well, it is there, implicitly. The items -- interprocess communication ('tell', 'hear', 'ipc', 'udp' etc.) -- databases (external symbols) are what that binary I/O is mainly for. > Or will it take less time for you to implement them ;) ? Implementation would take longer. It probably needs a different set of underlying Java I/O classes. > Anyway, I'm not even sure if wr is suitable for what I want: > writing image files like bitmap files from a list of bytes. > Is it? Or is 'wr only meant to be read with 'rd? 'wr' would be good, I think. The complement of 'rd' is 'pr'. A better idea: Why do you bother with ErsatzLisp at all? If you don't have Linux or another POSIX system, instead of starting the Java-VM you might as well start a Linux-VM and run real PicoLisp with all features, and at full speed :) ♪♫ Alex -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
Re: wr function in Ersatz
On Thu, Dec 31, 2015 at 12:37 PM, Alexander Burger wrote: > > A better idea: Why do you bother with ErsatzLisp at all? If you don't > have Linux or another POSIX system, instead of starting the Java-VM you > might as well start a Linux-VM and run real PicoLisp with all features, > and at full speed :) Because where I work (school) and at the homes of the people I target, such virtual machines are a big hurdle. It's very handy to ship a small archive (<4Mo, Ersatz included). In fact I don't really use the real PicoLisp!!! Worse: I use EmuLisp even more than Ersatz!!! Thanks for your answers ;) chri -- http://profgra.org/lycee/ (site pro) http://delicious.com/profgraorg (liens, favoris) https://twitter.com/profgraorg http://microalg.info (langage de programmation pédagogique) http://expressions.club/ (structure des expressions mathématiques) -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe