Hello Konrad Zielinski <[EMAIL PROTECTED]> :-)
You are now subscribed
--
UNSUBSCRIBE: mailto:[EMAIL PROTECTED]
Hello "konrad Zielinski" <[EMAIL PROTECTED]> :-)
You are now subscribed
--
UNSUBSCRIBE: mailto:[EMAIL PROTECTED]
Thanks for the reply.
Yes I do have a specific question:
The FAQ:
It is very easy to write C functions in Pico Lisp, either in the
kernel, as shared object libraries, or even inline in the Lisp code.
And the language Reference:
Symbols referring to a shared library contain a colon "lib:sym"
My
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
K
Yes, you answered the questions I asked, and gave the answers I suspected.
I think part of the point with Direct Threading is that you need to
explicitly tell gcc to enable it when compiling the VM, and write some
switch statements in a certain way. Haven't got my head around the
code yet. It make
Hi,
there really isn't a way of implementing a Hash Table in Picolisp is there?
as far as I understand this would really require an array with direct
addressing at some point, and we have no such thing. Which would make
a tree of some form the best storage option.
On the other hand I recall readi
Hi,
following function is program is not working as I expect
(de read-words (file-name)
(in file-name
(let (res '())
(until (eof)
(setq res (cons (line T) res)))
(uniq res
(de count-words (words acum)
(for word words
(put
Thanks. I was aware of the potential performance issues. However this
is just an exercise so I'm not too concerned about scalability. We've
been asking this as an interview question so I though it would be
interesting to implement it in Pico Lisp.
Your suggested code includes a few functions I hav
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 desig
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 variab
at 01:14:04PM +1000, konrad Zielinski wrote:
>> I've been trying to get my head around how closures work in Pico lisp.
>
> As PicoLisp uses dynamic binding, there are no _direct_ static lexical
> clausures. As in other cases too, the programmer has to (or better: can)
> cont
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
It all depends on what you are doing.
I recently tried implementing somthing I had working in Python into
Pico Lisp. This is a program which needs to do three things
1) read A file & extract blocks of text from it.
2) submit the blocks of text (one at a time) to another commandline program
3) par
actually parsing the numbers and getting them treated as numbers is
where I got up to before giving up.
2008/7/7 Alexander Burger <[EMAIL PROTECTED]>:
> On Mon, Jul 07, 2008 at 10:22:03AM +1000, konrad Zielinski wrote:
>> I found this very frustrating to do in picolisp due to confli
The particular line I gave up on was
"Flesch Index: 93.1/100"
what I want to get out is the 93.1 and assign it to a local variable
called Flesch.
later lines like to do things in a completly different way such as:
"9 words, average length 3.89 characters = 1.00 syllables"
20
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
ht
I managed to get this far since my first post. My laster mystery is
the following two functions
(de mydata ()
(prinl "HTTP/1.0 200 OK^M")
(prinl "Content-Type: text/xml; charset=utf-8")
(prinl "^M")
(xml? T)
(xml '(root NIL "Hello Using XML"))
)
(de
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 serve
x27;t
grow 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)
>>
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 sel
Thank's Alex,
thats extremly useful.
I think there are ways and means to sort out state tracking in an
asyncronous server. If your familer with Python I'd be going for
something along the lines of what the Twisted framework and its
differed execution model.
My other critisism of the server in li
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 head
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:
http://localhost:8080//usr/local/picoLisp/lib/form.js";
type="text/javascript">
which includes an absolure path to forms.js
regard
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/
http:
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 python
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
sock
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 a
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.
Hi,
is there a way of cutting a circular list. for that matter how do we
manupulat cons structure. This is one of the places where things in
Pico do not work like I expect.
(set 'A (1 2 3 4))
(set 'B (cdr A))
Now in Common Lisp I can do:
(setf (cdr A) nil)
and I will get:
A = (1)
B = (2 3 4)
B
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,
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 and def.
Even taken in concert these two snippets don't actually explain what
will happen if var is a cell. It may be obvious (if you already know)
that if
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 arg
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 tag currently does). so that w
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 woul
cious html 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 sugg
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
fo
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 Tr
nk a more complex but actually safe example is more
valuable, even if in reality you would just use the built in fifo. How
do other people feel about incomplete teaching examples?
regs
Konrad.
On 15/10/2008, konrad Zielinski <[EMAIL PROTECTED]> wrote:
> Thanks Alex,
>
> I had misgivin
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.
Does
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
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
wi
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 wr
Hi Thomas,
Now that I can run your async reading and writing code.
would you be able to tell me what all the arguments to the functions
in nb.l actually are. I mean what are they used for not just data
type, as I can't say i fully follow it beyound that the first argument
to rdx is a list beign u
Hi,
I think Picowiki could use a title index. As somthing that is
automatically generated
regs
Konrad.
2008/10/13 Tomas Hlavaty <[EMAIL PROTECTED]>:
>> I will have to implement some picoWiki markup for html anchor for
>> this.
>
> Anchors is a bad idea actually. It does not go well with the
Good bye konrad Zielinski :-(
You are now unsubscribed
--
read my mind at: http://the-willows.blogspot.com/
--
UNSUBSCRIBE: mailto:picol...@software-lab.de?subject=unsubscribe
I have to disagree. Having a framework comes later. There are two
things that work against picolisp.
1. Lack of floating point numbers. Yes I know its a design decision
and yes I know its not likely to change. But it is a lack that does
put a lot of potential users off in the first five minutes, e
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 ti
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 wrote:
> Doug - Neat! I took a different approach and got picolisp working on my
> android phone
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 fo
My Latest linkage of data to GUI is related to a Bag Relation
On the DB side I have
(class +Monster +Entity)
(rel skills (+List +Bag) (((+String)) ((+Number
and on the Web side I Have
(gui '(+E/R +Chart) '(skills : home obj) 2)
( 2
"Skill" "level"
(do
Sorry I should add to my last message that when I actually navigate to
the page with the Chart code I listed I get the following error:
(D Pre)
D -- Undefined
The underlying record has no skills as yet. The
-- Forwarded message --
From: Konrad Zielinski
Date: Fri, Feb 24, 2012
out
the HTML that I want.
regs
Konrad.
2012/3/6 José Romero :
> Hi Konrad,
>
> On Tue, 6 Mar 2012 12:46:44 +1100
> Konrad Zielinski wrote:
>
>> Hi,
>>
>> At the moment I have my project in two files
>>
>> model.l which contains my domain classes, dat
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 Mon
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
Thanks Alex,
its working. Its been quite a learning experience.
regs
Konrad
On Sat, Mar 10, 2012 at 7:20 PM, Alexander Burger 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:
>
>
> 1. The ch
55 matches
Mail list logo