Re: try picolisp

2014-08-28 Thread Jon Kleiser
Hi,

On 29. aug. 2014, at 06:27, H. Hirzel  wrote:

> On 8/28/14, Christophe Gragnic  wrote:
>> On Thu, Aug 28, 2014 at 9:32 PM, Jon Kleiser  wrote:
>>> 
>>> Thanks to suggestions from Christophe, I have
>>> re-structured the code,
>> 
>> And removed some trailing whitespace! (more to come (crossing fingers)).
>> 
>>> corrected some errors,
>>> and implemented a few new functions (more coming).
>> 
>> Some say OOP will come before Christmas.
>> 
>>> Christophe’s github repo has what I now call EmuLisp v.2.
> 
> URL for EmuLisp v.2. repo?

Right now I have no real repo for v.2. You can find my .js files referenced 
from this console:


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


Re: try picolisp

2014-08-28 Thread Alexander Burger
Hi All,

> Is it hard to implement minimalist version of minipicolisp in browser ?
> Like http://tryclj.com/ ?

In addition to the proposed solutions involving JavaScript versions
of PicoLisp:


Perhaps not many people are aware that standard PicoLisp comes with a
REPL in the browser GUI since many years.

It is the 'repl' function in "@lib/form.l". To try it, put this
into a script:

   #!/usr/bin/pil

   (load "@lib/http.l" "@lib/xhtml.l" "@lib/form.l")

   (de home ()
  (app)
  (action
 (html 0 "REPL" "@lib.css" NIL
(repl) ) ) )

   (server 8080 "!home")
   (wait)

Point your browser to http://localhost:8080 (or, better, start httpGate
and point to http://localhost). You can type arbitrary expressions into
the text field below, and hit Enter or press the "eval" button. Then see
the output in the text area above.

Works with and without JavaScript, also in a text browser like w3m.


I didn't announce it much. I've never put it into a publicly accessible
application or demo, for the obviously HUGE security reasons.

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


Re: try picolisp

2014-08-28 Thread H. Hirzel
On 8/28/14, Christophe Gragnic  wrote:
> On Thu, Aug 28, 2014 at 9:32 PM, Jon Kleiser  wrote:
>>
>> Thanks to suggestions from Christophe, I have
>> re-structured the code,
>
> And removed some trailing whitespace! (more to come (crossing fingers)).
>
>> corrected some errors,
>> and implemented a few new functions (more coming).
>
> Some say OOP will come before Christmas.
>
>> Christophe’s github repo has what I now call EmuLisp v.2.

URL for EmuLisp v.2. repo?

> Also, this repo is watched by Travis:
> https://travis-ci.org/Grahack/EmuLisp
>
> BTW Jon, I had to remove "use strict"; for now because of NodeJS.
> I have to investigate why the strict mode makes the EMULISP object
> not available to the JS script that launches the tests.
>
>
> chri
>
> --
>
> http://profgra.org/lycee/ (site pro)
> http://delicious.com/profgraorg (liens, favoris)
> https://twitter.com/profgraorg
> http://microalg.info
> --
> UNSUBSCRIBE: mailto:picolisp@software-lab.de?subjectUnsubscribe
>
--
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Re: try picolisp

2014-08-28 Thread Christophe Gragnic
On Thu, Aug 28, 2014 at 9:32 PM, Jon Kleiser  wrote:
>
> Thanks to suggestions from Christophe, I have
> re-structured the code,

And removed some trailing whitespace! (more to come (crossing fingers)).

> corrected some errors,
> and implemented a few new functions (more coming).

Some say OOP will come before Christmas.

> Christophe’s github repo has what I now call EmuLisp v.2.

Also, this repo is watched by Travis:
https://travis-ci.org/Grahack/EmuLisp

BTW Jon, I had to remove "use strict"; for now because of NodeJS.
I have to investigate why the strict mode makes the EMULISP object
not available to the JS script that launches the tests.


chri

-- 

http://profgra.org/lycee/ (site pro)
http://delicious.com/profgraorg (liens, favoris)
https://twitter.com/profgraorg
http://microalg.info
--
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Re: try picolisp

2014-08-28 Thread Jon Kleiser
Hi,

The "Home page" and "Console" of my EmuLisp that Christophe mentions, relates 
to the first version of EmuLisp, which may now be regarded as obsolete. Thanks 
to suggestions from Christophe, I have re-structured the code, corrected some 
errors, and implemented a few new functions (more coming). Christophe’s github 
repo has what I now call EmuLisp v.2. Instead of going with my old console 
design, I have now, at least for my own use, based my new console on 
jq-console. You can find it here:



One feature I plan to port from my old v.1 console is the canvas that lets you 
monitor arbitrary Lisp expressions graphically.

/Jon

On 28. aug. 2014, at 20:22, Christophe Gragnic  
wrote:

> On Thu, Aug 28, 2014 at 7:53 PM, Jakob Eriksson  
> wrote:
>> Is it hard to implement minimalist version of minipicolisp in browser ?
>> Like http://tryclj.com/ ?
> 
> Hi Mike.
> There is EmuLisp, a JS implementation by Jon Kleiser.
> It is not advertised much on the official PicoLisp website.
> Jon wrote it as a pet project to understand the internals of PicoLisp better.
> It is of course much closer to ersatz or minipico than the real picolisp,
> and still far from complete but very usable.
> At least, I use it! I use it in a real project (an embedded language,
> with pedagogical purposes only).
> Jon is very reactive and try his best to answer/implement my suggestions.
> 
> Home page:
> http://folk.uio.no/jkleiser/pico/emuLisp/
> Console:
> http://folk.uio.no/jkleiser/pico/emuLisp/console.html
> Semi-official and semi-main repo:
> https://github.com/grahack/emulisp
> A hint about the saneness of the implementation (how 'quote is implemented):
> https://github.com/Grahack/EmuLisp/blob/master/emulisp_core.js#L931
> The home page of my language (French only):
> http://microalg.info/
> 
>> On August 28, 2014 7:41:12 PM CEST, Mike Pechkin 
>> wrote:
>> 
>> Maybe not with Emscripten.
> 
> I once tried to compile minipico with emscripten. Discussed somewhere here:
> http://comments.gmane.org/gmane.lisp.picolisp.general/4392
> 
> On Thu, Aug 28, 2014 at 7:52 PM, Michel Pelletier
>  wrote:
>> The 64 bit version of picolisp can be ported to any "machine".  There
>> is an existing emulator that generates C code, another emulator that
>> generated Javascript would be cool!
> 
> I once thought about http://asmjs.org/ but as I understand this project,
> it is not what we could call a JS implementation of an asm.
> Deceit.
> 
> 
> chri
> 
> -- 
> 
> http://profgra.org/lycee/ (site pro)
> http://delicious.com/profgraorg (liens, favoris)
> https://twitter.com/profgraorg
> http://microalg.info

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


Re: try picolisp

2014-08-28 Thread Christophe Gragnic
On Thu, Aug 28, 2014 at 7:53 PM, Jakob Eriksson  wrote:
> Is it hard to implement minimalist version of minipicolisp in browser ?
> Like http://tryclj.com/ ?

Hi Mike.
There is EmuLisp, a JS implementation by Jon Kleiser.
It is not advertised much on the official PicoLisp website.
Jon wrote it as a pet project to understand the internals of PicoLisp better.
It is of course much closer to ersatz or minipico than the real picolisp,
and still far from complete but very usable.
At least, I use it! I use it in a real project (an embedded language,
with pedagogical purposes only).
Jon is very reactive and try his best to answer/implement my suggestions.

Home page:
http://folk.uio.no/jkleiser/pico/emuLisp/
Console:
http://folk.uio.no/jkleiser/pico/emuLisp/console.html
Semi-official and semi-main repo:
https://github.com/grahack/emulisp
A hint about the saneness of the implementation (how 'quote is implemented):
https://github.com/Grahack/EmuLisp/blob/master/emulisp_core.js#L931
The home page of my language (French only):
http://microalg.info/

> On August 28, 2014 7:41:12 PM CEST, Mike Pechkin 
> wrote:
>
> Maybe not with Emscripten.

I once tried to compile minipico with emscripten. Discussed somewhere here:
http://comments.gmane.org/gmane.lisp.picolisp.general/4392

On Thu, Aug 28, 2014 at 7:52 PM, Michel Pelletier
 wrote:
> The 64 bit version of picolisp can be ported to any "machine".  There
> is an existing emulator that generates C code, another emulator that
> generated Javascript would be cool!

I once thought about http://asmjs.org/ but as I understand this project,
it is not what we could call a JS implementation of an asm.
Deceit.


chri

-- 

http://profgra.org/lycee/ (site pro)
http://delicious.com/profgraorg (liens, favoris)
https://twitter.com/profgraorg
http://microalg.info
-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Re: try picolisp

2014-08-28 Thread Joe Bogner
Hi Mike,

I would also be interested in minipicolisp running under Emscripten.
In the meantime, have you seen Jon Kleiser's EmuLisp:
http://folk.uio.no/jkleiser/pico/emuLisp/console.html ?



On Thu, Aug 28, 2014 at 1:41 PM, Mike Pechkin  wrote:
> hi,
>
> Is it hard to implement minimalist version of minipicolisp in browser ?
> Like http://tryclj.com/ ?
>
> Mike
>
-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Re: try picolisp

2014-08-28 Thread Michel Pelletier
The 64 bit version of picolisp can be ported to any "machine".  There
is an existing emulator that generates C code, another emulator that
generated Javascript would be cool!

-Michel

On Thu, Aug 28, 2014 at 10:41 AM, Mike Pechkin  wrote:
> hi,
>
> Is it hard to implement minimalist version of minipicolisp in browser ?
> Like http://tryclj.com/ ?
>
> Mike
>
-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Re: try picolisp

2014-08-28 Thread Jakob Eriksson
Maybe not with Emscripten. 

On August 28, 2014 7:41:12 PM CEST, Mike Pechkin  wrote:
>hi,
>
>Is it hard to implement minimalist version of minipicolisp in browser ?
>Like http://tryclj.com/ ?
>
>Mike

-- 
Skickat från min Android-telefon med K-9 E-post. Ursäkta min fåordighet.

try picolisp

2014-08-28 Thread Mike Pechkin
hi,

Is it hard to implement minimalist version of minipicolisp in browser ?
Like http://tryclj.com/ ?

Mike