Subscribe

2020-05-24 Thread Davide BERTOLOTTO

Re: Pil vs Pil21 performances

2020-09-04 Thread Davide BERTOLOTTO
Davide BERTOLOTTO wrote: > Hi all, > > I compiled pil21 with llvm on termux and then I ran some simple fibonacci > benchmark. Here the results > > *** recursive > n 37 fib 24157817 > -- picolisp 3.013 sec > -- pil21 5.332 sec > -- python 21.247 sec > > **

Pil vs Pil21 performances

2020-09-04 Thread Davide BERTOLOTTO
Hi all, I compiled pil21 with llvm on termux and then I ran some simple fibonacci benchmark. Here the results *** recursive n 37 fib 24157817 -- picolisp 3.013 sec -- pil21 5.332 sec -- python 21.247 sec *** iterative n 8 fib 4589178984+ -- picolisp 0.518 sec -- pil21 0.409 sec -- python

Re: httpGate for non-picolisp apps

2020-08-27 Thread Davide BERTOLOTTO
I suppose so, you can start it from the command line and have it listen to a port. I am not sure that it will work with the configuration file tough, since I understood that it takes care of stopping and starting the picolisp processes. Someone more expert can confirm or deny that ;-) D. On Thu,

Re: Issue with pipe and file descriptors

2020-08-04 Thread Davide BERTOLOTTO
Thanks a lot Alex, with the "wait" is working fine! Cheers, Davide On Tue, Aug 4, 2020, 16:42 Alexander Burger wrote: > Hi Davide, > > > I have encountered a strange behavior while running some pipes (the > number > > of "do" iterations may require some adjustment to trigger the effect): > >

Issue with pipe and file descriptors

