toyc: Data-Parallel Arithmetic Evaluation on Vulkan Compute for Expression Compilation

toyc is a compiler for arithmetic expressions that targets Vulkan compute shaders, enabling data-parallel evaluation on the GPU. The compiler implements a full pipeline: a lexer and recursive descent parser produce an AST, which is then flattened and compiled to SPIR-V via a custom Vulkan backend. A CPU fallback backend is also included for comparison. The primary goal is to evaluate whether GPU execution via Vulkan compute offers a practical performance advantage over CPU evaluation for arithmetic expression workloads. Benchmark results and analysis are included. This is a preprint. Source code is available at https://github.com/spy1345a/toyc-repo Benchmark code is available at https://github.com/spy1345a/Toyc-benchmark

Authors

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-11-01
DOI
https://doi.org/10.5281/zenodo.23853005
Primary Topic
Parallel Computing and Optimization Techniques
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
preprint

toyc: Data-Parallel Arithmetic Evaluation on Vulkan Compute for Expression Compilation

Ajesh M B
1 links
Zenodo (CERN European Organization for Nuclear Research)
Parallel Computing and Optimization Techniques
preprint

toyc: Data-Parallel Arithmetic Evaluation on Vulkan Compute for Expression Compilation

Ajesh M B
preprint en

Abstract

toyc is a compiler for arithmetic expressions that targets Vulkan compute shaders, enabling data-parallel evaluation on the GPU. The compiler implements a full pipeline: a lexer and recursive descent parser produce an AST, which is then flattened and compiled to SPIR-V via a custom Vulkan backend. A CPU fallback backend is also included for comparison. The primary goal is to evaluate whether GPU execution via Vulkan compute offers a practical performance advantage over CPU evaluation for arithmetic expression workloads. Benchmark results and analysis are included. This is a preprint. Source code is available at https://github.com/spy1345a/toyc-repo Benchmark code is available at https://github.com/spy1345a/Toyc-benchmark

Zenodo (CERN European Organization for Nuclear Research)
Parallel Computing and Optimization Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon