Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What are the plans for concurrency/threads and GC? #1

Open
Alestudying opened this issue May 9, 2020 · 3 comments
Open

What are the plans for concurrency/threads and GC? #1

Alestudying opened this issue May 9, 2020 · 3 comments
Labels
question Further information is requested

Comments

@Alestudying
Copy link

Alestudying commented May 9, 2020

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

@pfusik
Copy link
Collaborator

pfusik commented May 9, 2020

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
Copy link
Collaborator

pfusik commented Sep 18, 2021

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.

@andr1972
Copy link

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

@pfusik pfusik added the question Further information is requested label Aug 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants