A language becomes easier to reason about when its boundary is visible.
CSL describes a kernel's work
In console-gpu v10, CSL is the layer for describing compute kernels. A source file can name a kernel, declare its inputs and output buffers, and express the calculation in a compact form. The compiler then parses the source, resolves the language-level names, and emits OpenCL C. This division lets the author focus on the computation while keeping the generated kernel inspectable.
CSL's coordinates show how the abstraction meets the dispatch. In a two-dimensional kernel, names such as i and j refer to global work-item positions, and the compiler can expose normalized coordinates such as fu and fv when that mode is enabled. The sample below maps a normalized horizontal coordinate to a simple threshold. It is a small example, but it makes the relationship between a buffer, a work item, and an emitted expression easy to see.
The compiler interface also returns structured results: successful source and kernel metadata, along with warnings, or an error object. That is a practical shape for a build tool because the caller can report diagnostics without scraping console output. It does not mean that every possible OpenCL host allocation or device condition has been proven correct; compilation of source and correct execution against a particular buffer remain separate checks.
kernel heatmap (cutoff: float) -> (out: rw float4[width, height])
dark := (float4) 0f
light := (float4) 1f
out[i * get_global_size(1) + j] = fu < cutoff ? dark : light
RSL adds rendering policy above the compute layer
RSL is the rendering-oriented layer. It describes a kernel in the context of rendering output and can lower that declaration into CSL definitions. CSL still owns the general expression language and OpenCL emission. That distinction keeps a rendering convention from becoming a second, competing implementation of all the lower-level syntax.
In the current v10 source, the rendering convention is intentionally modest: a pixel result can be written through a pipe to the implicit output. A buffer declaration such as ro communicates read-only intent at the language boundary. The compiler resolves the RSL structure, lowers it to CSL, and uses the CSL compiler for the final OpenCL source. In practice, RSL's value is the domain vocabulary and the reduction in repetitive scaffolding around a render kernel.
The layers also create a useful debugging trail. If the final output is wrong, one can inspect the RSL program, the lowered CSL representation, and the generated OpenCL. Each stage has a narrower question to answer. This is a better fit for a small home-grown toolchain than hiding all the transformations behind an opaque compiler invocation.
kernel gradient
fu |> out
MLL expresses a model; it does not replace its runtime
I found an important version boundary while tracing the âMLâ part of the language family. The v10 inventory calls MLL the Model Layer Language, but the concrete MLL guide and implementation I could inspect are in console-gpu v8, where the documentation calls it Machine Learning Language. I have not found a v10 MLL implementation alongside its CSL and RSL sources. This article therefore describes the actual MLL code in v8 rather than presenting it as a finished v10 compiler.
That implementation accepts a model built from layer declarations and emits a fixed family of forward and backward kernels plus parameter metadata. Its registry covers a small set of useful operations such as linear layers, ReLU, GELU, softmax, and cross entropy. Backward behavior comes from registered kernel mappings. This is a deliberate, understandable first step, not general symbolic differentiation of arbitrary user-defined operations.
The generated kernels still need a host program to allocate buffers, choose dispatch dimensions, move data, and orchestrate training. The DSL makes the model structure declarative and generates repetitive GPU work; it does not silently take over the complete learning process. That separation is a strength because it gives the author a clear place to inspect the model, generated kernels, and runtime decisions.
TSL sits nearby in the v8 documentation as a tensor-oriented language for indexing, loops, and reductions. It shows the same design instinct from another direction: describe a particular class of work with vocabulary suited to it, then lower toward explicit kernels. Before extending the v10 article's claims, I would first port the MLL and TSL implementations and update the version inventory. Keeping that boundary honest makes the project more compelling, not less: the reader can see which pieces already run and which are the next layer to bring across.
model two-layer
input features: 784
linear hidden: 128
relu
linear logits: 10
softmax
