Re: pil21 on Mac, some errors

2020-11-09 Thread Jon Kleiser
Hi Alex, Yes, but after the Ctrl-D I have to click in the cube window to make it go away. OK as long as one knows this. The pil21 now seems to be usable on macOS, however, the "(cd src; make)” did not work for me; I got some errors. I used the instructions at

Re: pil21 on Mac, some errors

2020-11-08 Thread Jon Kleiser
Hi all, I now installed a fresh pil21 from https://software-lab.de/pil21.tgz , followed the build instructions at https://git.envs.net/mpech/pil21-tests/src/branch/master/INSTALL-.md , and

Re: pil21 on Mac, some errors

2020-11-07 Thread Jon Kleiser
Hi Alex, I have now changed lib/openGl.l as you described, and when I do $ ./pil misc/sphere.l + then I get a nice sphere. If I do $ ./pil misc/cube.l + then I get a window with a gray background, but no visible cube. If I do $ ./pil misc/pyramids.l + then I get no graphics, only this:

Re: pil21 on Mac, some errors

2020-11-07 Thread Jon Kleiser
Hi Andras, I have now modified my openGl.l the same way, but I still get this: [misc/cube.l:13] !? (native "libglut.so.3" "glutInit" NIL '(NIL (8) . 0)) "libglut.so.3" -- [DLL] dlopen(libglut.so.3, 9): image not found openGl? Am I missing some libglut.so? I have macOS Mojave 10.14.6. /Jon >

Re: pil21 on Mac, some errors

2020-11-05 Thread Jon Kleiser
Hi Alex, I tried $ ./pil misc/cube.l + and then I got [misc/cube.l:13] !? (native "libglut.so.3" "glutInit" NIL '(NIL (8) . 0)) "libglut.so.3" -- [DLL] dlopen(libglut.so.3, 9): image not found openGl? /Jon > On 4 Nov 2020, at 21:28, Alexander Burger wrote: > > Hi Jon, > >> I have put the

Re: pil21 on Mac, some errors

2020-11-04 Thread Jon Kleiser
Hi Alex, I have put the files into lib and misc. However, I have not installed pil21 "globally" with required symlinks. When I cd to my pil21 directory and then do $ pil21 misc/cube.l then I get this: [misc/cube.l:6] !? (load "@lib/openGl.l") "@lib/openGl.l" -- Open error: No such file or

Re: pil21 on Mac, some errors

2020-10-27 Thread Jon Kleiser
> On 26 Oct 2020, at 18:13, Mike wrote: > > October 26, 2020 10:08 AM, "Jon Kleiser" wrote: > >> Hi, >> >> Yesterday I tried installing pil21 on my Mac, following Mike Pechkin's >> instructions here: >> >> https://git.envs.net/mpech/pil21-te

pil21 on Mac, some errors

2020-10-26 Thread Jon Kleiser
Hi, Yesterday I tried installing pil21 on my Mac, following Mike Pechkin's instructions here: https://git.envs.net/mpech/pil21-tests/src/branch/master/INSTALL-.md Here’s the output from the last line: $ gcc sysdefs.c &&

Re: PicoLisp in Wikipedia

2020-06-29 Thread Jon Kleiser
It’s best if others can come up with the ideas for improvement. For the most of the summer I will be concentrating on some JavaScript/TypeScript project of mine, when not enjoying outdoors activity. Have a nice, safe summer! /Jon > On 29 Jun 2020, at 16:07, Alexander Burger wrote: > > On

Re: PicoLisp in Wikipedia

2020-06-29 Thread Jon Kleiser
Hi Alex, I can edit that page, if you tell me when and what to write. I see that the “Stable release 20.6” is now in the box on the right. /Jon > On 29 Jun 2020, at 10:29, Alexander Burger wrote: > > Hi all, > > today I released picoLisp-20.6. > > During those releases every half year, I

Re: Time to say goodbye

2020-05-16 Thread Jon Kleiser
Hi Christophe, Thanks a lot for friendly words. It would be fun to watch some sessions from the upcoming PilCon 2020. I’m just recovering from the final episode of Le Bureau. ;-) /Jon > On 16 May 2020, at 17:01, Christophe Gragnic > wrote: > > On Mon, Feb 10, 2020 at 5:06 PM

Re: pil21, some progress

2020-02-12 Thread Jon Kleiser
Hi Jean-Christophe, If you find llvm-link by doing "which llvm-link”, and get something like this: /usr/local/opt/llvm/bin/llvm-link and you have added the two exports to your ~/.bash_profile, then I think you only need to make a new terminal window or tab for these exports to take effect. (In

Re: pil21, some progress

2020-02-12 Thread Jon Kleiser
fig” I’m using macOS Mojave, 10.14.6. /Jon > On 12 Feb 2020, at 17:15, Jean-Christophe Helary > wrote: > > Jon, > > Would you mind describing how you build pil21 ? I don't seem to be able to > "make" it (no pun intended). > > JC > >> On Feb 12, 202

Re: pil21, some progress

2020-02-12 Thread Jon Kleiser
Hi Alex, Great! Now it works. I just did a “(+ 2 3 4 5)” and got 14. ;-) What’s the most important things missing? Functions or stability? /Jon > On 12. Feb, 2020, at 13:16, Alexander Burger wrote: > > Hi Jon, > >> I have now made some progress in building pil21 on my Mac. > > Good! :) > >

