-
It seems that after I found an issue talked about this: #443 The solution in that issue does not suite me, since it bundled everything (include jscl itself?) |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 4 replies
-
I found a way to expose Lisp function to JS: (setf #j:hello #'hello) I don't know if this is the right way to do it (to expose Lisp function to JS), and this does not solve my problem. |
Beta Was this translation helpful? Give feedback.
-
@VitoVan right now there are two:
I'd like to have a third option where your application compiles into a |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
I found something like this: > (in-package :jscl)
> (let ((*environment* (make-lexenv)))
(compile-application '("main.lisp") "main.js")) from here: #427 But I can't use it with Quicklisp, like: main.lisp (eval-when (:compile-toplevel)
(ql:quickload 'str))
(defun hello (name)
(str:concat "Hello, " name)) It will compile, but will throw exception in the browser:
Which is totally understandable. And I am still try to make it work, any help will be very appreciated. |
Beta Was this translation helpful? Give feedback.
@VitoVan right now there are two:
I'd like to have a third option where your application compiles into a
your-app.js
that is supposed to be loaded on top of the distributedjscl.js
. But it is not very ready yet.