Lisp HUG Maillist Archive

about JSCL

Hi, 

I'm trying to understand the behavior of JSCL.
https://jscl-project.github.io/

Now I can access to the symbol and call a function from Chrome's console.
jscl.CL.EQ.fvalue.call(this, this, 1, 1)

And I can select the input code on REPL.
 $('span.jqconsole-prompt:last-child').text()

But I cannot explain about the details...

Can anyone explain about how JSCL works?

Re: about JSCL

Hello Noguchi,

I see the REPL at the indicated web site, but the code you show is distinctly non-Lisp. I must assume your code means something in JS with respect to this particular app, but I have no idea how you are connecting to the REPL pane and entering JS code. Hence, I can’t see the results you are getting.

But when I try something directly Lisp in the website command line, such as “(+ 1 2 3)” I get to see the expected answer “6” printed on the next line. So from this viewpoint it appears to behave as a normal Lisp REPL.

Can you explain what tool you are using to connect via JS? and show us the results that you are seeing? No doubt you are seeing some Lisp object displayed in someone’s notion of how to display such things in JS-land…

- DM


On Jul 28, 2017, at 2:11 PM, Noguchi Hiroki <padds1st@gmail.com> wrote:

Hi, 

I'm trying to understand the behavior of JSCL.
https://jscl-project.github.io/

Now I can access to the symbol and call a function from Chrome's console.
jscl.CL.EQ.fvalue.call(this, this, 1, 1)

And I can select the input code on REPL.
 $('span.jqconsole-prompt:last-child').text()

But I cannot explain about the details...

Can anyone explain about how JSCL works?

Re: about JSCL

I’ve never heard of this.

It *looks*like a CommonLisp-to-JavaScript compiler written in Common Lisp.  Start at https://github.com/jscl-project/jscl/blob/master/jscl.lisp starting at the “bootstrap” function.

It seems to want you to load “jscl.lisp” into a lisp, then call “(jscl:bootstrap)” which then reads lisp code and converts it to JS (jscl.js) which then runs in jscl.html in a browser.

Most of the code is in .lisp files, so you need to know how to read Common Lisp to understand what is happening….

The given URL appears to run a Lisp REPL in a browser…

I’m not sure…

pt

On Jul 29, 2017, at 12:25 AM, David McClain <dbm@refined-audiometrics.com> wrote:

Hello Noguchi,

I see the REPL at the indicated web site, but the code you show is distinctly non-Lisp. I must assume your code means something in JS with respect to this particular app, but I have no idea how you are connecting to the REPL pane and entering JS code. Hence, I can’t see the results you are getting.

But when I try something directly Lisp in the website command line, such as “(+ 1 2 3)” I get to see the expected answer “6” printed on the next line. So from this viewpoint it appears to behave as a normal Lisp REPL.

Can you explain what tool you are using to connect via JS? and show us the results that you are seeing? No doubt you are seeing some Lisp object displayed in someone’s notion of how to display such things in JS-land…

- DM


On Jul 28, 2017, at 2:11 PM, Noguchi Hiroki <padds1st@gmail.com> wrote:

Hi, 

I'm trying to understand the behavior of JSCL.
https://jscl-project.github.io/

Now I can access to the symbol and call a function from Chrome's console.
jscl.CL.EQ.fvalue.call(this, this, 1, 1)

And I can select the input code on REPL.
 $('span.jqconsole-prompt:last-child').text()

But I cannot explain about the details...

Can anyone explain about how JSCL works?


Updated at: 2020-12-10 08:30 UTC