pil21, some progress

2020-02-12 Thread Jon Kleiser
Hi Alex, I have now made some progress in building pil21 on my Mac. Here’s what I get now: $ make lib.c:7:35: warning: format specifies type 'unsigned long' but the argument has type 'int64_t' (aka 'long long') [-Wformat] fprintf(stderr, "%s %lX\n", s, n); ~~~

Re: Time to say goodbye

2020-02-10 Thread Jon Kleiser
Hi Alex, > On 10 Feb 2020, at 20:41, Alexander Burger wrote: > > On Mon, Feb 10, 2020 at 08:24:10PM +0100, Jon Kleiser wrote: >>> Especially with Mac users in mind, I'm working on an LLVM version of >>> PicoLisp >>> (https://software-lab.de/pil21.tgz).

Re: Time to say goodbye

2020-02-10 Thread Jon Kleiser
Hi Alex, > On 10 Feb 2020, at 17:14, Alexander Burger wrote: > > Hi Jon, > >> I have not been an active PicoLisp user for quite some time. The main reasons >> for that have been (a) the difficulties related to building PicoLisp for >> macOS, > > Oh, that's a pity! > > Especially with Mac

Re: Wikipedia

2019-01-03 Thread Jon Kleiser
Hi Alex, Could you give me a complete sentence/paragraph describing the PilBox thing, including month and year, and maybe a link? Shall I delete the paragraph that mentions the PilMCU project? /Jon > On 3. Jan, 2019, at 07:59, Alexander Burger wrote: > > Hi Jon, > >> Happy New Year! > >

Re: Wikipedia

2019-01-02 Thread Jon Kleiser
22:54, Jon Kleiser wrote: > > Hi, > > I suggest we add one or more milestones in the History section, and maybe > remove the 2014 PilMCU paragraph (if that was not successful). Give me the > text and I shall put it in. > > /Jon > > Sent from my iPhone &g

Re: Wikipedia

2018-12-28 Thread Jon Kleiser
Hi, I suggest we add one or more milestones in the History section, and maybe remove the 2014 PilMCU paragraph (if that was not successful). Give me the text and I shall put it in. /Jon Sent from my iPhone > On 28 Dec 2018, at 08:35, Jean-Christophe Helary wrote: > > I think the issue with

Subscribe

2018-12-14 Thread Jon Kleiser
Hello Jon Kleiser :-) You are now subscribed -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Unsubscribe

2018-12-14 Thread Jon Kleiser
Good bye Jon Kleiser :-( You are now unsubscribed -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: Function similar to Scheme 'foldl'?

2018-10-09 Thread Jon Kleiser
04:51, r...@tamos.net wrote: > > On Mon, 08 Oct 2018 19:15 +0000, Jon Kleiser wrote: >> Hi, >> >> Is there a PicoLisp function similar to the Scheme 'foldl'? > > Hi Jon! > > You've probably already gone there, but FWIW this is what I have used in the >

idx, Rosettacode Word_count example

2018-06-15 Thread Jon Kleiser
Hi, I have used the idx function a few times and enjoyed it, but it had never occurred to me, until I took a closer look at the Rosettacode Word_count example, that I could also store values at the symbols in an idx tree. Wow! ;-) I’m quite impressed by the speed of that PicoLisp Word_count

Re: Beginner RESTful Web app in PicoLisp?

2017-08-17 Thread Jon Kleiser
Beautiful! Even works with 32-bit PicoLisp on Mac. ;-) /Jon > On 17. Aug, 2017, at 13:53, Alexander Burger wrote: > > Hi Christopher, > >> Hi, I want to create a really simple PicoLisp Web application that >> parses the URL, and does something. Probably something silly,

Cleanup in form reference, Antoine de Saint-Exup???

2017-05-16 Thread Jon Kleiser
Hi, I see that Nehal Singhal has helped cleaning up the doc/form reference, which is very fine. However, the final characters in the name of the author Antoine de Saint-Exupéry, in , seem to be coded wrong. I’ve checked both IE/Windows and

