3 ms·
In the case of CheerpJ the virtual machine itself is pure C++ compiled to WASM, but the JIT-ted code and the objects are pure JS. Garbage collection is natively
by apignotti 3y ago
In the case of CheerpJ the virtual machine itself is pure C++ compiled to WASM, but the JIT-ted code and the objects are pure JS. Garbage collection is natively handled by the browser.
As WASM GC stabilizes we will consider supporting it as well.
- cmrdporcupine 3y agoAh, this is an interesting approach. Does JITing over to JS introduce problems with concurrency support though, given the lack of threads in the JS runtime?
- vmfunction 3y agoJS does have thread. Worker on the client side: https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers... Server-side/nodejs: https://nodejs.org/api/worker_threads.html#worker_threads_worker_threads https://nodejs.org/api/worker_threads.html#worker_threads_wo...