Bend 2 is taking a different approach to parallel programming by letting developers write high-level code while the runtime handles much of the work of distributing it across CPU cores or a GPU.
Parallel programming usually means dealing with threads, synchronization and, for GPU computing, dedicated frameworks such as CUDA or Metal.
Bend 2 tries to hide much of that complexity behind its programming model. The project describes Bend as a language that can run on CPUs and GPUs without requiring developers to write threads, locks or separate GPU kernels.
How Bend 2 handles parallelism
Bend uses a fork-and-join style model.
Developers can split independent work into separate calls:
a b = pow2(p) pow2(p)
The runtime can then distribute those independent calls across available CPU cores.
The important part is that developers are not manually creating threads or deciding which core should execute each task. Bend's runtime handles that scheduling.
The same code can target a GPU
Bend also provides a ! notation for GPU execution.
For example:
result = pow2!(20n)
The ! tells Bend to run that call on the GPU, with parallel calls inside it also becoming part of the GPU execution. The current implementation supports C, Metal, CUDA and JavaScript targets.
That gives developers a model that looks more like:
Write Bend code
↓
Parallel CPU execution
↓
GPU execution when needed
instead of maintaining completely separate CPU and GPU implementations.
Why this is different from traditional GPU programming
With CUDA or Metal, developers generally have to think explicitly about GPU-specific code and execution.
Bend moves that complexity toward the compiler and runtime.
A developer mainly describes the computation and its independent structure, while Bend decides how that work is executed across the available hardware.
This is particularly interesting for workloads that naturally break into many independent operations.
But GPU does not automatically mean faster
Bend's current model has an important limitation: parallel work needs to be reasonably balanced.
The project's guide says its scheduler currently uses a binary fork-join approach, so if one branch takes much longer than another, the available hardware may not be used efficiently.
The project also documents current limitations including one GPU per program, no multi-machine execution and incomplete tooling. Bend itself describes the language as young and expects bugs and missing features.
Why developers are watching Bend 2
The interesting idea behind Bend 2 is not simply that it supports GPUs.
It is trying to make parallel programming look more like normal high-level programming.
Instead of asking:
"How do I create and manage these threads?"
or:
"How do I write a CUDA kernel for this?"
the developer can focus on:
"Which parts of this program can run independently?"
Bend then provides the machinery to execute that work across CPU cores or a GPU.
The project also combines this parallel execution model with its proof-oriented features, making Bend 2 an attempt to tackle two major problems at once: making AI-generated code easier to verify and making high-level code easier to run in parallel.
The bigger idea
AI coding is making software generation faster, but the next challenge is increasingly about what happens after the code is generated.
Bend 2 is exploring a different direction where a developer can describe the program at a high level, let AI help write it, use formal checks for important guarantees, and still target massively parallel hardware without writing low-level GPU code.
The result is an unusual combination: a Python-shaped language, mathematical verification and CPU/GPU parallel execution in the same programming model.



