jscl
jscl copied to clipboard
A Lisp-to-JavaScript compiler bootstrapped from Common Lisp
It would be nice to have a minified version of jscl.js like jscl.min.js. I tried https://cdn.jsdelivr.net/npm/[email protected]/jscl.min.js and returns always https://cdn.jsdelivr.net/npm/[email protected]/jscl.js content.
``` (defvar *x* nil) (handler-bind ((error (lambda (exn) (throw 'x :caught!)))) (setf *x* (catch 'x (car 'x)))) ``` That should swallow the error caused by `(car 'x)` and assign `:caught!`...
Currently, literal values are mutable. For example, in ```lisp (defun f () (let ((v #(1))) (incf (aref v 0)) v)) ``` `f` will modify the literal vector, which is always...
Look at https://github.com/jscl-project/jscl/pull/343/files#diff-6a0dc4cb26b441b1d83d5185ebbf3dd6R312 for how this can be managed now. It would be good to have a better way.
@davazp Hi, David. I'm raising some budget at the Bountysource account [t-cool](https://www.bountysource.com/teams/tcool), and I'll spend some of the budget on developing JSCL. I asked cxxxr to implement load function on...
``` CL-USER> (defvar *x* 0) *X* CL-USER> (defun foobar () *x*) FOOBAR CL-USER> (defun baz (*x*) (foobar)) BAZ CL-USER> (baz 2944) 0 ``` `baz` in this example should return 2944...
Hi, Just asking, what about some functionalities, I would say, at least e.g. `lineWrapping`, `autoCloseBrackets` when at prompt. It would be of great help. As reference I saw it works...
The testing framework we are using is pretty limited, and the error messages are not that useful. It would be nice to have some improvements in this area.
The RANDOM function, MAKE-RANDOM-STATE, etc are not implemented. I think RANDOM could probably just be a thin wrapper around javascript's Math.random()?
JSCL uses some SBCL specific functions. It looks like it's only a two calls to sb-posix:getenv in toplevel.lisp (lines 266 and 267). If that's all it is then I don't...