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 , and I also wrote a simple menu-test.l to check if it wo

Re: Pico, OpenGL menus, refresh problem

2008-04-01 Thread Jon Kleiser
Hi Alex, Thanks again! The two missing 'return T' were responsible for the warnings. The refresh problem was caused by a missing '(glut:SwapBuffers)'. ;-) /Jon Hi Jon, a couple of these: "warning: control reaches end of non-void function". I'm a rather lousy C programmer, and I have no

Re: Pico, OpenGL menus, refresh problem

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

Re: Pico, OpenGL menus, refresh problem

2008-04-07 Thread Jon Kleiser
been doing with the Pico Lisp Makefile. I removed the MacOS target of 10.4 and added Os optimization level. Do you really think that it is necessary to specify the build target under Darwin? If it is not specified one can build toward a target of 10.5. Regards, Anthony On Apr 2, 2008,

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 d

Pico, EOF Overrun

2008-04-09 Thread Jon Kleiser
Hi, I've stumbled across this: If I try to run (str "#"), then I get "EOF Overrun". My questions then are 1) What does it mean? 2) Is it possible to catch this as an exception? /Jon

Re: Pico, EOF Overrun

2008-04-09 Thread Jon Kleiser
Hi Alex, That was a quick fix! Thanks. /Jon On Wed, Apr 09, 2008 at 12:38:06PM +0200, Jon Kleiser wrote: I've stumbled across this: If I try to run (str "#"), then I get "EOF Overrun". My questions then are 1) What does it mean? Sorry, this is a known bug ;-)

Re: Pico, EOF Overrun

2008-04-09 Thread Jon Kleiser
Hi Alex, Hi Jon, > That was a quick fix! Thanks. Yes, because you triggered it finally :-) A few days ago, Henrik also stubled across this bug, and something had to be done about it. Having a '#' in an argument to 'str' is something not really intended. 'str' parses formally valid Lisp exp

Re: Pico, EOF Overrun

