Languages & Libraries Similar to GLSL’s “multi-main” Execution
This list focuses on environments where an entry function is executed in parallel across many elements (pixels, vertices, work-items, indices).
Shader Languages — Parallel execution on GPU
HLSL (High-Level Shading Language)
Developed by Microsoft for Direct3D. Like GLSL, per-pixel/vertex (and compute) entry points are run in parallel on the GPU.
- Microsoft docs: Writing HLSL Shaders
 - Overview: High-Level Shader Language (Wikipedia)
 
Python-based DSLs — Parallel-first approach
Taichi
      An embedded DSL for Python; functions marked with @ti.kernel are JIT-compiled and executed in parallel on CPU/GPU backends.
    
- Official site: taichi-lang.org
 - GitHub: taichi-dev/taichi
 
Quick Reference
| Category | Name | Parallel-execution gist | 
|---|---|---|
| Shader language | HLSL | Per-fragment/vertex/compute entry points run concurrently across many GPU threads. | 
| Python DSL | Taichi | Index-wise kernels mapped to massive parallelism on GPU/CPU via JIT compilation. | 
Comments
Post a Comment