stevehalliwell / ulox

A bytecode interpreted scripting language for games in Unity.
MIT License
24 stars 0 forks source link

Determine the value of Concurrency support in the language #107

Open stevehalliwell opened 2 years ago

stevehalliwell commented 2 years ago

While it does have cooperative elements via yeilding sub vms, the language has no concept of threads or parallelism.

How might such a thing be possible or beneficial in ulox?

stevehalliwell commented 3 days ago

Being able to do something akin to c style, here is a func, go run it on another thread would be useful. If we couple this with, here is the working set, I have made it, but promise not to use it until you say you are done, we get something that seems very workable.

stevehalliwell commented 3 days ago

At the same time, one of the most time expensive things we have encountered in usage is a verlet sim, which should be embarrassingly parallel, moving all of it to another thread doesn't actually help that much, we want to go wide on the problem immediately.