2008-04-09 Thread Jon Kleiser
Hi Alex, > behaviour ;-), so I probably should use something else than 'str' for this. ... > (de ifwarnfile (Path) (in Path (ifwarn (str (till NIL T ) How about, for example, (in Path (while (read) (ifwarn @) ) ) Cheers, Alex Yes, I've now modified 'ifw

Pico, difficulty with circular lists

2008-04-10 Thread Jon Kleiser
Hi Alex, After you made me aware of the circular list in lib/form.l, I changed my 'ifwarn' function to skip circular lists by putting in the (nT (length Prg)) test, like this: (de ifwarn (Prg) (when (and (lst? Prg) (nT (length Prg))) (when (and (= (car Prg) 'if) (<> (l

Re: Pico, difficulty with circular lists

2008-04-11 Thread Jon Kleiser
Hi again, > (length '(de *Day . (Mon Tue Wed Thu Fri Sat Sun .))) .. Why does 'length' have such problems here? Circular lists are generally rather dangerous. PicLisp supports (kind of ;-) only what I would call "primary circular lists", i.e. lists that circulate back to the first cell I

Pico, handling requests from jQuery

2008-05-16 Thread Jon Kleiser
Hi, 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-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:

Re: Pico, handling requests from jQuery

2008-05-18 Thread Jon Kleiser
Hi Alex, >> It seems to me that it won't be easy to make use of the Pico Lisp URL >> encoding system when using jQuery AJAX calls like getJSON, as jQuery >> uses >> the more traditional key-value style (http://...?k1=v1&k2=v2...). Is >> there > > No problem at all, I think. It is all there. > > Th

Re: Pico, handling requests from jQuery

2008-05-18 Thread Jon Kleiser
Hi, Thanks to Firebug, I just found the reason for my problems with string variables containing letters. The way I wrote my little Pico Lisp server, it tried to return a piece of invalid JSON code like "json...({x: 11, y: 2x2});". When I changed it into "json...({x: '11', y: '2x2'});", it worked l

Re: Pico, handling requests from jQuery

2008-05-19 Thread Jon Kleiser
Hi Alex, > 1) How can you know how many (and which) variables that the request contained? The server part anyway must know which variables are relevant (can be expected to be filled by the client). If you cannot guarantee that all variables are filled by the client, I would simply clear the

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 "975

Re: Pico, stamp and time zone

2008-05-22 Thread Jon Kleiser
Hi Alex, Thanks a lot for your reply! /Jon Hi Jon, and time of the file "CHANGES", I get "2008-04-23 16:29:06", and this should be the UTC date and time. Right. 'info' returns the time in UTC. I think it would be too much trouble to change 'info' or write a similar function in C. I wou

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; cha

Re: Pico, handling requests from jQuery

2008-05-27 Thread Jon Kleiser
Hi Alex, > space, like "A B", it will turn up in Pico Lisp like "A+B". Is there As a built-in function there is only 'ht:Pack', which is used e.g. in "lib/http.l". But it just decodes hex patterns like "%20": : (ht:Pack (chop "A%20B%20C")) -> "A B C" If you are only concerned about '

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', yo

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; charse

Re: Pico, (locale "XY") error handling?

2008-06-10 Thread Jon Kleiser
Hi Alex, I gave the 'catch' a try with '(locale "XY")' in the current (testing) release, and it works great. Thanks a lot! /Jon On Tue, May 20, 2008 at 01:37:21PM +0200, Jon Kleiser wrote: !? (load (if (setq *Ctry Ctry) (pack "@loc/" @) "@loc/N

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 transl

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."

Pico, how to translate function result?

2008-07-08 Thread Jon Kleiser
Hi, I thought I had done this before, but now I don't remember how ... ;-) If you want to translate a certain string, you can do like this ,"This works fine." and get a translation, depending on the use of "(locale ...)". But what do you do if the text to be translated is the result of some f

Re: Pico, how to translate function result?

2008-07-08 Thread Jon Kleiser
Hi Alex, Hi Jon, do you do if the text to be translated is the result of some function? This doesn't seem to work: ,(someTextBasedOn X Y Z) Yes, in this context the comma makes only sense immediately before the transient symbol. The comma read macro does nothing else than putting the fo

Re: Pico, how to translate function result?

2008-07-08 Thread Jon Kleiser
Hi Alex, Hi Jon, do you do if the text to be translated is the result of some function? This doesn't seem to work: ,(someTextBasedOn X Y Z) Yes, in this context the comma makes only sense immediately before the transient symbol. The comma read macro does nothing else than putting the fo

Pico, Chinese Checkers program

2008-07-09 Thread Jon Kleiser
Hi, Here's the Pico Lisp version of my Chinese Checkers program. The code, especially in lib.l, still contains a lot of ugly commented-out println debugging stuff, so I consider this a beta. It's available here: You may also need this OpenGL st

Re: Pico, Chinese Checkers program

2008-07-09 Thread Jon Kleiser
Hi Jon, it works great! Many thanks! It would be nice to have also a 'Q' command (the windows here in fvwm have no close box). Cheers, - Alex Hi Alex, A 'Q' command (bye) has now been added, and the incomplete sentence fixed. /Jon -- UNSUBSCRIBE: mailto:[EMAIL PROTECTED]

Variable number of arguments in SVG functions

2008-10-20 Thread Jon Kleiser
Hi, I've started some work on doing SVG graphics from Pico Lisp, and I've written a few functions that produce SVG elements. I try to do this more or less in the same way the HTML elements are done in lib/xhtml.l. Some SVG elements have just a small number of attributes, but others, like 'tex

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 Prg (prin "<" (pop 'Prg)) (while (atom (car Prg)) (prin " " (pop 'Prg) "=\"" (eval (pop 'Prg) 1) "\"") ) (prin ">") (run Prg) # the text, or other elements (prin

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'

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 :-) 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
have any idea where the bug could 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-17 Thread Jon Kleiser
Hi Tomas, I tried this now, removed the -O2 flag from Makefile, and recompiled everything, but I still get the Bus error. :-( /Jon > Hi Jon, Randall and Alex, > > this might not be related but still an idea. Have you tried to build > picolisp with gcc optimizations off? Recently, I had a probl

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, r

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 I

Re: Pico Bus error with OpenGL on Mac

2009-07-19 Thread Jon Kleiser
> On Sat, Jul 18, 2009 at 05:06:50PM +0200, Henrik Sarvell wrote: >> This has nothing to do with this Mac problem, it's an old thing which > > True. One more reason to swicht to the 64-bit assembly version, which > does not depend on any obscure compiler ;-) > -- > UNSUBSCRIBE: mailto:picol...@soft

Pico build problem on Mac OS X 10.6

2009-09-06 Thread Jon Kleiser
Hi, 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 curious to see what the consequences might be for Pico Lisp. I downloaded the ongoing dev. version of Pico Lisp and did the usual "(cd src; make picol

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 resu

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. > > PowerBook-12in:~/pi

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)^30

Re: suggestion to change in Makefile

2009-12-09 Thread Jon Kleiser
> On Wed, Dec 09, 2009 at 04:37:00PM +0500, Mansur Mamkin wrote: >> default on that Linux. So AltLinux team suggests to put -l >> arguments after obj-files as this is more standard-compliant >> (see also http://www.gentoo.org/proj/en/qa/asneeded.xml) > > This proposal makes sense. > > It would be n

Re: suggestion to change in Makefile

2009-12-09 Thread Jon Kleiser
> Hi, > > I just downloaded the testing version of Pico Lisp, and tried Mansur's > Makefile patch, just modified for Mac/Darwin: > > --- > OS = Darwin > - PICOLISP-FLAGS = -m32 -rdynamic -lc -lm -ldl > + PICOLISP-FLAGS = -m32 -rdynamic > DYNAMIC-LIB-FLAGS = -m32 -shared -export-dynamic >

Re: suggestion to change in Makefile

2009-12-09 Thread Jon Kleiser
> Hi Jon, > >> This seemed to work OK on my Intel Mac (OSX 10.5.8). I've spotted no >> problem this far. Maybe I should run a complete test ... How do I do it? > > Great. Thanks! > > You could run the unit tests: > >cd /picoLisp/installation/directory > >$(/bin/pwd)/p lib/test.l -bye > > If

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 ;-

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 progr

Re: Wikipedia

2010-01-05 Thread Jon Kleiser
On 1/5/10 7:15 AM, Mateusz Jan Przybylski wrote: .. In any case, please have a look at https://www.ohloh.net/p/PicoLisp and update it with current state of the project. That's just a small bit, but still... Regards, -- dexen Nice! I'm user #2. ;-) Is it possible to change the project name fro

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
ve it a try. /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: mai

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

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 , I cannot find your mails there either. Are you operating in stealth mode? ;-) /Jon -- U

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:

Files for Norwegian locale

2010-01-14 Thread Jon Kleiser
Hi Alex, I thought it was about time to have support for Norwegian locale in PicoLisp, so I have now created three files (two to go into loc/, one into app/loc/) and modified the /app/main.l. The files are based on what I found in picoLisp-3.0.1. You can grab it 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: .. 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 "Permissio

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=en&ie=UTF-8&sl=en&tl=cs&u=http://home.picolisp.com/&prev=_t > > :-) > > Tomas Not exactly ;-), but I'm quite impressed by the quality of Goo

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 recommen

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 ju

Re: How to launch local wiki?

2010-04-17 Thread Jon Kleiser
Hi Alex, .. >> I have now created both the home and menu documents, but when I go to .. >> localhost:5000 in my browser, I still just get the maintenance pages. >> How do I get to see it the wiki way? > > By pointing the browser to the "home" document. > > For that, you must find out the object ID

Re: How to launch local wiki?

2010-04-17 Thread Jon Kleiser
Hi Alex, Those two changes made it. Another little problem: Since I don't use httpGate, the "Start Page" link in the menu should not point to http://localhost/5000/-2-1.html, but to http://localhost:5000/-2-1.html. Ho can we fix that? /Jon > Hi Jon, > >> ? !? (in (blob (; (id @) mup) 'txt) (ren

Re: How to launch local wiki?

2010-04-17 Thread Jon Kleiser
Hi Alex, > Hi Jon, > >> Another little problem: Since I don't use httpGate, the "Start Page" >> link >> in the menu should not point to http://localhost/5000/-2-1.html, but to >> http://localhost:5000/-2-1.html. Ho can we fix that? > > Right. There is an assumption for httpGate. Also, that part is

Problem uploading image in local wiki

2010-04-17 Thread Jon Kleiser
Hi, I'm trying to include an image in a document in my local wiki, but the image won't show. This is what I do: When I'm in Edit mode, I type a name, say MyImg, into the "Specify a name" field, then I click the "Chose File" button (I use Safari on Mac) and selects a .jpg file, then I click the "U

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

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.

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'.

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 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 '

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 th

Problem uploading image using Opera

2010-04-19 Thread Jon Kleiser
Hi Alex, Your latest fix (picoLisp.tgz + wiki.tgz) solved my local wiki uploading problem, at least when I use Safari. When I use Opera (10.10), however, it gets stuck when I click the "Upload directly" button. In the terminal window I see this: !? (- *Cnt (setq *Get (format *Get))) 4 -- Number e

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

Re: PicoLisp wiki, TimeOut?

2010-04-21 Thread Jon Kleiser
Hi Alex, I still don't understand what it tries to tell me. If it means there's some 10 minutes till timeout, why doesn't these minutes and seconds count down? The way this red message appears, it looks like some failure/timeout has already happened. If there shall be something telling the user h

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 th

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: As I did so, I found that it would have been nice to have a markup code to produce a break. What about &{} ? (I haven't checked whether our wiki markup follows other more established wiki markup systems.) /Jon

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, ... >> &g

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 ... .. then you have the diagram underneath this sentence ... "In the following example, a symbol with the name "abc" has three properti

Quoted text in the dbg REPL

2010-04-25 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: 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 p

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 and . There were complaints, however, that this makes copy/paste of the examples difficult, so I reverted the reference to double quote display." It s

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 runni

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 th

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 direct

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: If you're interested, you might be able to run 64-bit Ubunt

let, NIL as a sym argument

2010-08-09 Thread Jon Kleiser
Hi, In the PicoLisp docs on the 'let' function I read that "It is an error condition to pass NIL as a sym argument." Is this really so? I have tried a few variants, like (let (NIL 1 X 2) X), but I have not "succeeded" in getting an error reaction ... /Jon -- UNSUBSCRIBE: mailto:picol...@soft

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),

Re: Strange sort behaviour

2010-08-19 Thread Jon Kleiser
Hi Tomas, I can accept your explanation, but then I think the docs should make it clear that the sorted list is what's returned by the function, and that the state of the "input list" afterwards can be somewhat unpredictable. /Jon > Hi Jon, > >> (let L (3 2 5 4) (sort L) L) >> >> should give the

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 co

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? Mayb

  1   2   3   4   5   >