Some questions about the Pico Lisp Interpreter

2008-06-05 Thread konrad Zielinski
of discussion about Direct threading and register based VM's is any of that potentially relevent to Pico Lisp. The First at least seems to be a compiler trick which i would expect to work, though I don't know how much impact it may have, the second I'm not so sure about. Kind Regards Konrad Zielinski

Re: A broken program

2008-06-11 Thread konrad Zielinski
a feeling for what other goodies are hiding in there. regards Konrad 2008/6/12 Alexander Burger [EMAIL PROTECTED]: On Thu, Jun 12, 2008 at 09:22:21AM +1000, konrad Zielinski wrote: Having two strings which look the same but are not equal seems like a bit of a design flaw. The intuitive notion would

Contriving a static variable.

2008-06-12 Thread konrad Zielinski
Hi, I've been trying to get my head around how closures work in Pico lisp. specifically how would I set up a variable a function which returns successive integers each time it is called. My first Idea was to return this form anther function but it didn't work My second idea was to store a

Re: Contriving a static variable.

2008-06-13 Thread konrad Zielinski
. Especially if you have been away from any lisp programming for a while (as I have). However I'm determined to master it so bear with my and the questions should get a little more insightfull. regards Konrad 2008/6/13 Alexander Burger [EMAIL PROTECTED]: On Fri, Jun 13, 2008 at 01:14:04PM +1000, konrad

Is there a better way to do this

2008-06-17 Thread konrad Zielinski
Hi, I'm writing a method wich only wants to conditionally process some of its arguments and am wondering if there is a better way to write it. Note In this case I don't need somthing which returns new functions as each invocation will only be used once. currently I have (de process-until (Mark

using the http server to return xml

2008-10-02 Thread konrad Zielinski
Hi All, I'm trying to get a picoLisp server to return an XML document. I've got it returning an actual .xml file ok. (had to modify the definition of *Mimes directly as calling (mime xml text/xml 1) didn't seem to have any effect. Now I would like to do it with a function so i can request

Re: using the http server to return xml

2008-10-04 Thread konrad Zielinski
I think my problem with setting mime types originally was due to basing my code on the initial hello world example, where the html function is called bare inside project.l. In this model the call to server is on the command line. I'm guessing this means that Mime remains whatever it was when

Re: using the http server to return xml

2008-10-04 Thread konrad Zielinski
to some ridiculous size. regards Konrad. On 04/10/2008, Alexander Burger [EMAIL PROTECTED] wrote: On Fri, Oct 03, 2008 at 09:32:43PM +1000, konrad Zielinski wrote: (de mydata2 () (httpHead text/xml; charset=utf-8 1) (xml? T) (xml '(root NIL Document 2)) ) mydata works

Asyncronous IO

2008-10-06 Thread konrad Zielinski
I have several times found that what I was looking for was already implemented in picoLisp, just not under the name I expected. So here gos: Are their any existing picoLisp functions for using the select system call and doing asynchronous IO (note this is not in any way related to the picoLisp

Re: Asyncronous IO

2008-10-07 Thread konrad Zielinski
Hi Henrik the whole idea of an asycronous server is that you only use one process. to handle all requests. this way session data can be stored without using an external symbols. Even further several clients may share state in some way, though the only example I can think of off the top of my

Re: Asyncronous IO

2008-10-08 Thread konrad Zielinski
Ahh, I belive the issue is that I have actually installed picoLisp under usr/local but don't use it exclusivly from that directory. As such I get the following: script src=http://localhost:8080//usr/local/picoLisp/lib/form.js; type=text/javascript/script which includes an absolure path to

Re: Asyncronous IO

2008-10-08 Thread konrad Zielinski
Henrik, all of the references I'm aware of are based on Python. the standard Python library includes modules called asyncore and asynchat (sections 17.5 and 17.6 of the Python documentation. The original Asyncronous webserver (as far as I'm aware) is medusa http://www.nightmare.com/medusa/

Re: Asyncronous IO

2008-10-08 Thread konrad Zielinski
Hi All, In the matter of how to begin. Twisted is I think the wrong place. It is a very large and complicated beast which has grown in its own unquie direction. So much so that it is incompatable with a lot of standard python tools and libraries, uses its own logging system etc. In copying

Re: Asyncronous IO

2008-10-08 Thread konrad Zielinski
Hi Alex, your response to Tomas's questions dosn't seem to have made it to the list. Most of the documentation I have seen seems to suggest that Sockets need to be put into non blocking mode explicitly, ie using select() is not sufficent. At a low level attempting to read from a nonblocking

Re: picoWiki

2008-10-09 Thread konrad Zielinski
Yes, Wiki's can be quite useful. Getting a copy of the standard reference documentation on there would be useful. Then we could all work on expanind it a little as the current desciptions are quite terse in places. Granted the fact that we have readable documentation at all is a great boon, and

Re: Asyncronous IO

2008-10-09 Thread konrad Zielinski
Hi Alex, that sends me back to the drawing board a little. Yet again I recall seeing the fifo function but didn't realise I might need it : ) A few other things occured to me as I was working on this on the train. The task and *Run mechanism (if used with enough care) give us non blocking reads.

Re: Cutting a circular list.

2008-10-11 Thread konrad Zielinski
Hi Alex, Well thats two improvements to the documentation. The description of set says: Stores new values any in the var arguments. I suspect it should say what you said above. and have a see also link to con. regs Konrad. On 11/10/2008, Alexander Burger [EMAIL PROTECTED] wrote: Hi Konrad,

Re: Cutting a circular list.

2008-10-13 Thread konrad Zielinski
2008/10/13 Tomas Hlavaty [EMAIL PROTECTED]: Hi Konrad, Well thats two improvements to the documentation. Perhaps a perfect candidate for the Wiki? Hmm. var - Variable: Either a symbol or a cell (set 'var 'any ..) - any Stores new values any in the var arguments. See also setq, val

Re: picoWiki

2008-10-13 Thread konrad Zielinski
Hi, After some consideration I agree that supplementing the core docs is better then replacing them. If I could make a feature suggestion. It would be handy if there was a shortcut syntax for linking to the definition of terms in the core documentation (much as the lisp tag currently does). so

Re: Cutting a circular list.

2008-10-13 Thread konrad Zielinski
Hi Thomas, Well the current mode of operation is to generate html pages on demand. What about pre-generation. If I recall correctly that is something which the Apache Cocoon framework supports. basically tell the system . walk through all your pages generate the HTML and save to a file. This

Re: picoWiki

2008-10-13 Thread konrad Zielinski
into a wiki that will simply display whatever is given. regs Konrad. 2008/10/14 konrad Zielinski [EMAIL PROTECTED]: Hi, After some consideration I agree that supplementing the core docs is better then replacing them. If I could make a feature suggestion. It would be handy

Re: Cutting a circular list.

2008-10-14 Thread konrad Zielinski
Hi All, OK here's an example of using con and set. which I'm planning to put up on the wiki. I decided to re-implemtn the fifo function using these primitives. Before I write up an article anyone see any room for improvment. I plan to mention altarnative ways of doing things Such as using circ

Re: Cutting a circular list.

2008-10-14 Thread konrad Zielinski
Thanks Alex, I had misgivings about using eval in my code, and a feeling that there must be a better way. The inability to add NIL is something I completely missed, though. True not somthing that you would ordinarily do at the prompt but quite likely deep inside application code. As to useing

Status of 64 picoLisp

2008-10-15 Thread konrad Zielinski
Hi Alex, I was just wondering what the current status of 64 bit picolisp is. I;m on a 64 bit system which for the moment has prevented me from trying out Thomas's Async read and write code. I'm working on a 32 bit chroot enviornment to run pico in for now, but it would be nice to go native.

Re: Status of 64 picoLisp

2008-10-15 Thread konrad Zielinski
I suspect this would be in contradiction to some of the stated goals of PicoLisp, For one you would no longer be close to the machine. Just close to the virtual machine. On 16/10/2008, Jakob [EMAIL PROTECTED] wrote: On 15 Oct 2008, at 9:11 AM, Alexander Burger wrote: It is a complete rewrite.

Re: Status of 64 picoLisp

2008-10-16 Thread konrad Zielinski
Hi All, It would appear that setting up a chroot is remarkably easy, well under debian anyway, I can't speak for other distros as I haven't tried. AndJus it seems to work quite nicely too, even if their are other ways to do it. Anyway now that I have a chroot I can install a version of Firefox

Re: Status of 64 picoLisp

2008-10-20 Thread konrad Zielinski
THe interesting thing will be handling C structs. As almost every interesting C API makes heavy use of them. My wish list would be to be able to create them from inside pico and use them just like a native object. IE pass them arround as the values of symbols and use 'get' and 'put' to read and

UNSUBSCRIBE

2010-07-25 Thread konrad Zielinski
Good bye konrad Zielinski kzielin...@gmail.com :-( You are now unsubscribed -- read my mind at: http://the-willows.blogspot.com/ -- UNSUBSCRIBE: mailto:picol...@software-lab.de?subject=unsubscribe

Re: Canonical way to do master detail relationship.

2012-02-12 Thread Konrad Zielinski
Thanks Alex, I Believe this is what I was looking for: (class +Master +Entity) (rel children (+List +Bag) ((+Key +String)) # description ((+Number)) ) # rank I'll see how I go with it. As to number of details I'm expecting it to sit at less then 5 almost all the time,

Re: android success with full picolisp

2012-02-21 Thread Konrad Zielinski
Do you know if this approach would work for on a Kindle Keyboard as well? It would be an interesting way to add functionaltiy to my kindle. regs Konrad On Tue, Feb 21, 2012 at 2:04 PM, Joe Bogner joebog...@gmail.com wrote: Doug - Neat! I took a different approach and got picolisp working on

Re: How do Relations and gui objects hook together.

2012-02-22 Thread Konrad Zielinski
Hi Alex Thanks for the explanation. Though this really should be mentioned in the documentation. Its a rather obscure call in Family.l which just looks like its creating a Heading. but it turns out to be vital for the application to work. I notice that there are a few other methods defined in

Re: Structuring a GUI project to avoid stop - starts

2012-03-05 Thread Konrad Zielinski
want. regs Konrad. 2012/3/6 José Romero jose.cyb...@gmail.com: Hi Konrad, On Tue, 6 Mar 2012 12:46:44 +1100 Konrad Zielinski kzielin...@gmail.com wrote: Hi, At the moment I have my project in two files model.l which contains my domain classes, database init code and other related

Re: ClassField and Chart

2012-03-08 Thread Konrad Zielinski
Hi Alex, I don't actually understand the choMaster function or why I would actually need one? the model I have is: (class +Monster ...) (rel gear (+List +Joint) whos (+Item)) (class +Monster ...) (rel whos (+Joint) gear (+Monster)) And I'm trying to add the list of Gear objects onto the

Re: ClassField and Chart

2012-03-09 Thread Konrad Zielinski
The code is still crashing and it has something to do with how I'm using the class field. It is creating a database object but the object is broken. So that it cannot then be edited. if I execute show on the object I get: (show This) {13} {13} level 0D whos {11} - {13} But what I want is

Re: ClassField and Chart

2012-03-10 Thread Konrad Zielinski
Thanks Alex, its working. Its been quite a learning experience. regs Konrad On Sat, Mar 10, 2012 at 7:20 PM, Alexander Burger a...@software-lab.de wrote: Hi Konrad, The code is still crashing and it has something to do with how I'm using the class field. OK, I found two more errors: