fut
fut copied to clipboard
What are the plans for concurrency/threads and GC?
Great project! green threads? Lock-free? I'm interested in lowest latency/lock-free and no GC or optional like in nim-lang.
Thanks!
I have no plans for concurrency yet. I don't know a design that could fit all the targets (think JavaScript, Python and OpenCL).
cito
has no own garbage collector. You get what the target language offers. If it's C#, Java, JavaScript, Python, then there is a GC. In C, C++ and Swift, there are stack variables and reference counting for dynamic allocations. In OpenCL there are only stack variables.
Atomic operations seem very portable between the languages that support them. OpenCL does have them. I'm interested in having them in Ć.
Also, mutexes seem like a low-hanging fruit.
I suggest concurrency like Pony: actors and message queues. No need mutex, atomic operations (?)