Re: PicoLisp 64bit on Mac

2017-05-11 Thread Jon Kleiser
Hi Mike, I think it’s still possible to fix a modern Mac to use old style gcc, and thereby be able to build the 32-bit PicoLisp. I’ve done it once, but nowadays I have an old Mac that I use for that purpose. If you like, I can supply the binaries; it’s only three small files, as far as I know.

Ersatz (sym? -.1) differs from pil32

2017-02-14 Thread Jon Kleiser
Hi, There seems to be a tiny difference between Ersatz and ordinary PicoLisp in the “sym?” function. In Ersatz (17.1.25 JVM) I get this: : (mapcar sym? '(+.1 -.1)) -> (T NIL) In 32-bit PicoLisp (16.12.8 C) I get this: : (mapcar sym? '(+.1 -.1)) -> (T T) I have not tested this in 64-bit

Re: A script that concatenates ref. and tutorial files into one file

2017-02-08 Thread Jon Kleiser
Hi Alex, Thanks for pointing out why I should use ‘use’ on those symbols. I have now updated my project. /Jon > On 7. Feb, 2017, at 17:36, Alexander Burger wrote: > > Hi Jon, > >> I have noticed that frequent use of ‘setq’ has been questioned recently on >> this list.

A script that concatenates ref. and tutorial files into one file

2017-02-07 Thread Jon Kleiser
Hi, As a few has asked for a monolithic reference (and tutorial) HTML file, I got tempted to try to write a PicoLisp program that does such a concatenation. The difficult part, of course, was adjusting all the internal links, and it was a bit more challenging than I first thought, especially

Re: replacement for (let L2 (drop L1 2)....

2017-02-07 Thread Jon Kleiser
Hi, I wasn’t aware of nor, nand, nond. Maybe there should have been a few more “See also” in the docs. /Jon > On 7. Feb, 2017, at 08:31, Alexander Burger wrote: > > On Tue, Feb 07, 2017 at 08:13:06AM +0100, Alexander Burger wrote: >> Better to use (not Lst). > > One

Subscribe

2017-02-06 Thread Jon Kleiser
Hello Jon Kleiser <jon.klei...@ceres.no> :-) You are now subscribed -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: In the docs: within or vice versa, more glitches

2017-01-25 Thread Jon Kleiser
Hi Mattias, It seems you forgot something in doc/form/refF.html, line 101. I guess there should have been “Formatting” just before the final “.” /Jon > On 23. Jan, 2017, at 14:12, Mattias Sundblad wrote: > > Hi Jon, > >> I’ve found a few more glitches: > > Thanks,

Re: In the docs: within or vice versa, more glitches

2017-01-23 Thread Jon Kleiser
Hi Mattias, I’ve found a few more glitches: doc/form/refF.html, line 101: A missing “” doc/form/refF.html, line 104: “” should have been “” doc/form/refO.html, line 100: A missing “” doc/form/refQ.html, line 20: “” should have been “” doc/form/refS.html, line 67: “” should have been “”

In the docs: within or vice versa

2017-01-20 Thread Jon Kleiser
Hi, In the docs there are lots of occurrences (2325) of “”, and also some (751, mainly within doc/form/) of “”. I haven’t checked which one is the most correct. However, in doc/form/refC.html, line 82, there’s a bad mix: +Chg I suspect there may be more of this mixed kind, but I don’t have

doc/form/refQ.html: missing "" after ""

2017-01-17 Thread Jon Kleiser
Hi, I have found a few things that should be fixed in doc/form/refQ.html. line 120: missing "" after "" line 161: missing space before "

Missing PDF function in wiki