2020-08-04 Thread Davide BERTOLOTTO
Hi all, I have encountered a strange behavior while running some pipes (the number of "do" iterations may require some adjustment to trigger the effect): (do 1 (pipe (prin "A string") (make (while (rd 1) (link @) The execution stops with an error like this (the actual number may vary) ?

Re: Fridays for Functions (Was: PilCon 2020)

2020-06-03 Thread Davide BERTOLOTTO
Wonderful idea On Wed, Jun 3, 2020, 13:27 O.Hamann wrote: > ++ > > On 03.06.20 07:54, Alexander Burger wrote: > > I would propose informal Jitsi meetings every second Friday or so. The > time > > could be alternating 8:00 and 16:00 UTC, to allow attendance from most > time > > zones. No big

Land of Lisp

2021-01-07 Thread Davide BERTOLOTTO
Hi all, For those familiar with Land of Lisp (http://landoflisp.com/), I have rewritten the wizard's game in Picolisp here: https://github.com/dbertolotto/pil-land-of-lisp In my opinion the wizard's game is the most iconic (and educational) game of the book: it shows the code-as-data, the macros

issue with circular lists

2020-12-23 Thread Davide BERTOLOTTO
Hi everyone, I had recently an issue with both pil64 and pil21. I was trying to create a large circular list and got a segmentation fault with a size of >200'000 elements. Is that expected? (apply circ (range 1 20)) Regards, Davide

Re: issue with circular lists

2020-12-23 Thread Davide BERTOLOTTO
Just found out that it is an issue with apply. Probably the number of arguments is too large. (eval (cons 'circ (range 1 20))) Works fine. Could someone confirm please? Regards Davide On Wed, Dec 23, 2020, 13:16 Davide BERTOLOTTO wrote: > Hi everyone, > > I had recently

Re: issue with circular lists

2020-12-23 Thread Davide BERTOLOTTO
Thanks for the clarification Alex! The ulimit command did the trick. Cheers, Davide On Wed, Dec 23, 2020, 14:16 Alexander Burger wrote: > On Wed, Dec 23, 2020 at 01:57:10PM +0100, Alexander Burger wrote: > > The result is a little different though: > > > >: (let L NIL (for I 7 (fifo 'L I))

Advent of Code 2020

2020-12-16 Thread Davide BERTOLOTTO
Hi all, For anyone who is interested, I am participating to the advent of code 2020 (https://adventofcode.com/) using Picolisp. Here is the repository https://github.com/dbertolotto/advent-of-code-2020 Cheers, Davide

Re: Advent of Code 2020

2020-12-16 Thread Davide BERTOLOTTO
I am using the one from the package manager of ubuntu 18, so it's probably pil 64. I am waiting for the new package on thermux ;) On Wed, Dec 16, 2020, 17:36 Mike wrote: > December 16, 2020 6:09 PM, "Davide BERTOLOTTO" < > davide.bertolo...@gmail.com> wrote: > > >

Re: Advent of Code 2020

2020-12-16 Thread Davide BERTOLOTTO
Thanks Alex, I did manage to compile pil21 some time ago on termux, but it was not the latest version. Waiting for the package is for satisfying my laziness by having automatic updates ;) Sad to hear about termux, I hope that there will be a solution for that. It is a great tool! Cheers, Davide

Re: PilCon Friday

2020-11-07 Thread Davide BERTOLOTTO
Saturdays with the usual schedule sounds good for me On Sat, Nov 7, 2020, 09:49 Alexander Burger wrote: > Hi Kashyap, Wilhelm, > > thanks a lot Wilhelm! I think you protocolled all topics. > > And no worries Kashyap, we were all aware that we will repeat some topics > anyway, whatever comes up.

Re: Flame wars

2020-11-22 Thread Davide BERTOLOTTO
Great! :) On Sun, Nov 22, 2020, 15:17 Alexander Burger wrote: > On Sun, Nov 22, 2020 at 02:49:58PM +0100, Davide BERTOLOTTO wrote: > > Well, outside of the "flame wars", I think that this it is a genuine > > problem that has to be solved by Alex. > > Yes, OK, an

Re: Licence Dilemma

2020-11-22 Thread Davide BERTOLOTTO
>From the wiki page they you shared, quoting the FSF Where's the line between two separate programs, and one program with two parts? This is a legal question, which ultimately judges will decide. We believe that a proper criterion depends both on the mechanism of communication (exec, pipes, rpc,

Re: Licence Dilemma

2020-11-22 Thread Davide BERTOLOTTO
According to the GPL FAQ *technically* a dynamically linked object still falls under GPL https://www.gnu.org/licenses/gpl-faq.en.html#GPLStaticVsDynamic However it seems that not everyone agrees on that fundamentalist view: https://www.linuxjournal.com/article/6366 As far as I know, there has

Re: Flame wars

2020-11-22 Thread Davide BERTOLOTTO
Well, outside of the "flame wars", I think that this it is a genuine problem that has to be solved by Alex. Using readline for pil21 in the current form requires him to use GPL for Picolisp. I know it's nasty and almost nobody likes that, but it is the way the GPL license works, at least on

Re: PilCon Friday

2020-11-05 Thread Davide BERTOLOTTO
For me later in the evening after 17-18 CET would be Better. On Thu, Nov 5, 2020, 19:41 Alexander Burger wrote: > On Thu, Nov 05, 2020 at 01:23:13PM -0500, r cs wrote: > > Raw video would be welcomed. The timing of the PilCon can be challenging > > in some time zones. > > Independent of the

Re: PilCon Friday

2020-11-04 Thread Davide BERTOLOTTO
I am not sure if I'll be able to join, but would be good to hear about best practices in error handling (how to catch and throw errors properly) Regards, Davide On Wed, Nov 4, 2020, 12:03 Alexander Burger wrote: > Hi all, > > next Friday (Nov 6th) is PilCon again! > >

Re: PilCon Saturday

2020-12-31 Thread Davide BERTOLOTTO
I should be able to join. On Thu, Dec 31, 2020, 09:00 Alexander Burger wrote: > On Thu, Dec 31, 2020 at 08:36:48AM +0100, Alexander Burger wrote: > > in two days, Saturday the second of January, we have the next PilCon. > > Sorry, forgot to refresh the details: > > As ever on a first Saturday,

Re: PilCon Schedule

2021-01-18 Thread Davide BERTOLOTTO
Oooops... I forgot to join this Saturday :-P Anyway, in general any day is fine for me, even if I may not be able to attend every time. What about making shorter seminars with a specific topic? It seems that this is the favored way by many people and could be recorded for the benefit of

Re: Question for understanding usage of pipes

2021-01-15 Thread Davide BERTOLOTTO
In a more functional way: (de proc-char (C) (case C ("B" 1) ("R" 1) ("F" 0) ("L" 0))) (de proc-str (S) (pack (mapcar 'proc-char S))) (de proc-file (F) (let Inp (filter 'and (split (in F (till)) "\n")) (mapcar 'proc-str

Re: Picolisp Outlook

2021-02-23 Thread Davide BERTOLOTTO
After all these years I am still wondering how people like complicated sintaxes full of special forms more than the simplicity of lisp. After all, the parentheses and the prefix notation do not look so terrible to me, especially considering that you gain a lot in clarity and simplicity of the

Re: Is there a mechanism to save the last defined function?

2021-04-19 Thread Davide BERTOLOTTO
you can do (put 'f 'docstr "docstring") On Tue, Apr 20, 2021, 07:30 Davide BERTOLOTTO wrote: > I don't know of any *Function global, but hey, it's lisp ;) you can do > your own 'de' like this, with a docstring clojure-style (after args) > > (de de+ Rest > (

Re: Is there a mechanism to save the last defined function?

2021-04-19 Thread Davide BERTOLOTTO
I don't know of any *Function global, but hey, it's lisp ;) you can do your own 'de' like this, with a docstring clojure-style (after args) (de de+ Rest (let ((@Name @Args Doc . @Body) Rest) (macro (de @Name @Args ~'@Body)) (put @Name 'Doc Doc)

Re: [PicoLisp] [PiL] im Betreff verwenden

2022-01-02 Thread Davide BERTOLOTTO
As others already said, it's enough to tag/sort/redirect the incoming mails according to the sender, no need for keywords in the title :) On Wed, Dec 29, 2021, 19:25 Karl-Heinz Kreis wrote: > > Hi all, > > I let my Mailprog simply sort the incomming into previously created > subfolders by the

Advent of code 2021

2021-12-02 Thread Davide BERTOLOTTO
It is again that time of the year :) https://adventofcode.com/2021 https://github.com/dbertolotto/advent-of-code-2021 Cheers, Davide