Re: Processing Text in PicoLisp

2012-07-24 Thread Thorsten Jolitz
in general I would be careful with 'cd' and 'chdir', as it modifies > the working directory of the whole process. For example, "a" and "b" > above will not be found (as the directory is new), and you must use > "../../a" or something like that. > > Better is usually to call > >(let Dir "/new/dir/" > (call 'mkdir "-p" Dir) > (out (pack Dir "newfile") (in "a" ...)) ) thats probably exactly what I wanted, thanks. -- cheers, Thorsten -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: RosettaCode Solutions

2012-07-26 Thread Thorsten Jolitz
de solutions now, without index and other stuff). Upper limit for Amazon is ca. 870pages or so. The docs would be some 370p right now, function reference & rosettacode would be a second volume with ca 640pages. -- cheers, Thorsten -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Trying to call R with 'native'

2012-08-11 Thread Thorsten Jolitz
"/home/my/folder/libR.so" "sqrt" 'S 4) | -> NIL ` Might the [1] in '[1] 4' be the culprit, that is always returned, no matter whats the actual argument/result? -- cheers, Thorsten -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: Trying to call R with 'native'

2012-08-12 Thread Thorsten Jolitz
ions a bit similar to the CLOS system (dispatching on all arguments). Can these functions be called via 'native'? 4. I guess for operators like '+' (1 + 2) there must be a function call like this somewhere +(1,2) that must be used by 'native'? -- cheers, Thorsten -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: Trying to call R with 'native'

2012-08-12 Thread Thorsten Jolitz
hat is the exact format of arguments and return values? Who "owns" the > data, i.e. is it necessary to allocate and free memory, or do the > library functions return pointers to static memory etc. Thanks for the help -- cheers, Thorsten -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Processing SMS in PicoLisp

2012-08-17 Thread Thorsten Jolitz
cific, but maybe somebody has some experience in this field and doesn't mind to share it. -- cheers, Thorsten -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: Processing SMS in PicoLisp

2012-08-17 Thread Thorsten Jolitz
rying to avoid any billing with the individual customers, just with the provider of the GMS service. > Seems like a little-hassle, no-strings-attached way to me. No need to > fiddle > with actual GSM hardware. I'm just collecting information right now, since I never dealt with this topic. Thanks for your tips. -- cheers, Thorsten -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: Processing SMS in PicoLisp

2012-08-17 Thread Thorsten Jolitz
omething similar to Twillio > - http://aws.amazon.com/sns/ its still beta, but looks really nice. Thanks for the tips > On Fri, Aug 17, 2012 at 6:03 AM, dexen deVries > wrote: > > Hi Thorsten, > > > > On Friday 17 of August 2012 11:47:55 you

Re: Processing SMS in PicoLisp

2012-08-17 Thread Thorsten Jolitz
Jakob Eriksson writes: > On August 17, 2012 at 11:47 AM Thorsten Jolitz > wrote: > >> >> Hi List, >> >> just one curiosity - how would one write a PicoLisp application that >> recieves and processes (and maybe sends) SMS messages? > > > It depend

Re: Processing SMS in PicoLisp

2012-08-17 Thread Thorsten Jolitz
uch as Mosms in other countries as > well. exactly what I'm looking, have to find a company like this in Germany. -- cheers, Thorsten -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: Processing SMS in PicoLisp

2012-08-17 Thread Thorsten Jolitz
u want to avoid the cost of a middleman like mosms. that would definitely be overkill for my needs - I would want to deal only with processing an storing the SMS content with PicoLisp, and leave all the rest to a specialised company. -- cheers, Thorsten -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Almost 2000 pages of PicoLisp

2012-08-23 Thread Thorsten Jolitz
patch or pull request. -- cheers, Thorsten -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: Almost 2000 pages of PicoLisp

2012-08-24 Thread Thorsten Jolitz
https://github.com/tj64/picolisp-works >> `--- >> >> , >> | PicoLisp by Example >> | http://www.scribd.com/doc/103733857/PicoLisp-by-Example >> | https://github.com/tj64/picolisp-by-example >> `---

Re: Almost 2000 pages of PicoLisp

2012-08-25 Thread Thorsten Jolitz
icoquestions `- its not a faq, but one of the technical questions -- cheers, Thorsten -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Version 1.01 of PicoLisp Works published

2012-08-25 Thread Thorsten Jolitz
from "TODO" [2012-08-26 So 00:24] |:END: | [2012-08-26 So 00:24] | | * DONE Version 1.0 | CLOSED: [2012-08-26 So 00:19] | :LOGBOOK: | - State "DONE" from "" [2012-08-26 So 00:19] | :END: |[2012-08-23 Do 23:45] ` -- cheers, Thorsten -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

New PicoLisp-Wiki major mode for GNU Emacs

2012-09-01 Thread Thorsten Jolitz
work with the PicoLisp-Wiki, since due to its dynamic nature (are there really 'files' involved?) it might be a 'special case'. -- cheers, Thorsten -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: New PicoLisp-Wiki major mode for GNU Emacs

2012-09-01 Thread Thorsten Jolitz
Thorsten Jolitz writes: > *Request for comments/help*: > The most important feature to make this mode *really* useful does > probably already exist, but needs to be figured out and described: > remotely access the PicoLisp-Wiki from within Emacs, probably using > *Tramp*, (add

Version 1.01 of PicoLisp by Example published

2012-09-05 Thread Thorsten Jolitz
in mailing-list |CLOSED: [2012-09-05 Mi 20:30] |:LOGBOOK: |- State "DONE" from "TODO" [2012-09-05 Mi 20:30] |:END: |[2012-08-26 So 03:07] | ** DONE change version number and date in svmono.cls |CLOSED: [2012-09-05 Mi 20:15] |:LOGBOOK: |- State "DONE" from "TODO" [2012-09-05 Mi 20:15] |:END: | [2012-08-26 So 01:11] | ** DONE replace download on github |CLOSED: [2012-09-05 Mi 20:20] |:LOGBOOK: |- State "DONE" from "TODO" [2012-09-05 Mi 20:20] |:END: | [2012-08-26 So 01:11] | ** DONE replace pdf on scribd |CLOSED: [2012-09-05 Mi 20:30] |:LOGBOOK: |- State "DONE" from "TODO" [2012-09-05 Mi 20:30] |:END: | [2012-08-26 So 01:11] `- -- cheers, Thorsten -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: Android Demo

2012-10-09 Thread Thorsten Jolitz
#x27;status quo' of this topic - is full PicoLisp running on Android, have there been any real Apps implemented in PicoLisp by somebody? If so - are there any cons of using PicoLisp instead of Java to be considered? -- cheers, Thorsten -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: Android Demo

2012-10-10 Thread Thorsten Jolitz
ing clients) might not care about the underlying technology? > On Tue, Oct 9, 2012 at 1:06 PM, Thorsten Jolitz > wrote: >> Doug Snead >> writes: >> >> Hi Joe and Doug, >> >> I read up your conversations about PicoLisp on Android in the mailing >> li

Meta key in PicoLisp program

2012-10-23 Thread Thorsten Jolitz
))) `--- -- cheers, Thorsten -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: Meta key in PicoLisp program

2012-10-24 Thread Thorsten Jolitz
d for 'self-insertion''? Would Emacs-like key-chords be possible? E.g. 'C-x u', i.e. type first 'x' and then 'u', using 'C-x' as a kind of prefix that can be combined with e.g. [a-zA-Z0-9]. PS BTW - where are Ctrl-d and Ctrl-c defined? Could they be redefined to something else in one single place? -- cheers, Thorsten -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: Meta key in PicoLisp program

2012-10-26 Thread Thorsten Jolitz
gt; BTW - where are Ctrl-d and Ctrl-c defined? Could they be redefined to >> something else in one single place? > > No, they are ASCII values. In general, a control character is the > corresponding uppercase character minus 64. For example, Ctrl-A is 1, > Ctrl-B is 2, Ctrl-C is

Re: Meta key in PicoLisp program

2012-10-26 Thread Thorsten Jolitz
possible to create picolisp bindings for > it? That would perhaps save a lot of development work. As used in > bash, it also handles the meta key in the emacs way. I wasn't aware of that library, but it sounds very promising - I will check it out. Thanks for the tip! -- cheers, Tho

Re: Meta key in PicoLisp program

2012-10-26 Thread Thorsten Jolitz
Alexander Burger writes: Hi Alex, >> my idea is to add an Emacs-like command line to PicoLisp. I thought this > > Good idea :) thanks for all the info, that gives me something to start with. More questions later (probably). -- cheers, Thorsten -- UNSUBSCRIBE: mailto:picol

Re: Meta key in PicoLisp program

2012-10-26 Thread Thorsten Jolitz
> period (e.g. with (key 200)) for further keys to arrive. could you give a little example how this would look like, e.g. if I want to define the Emacs binding 'C-x u' ('-x u'), i.e. press C-x first (as a prefix) and then u? > Yes. Exiting upon Ctrl-D is explicitly coded into the line editor. So > any other key (or none at all) might be used. I redefined D to Q, that was easy. (What about C - where is that defined?) -- cheers, Thorsten -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: Meta key in PicoLisp program

2012-10-26 Thread Thorsten Jolitz
Thorsten Jolitz 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,

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: Where is term.l loaded?

2012-10-28 Thread Thorsten Jolitz
; > Examples are "rcsim/main.l" or "games/mine.l". I see, its not an essential part of the system. Thanks. -- cheers, Thorsten -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

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

2012-10-30 Thread Thorsten Jolitz
whats the difference between 'g' and 'p'/'P' in vi mode? at the moment I use simply C-y for pasting instead of 'P'. May the Emacs users can have a look at epil/eled and discuss/improve keybindings and functionality. Next (and last step) will be '

Re: pilreader

2012-10-30 Thread Thorsten Jolitz
an entirely different topic- maybe you could expand a bit on the possible use-cases of your pilreader? -- cheers, Thorsten -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: pilreader

2012-10-31 Thread Thorsten Jolitz
pro's and con's of using r-syntax for converting Org-mode syntax-elements into lists following your example , | ;Change the syntax for comma to mean enclosing two items in a list. | (r-syntax "," (

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

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

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

2012-10-31 Thread Thorsten Jolitz
Thorsten Jolitz writes: > And the M-bindings 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
x27;edit.l', and simply insert conditional statements in the startscripts and the functions that load the libraries? I.e., add 'eled.l' and 'eedit.l' to the PicoLisp distribution, and offer the 'epil' shell-command too? For development, at the moment I rather prefer to have 'epil' separated from standard PicoLisp, so I can mess up things ;) -- cheers, Thorsten -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Edit REPL output

2012-11-01 Thread Thorsten Jolitz
to make a PicoLisp REPL editable with Emacs keybindings, but what about xterm? Is there a way to navigate/copy PicoLisp REPL output without using the mouse? -- cheers, Thorsten -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

(Optional) arguments in PicoLisp functions

2012-11-12 Thread Thorsten Jolitz
#fun) explains many ways (and tricks) how to define function args, but '(de vi ("X" C) ...)' looks to me like a list of two parameters - why can it be called with 0 to 2 parameters (apparently)? -- cheers, Thorsten -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: (Optional) arguments in PicoLisp functions

2012-11-14 Thread Thorsten Jolitz
verlook that. Thanks. -- cheers, Thorsten -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: picostache - mustache implementenation

2012-11-14 Thread Thorsten Jolitz
some time ago, and its nice to have that in PicoLisp too! -- cheers, Thorsten -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: Rosetta Code analysis

2012-11-23 Thread Thorsten Jolitz
cle, maybe you want to double check that there are no errors and then delete them? -- cheers, Thorsten -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Pasting from the OS clipboard

2012-11-23 Thread Thorsten Jolitz
t/middle mouse button in an X11 session Is this functionality missing in PicoLisp? -- cheers, Thorsten -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

New Article about 'for'

2012-11-23 Thread Thorsten Jolitz
-- cheers, Thorsten -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: Pasting from the OS clipboard

2012-11-24 Thread Thorsten Jolitz
eyboard, with the same keybindings like Emacs. So I almost forget that I'm not in Emacs all the time when doing some copy&paste between Emacs and Conkeror. The same 'feeling' would be nice when changing between Emacs and the PicoLisp REPL. Would that be hard to implement? -- c

Re: Pasting from the OS clipboard

2012-11-24 Thread Thorsten Jolitz
equest, its definitely not high priority. -- cheers, Thorsten -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

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: mailto:picolisp@software-lab.de?subject

Re: Bug in (env)?

2012-11-24 Thread Thorsten Jolitz
Alexander Burger writes: Hi Alex, > I fixed it, and uploaded a new testing version. hmm... I just downloaded the new (??) version and it still crashes when I type (env) directly after start-up ... -- cheers, Thorsten -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: New Article about 'for'

2012-11-24 Thread Thorsten Jolitz
/picolisp.com/5000/!wiki?Help) that describes the 'PicoLisp Wiki Mode' for Emacs. With this mode, writing articles for the Wiki in Emacs becomes very fast and convenient. You can find the picolisp-wiki-mode.el file in the 'lib/el/' folder of the testing release. -- cheers, Th

Normalize PicoLisp Wiki Syntax

2012-11-24 Thread Thorsten Jolitz
e, since the picolisp-wiki-mode works fine even if fontification is a bit random. Don't know if it would be an improvement and worth the pain. -- cheers, Thorsten -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: Normalize PicoLisp Wiki Syntax

2012-11-24 Thread Thorsten Jolitz
t sure myself if it would be such a good idea. It would make some things easier, but these things are not impossible with the current syntax either. Thanks for the feedback, I think you are right. -- cheers, Thorsten -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: Wiki recent changes

2012-11-25 Thread Thorsten Jolitz
- | Here you can upload and render a test markup file `-- With this feature I can write wiki articles locally with picolisp-wiki-mode, and test the markup (correct typos & mistakes) before finally uploading the text into the wiki. Nice. -- cheers, Thorsten -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: Bug in (env)?

2012-11-25 Thread Thorsten Jolitz
t;: (env) >-> NIL > Now it works for me too: ,-- | $ ./pil + | : (env) | -> NIL `-- -- cheers, Thorsten -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: Normalize PicoLisp Wiki Syntax

2012-11-25 Thread Thorsten Jolitz
thing to have so much colors in the buffer. The mode is working fine for writing articles, and the coloring is really just optional fancy stuff and a matter of taste, I'm not even sure if I would like a buffer full of colors better. -- cheers, Thorsten -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: PicoLisp and Redis

2012-11-25 Thread Thorsten Jolitz
replace the content in the already existing objects? Or is there a smarter way that minimizes parsing and stores only the diffs, keeping the history somehow? -- cheers, Thorsten -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

New Emacs-style command-line editor

2012-11-29 Thread Thorsten Jolitz
functionality to add, but it works already quite good, I use it all the time now. I would be highly appreciated if Emacs users could test it and report bugs. -- cheers, Thorsten -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: New Emacs-style command-line editor

2012-11-29 Thread Thorsten Jolitz
ut I used C-p and C-n instead of M-p and M-n since there is only only line 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 > wrote: > > > Hi L

Re: New Emacs-style command-line editor

2012-11-30 Thread Thorsten Jolitz
--- I dired, you just type v instead of f on a file to open it in view mode. That nice if you want (vi-like ?) read-only navigation without messing up your sources accidentally. Just type e to make the buffer editable again, or q to delete the buffer. -- cheers, Thorsten -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: New Emacs-style command-line editor

2012-11-30 Thread Thorsten Jolitz
sed for pasting right now, just like in emacs). -- cheers, Thorsten -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: org mode parser

2012-12-15 Thread Thorsten Jolitz
Alexander Burger 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 par

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

2013-01-18 Thread Thorsten Jolitz
fully works now and fontification is better (still not perfect, but I dropped the overambitious attempts to fontify complicated nested structures, so the simpler structures are fontified more reliable now). -- cheers, Thorsten -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

[Emacs] Trick for editing large PicoLisp sources

2013-01-23 Thread Thorsten Jolitz
eading) | ; Previous | (define-key cm-map "p" 'outline-previous-visible-heading) | ; Forward - same level | (define-key cm-map "f" 'outline-forward-same-level) | ; Backward - same level | (define-key cm-map "b" 'outline-backward-same-level) | (global-set-key "\M-o" cm-map) `-- -- cheers, Thorsten -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

PicoLisp relations and UML

2013-01-31 Thread Thorsten Jolitz
| ((+Number)) # Quantity | ((+String)) # Memo text | ((+Number) 2) ) # Total amount `--- How to present this in UML? Its like 1 Link and 4 unnamed attributes, I'm not sure how to translate to a UML class diagram? -- cheers, Thorsten -- UNSUBSCRIBE: mailto:pi

Re: PicoLisp relations and UML

2013-01-31 Thread Thorsten Jolitz
ing)) # Memo text >> | ((+Number) 2) ) # Total amount >> `--- I think I'll have to figure out a trick how to deal with bags, way to much effort to get all this info into an UML diagram. BTW, one more question: The vars sometimes specified in the comme

