jscl
jscl copied to clipboard
A Lisp-to-JavaScript compiler bootstrapped from Common Lisp
Trick
```lisp Welcome to JSCL (version 0.8.2 built on 10 September 2022) JSCL is a Common Lisp implementation on Javascript. For more information, visit the project page at [GitHub](https://github.com/jscl-project/jscl). CL-USER> (defun...
PRINT-OBJECT is not used by WRITE family of functions. Example: ``` CL-USER> (defclass person () ... (firstname lastname)) # CL-USER> (make-instance 'person) # CL-USER> (defmethod print-object ((person person) stream) ......
### SBCL ```lisp CL-USER> (defun frob-lambda (&rest properties &key name (initargs ()) (initform nil) (initfunction nil) (readers ()) (writers ()) (allocation :instance) &allow-other-keys) (print properties) (print (getf properties :kik))) (frob-lambda...
Can we have the lambda-list of functions as part of their descriptions.? It is useful to have them for tools also. Description of function after this: ``` JSCL/ILT> (describe #'format)...
It would help if this got fixed, as I'm dealing with types. ``` CL-USER> (defclass person () ()) # CL-USER> (make-instance 'person) ... # CL-USER> (typep * 'cons) T ```
I'm working on an application that uses JSCL, and I'm using COMPILE-APPLICATION after JSCL:BOOTSTRAP, to compile it. It compiles and works fine, but there's a problem, macros are not exposed...
Hi, is there a way for me to debug things when something goes wrong ? Like, get a backtrace or something. I'm trying this at JSCL repl: ```lisp CL-USER> (defun...
When executing `read` or `read-from-string` in multitasking environment, a race condition exists with jscl::*labelled-objects*, which is a global variable. The following code is thread safe: ``` (let ((jscl::*labelled-objects* nil)) ;;...
``` CL-USER> (defun xxx (a &key b &allow-other-keys) (format t "~A ~A~%" a b)) XXX CL-USER> (xxx 1) 1 NIL NIL CL-USER> (xxx 1 :b 2) 1 2 NIL CL-USER>...
``` CL-USER> (type-of 1.2) FLOAT CL-USER> (type-of 1.2e10) INTEGER CL-USER> (type-of 1.2d10) INTEGER ```