Replies: 1 comment
-
I'm afraid it's too early to say. Work on Carbon-native concurrency is deferred until at least the 0.2 milestone. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Proposal: Hyper Functions for Parallel Execution in Carbon
Introduction
Hey there! First of all, thanks for developing Carbon it's an exciting language with great potential. I have an idea to improve performance in specific code sections by enabling parallel execution with additional threads.
Presenting: Hyper Functions (Not from Math)
What Are Hyper Functions?
Hyper Functions provide a way to boost efficiency in small, computationally expensive code sections by utilizing additional threads dynamically.
When you mark a block with
hyper
, the compiler will allocate more threads to parallelize execution where possible. This can be particularly useful for optimizing bottlenecks, such as sorting, numerical operations, or other performance-sensitive tasks.Why Hyper Functions?
hyper
lets developers optimize just the most critical sections.I’d love to hear your thoughts on this idea and whether it could fit within Carbon’s concurrency model!
Beta Was this translation helpful? Give feedback.
All reactions