Re: PicoLisp relations and UML

2013-02-01 Thread Thorsten Jolitz
eyond a class definition: >> >> ,- >> | (class ... >> | # var1 var2 var3 >> | ...) >> `- >> >> can be considered as a kind of 'private instance (or class) variables? > > Yes. I would not use "private" here, as it sounds like information > hiding, which is not the case. > > "Instance variables" fits best. BTW, there are also "class variables" > (http://software-lab.de/doc/refV.html#var). Ok, thanks for the tips. -- cheers, Thorsten -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Outline functionality for PicoLisp source files in Emacs

2013-04-09 Thread Thorsten Jolitz
-tutorials/org-outside-org.html `--- -- cheers, Thorsten -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Canonical use of namespaces

2013-04-21 Thread Thorsten Jolitz
all ARGS) into the (local ...) function to define them as part of the new namespace? 3. Should I use namespaces anyway, or rather keep it simple and use the "pio-" prefix? -- cheers, Thorsten -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: Canonical use of namespaces

2013-04-21 Thread Thorsten Jolitz
Alexander Burger 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
: | | " ’ ( ) , [ ] ‘ ~ { } ` I forgot what the "~" is about (e.g. in ~( ... )), and could not find the explanation. And isn't "^" another meta character (with what meaning in PicoLisp)? -- cheers, Thorsten -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: Meta characters in PicoLisp

2013-05-07 Thread Thorsten Jolitz
east). > Besides this, the tilde has a special meaning when separating a namespace > and a symbol name, e.g. myPackage~mySymbol > > >> And isn't "^" another meta character (with what meaning in PicoLisp)? > > Not in internal symbols. In transient symbol

New wiki article about recursion in PicoLisp

2013-05-09 Thread Thorsten Jolitz
wiki?recurInPicoLisp `--- -- cheers, Thorsten -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Performance of Recursion vs Iteration in PicoLisp

2013-05-10 Thread Thorsten Jolitz
s only for compiler optimizations -right? -- cheers, Thorsten -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: Performance of Recursion vs Iteration in PicoLisp

2013-05-10 Thread Thorsten Jolitz
(apply * (range 1 100)) ) ) > > then I get: > >13.161 sec >7.331 sec >7.413 sec >-> > 9332621544394415268169923885626670049071596826438162146859296389521753229915608941463976156518286253697920827223758251185210916864 > > So the recursive version takes about twice as long as the other two. Thanks, nice to know. I find that interesting enough that I would like to add

Re: Performance of Recursion vs Iteration in PicoLisp

2013-05-10 Thread Thorsten Jolitz
Alex Gilding 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
't compose well. nice example, thanks for the link! -- cheers, Thorsten -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: PicoLisp and SWIG

2013-05-15 Thread Thorsten Jolitz
Tomas Hlavaty 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 writes: > >> Hi Tomas, >> >&g

Re: PicoLisp and SWIG

2013-05-16 Thread Thorsten Jolitz
straigt forward to me. But I'm not sure how complete the C++ coverage is, I think templates are not supported. On the other hand, it seems that by the end of this summer, ANSI C is added as a target language to SWIG, which would probably be the most straight forward option to prepare C++ class libra

Problems with 'call'

2013-05-29 Thread Thorsten Jolitz
ers.functions.SMO" "-h") | Fehler: Hauptklasse weka.classifiers.functions.SMO konnte nicht | gefunden oder geladen werden | -> NIL `- [TRANSLATION: Error: class weka.classifiers.functions.SMO could not be f

Re: Problems with 'call'

2013-05-29 Thread Thorsten Jolitz
ash: /home/tj/java/weka/weka-3-6-9: Ist ein Verzeichnis | $ $TERM | -bash: xterm-256color: Kommando nicht gefunden. `-- the variable is set and known to BASH, but somehow PicoLisp does not know about it: , | : (sys "WEKAHOME") | -> NIL | : (sys "TERM") | -> "xterm-256color" ` -- cheers, Thorsten -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: Problems with 'call'

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

Assign a list as symbols property list

2013-06-01 Thread Thorsten Jolitz
symbols property list - how do I do that (without setting every single key/value pair with 'put')? -- cheers, Thorsten -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: Assign a list as symbols property list

2013-06-02 Thread Thorsten Jolitz
ithout setting every single key/value pair with 'put')? > > This can be done with 'putl'. I knew that there must be a function for this ... thanks -- cheers, Thorsten -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Syntax for global variable in namespace?

2013-06-02 Thread Thorsten Jolitz
ld of course just name it 'Var', but the '*Var' would underline its importance.BTW Are constants in uppercase (like 'MYCONST') acceptable in PicoLisp? -- cheers, Thorsten -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: Syntax for global variable in namespace?

2013-06-02 Thread Thorsten Jolitz
t; > Yes. I haven't seen or used many constants yet (a good case might be > "lib/openGl.l" though), but an all-uppercase notations seems natural to > me. > > One thing to remember is of course that there are no real "constants" in > PicoLisp. Anythi

CSS for and

2013-06-26 Thread Thorsten Jolitz
nd_src without a surrounding '(html ... ) call. How can I tell and about "@lib.css" in this case? Is there a way to pass both, the css file and attribute-value pairs to these two tag-functions? -- cheers, Thorsten -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: CSS for and

2013-06-26 Thread Thorsten Jolitz
---- | http://:/lib.css"</a>;> ` I'm a bit confused about this part: ,-- | http://:/ `-- what is this :/ standing for? I know the : as path-separator on Linux, but here? -- cheers, Thorsten -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: CSS for and

2013-06-27 Thread Thorsten Jolitz
Alexander Burger writes: > Hi Thorsten, > >> html output is: >> , >> | http://:/lib.css"</a>;> >> ` >> ... >

Re: CSS for and

2013-06-27 Thread Thorsten Jolitz
many 1-bits as there > are submenus, you should be safe, e.g (setq *Menu (dec (** 2 24))). a slightly underdocumented feature ... or is that described somewhere? Thanks so far, I made the CSS working by putting the stylesheet link into the section, so far it was exported to the html and then ignored. -- cheers, Thorsten -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Object <-> Nested List

2013-06-28 Thread Thorsten Jolitz
list represents an object (assuming class +Dog is defined and 'dog' is an alias for it) without doing #+begin_src picolisp (new ’(+Dog) "border collie" "medium" "high" T) #+end_src explicitly? -- cheers, Thorsten -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: Object <-> Nested List

2013-06-28 Thread Thorsten Jolitz
Alexander Burger writes: [...] Thanks Alex, I have to experiment with this, it seems exactly what I need ... maybe I will follow up to this post later. Its always amazing to see how PicoLisp's fundamental simplicity makes stuff like this so easy. -- cheers, Thorsten -- UNSUBS

Mapping circular lists from Emacs Lisp to PicoLisp

2013-06-28 Thread Thorsten Jolitz
imes (not necessarily at the end of the list), e.g. #+begin_src emacs-lisp (:parent #5=(headline ... ... :parent #5#) #+end_src I wonder how this can be expressed in PicoLisp? -- cheers, Thorsten -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: Mapping circular lists from Emacs Lisp to PicoLisp

