jscl icon indicating copy to clipboard operation
jscl copied to clipboard

Create a simple website

Open davazp opened this issue 12 years ago • 9 comments

It would be nice to have a simple website with links to the online REPL, instructions to get the project and so on. If you feel creative today, please give it a try!

davazp avatar Jun 18 '13 03:06 davazp

Maybe use github's wiki?

kidd avatar Jun 18 '13 08:06 kidd

Using github pages could also work.

orodley avatar Jun 18 '13 10:06 orodley

We can use the wiki to the instructions but I want still a little website. Name of the project, description, the "Fork me in github!", and a link to the online REPL would be enough.

@orodley Effectively, the online REPL is also in github pages. We would create a index.html in the existing gh-pages branch.

davazp avatar Jun 18 '13 13:06 davazp

And about site: I'm trying to use jscl on my homepage but compiled interpreter is oriented for work in REPL-mode. Maybe some function more friendly than eval should be added?

rayslava avatar Jun 18 '13 13:06 rayslava

@rayslava, I think our best bet would be include your code in the bootstrap, something similar to what we do with the tests. So it is pre-compiled too.

We could provide support to do it easily, like (xcompile <your application>). Indeed, I hope we can get a kind of tree-shaker with the new compiler too.

davazp avatar Jun 18 '13 18:06 davazp

Depending on the use case, I'd additionally be in favour of using some kind of handler for script blocks with type "text/x-common-lisp" instead of "text/javascript" like in this proof of concept. The meaning of that is quite clear for users and it is actually pretty straightforward to implement.

Ferada avatar Jun 18 '13 18:06 Ferada

@Ferada oh! This is definitely solution I was looking for :)

rayslava avatar Jun 18 '13 18:06 rayslava

Hm. lisp.evalString disappeared. How can I use jscl.js without REPL now?

rayslava avatar Sep 03 '14 06:09 rayslava

@rayslava, It disappeared because the REPL was rewritten in Lisp.

If you want to call jscl from Javascript, we would need to export a evalString equivalent function using FFI. As jscl names are unpredictable from JS.

If you want to use jscl with Lisp but no REPL, you can include your code to be compiled with JSCL. It requires some juggling though.

I have created a couple of tickets #163 and #164 to cover these issues. Please, let us discuss it there before implementing it.

davazp avatar Sep 03 '14 14:09 davazp