fut icon indicating copy to clipboard operation
fut copied to clipboard

What are the plans for concurrency/threads and GC?

Open Alestudying opened this issue 4 years ago • 3 comments

Great project! green threads? Lock-free? I'm interested in lowest latency/lock-free and no GC or optional like in nim-lang.

Alestudying avatar May 09 '20 18:05 Alestudying

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.

pfusik avatar May 09 '20 19:05 pfusik

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.

pfusik avatar Sep 18 '21 06:09 pfusik

I suggest concurrency like Pony: actors and message queues. No need mutex, atomic operations (?)

andr1972 avatar Mar 11 '22 00:03 andr1972