2017-01-16 Thread Jon Kleiser
Hi, Quite some time ago, before the wiki got its new look, it was possible to download a nice PDF version of the selected wiki page (e.g. http://picolisp.com/wiki/?bookintro). I cannot see that possibility any longer. Why was it removed? /Jon-- UNSUBSCRIBE:

Doc example for 'fish atom'

2017-01-02 Thread Jon Kleiser
Hi, I think it could be useful to include an example like this in the docs for the ‘fish’ function: : (fish atom '((a b) c (d e))) -> (a b c d e) I found out about ‘fish atom’ here: http://rosettacode.org/wiki/Flatten_a_list#PicoLisp Are there other equally smart ways to flatten a list like

Re: Full documentation in a single document?

2016-12-19 Thread Jon Kleiser
Hi, This was also discussed back in August 2014, with the subject “Documentation again”, . . . /Jon > On 19. Dec, 2016, at 15:11, Joh-Tob Schäg wrote: > > There is not. I talked about

Re: insert, remove, place, group redefined

2016-12-19 Thread Jon Kleiser
Hi Alex, Yes, you guessed it. I had a mix. Now I’ve cleaned it up, and the messages are gone. Thanks! /Jon > On 19. Dec, 2016, at 07:14, Alexander Burger wrote: > > Hi Jon, > >> I just wanted to try the 32-bit version “16.12.8 C”. When it starts, it >> prints this: >>

More filter examples

2016-11-03 Thread Jon Kleiser
Hi, I think there should be an example in the docs, showing the use of 'filter' with more than one list. Here are my two suggestions: (filter < (2 9 3 8 4 7) (5 4 3 9 9 5)) -> (2 8 4) (filter and (1 NIL 3 NIL 5) (2 3 4 5 6) (7 8 NIL 1 1)) -> (?1 5) /Jon

Re: Ersatz source code and EmuLisp

2016-10-31 Thread Jon Kleiser
To: picolisp@software-lab.de Subject: Ersatz source code and EmuLisp Hi PicoLispers, My question: Is there any documentation about the building of the Ersatz jar ? I guess all the keys are in the mkJar file but I'm lost reading it. Background: I'm mostly using a JavaScript version of PicoLisp:

Re: Can't compile picoLisp-16.6 on OSX

2016-10-09 Thread Jon Kleiser
Hi Rafik, I have an old Mac (OS X 10.8.5) that I use mainly for compiling 32-bit PicoLisp. The compiled binaries I can copy to newer Macs, where they run fine. If you want, I can make the binaries available. It is possible to install old/standard build tools on a new Mac. I have done it once,

Re: toy-forth-in-picolisp, and a 32-bit problem

2016-08-28 Thread Jon Kleiser
Hi Alex, I have now tested your latest “16.8.26 C” version on two Macs, and I’ve had no “Segmentation fault: 11”. Seems you’ve fixed it. Thanks. Do you still want more info re. what caused the problem in the previous version? /Jon > On 27. aug. 2016, at 22.13, Alexander Burger

Re: toy-forth-in-picolisp, and a 32-bit problem

2016-08-27 Thread Jon Kleiser
Thanks, Alex! I’ll give it a try a little later, but I’m sure it works. /Jon > On 26. aug. 2016, at 18.23, Alexander Burger wrote: > > On Fri, Aug 26, 2016 at 06:04:22PM +0200, Alexander Burger wrote: >> Must be my fault. I never had the idea to 'prinl' an anonymous

toy-forth-in-picolisp, and a 32-bit problem

2016-08-26 Thread Jon Kleiser
Hi, This summer I have had some fun trying to figure out how to implement a super simple toy Forth. For a start, I chose PicoLisp as an implementation language. You may find it here: https://github.com/jkleiser/toy-forth-in-picolisp There is one problem, however, occurring quite regularly

Re: Announcement: PicoLisp in a docker container

2016-08-22 Thread Jon Kleiser
t to use the --rm switch and be able to inspect > the container after exit. > > https://hub.docker.com/r/progit/docker-tinycore-picolisp/ > > Enjoy! > > On Mon, Aug 15, 2016 at 9:31 AM, Jon Kleiser <jon.klei...@fsat.no> wrote: > Thanks a lot, David! > > /Jon >

Re: Announcement: PicoLisp in a docker container

2016-08-15 Thread Jon Kleiser
REPL. > > On Aug 15, 2016 6:08 AM, "Jon Kleiser" <jon.klei...@fsat.no> wrote: > >> I just want to report that my use of “docker run -v” was not correct. This >> works much better: >> >> docker run -v /Users/jkleiser/script:/opt/script -it >>

Re: Announcement: PicoLisp in a docker container

2016-08-15 Thread Jon Kleiser
side PicoLisp. /Jon > On 12. Aug, 2016, at 16:40, Jon Kleiser <jon.klei...@fsat.no> wrote: > > Hi David, > > I have now tried your container as described at > https://hub.docker.com/r/progit/docker-tinycore-picolisp/, and I got PicoLisp > version 16.5.30 runn

Re: Announcement: PicoLisp in a docker container

2016-08-12 Thread Jon Kleiser
Hi David, I have now tried your container as described at https://hub.docker.com/r/progit/docker-tinycore-picolisp/, and I got PicoLisp version 16.5.30 running. Does your container allow me to get access to the Tinycore Linux command line? I need to load a PicoLisp file I have on my Mac. I

Re: Add method to one object only?

2016-06-10 Thread Jon Kleiser
Thanks. In my case I wanted the object itself to create the new method, so I did like this: (push This '(newMsg> () (prinl "Yes!"))) /Jon > On 10. Jun, 2016, at 13:07, Alexander Burger wrote: > > On Fri, Jun 10, 2016 at 11:50:07AM +0200, Alexander Burger wrote: >>

Re: Add method to one object only?

2016-06-10 Thread Jon Kleiser
Thanks, Alex! That was nice and easy. /Jon > On 10. Jun, 2016, at 11:50, Alexander Burger wrote: > > Hi Jon, > >> If one has a few objects of the same class +C, would it be possible to >> add a new method to just one of these objects, without all the others >> also

Add method to one object only?

2016-06-10 Thread Jon Kleiser
Hi, If one has a few objects of the same class +C, would it be possible to add a new method to just one of these objects, without all the others also getting that new method? /Jon-- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: Best way to learn picolisp

2016-06-08 Thread Jon Kleiser
If you have no Lisp background, and what you want to learn is PicoLisp, then I don’t think learning Common Lisp first will be any advantage. I believe Common Lisp differs quite a bit from PicoLisp. If you have experience with some other popular language X, then you can compare the Rosetta Code

Re: Sending arbitrary messages to object

2016-06-08 Thread Jon Kleiser
Thanks, Alex. /Jon > On 7. Jun, 2016, at 17:43, Alexander Burger wrote: > > Hi Jon, > >> I want to send arbitrary messages to an object MyObj. If I have a word >> "msg", then I want to send the message 'msg> to MyObj. I do it like >> this: >> >> (setq Word "msg") >>

Re: Redesigned Wiki is Live

2016-03-25 Thread Jon Kleiser
Hi Erik, Great job! There is one feature I miss, however, and that’s the old “section links” that used to be on the left hand side. I can now use the search function to find the “sections”, but that is too cumbersome. I think there should be quick links for at least these two: Articles &

Re: Tractatus Pico-Blaesicus, Accept-Language

2016-03-19 Thread Jon Kleiser
Hi Alex, A very nice piece of lisp code! The only part I didn’t like very much, was the yellow color. As usual, I had to tweek the CSS. Here is my variant: # CSS (de tractatus.css () (prinl "html {background-color: #eee;}") (prinl "body {margin: auto; max-width: 96ex; border: 1px solid

Re: PicoLisp on Ubuntu

2016-01-21 Thread Jon Kleiser
ab.de> on behalf of O.Hamann <o.ham...@gmx.net> Sent: 19 January 2016 12:09 To: picolisp@software-lab.de Subject: Re: PicoLisp on Ubuntu Xubuntu could work too. And it's possible to switch window systems later, too. On 18.01.2016 09:22, Jon Kleiser wrote: Hi Rick, Lubuntu looks very promisin

Fw: PicoLisp on Ubuntu

2016-01-21 Thread Jon Kleiser
Thanks, Chri. /Jon From: Jon Kleiser Sent: 21 January 2016 21:11 To: Christophe Gragnic Subject: Re: PicoLisp on Ubuntu Hi Chri, Wow, great! Thanks. /Jon From: Christophe Gragnic <christophegrag...@gmail.

Re: PicoLisp on Ubuntu

2016-01-18 Thread Jon Kleiser
Hi Rick, Lubuntu looks very promising. I think I have to give it a try. Thanks! /Jon > On 17. Jan, 2016, at 22:10, Rick Hanson <cryptor...@gmail.com> wrote: > > Hi Jon! > > On Sun, Jan 17, 2016 at 2:30 PM, Jon Kleiser <jon.klei...@fsat.no> wrote: >> There

Re: PicoLisp on Ubuntu

2016-01-17 Thread Jon Kleiser
Hi Tomas, Thanks for your hints. This is part of the info I got: jkleiser@oldmini:~/picoLisp$ uname -a Linux oldmini 3.19.0-25-generic #26~14.04.1-Ubuntu SMP Fri Jul 24 21:18:00 UTC 2015 i686 i686 i686 GNU/Linux jkleiser@oldmini:~/picoLisp$ cat /proc/cpuinfo processor : 0 vendor_id :

Re: PicoLisp on Ubuntu

2016-01-17 Thread Jon Kleiser
Hi Alex, My old Mac mini has an Intel Core 2 Duo, and that is supposed to be a 64-bit machine. However, when I should pick the Ubuntu version for this Mac from this page http://www.ubuntu.com/download/desktop both the drop-down menus says "32-bit — for machines with less than 2GB RAM". That is

PicoLisp on Ubuntu

2016-01-16 Thread Jon Kleiser
Hi, I had an old Mac mini that I had given up as an OSX machine, as it had only 1 GB RAM, and it was too difficult (or impossible?) to install more RAM on it. Then I got the idea that maybe that Mac could be made into a Linux machine. I had to try several DVDs and CDs, and a USB stick, before

Re: Translation Request

2016-01-05 Thread Jon Kleiser
Hi Alex, Sorry for being late. The Norwegian “no” translation of “Insert empty row” should be “Sett inn tom rad”. /Jon > On 5. jan. 2016, at 08.03, Alexander Burger wrote: > > Hello translators! > > This is to all who helped with the localization of PicoLisp, by >

Re: Tiny typo in ref

2016-01-05 Thread Jon Kleiser
Hi Alex, As you can see here there are three more places in that ref.html where a “;” is missing (error #51, #58, #68). /Jon > On 26. Dec, 2015, at 07:27, Alexander Burger wrote: > >

Re: Trying to build pil64 on Raspberry Pi

2016-01-05 Thread Jon Kleiser
ere's a patch and instructions to compile the 32-bit picolisp on ARM: > > https://gist.github.com/aw/714d1840bbabb782ecb2 > > > AW > > On Tue, Jan 5, 2016 at 8:20 AM, Jon Kleiser <jon.klei...@fsat.no> wrote: > Hi, > > Just before Xmas I got the brand new Raspbe

Tiny typo in ref

2015-12-25 Thread Jon Kleiser
Hi, I just noticed that in /doc/ref.html#fun, under Predicates, the name of the “<>” function is coded as “<”. I think it should have been “”. Merry >

Re: PicoLisp Website

2015-12-14 Thread Jon Kleiser
Hi Vidyuth Kini, Re. comparable sites: IMO the Ruby page is the best design of the ones you mention. To me, the Racket page seems cluttered. /Jon > On 14. Dec, 2015, at 09:31, Vidyuth Kini wrote: > > Hi Erik, > > Great work on the site. I definitely like the new logo.

Re: PicoLisp Website

2015-12-13 Thread Jon Kleiser
Hi Erik, I like your design a lot, and I think your presentation of the PicoLisp language and VM is also well done. I suggest you drop the sentence about fresh air and stagnant, statically typed world. I think you/we should include a few words about which OS platform(s) that are supported,

Printing to file while reading from 'client'

2015-08-04 Thread Jon Kleiser
Hi, I want to read some chunks from a HTTP connection, starting e.g. like this: (client www.some.com 80 page.html Depending on the chunks I read, I want to write some lines to a certain file on my disk, say diskfile.txt, and now and then I also want to write a little info to my console with

Re: Printing to file while reading from 'client'

2015-08-04 Thread Jon Kleiser
Hi Alex, Thanks a lot! I’ll make up my mind re. which one to use. /Jon On 4. Aug, 2015, at 15:42, Alexander Burger a...@software-lab.de wrote: Hi Jon, (client www.some.com 80 page.html Depending on the chunks I read, I want to write some lines to a certain file on my disk, say

Re: Open Sound Control

2015-07-26 Thread Jon Kleiser
Hi Erik, Do you know if your library will work with 32-bit PicoLisp? I’m a Mac user, and 32-bit (and Ersatz) is the only PicoLisp version that I can use. I have no experience with OSC (Open Sound Control is a protocol for communication among computers, sound synthesizers, and other multimedia

Re: OpenGL text and Picolisp

2015-07-16 Thread Jon Kleiser
a pointer points. The glutBitmapCharacter used I read was on china-gl.l by Jon Kleiser, but that was for the 32bit version of pico and it used glue code to specify the void pointer. In Jon's china64/openGl.l I find (de glutBitmapCharacter (Font Character) (native `*GlutLib

Re: Pseudo Random Number Generation across PicoLisp implementations

2015-04-23 Thread Jon Kleiser
Hi Chri, On 22. Apr, 2015, at 22:50, Christophe Gragnic christophegrag...@gmail.com wrote: . . Now the question. I found discrepancies between PicoLisp: : (rand 1 1000) - 1 : (rand 1 1000) - 934 : (bye) And Ersatz : (rand 1 1000) - 1 : (rand 1 1000) - 967 : (bye) I tried to

(name '{abc}) no good in Ersatz

2015-04-13 Thread Jon Kleiser
Hi, There is probably a simple answer to this (that I should know by now): Why do I get this when using ersatz . . ? : (name '{abc}) !? (name '\{abc \}) \{abc -- Can't rename /Jon -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: A bcrypt library for PicoLisp

2015-03-17 Thread Jon Kleiser
Hi Alexander W., I’m just curious about what kind of development system you’re using. From the screen dump in the picolisp-bcrypt/README.md it seems that you are using some kind of Mac OSX, but at the same time the README.md says that “PicoLisp 64-bit v3.1.9+” is required. Are you using

Google Code closing

2015-03-13 Thread Jon Kleiser
Hi, It looks like PicoLisp will have to move from Google Code: http://arstechnica.com/information-technology/2015/03/google-to-close-google-code-open-source-project-hosting/ Maybe GitHub could be a good alternative? I like being able to keep an eye on what Alex is working on. ;-) /Jon--

Printing colored text in the console

2015-02-04 Thread Jon Kleiser
Hi, I wanted to modify Alex' irc client so that I could have some text printed color. (I prefer the American spelling color, as that is what’s used in computer tech.) I therefor wrote the following: (setq *ColorTerm (car (member (sys TERM) '(linux xterm xterm-color xterm-256color rxvt

Wiki: Websockets with PicoLisp, 404

2015-02-02 Thread Jon Kleiser
Hi, Just want to mention that the wiki page http://picolisp.com/wiki/?Websockets contains a link to web.l's websocket demo https://bitbucket.org/cyborgar/web.l/src/default/webtest.l?at=default that now gives a 404. Does anybody know if this demo code can be found elsewhere? /Jon--

push1q vs. push1, I'm slightly confused

2015-01-27 Thread Jon Kleiser
Hi Alex, I noticed the new 'push1q' function, and wanted to compare it to the old 'push1', which I don’t know very well either. I compared your examples in doc/refP.html, and to me they looked very similar. I also noticed that you used (push1 'S 'b 'd), and not (push1q 'S 'b 'd) in the

Re: A Minimal PicoLisp DB/GUI Application, Importing

2015-01-15 Thread Jon Kleiser
Hi Alex, Now I have got this import thing working. I added the following code at the end of the minDbGui.l file: # To import from tab-separated file, use: (importAddr myAddrDB.csv) (de importAddr (F) (let (Cnt 0 L NIL) (in F (while (setq L (split (line) ^I))

RE: A Minimal PicoLisp DB/GUI Application, Importing twice

2015-01-15 Thread Jon Kleiser
Hi Alex, From: picolisp@software-lab.de picolisp@software-lab.de on behalf of Alexander Burger a...@software-lab.de Sent: 15 January 2015 16:42 To: picolisp@software-lab.de Subject: Re: A Minimal PicoLisp DB/GUI Application, Importing Hi Jon, (de

Re: A Minimal PicoLisp DB/GUI Application, Importing

2015-01-14 Thread Jon Kleiser
Hi Alex, On 13. Jan, 2015, at 15:37, Alexander Burger a...@software-lab.de wrote: . . . How difficult would it be to create export and import functions, e.g. to and from tab-separated files? This could be separate utilities, i.e. not a part of the GUI. That's very easy. There is a report

Re: A Minimal PicoLisp DB/GUI Application, Telephone field

2015-01-14 Thread Jon Kleiser
Hi Alex, On 14. Jan, 2015, at 13:09, Alexander Burger a...@software-lab.de wrote: Hi Jon, I don’t quite get this. I have done as you suggested, (locale NO no) and leading 0, so I can now enter a phone number as 099887766. You say it will be stored internally with leading 47 instead of that

Re: A Minimal PicoLisp DB/GUI Application, Search popup puzzle

2015-01-13 Thread Jon Kleiser
pattern in the DB index tree. In case of e.g. Jon Kleiser this is JNSLSR. This pattern is used for tolerant searches. 2. +IdxFold applies the 'fold' function the whole name, and stores it (i.e. jonkleiser) in the index. Then it splits the name on blanks, 'fold's the fragments

Minor diff between 32-bit and Ersatz re. redefined

2014-12-11 Thread Jon Kleiser
Hi, If you do (class +Shape) (dm T (X Y) (=: x X) (=: y Y)) and then repeat the last line, then Ersatz will say # T +Shape redefined, but 32-bit PicoLisp will give no such redefined warning. It may not matter very much, I just wanted to mention it. (I haven’t tried 64-bit.) Ersatz does not

wipe T and meth

2014-11-16 Thread Jon Kleiser
Hi, I just noticed that it is possible to do (wipe 'T) and (wipe 'meth) and thereby setting the values of T and meth to NIL, even though they are protected symbols. (I haven’t tested this in 64-bit yet.) /JonPԔ � j)mX�����zV�u�.n7�

Re: How to match when pattern contains @

2014-11-15 Thread Jon Kleiser
Hi Alex, Thanks for your reply. On 14. nov. 2014, at 17.37, Alexander Burger a...@software-lab.de wrote: Hi Jon, Is it possible to write a 'match' expression that will recognize (Java) strings like these two? @foo(bar) whitespace@someother(text) Usually 'match' is not the optimal

How to match when pattern contains @

2014-11-14 Thread Jon Kleiser
Hi, Is it possible to write a 'match' expression that will recognize (Java) strings like these two? @foo(bar) whitespace@someother(text) I don’t know how to escape the @ so that it will not be handled as a wildcard symbol. The whitespace in the second line doesn’t necessarily have to be

Re: Possible sub? ref. improvements

2014-11-13 Thread Jon Kleiser
Hi Alex, I added the 'g' to make it clear that 'sub?' doesn’t only check the tail, like offset does. If you insist on leaving the 'g' out, you must at least adjust the results accordingly. ;-) /Jon On 14. Nov, 2014, at 07:42, Alexander Burger a...@software-lab.de wrote: Hi Jon, From what

Re: (doc 'caar), (doc 'cadr), (doc 'NIL)

2014-10-07 Thread Jon Kleiser
Hi Alex, I think all you have to do is to close the tags with /a like this: a name=caar/a a name=cadr/a a name=cdar/a This seems to validate. /Jon On 7. Oct, 2014, at 12:18, Alexander Burger a...@software-lab.de wrote: Hi Jon, On Mon, Oct 06, 2014 at 07:03:41PM +, Jon Kleiser wrote

Re: (doc 'caar), (doc 'cadr), (doc 'NIL)

2014-10-06 Thread Jon Kleiser
. /Jon On 3. okt. 2014, at 13:35, Jon Kleiser jon.klei...@fsat.no wrote: Hi, In August, Christophe pointed at some problems with looking up functions like 'caar' and 'cadr' in the docs. http://www.mail-archive.com/picolisp@software-lab.de/msg04739.html I fixed the problem in doc

Big speed diff. 32/64-bit when doing /

2014-09-30 Thread Jon Kleiser
Hi, I just noticed a surprisingly big difference in execution speed between 32- and 64-bit PicoLisp when doing divisions. Here is my code: (setq R (reverse (range 2 18)) P (cons (apply * R) R)) (bench (do 120 (apply / P))) The first line sets P to (6402373705728000 18 17 16 15 14 13 12 11

Re: REPL script and @

2014-09-29 Thread Jon Kleiser
Hi Alex, On 18. Dec, 2013, at 21:19, Alexander Burger a...@software-lab.de wrote: Hi Jon, I just wrote a little PicoLisp script (for pil32) that simulates the REPL, quite similar to the one I did for Ersatz a while ago, http://picolisp.com/5000/!wiki?SwingRepl. The new REPL script looks

Re: REPL script and @

2014-09-29 Thread Jon Kleiser
Hi Alex, On 29. Sep, 2014, at 15:40, Alexander Burger a...@software-lab.de wrote: Hi Jon, I just noticed that doing the (prin - ) before the (eval Exe) causes the arrow to be printed before the first printed line, e.g. when entering an expression like (for N 3 (prinl N)). Instead, the

My first Docker project, picolisp64

2014-09-19 Thread Jon Kleiser
Hi, Here it is: https://registry.hub.docker.com/u/jkleiser/picolisp64/ I had some problems getting the system date right, but now it seems to work Let’s hope it will continue that way. If it is not working like it should, maybe you’ll have to tweak the /etc/ntp.conf file. You may use nano

Re: Missing function for locating string fragment?

2014-09-15 Thread Jon Kleiser
Hi Alex, On 12. Sep, 2014, at 16:06, Alexander Burger a...@software-lab.de wrote: It is not a good idea to build a list only to count its length. Better count in a loop directly, e.g.: (de sindex (Frag Src) (for ((I . L) (chop Src) L (cdr L)) (T (pre? Frag L) I) ) ) For

pre?, minor difference between 32-bit and ersatz

2014-09-13 Thread Jon Kleiser
Hi, I just noticed that in 32-bit PicoLisp (pre? 12 1234) returns the symbol 1234, while in ersatz the same (pre? 12 1234) returns the number 1234. The latter is what the docs describes. I have not tested this in 64-bit PicoLisp. /Jon-- UNSUBSCRIBE:

Functions 'any' and 'str'

2014-09-12 Thread Jon Kleiser
Hi, Is (any S) equivalent to (car (str S)), as long as S is a symbol? /Jon -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Missing function for locating string fragment?

2014-09-12 Thread Jon Kleiser
Hi, The other day I noticed that I hadn't seen a PicoLisp function for locating a string fragment within a longer string. Is there one that I just have failed to notice? It is quite common for programming languages to have an index function that does this. PicoLisp has an 'index' function, but

  1   2   3   >