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.
,--
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 demonstrat
Alexander Burger 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 see, thank
Alexander Burger 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 nice t
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) )
`-
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 Pico
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 w
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
parser in Emacs Li
Joe Bogner 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:
,-
| https://github.com/t
Joe Bogner 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 the feedback, go
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
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
Joe Bogner writes:
Hi Henrik, Hi Joe,
> Thank you for sharing. I have also thought about using redis for
> session state.
I find that quite interesting too.
> I tend to use picolisp in more of a functional form possibly because
> its a breath of fresh air after 10 years of oop in c#. I some
Alexander Burger writes:
Hi Alex and José,
> in addition what you have already discussed:
>
>> 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 e
Alexander Burger 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 it wor
Alexander Burger writes:
> On Sun, Nov 25, 2012 at 10:13:41AM +0100, Alexander Burger wrote:
>> Is there a way to display or link the log of the Mercury repository in
>> the Wiki?
>
> Seems I didn't notice the subject ...
>
>
> The _wiki_ changes are visible when go to
>
>http://wiki.picolisp
José Romero 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 myself if it wou
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 alw
Joe Bogner 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
(http://picolisp.com/5000/!wiki?Help) t
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
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=Unsubscr
Alexander Burger writes:
Hi Alex,
>> Would that be hard to implement?
>
> Not sure. Does anybody know where emacs stores its clipboard? If it is a
> file (or accesible via some well-defined mechanism), it would be easy. I
> suspect this is not the case (?).
Emacs (since version 24) now out-of-t
Alexander Burger 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
just paste with
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,
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 copy&paste functionality in an console session
- use the left/middle mouse button
Joe Bogner writes:
Hey Joe,
> I added a wiki article that includes some basic analysis of the
> Rosetta Code solutions. At several points I've tried to memorize the
> usage of all the PicoLisp functions. I'm getting closer to retaining
> it, however I may use this list as a way to prioritize my
Joe Bogner 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 time ago, and it
Axel Svensson
writes:
>> me like a list of two parameters - why can it be called with 0 to 2
>> parameters (apparently)?
>
> http://software-lab.de/doc/ref.html#ev
>
> In the very end of the section, it says "Missing arguments default to NIL."
I see, did overlook that. Thanks.
--
cheers,
Thor
Hi List,
from Emacs Lisp I know some special constructs for differenciating
between types of function arguments, e.g.:
,--
| (defun foo (x y &optional z &rest r) ...)
`--
When looking at the signature of e.g. the
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
t
Alexander Burger 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:
>>
>> ,-
>> | https:/
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
`---
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
Axel Svensson
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 reader, and by alter
Axel Svensson
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 welcome!
>
> Downl
Hi List,
thanks to the hints from Alex and the answer to this question:
,
|
http://unix.stackexchange.com/questions/53048/how-to-use-the-meta-alt-key-with-tput
`-
Alexander Burger writes:
Hi Alex,
>> relevant files in the picolisp directory but did not find the place
>> where term.l is loaded - where does this happen?
>
> Usually not (because it is normally not needed). Just call
> (load "lib/term.l") if necessary.
>
> Examples are "rcsim/main.l" or "game
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
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,
Alexander Burger 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 changing the
keybin
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:picolisp@software-lab.de
Axel Svensson
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 create picolisp
Alexander Burger writes:
Hi Alex,
thanks for your explanations.
>> So and 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
> you get the character 97
Alexander Burger writes:
Hi Alex,
>> "V" (M-V or M-S-v in Emacs)
>> "V" (C-M-V or C-M-S-v in Emacs)
>>
>> instead of something like this ("V"):
>
> Unfortunately, this is not directly possible.
>
> Alt/Meta key combinations have no representation in ASCII or UTF-8.
> Instead, they are generated
Hi List,
how would I write a
- Meta/Alt key
- AltGr key
in a PicoLisp program?
E.g. if I want to write
"V" (M-V or M-S-v in Emacs)
"V" (C-M-V or C-M-S-v in Emacs)
instead of something like this ("V"):
,---
| ("^V" (insChar (key)))
`---
--
cheers,
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
Doug Snead
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 android browser. (I think.)
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
`---
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
Hi List,
I just published a new GNU Emacs major mode for editing files with the
PicoLisp-Wiki syntax. You can either clone the gitrepo or download the
el file here:
,---
| https://github.com/tj64/picolisp-wiki-mode
`--
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
`
Jon Kleiser
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 cannot find th
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, yo
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
`---
Henrik Sarvell
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 a middlema
Jakob Eriksson writes:
> http://mosms.se/ does this in Sweden. They let you avoid the hassle of
> having
> to deal with different telecoms companies. (Since your customers
> likely have
> subscriptions with different providers.)
>
> I am sure there are many companies such as Mosms in other countr
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
Joe Bogner 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. http://www.twilio.com/.
> Twi
dexen deVries
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 number' (or
>> maybe
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 proc
Alexander Burger writes:
Hi Alex,
>> 2. there are many functions in R that look like this:
>>
>> ,
>> | SEXP Invtrans(SEXP pG, SEXP x);
>> `
>>
>> taking two lists, returning one list?
>
> I don't know the R data structures, but I
Alexander Burger writes:
Hi Alex,
> On Sun, Aug 12, 2012 at 08:19:41AM +0200, Alexander Burger wrote:
>> I would recommend in general to call (load "@lib/math.l") before any
>> floating point math, which sets the scale to 6 by default (unless it is
>> set to another value beforehand).
ok
> A
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:
,
Henrik Sarvell
writes:
> Shouldn't they be included in the bible too?
> On Thu, Jul 26, 2012 at 2:37 PM, Alexander Burger
> wrote:
>
> Hi all,
>
> for anybody interested in the PicoLisp solutions to RosettaCode
> tasks:
>
> Since more than a year I'm posting almost all
Alexander Burger writes:
Hi Alex,
>> Is there a way to make 'out' write directories too?
>
> No, 'out' just creates or opens a file for writing.
ok
>> Or do I have to use something like
>>
>> ,--
>> | (call 'mkdir "/new/dir/")
>> `--
>
> Yes. Bu
Henrik Sarvell
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 if new exists
Alexander Burger 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 actually wa
Alexander Burger 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'
>
>(
Alexander Burger 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 you invoke P
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 proc
Henrik Sarvell
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
Thanks, I will loo
Alexander Burger 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 mean here. Perh
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, an
Christophe Gragnic
writes:
> On Sat, Jul 21, 2012 at 8:05 PM, Thorsten Jolitz
> wrote:
>>
>> BTW
>> I just found out that there is an upper limit for book size (at
>> Amazon some 870 pages or so) in self-publishing, so if I include the
>> function reference
Laurent Artaud writes:
> Le 21/07/2012 20:05, Thorsten Jolitz a écrit :
>> Terry Palfrey
>> writes:
>>
>> BTW
>> I just found out that there is an upper limit for book size (at
>> Amazon some 870 pages or so) in self-publishing, so if I include the
>>
Terry Palfrey
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 a topic where I w
Christophe Gragnic
writes:
> I was thinking trying to learn PicoLisp while reading Successful Lisp
> (I already read the official PicoLisp tuto once):
> http://psg.com/~dlamkins/sl/contents.html
> The plan was to read and translate the examples in PicoLisp.
>
> I planned to do this during the sum
Alexander Burger writes:
> On Fri, Jul 20, 2012 at 02:32:00PM +0200, Thorsten Jolitz wrote:
>> Terry Palfrey
>> writes:
>>
>> > Will this include the Rosetta Code examples?
>> ...
>> Thats not a bad idea at all, but it depends a bit on the technical
Terry Palfrey
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 maybe it would be possibl
Alexander Burger 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
Yiorgos Adamopoulos
writes:
> On Fri, Jul 20, 2012 at 1:52 PM, Thorsten Jolitz
> wrote:
>> That makes two proposals then:
>> - PicoLisp Bible
>> - PicoLisp Compendium
>
> Just to make them three:
>
> - PicoLisp Works
Nice double meaning ;)
It would be i
Rudy Hagedorn
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: mailto:picolisp@software-lab.de?subject=Unsubscri
Jakob Eriksson writes:
> Great initiative!
>
> I will try to put something short together on how portable the
> very core of (mini)PicoLisp is. No promise though, but it would be fun.
Sounds definitely interesting. Even a small descriptive article would be
better than nothing, this is not about
Meadowlark technology
writes:
> An excellent idea Thorsten.
> If I can think of a contribution I can make I will do so. Though I use
> pl I would NOT say I was sufficiently expert to tell others how to do
> so!
Without being sufficiently expert either I made a table (mainly for
myself) with all
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
e.
Alexander Burger 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 there are so many
201 - 286 of 286 matches
Mail list logo