Re: Beginner RESTful Web app in PicoLisp?

2017-08-17 Thread Alexander Burger
On Fri, Aug 18, 2017 at 07:44:33AM +0200, Alexander Burger wrote:
> On Thu, Aug 17, 2017 at 06:05:20PM -0800, Christopher Howard wrote:
> > Hi, this does look interesting! However, the license for the code is
> > not stated clearly anywhere in the code or on the wiki, as near as I
> > can tell.
> 
> Uuhh, in what kind of world are we living!? In which people become paranoid
> about the license for a *single* line of code? Surely not my world.

Sorry, I just noticed that this referred to the bitbucket wiki, not the
single-liner! Still ...

-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Re: Beginner RESTful Web app in PicoLisp?

2017-08-17 Thread Alexander Burger
On Thu, Aug 17, 2017 at 06:05:20PM -0800, Christopher Howard wrote:
> Hi, this does look interesting! However, the license for the code is
> not stated clearly anywhere in the code or on the wiki, as near as I
> can tell.

Uuhh, in what kind of world are we living!? In which people become paranoid
about the license for a *single* line of code? Surely not my world.

- Alex

-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Re: Beginner RESTful Web app in PicoLisp?

2017-08-17 Thread Christopher Howard
Hi, this does look interesting! However, the license for the code is
not stated clearly anywhere in the code or on the wiki, as near as I
can tell.

On Thu, 2017-08-17 at 09:30 +0300, Alexander Sharihin wrote:
> Hello!
> 
> If you want create rest app you can try this library: https://bitbuck
> et.org/iromero91/web.l/wiki/Home
> 
> 2017-08-17 8:48 GMT+03:00 Christopher Howard  les.net>:
> > Hi, I want to create a really simple PicoLisp Web application that
> > parses the URL, and does something. Probably something silly, e.g.,
> > visiting http://localhost/addition/2/2 returns a Web page showing
> > 2+2 =
> > 4. Is there some small sample PicoLisp code I could look at or
> > start
> > with?
> > 
> > I saw on picolisp.com the tutorial  > bgui
> > >, but it didn't seem quite like what I was looking for.
> 
> 

signature.asc
Description: This is a digitally signed message part


Re: Beginner RESTful Web app in PicoLisp?

2017-08-17 Thread Jon Kleiser
Beautiful! Even works with 32-bit PicoLisp on Mac. ;-)

/Jon

> On 17. Aug, 2017, at 13:53, Alexander Burger  wrote:
> 
> Hi Christopher,
> 
>> Hi, I want to create a really simple PicoLisp Web application that
>> parses the URL, and does something. Probably something silly, e.g.,
>> visiting http://localhost/addition/2/2 returns a Web page showing 2+2 =
>> 4. Is there some small sample PicoLisp code I could look at or start
>> with?
> 
> How about this:
> 
> 1. Put these four lines into a file "addition.l":
> 
>  (html 0 "Addition" NIL NIL
> (let (A (format (next))  B (format (next)))
>( NIL "Addition")
>(prin A " + " B " = " (+ A B)) ) )
> 
> 2. In the same directory start
> 
>  $ pil @lib/http.l @lib/xhtml.l --server 8080 "" -wait
> 
> 3. Connect a browser to
> 
>  http://localhost:8080/addition.l?2&2
> 
>   or, if httpGate is running with a default of 8080, just
> 
>  http://localhost/addition.l?2&2
> 
> ♪♫ Alex
> 



Re: Beginner RESTful Web app in PicoLisp?

2017-08-17 Thread Alexander Burger
Hi Christopher,

> Hi, I want to create a really simple PicoLisp Web application that
> parses the URL, and does something. Probably something silly, e.g.,
> visiting http://localhost/addition/2/2 returns a Web page showing 2+2 =
> 4. Is there some small sample PicoLisp code I could look at or start
> with?

How about this:

1. Put these four lines into a file "addition.l":

  (html 0 "Addition" NIL NIL
 (let (A (format (next))  B (format (next)))
( NIL "Addition")
(prin A " + " B " = " (+ A B)) ) )

2. In the same directory start

  $ pil @lib/http.l @lib/xhtml.l --server 8080 "" -wait

3. Connect a browser to

  http://localhost:8080/addition.l?2&2

   or, if httpGate is running with a default of 8080, just

  http://localhost/addition.l?2&2

♪♫ Alex

-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Re: Beginner RESTful Web app in PicoLisp?

2017-08-17 Thread Alexander Sharihin
Hello!

If you want create rest app you can try this library:
https://bitbucket.org/iromero91/web.l/wiki/Home

2017-08-17 8:48 GMT+03:00 Christopher Howard :

> Hi, I want to create a really simple PicoLisp Web application that
> parses the URL, and does something. Probably something silly, e.g.,
> visiting http://localhost/addition/2/2 returns a Web page showing 2+2 =
> 4. Is there some small sample PicoLisp code I could look at or start
> with?
>
> I saw on picolisp.com the tutorial  >, but it didn't seem quite like what I was looking for.