Does turbowarp (and its compiler) have the potential to support workers? #2634
Answered
by
penta-quark-neutro
milkyestway
asked this question in
Q&A
|
Workers as in multiple threads that run simultaneously instead of concurrently (true multithreading) or would the compiler really hate that? |
Answered by
penta-quark-neutro
Aug 17, 2026
Replies: 3 comments 1 reply
|
probably not |
0 replies
|
Maybe we could make an extension that can start web workers, but I'm not very familiar with that area |
0 replies
|
It is perfectly possible to create workers. |
1 reply
Answer selected by
milkyestway
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It is perfectly possible to create workers.
I have tested them in some cases, and they work perfectly when passed JS via a scriptURL; however, creating them for an extension in a way that utilizes a TurboWarp thread could be very complicated—or even impossible—since they rely on generators.
In any case, an extension dedicated to this is possible, given that it is still just JS code.