Lobsters - 02 Dec 2026

Structured SSA

Blocks belong to if and loop instructions rather than to a control flow graph. IR can be built, edited, printed, and verified from other programs.

Shokado does for GPU languages what LLVM does for CPU ones: an IR, a verifier, a linker, an optimizer, code generators, and a VM. It's one C library without dependencies, small enough to vendor, and safe to run on untrusted input.

The GPU language

Bento is the GPU language built on Shokado. Barriers, subgroups, uniformity, and uber shaders are concepts it understands rather than thinly typed intrinsics and macros bolted onto C.

Shokado generates code for SPIR-V, DXIL, AIR, and GLSL with no other compiler in between. Targets

An IR, a verifier, a linker, an optimizer, and code generators, all language agnostic. Bento is a small client on top of all that, much like clang is the C and C++ frontend for LLVM. Tools, IR and bytecode, Library

Modules can be linked at build time or at run time, left incomplete, and mixed with IR from any source.

Linker, optimizer, code generator, disassembler, validator, and stripper, for modules from any frontend.

Inlining, mem2reg, scalar replacement of aggregates, CSE, and rule-driven algebraic simplification. Competitive with spirv-opt and with the highest optimization level of DXC.

One C header. Memory, files, and diagnostics are provided by the host through callbacks.

No source or bytecode can crash the library, hang it, or run it out of memory. An input that proves otherwise is worth up to $500 USD under the bug bounty.

More Lobsters | Headlines

Original: https://shokado.org/