Re: In Detail: Native C Calls

2012-05-09 Thread Thorsten Jolitz
Alexander Burger a...@software-lab.de writes: Hi Alex, at last, I have found the time to write an in-detail description of the 'native' function: http://software-lab.de/doc/native.html Any comments welcome! It became quite long, not because 'native' is so complicated, but because

PicoLisp Bible - Call for Papers

2012-07-19 Thread Thorsten Jolitz
Hi List, I'm on my way to publish (in cooperation with Alex) a 'PicoLisp Bible' with (almost) everything written about PicoLisp collected and organized in one single book. I will be the editor (and author of a few articles from the wiki), most of the articles will be (of course) from Alex, but

Re: PicoLisp Book

2012-07-20 Thread Thorsten Jolitz
Rudy Hagedorn rudy.haged...@googlemail.com writes: Great idea! How does 'the picolisp compendium' sound as title? That makes two proposals then: - PicoLisp Bible - PicoLisp Compendium I must admit I like Compendium even better. -- cheers, Thorsten -- UNSUBSCRIBE:

Re: PicoLisp Book

2012-07-20 Thread Thorsten Jolitz
Yiorgos Adamopoulos yiorgos.adamopou...@gmail.com writes: On Fri, Jul 20, 2012 at 1:52 PM, Thorsten Jolitz tjol...@googlemail.com wrote: That makes two proposals then: - PicoLisp Bible - PicoLisp Compendium Just to make them three: - PicoLisp Works Nice double meaning ;) It would

Re: PicoLisp Book

2012-07-20 Thread Thorsten Jolitz
Alexander Burger a...@software-lab.de writes: - PicoLisp Works Nice double meaning ;) Indeed! It would be interesting to let the community vote, however, that seems to be a bit complicated. Maybe just let Alex decide what he likes best, as an easy solution? Or better you, as you are

Re: PicoLisp Book

2012-07-20 Thread Thorsten Jolitz
Terry Palfrey terrypalfrey...@gmail.com writes: Will this include the Rosetta Code examples? Thats not a bad idea at all, but it depends a bit on the technical side. It would seem to be too much work if I had to transform the Rosetta Code html to Tex and then pick out the PicoLisp parts. But

Re: PicoLisp Book

2012-07-20 Thread Thorsten Jolitz
Alexander Burger a...@software-lab.de writes: On Fri, Jul 20, 2012 at 02:32:00PM +0200, Thorsten Jolitz wrote: Terry Palfrey terrypalfrey...@gmail.com writes: Will this include the Rosetta Code examples? ... Thats not a bad idea at all, but it depends a bit on the technical side

Re: PicoLisp Book

2012-07-21 Thread Thorsten Jolitz
Terry Palfrey terrypalfrey...@gmail.com writes: I was thinking of some sort of graphic to imply works like a waterworks or something that was  based on gears/cogs/sprockets yet encompassed the mindworks that picolisp expresses and submit this as a thinking draft. Cover design is definitely

Processing Text in PicoLisp

2012-07-23 Thread Thorsten Jolitz
Hi List, related to the nice idea of publishing the Rosettacode examples (which would actually be nicer _with_ the task descriptions included) I have a few (probably rather newbie) technical questions about manipulating the file-system and processing text in PicoLisp: 1. How to make, concat,

Re: Processing Text in PicoLisp

2012-07-23 Thread Thorsten Jolitz
Alexander Burger a...@software-lab.de writes: Hi Alex, thanks a lot, thats what I needed to know, now I have to give it a try. 3. Is it possible to use 'prog' or 'let' with 'apply', i.e. apply a whole sequence of functions instead of only one to the 'lst argument? I'm not sure what you

Re: Processing Text in PicoLisp

2012-07-23 Thread Thorsten Jolitz
Henrik Sarvell hsarv...@gmail.com writes: Hi Henrik, Below I've pasted links to descriptions of functions that might or might not be what you want based on a quick glance on your questions: 1.) http://software-lab.de/doc/refC.html#call 2.) http://software-lab.de/doc/refM.html#match

Upper limit for list lenght in PicoLisp?

