Hello.I'm thinking of using parenscript for my dissertation project. However, I'm a lisp newbie and I can't figure out how to compile a file. There is no README on the website or in the tarball.Could someone please please give me a hand?Thanks.
On Thu, Nov 11, 2010 at 12:40 AM, Lucian Branescu lucian.branescu@gmail.com wrote:
Hello. I'm thinking of using parenscript for my dissertation project. However, I'm a lisp newbie and I can't figure out how to compile a file. There is no README on the website or in the tarball. Could someone please please give me a hand?
If you mean to use Parenscript to compile a Lisp file into JavaScript, look at http://common-lisp.net/project/parenscript/reference.html#section-ps-compile....
hth, Alessio
On 10 November 2010 23:59, Alessio Stalla alessiostalla@gmail.com wrote:
On Thu, Nov 11, 2010 at 12:40 AM, Lucian Branescu lucian.branescu@gmail.com wrote:
Hello. I'm thinking of using parenscript for my dissertation project. However, I'm a lisp newbie and I can't figure out how to compile a file. There is no README on the website or in the tarball. Could someone please please give me a hand?
If you mean to use Parenscript to compile a Lisp file into JavaScript, look at http://common-lisp.net/project/parenscript/reference.html#section-ps-compile....
Yes, that is what I meant.
I installed sbcl and then parenscript with asdf. When I (require 'parenscript) and then (ps ....), it says PS undefined. What (else) do I need to import?
< I installed sbcl and then parenscript with asdf. When I (require 'parenscript) and then (ps ....), it says PS undefined. >
PS is defined in the Parenscript package. Does this work?
(ps:ps ...)
In general, A:B means "the symbol B, if any, exported from package A". More conveniently, you can evaluate the following:
(in-package :ps)
... and then your original form (ps ...) should work.
If you're using Slime, the command slime-repl-set-package can also be used to switch packages.
Daniel
On Wed, Nov 10, 2010 at 5:17 PM, Lucian Branescu lucian.branescu@gmail.comwrote:
On 10 November 2010 23:59, Alessio Stalla alessiostalla@gmail.com wrote:
On Thu, Nov 11, 2010 at 12:40 AM, Lucian Branescu lucian.branescu@gmail.com wrote:
Hello. I'm thinking of using parenscript for my dissertation project. However,
I'm
a lisp newbie and I can't figure out how to compile a file. There is no README on the website or in the tarball. Could someone please please give me a hand?
If you mean to use Parenscript to compile a Lisp file into JavaScript, look at
http://common-lisp.net/project/parenscript/reference.html#section-ps-compile... .
Yes, that is what I meant.
I installed sbcl and then parenscript with asdf. When I (require 'parenscript) and then (ps ....), it says PS undefined. What (else) do I need to import?
parenscript-devel mailing list parenscript-devel@common-lisp.net http://common-lisp.net/cgi-bin/mailman/listinfo/parenscript-devel
On 11 November 2010 00:38, Daniel Gackle danielgackle@gmail.com wrote:
< I installed sbcl and then parenscript with asdf. When I (require 'parenscript) and then (ps ....), it says PS undefined. > PS is defined in the Parenscript package. Does this work? (ps:ps ...) In general, A:B means "the symbol B, if any, exported from package A". More conveniently, you can evaluate the following: (in-package :ps) ... and then your original form (ps ...) should work.
Ah, got it. It appears sbcl's asdf-install can't install parenscript globally for some reason. After installing it locally, (ps:ps ...) works fine.
Thanks for the quick cheat sheet :)
On 11 November 2010 00:48, Vladimir Sedach vsedach@gmail.com wrote:
If you want to learn Common Lisp (which is a really good idea if you want to use Parenscript), this might help:
I haven't yet decided whether I'm using parenscript or clojure or even a lisp at all. My goal is generating readable and editable code, and so far a lisp looks like the best choice. It also has to run on Android easily.
But if I do use a lisp, thanks for the reference!
I'm curious, why not just use JavaScript directly?
Vladimir
2010/11/11 Lucian Branescu lucian.branescu@gmail.com:
On 11 November 2010 00:38, Daniel Gackle danielgackle@gmail.com wrote:
< I installed sbcl and then parenscript with asdf. When I (require 'parenscript) and then (ps ....), it says PS undefined. > PS is defined in the Parenscript package. Does this work? (ps:ps ...) In general, A:B means "the symbol B, if any, exported from package A". More conveniently, you can evaluate the following: (in-package :ps) ... and then your original form (ps ...) should work.
Ah, got it. It appears sbcl's asdf-install can't install parenscript globally for some reason. After installing it locally, (ps:ps ...) works fine.
Thanks for the quick cheat sheet :)
On 11 November 2010 00:48, Vladimir Sedach vsedach@gmail.com wrote:
If you want to learn Common Lisp (which is a really good idea if you want to use Parenscript), this might help:
I haven't yet decided whether I'm using parenscript or clojure or even a lisp at all. My goal is generating readable and editable code, and so far a lisp looks like the best choice. It also has to run on Android easily.
But if I do use a lisp, thanks for the reference!
parenscript-devel mailing list parenscript-devel@common-lisp.net http://common-lisp.net/cgi-bin/mailman/listinfo/parenscript-devel
On 11 November 2010 18:50, Vladimir Sedach vsedach@gmail.com wrote:
I'm curious, why not just use JavaScript directly?
Yes, Rhino is one of the available choices. I looked up clojure and parenscript in the hope of having a more expressive mapping between visual blocks and code, but it seems I'll get half way there fiddling with Rhino's AST. The developers of App Creator got to the same conclusion, the compile visual blocks into Kawa, but they don't have to expose Scheme to the user.
And Android developers rarely know lisp of any sort, so it's quite likely that I'll stay with Rhino.
Thanks a lot for all your help, everybody.
If you want to learn Common Lisp (which is a really good idea if you want to use Parenscript), this might help:
Vladimir
2010/11/10 Lucian Branescu lucian.branescu@gmail.com:
Hello. I'm thinking of using parenscript for my dissertation project. However, I'm a lisp newbie and I can't figure out how to compile a file. There is no README on the website or in the tarball. Could someone please please give me a hand? Thanks.
parenscript-devel mailing list parenscript-devel@common-lisp.net http://common-lisp.net/cgi-bin/mailman/listinfo/parenscript-devel
parenscript-devel@common-lisp.net