Re: Fwd: Making emacs like function documentation.

2015-08-03 Thread Manuel Cano
Hi,

Great. I need to learn a lot.
Thank you.


Manuel

2015-08-03 20:57 GMT+02:00 Rick Hanson :

> > > Why not just this?
> > >
> > >   (de thefunc (A B C)
> > > "This is the help text"
> > > (* A B C))
> >
> > Unfortunately Rick's solution form doesn't work.
>
> It works for me just fine actually.
>
>   $ ./pil
>   : (de hola (Str)
>   "This is just a test."
>   (prinl "Hola " Str))
>   -> hola
>   : (hola "Manuel")
>   Hola Manuel
>   -> "Manuel"
>   : (hola "Ricardo")
>   Hola Ricardo
>   -> "Ricardo"
>
> And `hola`, like any other picolisp function, is just a list.
>
>   : hola
>   -> ((Str) "This is just a test." (prinl "Hola " Str))
>
> So, it's easy to get the doc string out.
>
>   : (cadr hola)
>   -> "This is just a test."
> --
> UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
>



-- 
Manuel


Re: Possible host for PilOS

2015-08-03 Thread Alexander Burger
Hi Robert, Geo,

indeed, an interesting piece of hardware!

> But its an ARM Cortex M4 and from what i remember Alex would prefer to
> have it on a 64bit machine as much as possible?

Not just "prefer" ... There is no way to run PilOS on 32-bits. Besides
the fact that there is no ARM port yet.


> Anyway don't worry coz i already got all the ingredients for the
> pilMCU evaluation kit? Got it from Digikey last week and now I'm
> currently layout the PCB which is time consuming esp if packages used
> are for SMD.. but its a working progress compared to past months.

Cool!


> Can't hold it but ok the name for the pilMCU evaluation board that I'm
> building is called "A.P.F.E.L." anyone can guess the meaning? :)

Hmm, no idea ... ;)
♪♫ Alex
-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Re: Fwd: Making emacs like function documentation.

2015-08-03 Thread Alexander Burger
On Mon, Aug 03, 2015 at 02:57:20PM -0400, Rick Hanson wrote:
> It works for me just fine actually.

Yes. And it keeps it simple! ;)


>   $ ./pil
>   : (de hola (Str)
>   "This is just a test."
>   (prinl "Hola " Str))
>   -> hola
>   : (hola "Manuel")
>   Hola Manuel
>   -> "Manuel"
>   : (hola "Ricardo")
>   Hola Ricardo
>   -> "Ricardo"
> 
> And `hola`, like any other picolisp function, is just a list.
> 
>   : hola
>   -> ((Str) "This is just a test." (prinl "Hola " Str))
> 
> So, it's easy to get the doc string out.
> 
>   : (cadr hola)
>   -> "This is just a test."
-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Re: Possible host for PilOS

2015-08-03 Thread George Orais
Hi Robert,
Nice find! And good point with the name :) But its an ARM Cortex M4 and from 
what i remember Alex would prefer to have it on a 64bit machine as much as 
possible?
Anyway don't worry coz i already got all the ingredients for the pilMCU 
evaluation kit? Got it from Digikey last week and now I'm currently layout the 
PCB which is time consuming esp if packages used are for SMD.. but its a 
working progress compared to past months. The design is based from the 
Waveshare hardware so that i can use their modular peripherals which is almost 
like Arduino...
Can't hold it but ok the name for the pilMCU evaluation board that I'm building 
is called "A.P.F.E.L." anyone can guess the meaning? :)

BR,Geo



 On Tuesday, August 4, 2015 11:28 AM, Robert Herman  
wrote:
   

 I was checking out Espruino. It has a jumper to 'Boot to' where you can change 
the firmware. Do you think it would be possible to get PilOS running on this? 
It is ARM, and has a lot of convenience to it: USB A, LEDs, button, 22 GPIO, 
and best of all it's named Pico!

http://www.espruino.com/Pico

Rob


   

Possible host for PilOS

2015-08-03 Thread Robert Herman
I was checking out Espruino. It has a jumper to 'Boot to' where you can
change the firmware. Do you think it would be possible to get PilOS running
on this? It is ARM, and has a lot of convenience to it: USB A, LEDs,
button, 22 GPIO, and best of all it's named Pico!

http://www.espruino.com/Pico

Rob


Re: Fwd: Making emacs like function documentation.

2015-08-03 Thread Rick Hanson
> > Why not just this?
> >
> >   (de thefunc (A B C)
> > "This is the help text"
> > (* A B C))
>
> Unfortunately Rick's solution form doesn't work.

It works for me just fine actually.

  $ ./pil
  : (de hola (Str)
  "This is just a test."
  (prinl "Hola " Str))
  -> hola
  : (hola "Manuel")
  Hola Manuel
  -> "Manuel"
  : (hola "Ricardo")
  Hola Ricardo
  -> "Ricardo"

And `hola`, like any other picolisp function, is just a list.

  : hola
  -> ((Str) "This is just a test." (prinl "Hola " Str))

So, it's easy to get the doc string out.

  : (cadr hola)
  -> "This is just a test."
-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Unsubscribe

2015-08-03 Thread Ralf Döring