2012-07-23 Thread Thorsten Jolitz
Hi List, I have a rather strange problem: I want to (from within Emacs) ,-- | (setq X (list string1 ... string200)) `-- and it seems PicoLisp just freezes - no error messages, but no output either, and the process

Re: Upper limit for list lenght in PicoLisp?

2012-07-23 Thread Thorsten Jolitz
Alexander Burger a...@software-lab.de writes: Hi Alex, Is there something like an upper limit for how many Strings can be in a list in PicoLisp? Or might that be Emacs related? No, there is no limit. Neither to the length of the command line (if you use the built-in line editor). How did

Re: Processing Text in PicoLisp

2012-07-23 Thread Thorsten Jolitz
Alexander Burger a...@software-lab.de writes: For making files where you will usually use 'out', and write directly to the file. To concat two files, you could do: (out c (in a (echo)) (in b (echo))) Erasing a file is not implemented as a PicoLisp function. You can simply call 'rm'

Re: Upper limit for list lenght in PicoLisp?

2012-07-23 Thread Thorsten Jolitz
Alexander Burger a...@software-lab.de writes: Hi Alex, You said that you call it as (setq X (list string1 ... string200)) Note that this evaluates the transient symbols string1 etc., so if one of them has a value NIL (or anything else), it will be included in the list. What you

Re: Processing Text in PicoLisp

2012-07-23 Thread Thorsten Jolitz
Henrik Sarvell hsarv...@gmail.com writes: AFAIK out doesn't do auto dir creation or any dir creation for that matter. ok Note that you can use info to check stuff, could possibly be used in a function that checks a certain path from top to bottom and creates any missing dirs on the way. Ie

Trying to call R with 'native'

2012-08-11 Thread Thorsten Jolitz
Hi List, I'm trying to call statistic program R (http://www.r-project.org/) with the 'native' function (http://software-lab.de/doc/native.html). I found a libR.so in my R distribution, copied it to my home folder and changed the owner form root to my own user:

Processing SMS in PicoLisp

2012-08-17 Thread Thorsten Jolitz
Hi List, just one curiosity - how would one write a PicoLisp application that recieves and processes (and maybe sends) SMS messages? What would be involved to give the application a 'phone number' (or maybe many) so that messages can be send to and from it? Anybody with experiences in SMS

Re: Processing SMS in PicoLisp

2012-08-17 Thread Thorsten Jolitz
dexen deVries dexen.devr...@gmail.com writes: Hi Dexen, On Friday 17 of August 2012 11:47:55 you wrote: just one curiosity - how would one write a PicoLisp application that recieves and processes (and maybe sends) SMS messages? What would be involved to give the application a 'phone

Re: Processing SMS in PicoLisp

2012-08-17 Thread Thorsten Jolitz
Joe Bogner joebog...@gmail.com writes: Hi Joe, I would recommend using a third party service. I've tinkered with Twillio but not used it in production. For example, with Twillio your code makes a HTTP request to their API endpoint and their API can post to your HTTP endpoint. 

Re: Processing SMS in PicoLisp

2012-08-17 Thread Thorsten Jolitz
Jakob Eriksson ja...@aurorasystems.eu writes: On August 17, 2012 at 11:47 AM Thorsten Jolitz tjol...@googlemail.com wrote: Hi List, just one curiosity - how would one write a PicoLisp application that recieves and processes (and maybe sends) SMS messages? It depends on where from you

Re: Processing SMS in PicoLisp

2012-08-17 Thread Thorsten Jolitz
Henrik Sarvell hsarv...@gmail.com writes: Hi Henrik, I once coded a gateway that could handle tens of thousands of messages / sec. We used C++ and PostgreSQL, would've been nicer with PL though :-) http://www.prodevtips.com/2007/10/15/sms-gateway-how-to/ If you want to avoid the cost of

Almost 2000 pages of PicoLisp

2012-08-23 Thread Thorsten Jolitz
Hi List, I just published (mainly as an editor) two free PicoLisp books in pdf format: ,--- | PicoLisp Works | http://www.scribd.com/doc/103732688/PicoLisp-Works | https://github.com/tj64/picolisp-works

Re: Almost 2000 pages of PicoLisp

2012-08-24 Thread Thorsten Jolitz
Hi Everybody, thanks for the feedback. One remark with regards to downloading the docs: as far as I know, you can register with scribd.com either with your facebook account or just via a standard registration form and then download my books (any many other) directly from scribd. Otherwise,

Re: Almost 2000 pages of PicoLisp

2012-08-25 Thread Thorsten Jolitz
Jon Kleiser jon.klei...@usit.uio.no writes: Hi Jon, I think I've found the first item the should be corrected. In the FAQ on page 403 in PicoLisp Works: 43.3 Why does the REPL exit when NIL is typed? The REPL does not exit any longer. This behaviour was changed in version .. When? I

Version 1.01 of PicoLisp Works published

2012-08-25 Thread Thorsten Jolitz
Hi List, Version 1.01 of PicoLisp Works is published. You can download/read it here: ,--- | PicoLisp Works | http://www.scribd.com/doc/103732688/PicoLisp-Works | https://github.com/tj64/picolisp-works

Version 1.01 of PicoLisp by Example published

2012-09-05 Thread Thorsten Jolitz
Hi List, Version 1.01 of PicoLisp by Example is published. You can download/read it here: , | PicoLisp by Example | http://www.scribd.com/doc/103733857/PicoLisp-by-Example | https://github.com/tj64/picolisp-by-example

Re: Android Demo

2012-10-09 Thread Thorsten Jolitz
Doug Snead semaphore_2...@yahoo.com writes: Hi Joe and Doug, I read up your conversations about PicoLisp on Android in the mailing list and your articles in the Wiki about the topic: Ok, so now this means we can package some picolisp client/server applications as android apps, using the

Re: Android Demo

2012-10-10 Thread Thorsten Jolitz
, or paying clients) might not care about the underlying technology? On Tue, Oct 9, 2012 at 1:06 PM, Thorsten Jolitz tjol...@googlemail.com wrote: Doug Snead semaphore_2...@yahoo.com writes: Hi Joe and Doug, I read up your conversations about PicoLisp on Android in the mailing list and your

Meta key in PicoLisp program

2012-10-23 Thread Thorsten Jolitz
Hi List, how would I write a - Meta/Alt key - AltGr key in a PicoLisp program? E.g. if I want to write AltV (M-V or M-S-v in Emacs) CtrlALTV (C-M-V or C-M-S-v in Emacs) instead of something like this (CtrlV): ,--- | (^V (insChar (key))) `--- --

Re: Meta key in PicoLisp program

2012-10-24 Thread Thorsten Jolitz
Alexander Burger a...@software-lab.de writes: Hi Alex, AltV (M-V or M-S-v in Emacs) CtrlALTV (C-M-V or C-M-S-v in Emacs) instead of something like this (CtrlV): Unfortunately, this is not directly possible. Alt/Meta key combinations have no representation in ASCII or UTF-8. Instead,

Re: Meta key in PicoLisp program

2012-10-26 Thread Thorsten Jolitz
Alexander Burger a...@software-lab.de writes: Hi Alex, thanks for your explanations. So Ctrl and Shift are the only 'meta-keys' that can be used (and Yes, they cause the generation of different ASCII characters by the keyboard when they are pressed. For example, if you press the 'A' key

Re: Meta key in PicoLisp program

2012-10-26 Thread Thorsten Jolitz
Axel Svensson svenssona...@gmail.com writes: my idea is to add an Emacs-like command line to PicoLisp. I thought this Is there anything you want that's not supported by the GNU readline library? Since this library is so popular, it's been well tested during the years. Maybe it be possible to

Re: Meta key in PicoLisp program

2012-10-26 Thread Thorsten Jolitz
Alexander Burger a...@software-lab.de writes: Hi Alex, my idea is to add an Emacs-like command line to PicoLisp. I thought this Yes. Quite a lot of stuff, though. I already have a basic emacs commandline version running, the most basic Emacs 'movement, deletion and paste' commands, just by

Re: Meta key in PicoLisp program

2012-10-26 Thread Thorsten Jolitz
Thorsten Jolitz tjol...@googlemail.com writes: but in the web I still did not find a list of all the keys like kf1 and kf2 that 'tput' knows about - where can I look them up? I would e.g. need to know how to adress the Alt key - kalt? I guess not... ok, I found the list of keys

Where is term.l loaded?

2012-10-28 Thread Thorsten Jolitz
Hi List, I hope I did not overlook the obvious, but I (think I) searched all relevant files in the picolisp directory but did not find the place where term.l is loaded - where does this happen? -- cheers, Thorsten -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: pilreader

2012-10-30 Thread Thorsten Jolitz
Axel Svensson svenssona...@gmail.com writes: Hi Axel, I implemented a reader that aims to mimic the behaviour of the builtin (read). The purpose is to provide a starting point for those who need an alternative reader that's not completely different from the builtin one. Alpha stage, comments

Re: pilreader

2012-10-31 Thread Thorsten Jolitz
Axel Svensson svenssona...@gmail.com writes: related to my attempts to write an Emacs-like command-line for PicoLisp? No, it is not related. A reader, as I use the word here, is a function used to parse the code before it is executed. The syntax of the language therefore depends on the

Re: epil - PicoLisp with Emacs-like command-line

2012-10-31 Thread Thorsten Jolitz
Thorsten Jolitz tjol...@googlemail.com writes: 2. I asked about using the meta-key and received the following answer: , | I would just hardcode M-x == Escx (the sequence of two characters | \033 and x). This way

Re: epil - PicoLisp with Emacs-like command-line

2012-10-31 Thread Thorsten Jolitz
Thorsten Jolitz tjol...@googlemail.com writes: And the M-keybindings don't work in an xterm, at least in my case, but thats maybe only a xterm configuration issue? It was an xterm configuration issue - inserting ,- | xterm*metaSendsEscape: true

Re: epil - PicoLisp with Emacs-like command-line (was: Meta key in

2012-11-01 Thread Thorsten Jolitz
Alexander Burger a...@software-lab.de writes: Hi Alex, I managed to produce a first experimental version of 'epil', i.e. a new version of led.l (eled.l) and some small changes in libraries that are called at PicoLisp startup. If you clone this github repo: ,-

Edit REPL output

2012-11-01 Thread Thorsten Jolitz
Hi List, one of the advantages of running shells inside Emacs (eshell or shell-mode) is that the output is just text in a buffer, that can be navigated, copied, change etc. (of course there are major disadvantages too). Working on the console, I can use TMUX (modern gnu screen) functionality

Re: picostache - mustache implementenation

2012-11-14 Thread Thorsten Jolitz
Joe Bogner joebog...@gmail.com writes: I've created a mustache (a template system) implementation in PicoLisp. I've been seeking an alternative way to build HTML that allows for more separation of logic and the view. This is great. I learnt about Mustache when I was interested in Clojure some

Pasting from the OS clipboard

2012-11-23 Thread Thorsten Jolitz
Hi List, I'm used to e.g. copy some text in an Emacs buffer and paste it in another application. This doesn't work for me in the PicoLisp REPL. The only way to paste from the OS clipboard I found is to - use TMUX copypaste functionality in an console session - use the left/middle mouse button

New Article about 'for'

2012-11-23 Thread Thorsten Jolitz
Hi List, I published an article about the (somehow a bit complicated) for function in the PicoLisp Wiki, its quite pedestrian, but at least it helped its author to better understand the different forms of 'for'. You can find it here: http://picolisp.com/5000/!wiki?deeperLookAtFor -- cheers,

Re: Pasting from the OS clipboard

2012-11-24 Thread Thorsten Jolitz
Alexander Burger a...@software-lab.de writes: Hi Alex, - use the left/middle mouse button in an X11 session What's wrong with this? This is what seems the most natural way for me (in X11, or with GPM in a console window). There is nothing 'wrong' about it, but it would be nice to be able to

Bug in (env)?

2012-11-24 Thread Thorsten Jolitz
Hi Alex, in the newest testing version on 64bit Archlinux PicoLisp terminates when I call (env) without args. A bug? ,--- | : (env) | Speicherzugriffsfehler | $ `--- -- cheers, Thorsten -- UNSUBSCRIBE:

Re: New Article about 'for'

2012-11-24 Thread Thorsten Jolitz
Joe Bogner joebog...@gmail.com writes: Hi Joe, Great article! Thank you for sharing. I spent a bit of time trying to figure out how to use 'for' when I started. The article would have been very helpful then. thanks, I just added a section to the 'Help' page in the Wiki

Normalize PicoLisp Wiki Syntax

2012-11-24 Thread Thorsten Jolitz
Hi List, when writing the picolisp-wiki-mode for Emacs, I began to understand why mark-up syntax is usually symmetric, i.e. the end-tag looks like a 180° mapping of the start-tag (e.g. the JSP Scriplet % ... %). This makes parsing the file and constructing regexp much easier, because its

Re: Normalize PicoLisp Wiki Syntax

2012-11-24 Thread Thorsten Jolitz
José Romero j...@2.71828.com.ar writes: It's not an improvement, and not worth it, imo. The current wiki syntax is pretty much a lightweight variant of TeX, Emacs can fontify TeX just fine, so the issue is in the emacs mode, not the syntax. It does look pretty ugly, I agree, and I wasn't sure

Re: Bug in (env)?

2012-11-25 Thread Thorsten Jolitz
Alexander Burger a...@software-lab.de writes: Hi Alex, hmm... I just downloaded the new (??) version and it still crashes when I type (env) directly after start-up ... Sorry, the fix was not complete. :( Though it worked for me yesterday, $ bin/picolisp : (env) - NIL Now

New Emacs-style command-line editor

2012-11-29 Thread Thorsten Jolitz
Hi List, I just posted a reference article on the wiki (http://picolisp.com/5000/!wiki?emacsstyleled) that explains how to activate and use the new Emacs-style command-line editor developed by me (with some help from Alex). You can try it out with the new testing version 3.1.0.15 available on

Re: New Emacs-style command-line editor

2012-11-29 Thread Thorsten Jolitz
in the REPL and and C-p and C-n can't server as line-up and line-down in a buffer. However, I could change that anytime. On Thu, Nov 29, 2012 at 5:27 PM, Thorsten Jolitz tjolitz@googlemailcom wrote: Hi List, I just posted a reference article on the wiki (http://picolisp.com

Re: New Emacs-style command-line editor

2012-11-30 Thread Thorsten Jolitz
Joe Bogner joebog...@gmail.com writes: Hi Joe, I tried it and it works great - just as expected. It works very well on my phone too which had some trouble with the terminal program switching in and out of vi mode due to the poor handling of Esc. I will definitely be using this Thanks for

Re: New Emacs-style command-line editor

2012-11-30 Thread Thorsten Jolitz
Joe Bogner joebog...@gmail.com writes: Hi Joe, Would it be possible to add hooks to the emacs line editor? Sounds like a great idea to me. If you want to contribute to the mood, you are very welcome. maybe clone the repo (if you work with git)? its here: ,- |

Re: org mode parser

2012-12-15 Thread Thorsten Jolitz
Alexander Burger a...@software-lab.de writes: Hi Joe, https://bitbucket.org/joebo/pico-org/src Thanks for sharing! Thorsten will be delighted too ;-) Indead, delighted and surprised, I just talked about an Org-mode parser with Alex yesterday and recently had a look at the official Org-mode

[FYI] picolisp-wiki-mode updated to version 1.0

2013-01-18 Thread Thorsten Jolitz
Hi List, FYI - I just pushed an updated version of picolisp-wiki-mode: ,- | git clone g...@github.com:tj64/picolisp-wiki-mode.git `- It's now version 1.0, since outline functionality fully

[Emacs] Trick for editing large PicoLisp sources

2013-01-23 Thread Thorsten Jolitz
Hi List, [this is only relevant for Emacs users] I recently discovered a trick how to enhance editing and navigation in large PicoLisp source files that need a lot of comments too, and I thought I might share it, just in case somebody isn't aware of this. I know this is a bit against the

PicoLisp relations and UML

2013-01-31 Thread Thorsten Jolitz
Hi List, I have a few questions with regards to representing PicoLisp relations in UML notation: 1. Syntactic outlier? Is this: ,--- | (rel ord (+Dep +Joint) # Order |(itm) |pos (+Ord) )

Re: PicoLisp relations and UML

2013-01-31 Thread Thorsten Jolitz
Alexander Burger a...@software-lab.de writes: Hi Alex, You could read and print the data in a flat format to some file, e.g.: (out er.flat (in myApp/er.l (while (read) (println @)) ) ) This gives one top-level expression per line which can be easily 'regexp'ed. Thats a

Re: PicoLisp relations and UML

2013-02-01 Thread Thorsten Jolitz
Alexander Burger a...@software-lab.de writes: Hi Alex, Yes. 'println' prints one or more expressions and a newline, without any further formatting. So if you 'read' an expression like (a (b (c d (e f) ) ) ) it will be printed as (a (b (c d (e f I

Outline functionality for PicoLisp source files in Emacs

2013-04-09 Thread Thorsten Jolitz
Hi List, although I know that PicoLisp source files do not have lots of comments generally (if any), I want to let you know that there are new ways to structure and handle these files in Emacs if they become large and need extensive comment sections. I put a screencast on youtube to

Canonical use of namespaces

2013-04-21 Thread Thorsten Jolitz
Hi List, I haven't seen so many uses of the (quite recently) introduced namespaces in PicoLisp, so I would like to ask what is the canonical way to use them? Say I have a library called 'pio.l'. In Emacs Lisp I now would prefix all definitions in this library with pio-, i.e.

Re: Canonical use of namespaces

2013-04-21 Thread Thorsten Jolitz
Alexander Burger a...@software-lab.de writes: Hi Henrik, Hi Alex, thanks for your replies - question answered! -- cheers, Thorsten -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Meta characters in PicoLisp

2013-05-07 Thread Thorsten Jolitz
Hi List, citing from the Reference , | Internal symbol names can consist of any printable (non-whitespace) | charac-ter, except for the following meta characters: | | ’ ( ) , [ ] ‘ ~ { }

Re: Meta characters in PicoLisp

2013-05-07 Thread Thorsten Jolitz
Alexander Burger a...@software-lab.de writes: Hi Alex, I forgot what the ~ is about (e.g. in ~( ... )), and could not find the explanation. It is described in doc/ref.html#macro-io. The tilde is similar to the backquote, in that both evaluate the following expression, and put the result

New wiki article about recursion in PicoLisp

2013-05-09 Thread Thorsten Jolitz
Hi List, FYI - I wrote an article about recursion in PicoLisp, which is more or less the output of my attempts to really understand 'recur' and 'recurse'. You can find it here: ,--- | http://picolisp.com/5000/!wiki?recurInPicoLisp

Performance of Recursion vs Iteration in PicoLisp

2013-05-10 Thread Thorsten Jolitz
Hi List, since I just wrote a little Wiki article about recursion in PicoLisp, I would be curious about how recursion performs in comparison to iteration in PicoLisp. PS The notion of 'tail-recursion' does not have any meaning in an interpreted language like PicoLisp, since its only for

Re: Performance of Recursion vs Iteration in PicoLisp

2013-05-10 Thread Thorsten Jolitz
Alexander Burger a...@software-lab.de writes: Hi Alex, since I just wrote a little Wiki article about recursion in PicoLisp, I would be curious about how recursion performs in comparison to iteration in PicoLisp. OK, let's try. If I run this: # Recursive (bench (do 100

Re: Performance of Recursion vs Iteration in PicoLisp

2013-05-10 Thread Thorsten Jolitz
Alex Gilding alex.gild...@talktalk.net writes: Hi Alex (Gilding), You actually have that the opposite way around. [...] Very interesting read, thank you for the info. -- cheers, Thorsten -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: Performance of Recursion vs Iteration in PicoLisp

2013-05-12 Thread Thorsten Jolitz
Tomas Hlavaty t...@logand.com writes: Hi Tomas, The notion of 'tail-recursion' does not have any meaning in an interpreted language like PicoLisp, since its only for compiler optimizations -right? I think you are confusing the terms. What you are probably after is called tail call

Re: PicoLisp and SWIG

2013-05-15 Thread Thorsten Jolitz
Tomas Hlavaty t...@logand.com writes: Hi Tomas, I'm Cc-ing picolisp mailing list too just in case others find it interesting. thats OK, I think this could generally be very useful. And thanks for your informative answer! Thorsten Jolitz tjol...@googlemail.com writes: Hi Tomas, hast du

Re: PicoLisp and SWIG

2013-05-16 Thread Thorsten Jolitz
Tomas Hlavaty t...@logand.com writes: Hi Tomas, So as I see it, I still have to use SWIG to turn these class hierarchies in plain functions calls, and then I can use PicoLisp 'native' calls as wrappers. Would be great though to have a ffi.l that knows how to deal with C++. Yes, that seems

Problems with 'call'

2013-05-29 Thread Thorsten Jolitz
Hi List, why does this work in the Shell command line: , | $ java -cp $WEKAHOME/weka.jar weka.classifiers.functions.SMO -h | | Help requested. | | General options: | | -h or -help | Output help information. [...]

Re: Problems with 'call'

2013-05-29 Thread Thorsten Jolitz
Alexander Burger a...@software-lab.de writes: Hi Alex, why does this work in the Shell command line: | $ java -cp $WEKAHOME/weka.jar weka.classifiers.functions.SMO -h ... but this does not work in the PicoLisp commandline: | : (call java -cp $WEKAHOME/weka.jar

Re: Problems with 'call'

2013-05-29 Thread Thorsten Jolitz
Jorge Acereda Maciá jacer...@gmail.com writes: On May 29, 2013, at 7:05 PM, Thorsten Jolitz tjol...@gmail.com wrote: - the variable is set and known to BASH, but somehow PicoLisp does not know about it: Did you export it? (export FOO=x instead

Assign a list as symbols property list

2013-06-01 Thread Thorsten Jolitz
Hi List, probably a rather newbie question: When I already have property list like ,-- | ((key1 . value1) (key2 . value2) ... (keyn . valuen)) `-- and want to assign the whole thing as a

Re: Assign a list as symbols property list

2013-06-02 Thread Thorsten Jolitz
Alexander Burger a...@software-lab.de writes: Hi Alex, When I already have property list like ,-- | ((key1 . value1) (key2 . value2) ... (keyn . valuen)) `-- Note that the list has

Syntax for global variable in namespace?

2013-06-02 Thread Thorsten Jolitz
Hi List, when I write a library with its own namespace, and want a 'global variable' in that namespace that stores 'vital information' for the library - do I use the '*Var' syntax or is that reserved for variables that are really global in PicoLisp? I could of course just name it 'Var',

Re: Syntax for global variable in namespace?

2013-06-02 Thread Thorsten Jolitz
Alexander Burger a...@software-lab.de writes: Hi Alex, I would say that '*Var' is all right. Yes. Also, 'Var' is meant to denote symbols which are bound locally/dynamically. BTW Are constants in uppercase (like 'MYCONST') acceptable in PicoLisp? Yes. I haven't seen or used many

Re: CSS for menu and tab

2013-06-27 Thread Thorsten Jolitz
Alexander Burger a...@software-lab.de writes: Hi Thorsten, html output is: , | script type=text/javascript src=http://:/lib.css;/script ` ... what is this :/

Re: CSS for menu and tab

2013-06-27 Thread Thorsten Jolitz
Alexander Burger a...@software-lab.de writes: Hi Alex, are not really expanded, but exported verbatim to html. ... ul class=@lib.css ... Is that correct? Yes, for the above reason. The browser finds @lib.css in the HTML source, and asks the server for it. The PicoLisp server sees

Object - Nested List

2013-06-28 Thread Thorsten Jolitz
Hi List, maybe a rather newbie question, but I wonder if it is possible to 1. get a nested list representation of an object or class? 2. to turn a nested list that resembles the 'nested list representation an object or class' into a new object (or class) without using PicoLisp's

Mapping circular lists from Emacs Lisp to PicoLisp

2013-06-28 Thread Thorsten Jolitz
Hi List, I try to figure out if it would be possible to map circular lists from Emacs Lisp to PicoLisp. Here is a quote from the Emacs Lisp manual : #+begin_quote If the cdr of a list's last cons cell is some value other than nil, we call the structure a dotted list, since its printed

Re: Mapping circular lists from Emacs Lisp to PicoLisp

2013-06-28 Thread Thorsten Jolitz
Alexander Burger a...@software-lab.de writes: Hi Alex, In PicoLisp, the cdr of a circular list always seems to point to the beginning of the list. Yes, as far as the directy reader/printer syntax is concerned. But you can easily specify a list where the last cell points to some other cell.

Re: Citations for Wikipedia

2013-06-30 Thread Thorsten Jolitz
Alexander Burger a...@software-lab.de writes: Hi Alex, recently the Wikipedia PicoLisp article was marked as lacking full citations and/or inline citations. I must say that I don't understand it. Reading the Wikipedia guidelines doesn't enlight me at all. What exactly needs to be done? Does

SEXP?

2013-06-30 Thread Thorsten Jolitz
Hi List, I wonder if there is a way in PicoLisp to check if some function argument is a SEXP, i.e. if something like a function 'sexp? exists that returns T if the argument is a SEXP. To complicate things a bit, I would actually need to check in PicoLisp if the argument given is an Emacs Lisp

Re: SEXP?

2013-07-01 Thread Thorsten Jolitz
Alexander Burger a...@software-lab.de writes: Hi Alex, I wonder if there is a way in PicoLisp to check if some function argument is a SEXP, i.e. if something like a function 'sexp? exists that returns T if the argument is a SEXP. I'm a bit puzzled by this question. To my understanding,

Re: SEXP?

2013-07-01 Thread Thorsten Jolitz
dexen deVries dexen.devr...@gmail.com writes: On Monday 01 of July 2013 07:39:49 you wrote: Hi Thorsten, I wonder if there is a way in PicoLisp to check if some function argument is a SEXP, i.e. if something like a function 'sexp? exists that returns T if the argument is a SEXP. how

Re: SEXP?

2013-07-01 Thread Thorsten Jolitz
. But thanks for the tip anyway! On Mon, Jul 1, 2013 at 4:50 AM, Thorsten Jolitz tjol...@gmail.com wrote: dexen deVries dexen.devr...@gmail.com writes: On Monday 01 of July 2013 07:39:49 you wrote: Hi Thorsten, I wonder if there is a way in PicoLisp

alist vs plist in PicoLisp

2013-07-02 Thread Thorsten Jolitz
Hi List, as far as I understand, property lists in PicoLisp are kind of reversed: ,-- | ((val1 . key1)(val2 . key2) ...(valN . keyN)) `-- while association lists are not. But what are the other

Re: alist vs plist in PicoLisp

2013-07-03 Thread Thorsten Jolitz
Alexander Burger a...@software-lab.de writes: Hi Alex, Correct. The value of a property is in the CAR of the corresponding cell, to allow it to be treated as a 'var' and thus be passed to place-modifying functions ('push', 'set', 'inc' etc.). This can be done with the 'prop' and '::'

Re: alist vs plist in PicoLisp

2013-07-03 Thread Thorsten Jolitz
Alexander Burger a...@software-lab.de writes: Hi Alex, You can genearate a list of value-key-pairs from a symbol's properties with 'getl', but this will always return a freshly cons'ed list, not ... But what is the returned list ((VAL . KEY) KEY (VAL . KEY)) then? A property-list (not

Re: alist vs plist in PicoLisp

2013-07-03 Thread Thorsten Jolitz
Alexander Burger a...@software-lab.de writes: Hi Alex, And property list extracted with 'lget' from a symbol would be 'true' You mean 'getl' ups ... This is because the 'get' family of symbol property access functions use '==' (pointer equality) for searching. Example: : (setq

Namespace definitons in project with several files

2013-07-03 Thread Thorsten Jolitz
Hi List, in a project with several .l files, when all definitions from all files should be in the same 'project namespace - what would be the right way to define the namespace: 1. Several '(symbols 'project 'pico) definitions, one at the top of each .l file? 2. Only one '(symbols

Are :keyword symbols a legal deviation from the rules?

2013-07-03 Thread Thorsten Jolitz
Hi List, I deal in PicoLisp with keyword symbols imported from Emacs Lisp that look like ,- | :keyword `- They probably should be uppercase due to PicoLisp naming conventions. However, isn't the ':' at the beginning enough to avoid conflicts with other global symbols? If that would be

Re: Are :keyword symbols a legal deviation from the rules?

2013-07-03 Thread Thorsten Jolitz
Alexander Burger a...@software-lab.de writes: Hi Alex, The ':' shouldn't conflict. You can find that out (after 'load'ing all relevant files in debug mode) with : (what :@) - (: ::) ok, I see, thanks for both answers (other post too). -- cheers, Thorsten -- UNSUBSCRIBE:

kill without 'KILL does not work for PicoLisp processes

2013-07-16 Thread Thorsten Jolitz
Hi List, is it normal that a simple 'kill' won't kill PicoLisp processes, only with option 'KILL it works? #+begin_quote $ pidof picolisp 1658 1648 1380 1359 $ kill 1359 1380 1648 1658 $ pidof picolisp 1658 1648 1380 1359 $ sudo kill 1359 1380 1648 1658 [sudo] password for ME: $ pidof

Re: kill without 'KILL does not work for PicoLisp processes

2013-07-17 Thread Thorsten Jolitz
Alexander Burger a...@software-lab.de writes: Hi Alex, is it normal that a simple 'kill' won't kill PicoLisp processes, only with option 'KILL it works? No. A normal kill with SIGTERM (i.e. -15) should work. SIGKILL (i.e. -9) should be used only in extreme emergencies, because it may

Re: kill without 'KILL does not work for PicoLisp processes

2013-07-17 Thread Thorsten Jolitz
Rowan Thorpe ro...@rowanthorpe.com writes: On Wed, 17 Jul 2013 09:22:14 +0200 Thorsten Jolitz tjol...@gmail.com wrote: ..[snip].. I ran into this problem when experimenting with the web-framework and my app got into a bad state. When restarting then, PicoLisp tells me something like 'Port

  1   2   >