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

green threads? #2

Open
compufox opened this issue Feb 7, 2020 · 2 comments
Open

green threads? #2

compufox opened this issue Feb 7, 2020 · 2 comments
Labels
wontfix This will not be worked on

Comments

@compufox
Copy link
Owner

compufox commented Feb 7, 2020

after and after-every spawn system threads to provide functionality.

also websocket-driver also spawns a thread to listen for events

AND FINALLY we have our main thread, thats actually running all the things.


i think it would be neat to be able to just contain everything in as few threads as possible, while still retaining our concurrency.

the green-threads system looks promising, but also it seems that they arent asynchronous, and just block. which kinda defeats the purpose of them lol

@compufox
Copy link
Owner Author

okay so after some research and experimentation, i think green-threads could MAYBE work, but it would require a lot of reworking the after and after-every macros and im not sure it would really be worth it.

i'll leave this issue open for a reference, but im not going to implement anything

@compufox compufox added the wontfix This will not be worked on label Feb 19, 2020
@compufox
Copy link
Owner Author

compufox commented Aug 16, 2020

after another accidental bit of research i've found cl-flow which seems to properly implement concurrency without spawning new system threads.

limited testing seems to prove that it could work as a viable alternative to using bordeaux threads


wait. no. i dont think those are green threads, it seems as though underneath it all its just using bt:make-thread

dang.

@compufox compufox added wontfix This will not be worked on and removed wontfix This will not be worked on labels Aug 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

1 participant