Managed Virtual Threads #6214
jdgriffith
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is a feature ask for possibly pretty far in the future.
Virtual threads in Java 21 and goroutines in Go offer an easy, abstracted way for developers to use threads under the hood without the manual management of OS threads. My understanding of virtual threads is it is a way to offload a task or work with concurrency built in and the developer does not have to consider the implementation of OS threads, such as the number of threads, which thread to add the work to, what thread pool implementation to use, and so on.
This is a feature which could be coded in Zig or Typescript, I believe. It could possibly even start as a third-party library but then later baked into the std library or runtime.
IMO This is one of those features which would give Bun a big distinctive edge.
Beta Was this translation helpful? Give feedback.
All reactions