2013-06-28 Thread Thorsten Jolitz
gt;: (7 8 ~"n2") >-> (7 8 4 5 6) Does not look as clean and nice as before, but what counts - it can be done, great. Thanks again, I'm glad I asked, it would have taken me forever to (probably not) figure this out. -- cheers, Thorsten -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: Citations for Wikipedia

2013-06-30 Thread Thorsten Jolitz
missing] REFS: ,--- | BURGER 1997: Title | BURGER 2009: Title `--- -- cheers, Thorsten -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

SEXP?

2013-06-30 Thread Thorsten Jolitz
Lisp SEXP, but maybe it actually does not make a difference since in this case Lisp is Lisp, no matter what dialect. PS With so many occurences fo SEX in this post, I wonder if it will be filtered as SPAM or actually posted in the mailing list -- cheers, Thorsten -- UNSUBSCRIBE: mailto:pic

Re: SEXP?

2013-07-01 Thread Thorsten Jolitz
ally posted in the mailing list > > Worked :) And NSA will only read read (and not filter) it. at least I sent it only once and are not classified as spammer now, hopefully ;) -- cheers, Thorsten -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: SEXP?

2013-07-01 Thread Thorsten Jolitz
dexen deVries 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 >> > retur

Re: SEXP?

2013-07-01 Thread Thorsten Jolitz
eems to be a good thing. But thanks for the tip anyway! > On Mon, Jul 1, 2013 at 4:50 AM, Thorsten Jolitz > wrote: > > dexen deVries > writes: > > > > On Monday 01 of July 2013 07:39:49 you wrote: > >> Hi Thorsten, >

alist vs plist in PicoLisp

2013-07-02 Thread Thorsten Jolitz
in the Emacs Lisp manual, but I don't know if this holds for all Lisps or only Emacs Lisp. I guess in PicoLisp it might be a different story? -- cheers, Thorsten -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: alist vs plist in PicoLisp

2013-07-02 Thread Thorsten Jolitz
ells and alists only sometimes? > > Sure. Everything in PicoLisp is built with cells. Why should association > lists be only sometimes so? I think thats the point where I'm confused a bit. I meant dotted pairs but wrote cons cells - but isn't that the same? Are these all alists? #+begin_src picolisp ((VAL . KEY) KEY (VAL . KEY)) (VAL KEY KEY VAL KEY) ((VAL . KEY) KEY VAL KEY)) #+end_src -- cheers, Thorsten -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: alist vs plist in PicoLisp

2013-07-03 Thread Thorsten Jolitz
uld simply redefine the VALS as KEYs and vice verse in his head before applying 'assoc' or 'asoq'. Or if he actually swaps keys and vals, since (Emacs Lisp) functions like 'rassoc' and 'rasoq' do not exist in PicoLIsp. One last question: #+begin_src picolisp ((VAL . KEY) KEY (VAL . KEY)) ((VAL KEY) KEY (VAL KEY)) ((VAL VAL KEY) (VAL VAL KEY) (VAL . KEY)) #+end_src picolisp would each of the above be a valid property list if assigned with 'lput' to a symbol? -- cheers, Thorsten -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: alist vs plist in PicoLisp

2013-07-03 Thread Thorsten Jolitz
# But not '(a b)' because they >-> NIL # are not pointer-equal > >: (get 'A (cdar PList)) # (cdar PList) is (a b) >-> "val1"# and pointer-equal ok, thanks, I think now I got it more or less. -- cheers, Thorsten -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Namespace definitons in project with several files

2013-07-03 Thread Thorsten Jolitz
each ".l" file? 2. Only one '(symbols 'project 'pico) definition at the top of that ".l" file that loads the other files from the project? -- cheers, Thorsten -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

<    1   2   3   4   >