Pico, How to add new class to existing object?

2008-03-31 Thread Jon Kleiser
I have a couple of OO questions: If I have defined some classes +A, +B and +C, and made an object X by doing ... (setq X (new '(+A +B))) .. is it possible later to include the class +C among the classes +A and +B for this object X? If yes, how? And if I wanted this object X to have a new

Pico, OpenGL menus, refresh problem

2008-04-01 Thread Jon Kleiser
I'm working on a Pico Lisp application that uses OpenGL, and I thought it would be nice to make use of an OpenGL popup menu. I made some additions in the files glut.c and lib.l that can be found here http://folk.uio.no/jkleiser/pico/gl/, and I also wrote a simple menu-test.l to check if it

Re: Pico, OpenGL menus, refresh problem

2008-04-02 Thread Jon Kleiser
Hi Alex, A tarball is now avilable here: http://folk.uio.no/jkleiser/pico/gl.tgz /Jon Hi Jon, it would be quite convenient if you could provide a tarball, containing all the files from http://folk.uio.no/jkleiser/pico/gl/. This would make downloading a lot easier. Perhaps already with a

Pico, simul/gl/Makefile on Mac (was OpenGL menus...)

2008-04-07 Thread Jon Kleiser
Hi Alex, If I comment out the export MACOSX_DEPLOYMENT_TARGET=10.4 and try to (cd simul/gl; make) on my old PPC Mac (with OSX 10.4.11), I get this: gcc -c -O -pipe \ -falign-functions -fomit-frame-pointer \ -W -Wimplicit -Wreturn-type -Wunused -Wformat \ -Wuninitialized -Wstrict-prototypes \

Pico, Carbon and/or Cocoa (was OpenGL menus...)

2008-04-07 Thread Jon Kleiser
Hi Anthony, It could be fun to play with a Pico Lisp Cocoa application, but generally I prefer to write stuff that's more platform independent. /Jon think that specifying the target in the Makefile does not permit one to optimize for the local system, in my case for MacOS 10.5, and it is

Re: Pico, handling requests from jQuery

2008-05-16 Thread Jon Kleiser
Hi again, I would like to make a little Pico Lisp HTTP server that can handle XMLHttpRequests from jQuery.getJSON(...), and I wonder if I can use lib/http.l. If you don't know jQuery.getJSON, you can find some info and a nice little demo here:

Re: Pico, handling requests from jQuery

2008-05-17 Thread Jon Kleiser
Hi Alex, this is really funny. Just of today I'm working on a similar problem. As I don't know JSON, however, I tried a direct approach with JS. The mechanism looks surprisingly similar to what you wrote. JSON is just a data format that is closer to JavaScript than is XML. {x: 11, y: 22, z:

Pico, (locale XY) error handling?

2008-05-20 Thread Jon Kleiser
Hi, I just experienced this: : (locale NO) !? (load (if (setq *Ctry Ctry) (pack @loc/ @) @loc/NIL)) loc/NO open: No such file or directory Does Pico Lisp have an error handling mechanism that can handle errors like this? /Jon -- UNSUBSCRIBE: mailto:[EMAIL PROTECTED]

Pico, stamp and time zone

2008-05-21 Thread Jon Kleiser
Hi, If I do (let F (get (dir) 4) (stamp (cadr (info F)) (cddr (info F, which on a normal Pico Lisp system should produce the modification date and time of the file CHANGES, I get 2008-04-23 16:29:06, and this should be the UTC date and time. If I do a ls -l in my shell, I see this 9755 Apr 23

Re: Pico, handling requests from jQuery

2008-05-27 Thread Jon Kleiser
Hi Alex, At 09:00 +0200 19-05-08, Jon Kleiser wrote: If I set up the input data for the getJSON call like this: data = {Y: Y-value, Z: 333}; data[*X] = 111; ... then I can handle the request in Pico Lisp like this: (de json () (httpHead text/plain; charset=utf-8) (ht:Out T

Re: Pico, handling requests from jQuery

2008-05-27 Thread Jon Kleiser
Hi Alex, properly. I get the + in Pico Lisp. Therefor I cannot know whether a + in Pico Lisp originated as a + or a space. I think the plus-to-space decoding has to be done at the same time as the %xy decoding. Or ... OK, I understand. As the %xy decoding happens in 'ht:Pack', you

Re: Pico, handling requests from jQuery

2008-05-27 Thread Jon Kleiser
Hi Alex, Hi Jon, Could it be me doing something wrong in Pico Lisp? Here are the first few lines on my request handler: (de getDirectory () (let Path (get 'path 'http) (out NIL (println getDirectory request Path)) (httpHead text/javascript;

Pico, localizing inflections

2008-06-17 Thread Jon Kleiser
Hi, I'm almost done with the Pico Lisp version of my Chinese Checkers program, but I just got the idea that I'd like to be able to change the language og the messages given by the program, e.g. from English to Norwegian, by the use of the 'locale' function. I've now put (most of) these

Re: Pico, localizing inflections

2008-06-17 Thread Jon Kleiser
Hi Alex, I'll try to explain a little better. In Chinese Checkers there are pieces of six colors. In my version they are blue, yellow, green, magenta, red and cyan. Here are two of the messages that my come from my program: Please move one of your red pieces! My blue color has just completed.

Re: Variable number of arguments in SVG functions

2008-10-21 Thread Jon Kleiser
On Mon, Oct 20, 2008 at 04:21:31PM +0100, Tomas Hlavaty wrote: That's nice. It could even be: (de xml Prg (prin (pop 'Prg)) (while (atom (car Prg)) (prin (pop 'Prg) =\ (eval (pop 'Prg) 1) \) ) (prin ) (run Prg) # the text, or other elements (prinl /text) )

Re: Variable number of arguments in SVG functions

2008-10-21 Thread Jon Kleiser
Hi Alex, Hi Jon, The test (if (car Lst) ... determines whether the current element is a container (hoy) or not (inner). Is the 'car' necessary? Otherwise a simple test of 'Lst' would suffice. No, it seems to work quite well without the 'car'. ;-) BTW, I always feel that a 'prog' is a

Re: Released picoLisp-2.3.4

2009-01-01 Thread Jon Kleiser
Hi Alex, Happy New Year! You mean 2.3.5, don't you? /Jon Hi all, please note that since yesterday picoLisp-2.3.4 is out. .. Cheers, - Alex -- UNSUBSCRIBE: mailto:picol...@software-lab.de?subject=unsubscribe

Subscribe

2009-06-16 Thread Jon Kleiser
Hello Jon Kleiser jon.klei...@usit.uio.no :-) You are now subscribed -- UNSUBSCRIBE: mailto:picol...@software-lab.de?subject=unsubscribe

Pico Bus error with OpenGL on Mac

2009-06-16 Thread Jon Kleiser
be? (In the gl library, in Pico Lisp, or in the Mac OS X?) Sincerely, Jon Kleiser -- UNSUBSCRIBE: mailto:picol...@software-lab.de?subject=unsubscribe

Re: Pico Bus error with OpenGL on Mac

2009-06-18 Thread Jon Kleiser
Hi Tomas, Thanks for the suggestions. I may try some of those options, but not until I'm back from vacation some time in July. Me and my wife fly to Budapest on Monday. After Budapest we'll see what happens ... ;-) /Jon On 6/17/09 10:13 PM, Tomas Hlavaty wrote: Hi Jon, I tried this now,

Re: Pico Bus error with OpenGL on Mac

2009-07-18 Thread Jon Kleiser
Hi, I have confirmed that this results in an immediate crash when I use Pico Lisp 2.3.6 or newer on my Mac. However, I'm not sure what I can do further to reveal what causes the memory to be overwritten. Any ideas? /Jon On 6/26/09 10:13 AM, Alexander Burger wrote: Hi all, now Randall and

Re: Pico build problem on Mac OS X 10.6

2009-09-07 Thread Jon Kleiser
On 9/7/09 7:53 AM, Alexander Burger wrote: On Sun, Sep 06, 2009 at 10:48:17PM +0200, Jon Kleiser wrote: I've just installed Mac OS X 10.6, aka Snow Leopard, on a partition on my Mac (Intel Core 2 Duo, which probably means 32 bit only), and I was ... picolisp). The results weren't too nice

Re: Installation on PowerPC Mac running OS X 10.411

2009-09-14 Thread Jon Kleiser
Hi, The latest Pico Lisp I have built on my PowerPC Mac (w/10.4.11), seems to be picoLisp-2.3.0. /Jon Hello, I am having a bit of a problem installing picolisp on a PowerPC Mac running OS X 10.411. Here is the command line output after running the make command.

Sum of digits

2009-09-19 Thread Jon Kleiser
Hi, I wanted to compare how to do sum of digits in Scala and Pico Lisp, and to my surprise my Pico Lisp version was much slower than my Scala version. Well, Scala is a compiled language, but I hadn't anticipated that big a difference. My test input number was a rather big one: (2^100 + 3^200)^300

Re: suggestion to change in Makefile

2009-12-09 Thread Jon Kleiser
Hi Alex, Your new testing release works fine on my Intel Mac. The test gives OK. /Jon Hi Jon, hi Mansur, When I do ... $(/bin/pwd)/p lib/test.l -bye .. then I get OK. Yep, the explicit path is essential, because otherwise the path-checking routines have no path to check for ;-) So,

Re: Wikipedia

2010-01-04 Thread Jon Kleiser
Cheer up, Alex! Without some of your articles being mentioned on Lambda the Ultimate back in 2007, I would probably not have heard of PicoLisp. I'm glad I got to know it. In my opinion PicoLisp is a shining gem, and by studying it one can learn a lot about different and clever ways to do

Re: Wiki

2010-01-06 Thread Jon Kleiser
Hi, That's good news! I'd be glad to participate. I can do some graphics, css, maybe JavaScript/jQuery if that's need. As I first thing I can try to do something on the p\_ logo. /Jon On 1/6/10 11:36 AM, Alexander Burger wrote: Hi all, let's go ahead, and start our own wiki! Currently,

Re: Wiki, logo

2010-01-06 Thread Jon Kleiser
. /Jon On 1/6/10 12:27 PM, Jon Kleiser wrote: Hi, That's good news! I'd be glad to participate. I can do some graphics, css, maybe JavaScript/jQuery if that's need. As I first thing I can try to do something on the p\_ logo. /Jon -- UNSUBSCRIBE: mailto:picol...@software-lab.de?subject

Re: Wiki, logo

2010-01-07 Thread Jon Kleiser
On 1/7/10 9:23 AM, Alexander Burger wrote: Hi Eugene, in picoFarad, which uses the symbol Rho and of course Lamda in recognition of Lisp Thanks! For further discussion, I've also put it onto the test page. Cheers, - Alex I have never seen picoFarad written with the symbol Rho, only as

Re: Wiki, logo

2010-01-08 Thread Jon Kleiser
On 1/7/10 11:56 PM, Eugene wrote: Hi Eugene, For some reason, your mails seem all empty in my Thunderbird mail app., and when I check http://www.mail-archive.com/picolisp@software-lab.de/maillist.html, I cannot find your mails there either. Are you operating in stealth mode? ;-) /Jon --

Re: Wiki, logo

2010-01-14 Thread Jon Kleiser
On 1/14/10 10:30 AM, Boh Yap wrote: hi alex, I am the one that is impressed by what you have done.. PicoLisp. .. Hi Boh Yap, I think your logos are quite elegant. I have made some tweaks to the 3-armed variant lately, but they probably are not as elegant as yours. They can be seen here:

Re: Files for Norwegian locale

2010-01-18 Thread Jon Kleiser
On 1/15/10 7:18 AM, Alexander Burger wrote: On Thu, Jan 14, 2010 at 03:37:35PM +0100, Jon Kleiser wrote: Let me know if there are more locale files I have to create. As soon as we have the wiki sources in the hg repository, we should provide locale files for that too. Hi, I just downloaded

Re: PicoLisp and eval.

2010-01-30 Thread Jon Kleiser
Hi, Kazimir's mail arrived empty in my Thunderbird, and doesn't show at all in the PicoLisp mail archive here: http://www.mail-archive.com/picolisp@software-lab.de/ .. just like the mail from Eugene a while back. /Jon Hello Kazimir, thank you for performing the tests! Interesting to see :-)

Re: Wiki at home.picolisp.com

2010-04-09 Thread Jon Kleiser
Hi Alex, It's great to see the wiki is up and running! I tried to log in, but of course I don't remember if I already have a name and password, and if I have, what that might be. As I tried different combinations, however, I noticed that every now and then the red-on-yellow message

Re: Wiki at home.picolisp.com

2010-04-10 Thread Jon Kleiser
Hi Tomas, Hi Jon, And, will it be a way to select a language other than English? you mean like this? http://translate.google.com/translate?hl=enie=UTF-8sl=entl=csu=http://home.picolisp.com/prev=_t :-) Tomas Not exactly ;-), but I'm quite impressed by the quality of Google's Norwegian

How to launch local wiki?

2010-04-14 Thread Jon Kleiser
Hi, I would like to try the PicoLisp wiki code on my own machine, but I'm not sure what's the right way to launch it. Can the wiki directory be outside the picoLisp directory? Which should be the current directory? /Jon -- UNSUBSCRIBE: mailto:picol...@software-lab.de?subject=unsubscribe

Re: How to launch local wiki?

2010-04-14 Thread Jon Kleiser
Hi Alex, On 4/14/10 10:44 AM, Alexander Burger wrote: Hi Jon, I would like to try the PicoLisp wiki code on my own machine, but I'm not sure what's the right way to launch it. Can the wiki directory be outside the picoLisp directory? Which should be the current directory? I wouldn't

Re: How to launch local wiki?

2010-04-16 Thread Jon Kleiser
Hi, I now have a local wiki up and sort of running, but when I started it this way ... $ ./dbg wiki/main.l lib/too.l -main -go .. then I got this in the log: No menu document I have now to created both the home and menu documents, but when I go to localhost:5000 in my browser, I still

Re: Problem uploading image in local wiki

2010-04-18 Thread Jon Kleiser
Hi Alex, Hi Jon, I have also tried this with Firefox on Mac. No image showing there either. ... I believe this probably isn't really a PicoLisp wiki problem. I've changed my mind: I think this is a PicoLisp wiki problem. ;-) After all, I have successfully uploaded a wiki logo and a picture

Re: Problem uploading image in local wiki

2010-04-18 Thread Jon Kleiser
Hi Alex, Hi Jon, I've changed my mind: I think this is a PicoLisp wiki problem. ;-) Yes, it must be somehow. After all, I have successfully uploaded a wiki logo and a picture of myself to my local wiki. It's just the embedded ones, {...} and {...}, I have problems with. The difference

Re: Problem uploading image in local wiki

2010-04-18 Thread Jon Kleiser
Hi Alex, On Sun, Apr 18, 2010 at 02:20:34PM +0200, Alexander Burger wrote: Actually, the culprit is the 'http' server function. It sends a mime type of application/octet-stream (as can also be seen in the output of 'trace' in my previous mail) if the file extension is not in '*Mimes'. OK, I

Re: Problem uploading image in local wiki

2010-04-18 Thread Jon Kleiser
Hi again, Alex. Hi Jon, Really? In the generated HTML code? E.g. if you view the page source in your browser? Yes, there's no img ... tag in the generated page source, just the MyImg as plain text where the tag should have been. OK, then I it was indeed the case that the 'file'

Re: Problem uploading image in local wiki

2010-04-19 Thread Jon Kleiser
Hi Alex, On 4/19/10 10:28 AM, Alexander Burger wrote: Hi Jon, If I use file -bI instead, I get image/jpeg. That's what I suspected. The 'file' command behaves different on Linux and Mac (-bI vs -bi). We must either dispatch depending on the '*OS' global, or find a portable way. Does the

PicoLisp wiki, TimeOut?

2010-04-21 Thread Jon Kleiser
Hi Alex, I'm just curious: Why is there now a TimeOut message in red as soon as I try to log in at picolisp.com? /Jon -- UNSUBSCRIBE: mailto:picol...@software-lab.de?subject=unsubscribe

How to delete document from Wiki?

2010-04-23 Thread Jon Kleiser
Hi, I wanted to delete my imagetestopera document from the wiki, but both the Edit and the Delete buttons are disabled. Why? My idea was to post a few simple/basic PicoLisp questions on the wiki, for Alex or some other expert to answer. Would Forum: General be the right place? I think the

Re: How to delete document from Wiki?

2010-04-23 Thread Jon Kleiser
Hi Alex, On 4/23/10 11:02 AM, Alexander Burger wrote: Hi Jon, I wanted to delete my imagetestopera document from the wiki, but both the Edit and the Delete buttons are disabled. Why? Oops, sorry! There were two errors: - The Member role didn't have the Delete permission enabled.

Some technical questions and answers

2010-04-23 Thread Jon Kleiser
Hi, Now I have entered a few questions here: http://picolisp.com/5000/-2-L.html As I did so, I found that it would have been nice to have a markup code to produce a br/ break. What about {} ? (I haven't checked whether our wiki markup follows other more established wiki markup systems.)

Variable expected

2010-04-25 Thread Jon Kleiser
Hi, I just stumbled acros this: : (car ((list 1 2 3) 4)) !? (car ((list 1 2 3) 4)) 3 -- Variable expected Why is a variable expected in this position? /Jon -- UNSUBSCRIBE: mailto:picol...@software-lab.de?subject=unsubscribe

NIL -- Undefined

2010-04-25 Thread Jon Kleiser
Hi, : (list) - (NIL) That's fine, but why is this a problem then: : (NIL) !? (NIL) NIL -- Undefined /Jon -- UNSUBSCRIBE: mailto:picol...@software-lab.de?subject=unsubscribe

Re: NIL -- Undefined

2010-04-25 Thread Jon Kleiser
Hi, : (list) - (NIL) That's fine, ... Or is it? Why doesn't (list) evaluate to the same as () ? I see that : (length (list)) - 1 : (length (list 'A)) - 1 : (length ()) - 0 /Jon -- UNSUBSCRIBE: mailto:picol...@software-lab.de?subject=unsubscribe

Re: NIL -- Undefined

2010-04-25 Thread Jon Kleiser
Hi Alex, Thanks for the useful information! And thanks for using Sunday mornings for things that matters. ;-) /Jon On Sun, Apr 25, 2010 at 10:15:16AM +0200, Jon Kleiser wrote: : (list) - (NIL) That's fine, ... Or is it? Why doesn't (list) evaluate to the same

Symbol properties

2010-04-25 Thread Jon Kleiser
Hi Alex, While I'm at it ... There's one diagram in the docs that I have never fully understood. If you go here ... http://www.software-lab.de/doc/ref.html#symbol .. then you have the diagram underneath this sentence ... In the following example, a symbol with the name abc has three properties:

Quoted text in the dbg REPL

2010-04-26 Thread Jon Kleiser
Hi, I just discovered something I hadn't noticed before: When typing and printing quoted text using dbg (not p), the text is automatically underlined, and the quotes removed. Is this a feature added recently? Is this a unique PicoLisp feature, or is it used in other Lisps/languages? What's

Re: PicoLisp wiki, TimeOut?

2010-04-27 Thread Jon Kleiser
Hi Alex, Here is a demo of what I was thinking of: http://folk.uio.no/jkleiser/pico/experiment/timeoutdemo.html If you think it could be useful, you can pick the parts you like. Another detail: When one logs into the wiki, and then later logs out, the timeout info should be removed, and if

Re: Quoted text in the dbg REPL

2010-05-01 Thread Jon Kleiser
Hi Alex, Re. your last comment ... Up until picoLisp-3.0.2 I had also changed the complete reference documenation to show transient symbols with u and /u. There were complaints, however, that this makes copy/paste of the examples difficult, so I reverted the reference to double quote display. It

The 'read' function w/arguments

2010-06-02 Thread Jon Kleiser
Hi, When I try this example from the docs ... (make (while (read _ #) (link @))) .. I'm not able to get out of the while loop by typing NIL, as the docs imply. I have tried both with ./p and with ./dbg. I'm using a PicoLisp from 24 April this year. If I just do a (make (while (read) (link

Linux image for 64-bit PicoLisp

2010-06-14 Thread Jon Kleiser
Hi, I would like to try the 64-bit PicoLisp on my Intel Mac, and I guess using the (now Oracle) VirtualBox should be one possible way to go. I could maybe start off using one of the GNU/Linux images available here: http://virtualboxes.org/images/ However, to get the 64-bit PicoLisp up and

Re: Linux image for 64-bit PicoLisp

2010-06-14 Thread Jon Kleiser
Hi Alex and Henrik, Would the Linux system or my Mac, or both, have to be in 64-bit mode for the 64-bit PicoLisp to work? I would say: yes. Because a 32-bit Linux cannot execute 64-bit binaries (the other way round works, though) Why do you need a ready-made Linux image? Isn't there a

Re: Linux image for 64-bit PicoLisp

2010-07-21 Thread Jon Kleiser
Hi Alex and Henrik, Would the Linux system or my Mac, or both, have to be in 64-bit mode for the 64-bit PicoLisp to work? I would say: yes. Because a 32-bit Linux cannot execute 64-bit binaries (the other way round works, though) Why do you need a ready-made Linux image? Isn't there a

Re: Linux image for 64-bit PicoLisp, OpenGL

2010-07-21 Thread Jon Kleiser
Hi Alex, I have some time available today and tomorrow. At least we could get started on the 64-bit OpenGL library. Re. VirtualBox: It's also available (for free) for Linux hosts, here: http://www.virtualbox.org/wiki/Linux_Downloads If you're interested, you might be able to run 64-bit Ubuntu

Strange sort behaviour

2010-08-19 Thread Jon Kleiser
Hi, The docs on the 'sort' function says Sorts lst by destructively exchanging its elements. From this I get the impression that (let L (3 2 5 4) (sort L) L) should give the same result as (let L (3 2 5 4) (sort L)) but that's not so, as the first one reveals that L get the value (3 4 5),

put, applying get algorithm

2010-08-26 Thread Jon Kleiser
Hi, In the docs on the 'put' function I read this: That symbol is sym1 (if no other arguments are given), or a symbol found by applying the get algorithm to sym1|lst and the following arguments. Could somebody give me an example or two where this get algorithm is being applied? Maybe Alex

Re: put, applying get algorithm

2010-08-26 Thread Jon Kleiser
Hi Alex, On 8/26/10 1:20 PM, Alexander Burger wrote: Hi Jon, That symbol is sym1 (if no other arguments are given), or a symbol found by applying the get algorithm to sym1|lst and the following arguments. Could somebody give me an example or two where this get algorithm is being applied?

Boolean property

2010-08-27 Thread Jon Kleiser
Hi, In the doc/ref.html I read this: Each property in a symbol's tail is either a symbol (like the single KEY above, then it represents a boolean value), ... Can such a single KEY represent anything else than the boolean 'T'? If it cannot, I think the docs should say so. If it can, I'd like

Re: put, applying get algorithm

2010-08-27 Thread Jon Kleiser
On 8/26/10 1:20 PM, Alexander Burger wrote: .. I'm not sure about the docs, as such examples - as you can see above - quickly get rather complicated. Cheers, - Alex I think this could be a nice little example: : (setq L '(A B C)) - (A B C) : (setq B 'D) - D : (put L 2 0 'p 5) - 5 : (getl 'D)

Re: Boolean property

2010-08-27 Thread Jon Kleiser
On 8/27/10 12:55 PM, Alexander Burger wrote: Hi Jon, Each property in a symbol's tail is either a symbol (like the single KEY above, then it represents a boolean value), ... Can such a single KEY represent anything else than the boolean 'T'? If it cannot, I think the docs should say so. If it

Re: Flight Simulator

2010-08-27 Thread Jon Kleiser
On 8/27/10 4:05 PM, Alexander Burger wrote: On Fri, Aug 27, 2010 at 03:54:39PM +0200, Alexander Burger wrote: how much work would it involve if we ported the 'rcsim' flight simulator to our new OpenGL library? Or, perhaps even better: How about investigating WebGL? Both could be great fun!

Re: put, applying get algorithm

2010-08-29 Thread Jon Kleiser
I never saw the ; shortcut being mentioned, in most cases (for me anyway) it will suffice instead of get. By the way, is the ';' functionally identical to the 'get'? If so, I think the docs should say so clearly. If not so, what's the difference? /Jon -- UNSUBSCRIBE:

Property surprise

2010-08-30 Thread Jon Kleiser
Hi, I got a little surprised when I discovered that property manipulations on a local symbol, e.g. inside a 'let' block, had global effects, like in this example: : (prog (setq S 1) (put 'S 'p 2) (let S 3 (put 'S 'p 4)) (show 'S)) S 1 p 4 - S I understand this is probably the way it's

load recursively

2010-09-07 Thread Jon Kleiser
Hi, In the docs on the 'load' function I read that, When any is T, all remaining command line arguments are loaded recursively. Can somebody explain what this recursive loading is? /Jon -- UNSUBSCRIBE: mailto:picol...@software-lab.de?subject=unsubscribe

Re: load recursively

2010-09-08 Thread Jon Kleiser
Hi Alex, Hi Jon, In the docs on the 'load' function I read that, When any is T, all remaining command line arguments are loaded recursively. Can somebody explain what this recursive loading is? There is nothing special about the word recursive here. It could as well say When any is T, all

Re: load recursively

2010-09-08 Thread Jon Kleiser
Hi Alex, Thanks for the extensive explanation! I'll work a bit on this later to make sure I understand every part of it. ;-) /Jon Hi Jon, I still don't get the difference this T makes. If I want to load two files with one 'load' call, when should I include the T? To load two files, you

Re: picolisp in java

2010-10-05 Thread Jon Kleiser
Hi Tomas, On 10/4/10 7:27 PM, Tomas Hlavaty wrote: .. For example, even simple 'if' is implemented as a picolisp fexpr: (de if (C . L) (loop (T C (up. '@ @) (eval (car L) 1)) (T T (run (cdr L) 1)) ) ) .. I'm just curious, what does that 'up.' do? I can't find it in

pi and e

2010-10-05 Thread Jon Kleiser
Hi, I may have asked this earlier .. If so, maybe it should be in the FAQ .. What's the standard way of obtaining math constants pi and e? Are they predefined somewhere? /Jon -- UNSUBSCRIBE: mailto:picol...@software-lab.de?subject=unsubscribe

Re: First rudimentary version. Was: picolisp in java

2010-10-10 Thread Jon Kleiser
Hi, I tried to run ersatz/picolisp on my Mac, but it didn't turn out too well: $ ersatz/picolisp Exception in thread main java.lang.UnsupportedClassVersionError: Bad version number in .class file at java.lang.ClassLoader.defineClass1(Native Method) at

Re: First rudimentary version. Was: picolisp in java

2010-10-10 Thread Jon Kleiser
Hi Alex, Yes, building a new JAR made it. Thanks! /Jon Hi Jon, Exception in thread main java.lang.UnsupportedClassVersionError: Bad version number in .class file It seems that this error occurs if the java runtime version is older than that of the classes in the JAR file. $ java

PicoLisp Wiki: The core language of PicoLisp

2010-10-11 Thread Jon Kleiser
Hi, In the not yet completed Wiki article The core language of PicoLisp http://picolisp.com/5000/-2-1L.html, there's a paragraph Declaring variables where I read (re. 'let') that The values are not bound to the variables until execution of the prg has begun, so this excludes using v1 to set

Re: PicoLisp Wiki: The core language of PicoLisp

2010-10-12 Thread Jon Kleiser
Hi Alex, On 10/12/10 7:35 AM, Alexander Burger wrote: .. This Wiki article really needs to be completed. I'm a bit reluctant to touch it, because if I do, I feel I have to make sure the entire I was hoping that the original author danelliottster would react, but I notice that he already

Re: PicoLisp Wiki: The core language of PicoLisp

2010-10-12 Thread Jon Kleiser
Hi Alex, On 10/12/10 9:51 AM, Alexander Burger wrote: Hi Jon, That's a possibility. I can't say exactly when, but something needs to be done quick. ;-) OK, I fixed the offending part ;-) Now it says The values are not bound to the variables one by one. It should probably have been The

Re: Announce: ErsatzLisp (Java PicoLisp)

2010-11-05 Thread Jon Kleiser
Hi Alex, This looks very interesting. However, I have some problems building ersatz on my Intel Mac: ..:picoLisp jkleiser$ (cd ersatz; ./mkJar) PicoLisp.java:15: cannot find symbol symbol : class Console location: class PicoLisp final static Console Term = System.console();

Re: Announce: ErsatzLisp (Java PicoLisp)

2010-11-05 Thread Jon Kleiser
On 11/5/10 10:56 AM, Alexander Burger wrote: Hi Jon, This looks very interesting. However, I have some problems building ersatz on my Intel Mac: ..:picoLisp jkleiser$ (cd ersatz; ./mkJar) PicoLisp.java:15: cannot find symbol symbol : class Console I see. java.io.Console is avaliable only

tracing method calls

2010-11-10 Thread Jon Kleiser
Hi, I'm taking a closer look at the '$' low level trace function. In the ref. I read that if a method is traced, it [the first argument] is a cons pair of message and class. However, when I try this, I also get to see a representation of the object, but I have trouble understanding

Re: tracing method calls

2010-11-11 Thread Jon Kleiser
Hi Mansur, Yes, the explanation seems to lie at the end of this line ... print(car(x)), space(), print(cdr(x)), space(), print(val(This)); .. in traceIndent(int i, any x, char *s) in src/flow.c. Thanks! /Jon On 11-11-10 04:38 , Mansur Mamkin wrote: Hi Jon! Maybe this will help: look at

Re: Done! -- Was: Announce: ErsatzLisp (Java PicoLisp)

2010-11-13 Thread Jon Kleiser
On Fri, 12 Nov 2010 20:04:01 +0100, Alexander Burger a...@software-lab.de wrote: On Sat, Oct 30, 2010 at 07:07:01PM +0200, Alexander Burger wrote: In the near future I will continue, trying to supply as many missing parts as possible. The next will probably be the *Run/task mechanisms

Re: Announce: ErsatzLisp (Java PicoLisp)

2010-11-15 Thread Jon Kleiser
Hi Alex, I've now had the chance to test your latest ErsatzLisp, on a Linux machine. When I tried (data @) in your Example below, I got data -- Undefined. Did you change something lately? Will this 'java' function be documented somewhere? ;-) Do you now if it would be possible, or easy, to

Re: Announce: ErsatzLisp (Java PicoLisp)

2010-11-17 Thread Jon Kleiser
Hi Alex, In your description below I can see no way to - set a value of a public field of an object, or - set a value of a public field of a class Is this something that you may add later? /Jon On 04-11-10 19:53 , Alexander Burger wrote: Hi all, here is an update. Besides the basic I/O

Re: Announce: ErsatzLisp (Java PicoLisp)

2010-11-18 Thread Jon Kleiser
Hi again, On 04-11-10 19:53 , Alexander Burger wrote: Hi all, here is an update. Besides the basic I/O system and half-baked network functions (until now only 'connect', 'accept' and a partial 'port'), we have now a set of functions interfacing to the Java Reflection API. I'd like to

Re: Announce: ErsatzLisp (Java PicoLisp)

2010-11-18 Thread Jon Kleiser
Hi Alex, I'll try to find an example to test it. ;-) /Jon On 18-11-10 09:50 , Alexander Burger wrote: Hi Jon, (public 'obj 'any) - obj Returns the value of a public field 'any' in object 'obj' (public 'cls 'any) - obj Returns the value of a public field 'any' in

Re: just a big THANK YOU

2010-12-22 Thread Jon Kleiser
A Merry Xmas and a Lispful New Year to all of you! /Jon -- UNSUBSCRIBE: mailto:picol...@software-lab.de?subject=unsubscribe

Re: java proxy, nil vs. NIL

2011-01-14 Thread Jon Kleiser
Hi Alex, I have now installed SoyLatte Java 1.6 on one of my Macs (OS X 10.5.8), and it enables me to run ErsatzLisp stuff. In your code below I notice you use nil instead of NIL. Why is that? /Jon On 03-12-10 09:00 , Alexander Burger wrote: Hi Tomas, Why does your code (java Label

Re: Announce: Some sensitive changes

2011-01-19 Thread Jon Kleiser
Hi Alex, I welcome #2, *Tsm off by default. /Jon On 18-01-11 18:02 , Alexander Burger wrote: Hi all, after some lengthy discussions in IRC today, we decided to change some sensitive features of the PicoLisp interpreter environment: 1. On the command line, debug mode can now enabled by

Re: PicoLisp and Emacs

2011-02-08 Thread Jon Kleiser
On 07-02-11 10:10 , Jon Kleiser wrote: Hi Steve, Yes, you are right, that's my name. I once corrected a couple of typos in that article, and now one gets the impression that I'm the main author. In my opinion, that's a weakness of this wiki. ;-) /Jon On 06-02-11 21:18 , Steve Graham wrote

Re: PicoLisp and Arrays

2011-02-22 Thread Jon Kleiser
On 22-02-11 10:26 , Jakob Eriksson wrote: On Tue, Feb 22, 2011 at 08:31:43AM +0100, Alexander Burger wrote: So, again, thanks to you all for the support! I don't have to defend that design decision in the future again! :) With new users, this will come up over and over again. But now there is

Check for repeating circular lists

2011-03-04 Thread Jon Kleiser
Hi Alex, I noticed here http://code.google.com/p/picolisp/updates/list that you did an update re. Check for repeating circular lists the other day. Is a repeating circular lists a special case of a circular lists? If so, could you give an example of such a repeating circular lists? /Jon --

Re: Inferior processes and access to foreign libraries

2011-03-24 Thread Jon Kleiser
Hi Alex, This overview of the different ways of integration with other software is very good! It deserves a place in the wiki. ;-) /Jon On 24-03-11 15:08 , Alexander Burger wrote: Hi Thorsten, I wonder if one could build a picolisp app that fully integrates with R (statistics software,

Re: Inferior processes and access to foreign libraries

2011-03-24 Thread Jon Kleiser
Hi Alex, On 24-03-11 16:21 , Alexander Burger wrote: Hi Jon, This overview of the different ways of integration with other software is very good! It deserves a place in the wiki. ;-) Good idea! I'm still not sure, however, if it is complete. I'm getting a bit confused about that, it is the

Re: Flight Simulator

2011-04-05 Thread Jon Kleiser
Hi Alex, On 27-08-10 16:05 , Alexander Burger wrote: On Fri, Aug 27, 2010 at 03:54:39PM +0200, Alexander Burger wrote: how much work would it involve if we ported the 'rcsim' flight simulator to our new OpenGL library? Or, perhaps even better: How about investigating WebGL? Is a port of your

Re: Flight Simulator

2011-04-05 Thread Jon Kleiser
Hi Alex, On 05-04-11 13:48 , Alexander Burger wrote: Hi Jon, how much work would it involve if we ported the 'rcsim' flight simulator to our new OpenGL library? Or, perhaps even better: How about investigating WebGL? Is a port of your 'rcsim' flight simulator still interesting? I Yes,

Re: Flight Simulator

2011-04-06 Thread Jon Kleiser
Hi Alex, I'm quite sure it's possible to make the browser handle the PLIO format, and I would like to give it a try. Before I can start doing anything related to that format, however, I need to do some simple experiments in WebGL, as programming for WebGL looks a bit more complicated than the

Re: openGL

2011-04-16 Thread Jon Kleiser
Hi Thorsten, 1. No, none of the OpenGL libraries included with PicoLisp is complete. If there are functions or constants that you're missing, just let us know. Maybe you figure out how to add them yourself. It's not very hard. Are you using the 32- or 64-bit PicoLisp? The OpenGL libraries

  1   2   3   4   >