-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Race condition in reader #490
Comments
The same situation with |
I think requiring a single thread in host is okay in this context. Especially because JS is also single threaded. It's true that it would make easier to exploit async programming in JS but it would add lot of complexity. |
What is your use case for multithreading with compiling JSCL? |
I'm compiling CL code into JS and sending it to the browser to execute. The browser just evaluating everything it got from the websocket via I can send CL code itself and execute it via |
I have released a first web application using this technique (if interesting): https://github.com/hemml/TomoV |
When executing
read
orread-from-string
in multitasking environment, a race condition exists with jscl::labelled-objects, which is a global variable.The following code is thread safe:
I'm using
jscl::ls-read-from-string
when compiling lisp code on the host (with SBCL, for example), because quasiquotation symbols are not standardized yet and I have towrite-to-string
my code and read it withjscl::ls-read-from-string
to get a proper representation forjscl::compile-toplevel
.The text was updated successfully, but these errors were encountered: