Source-to-Source Code Transformation on Rust for High-Level Stream Parallelism
Open Access
- 25 September 2023
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 41-49
Abstract
Utilizing parallel systems to their full potential can be challenging for general-purpose developers. A solution to this problem is to create high-level abstractions using Domain-Specific Languages (DSL). We create a stream-processing DSL for Rust, a growing programming language focusing on performance and safety. To that end, we explore Rust’s macros as a high-level abstraction tool to support an existing DSL language named SPar and perform source-to-source code transformations in the abstract syntax tree. We aim to assess the Rust source-to-source code transformations toolset and its implications. We highlight that Rust macros are powerful tools for performing source-to-source code transformations for abstracting structured stream processing. In addition, execution time and programmability results are comparable to other solutions.Keywords
Funding Information
- Coordenação de Aperfeiçoamento de Pessoal de Nível Superior (0001)
This publication has 14 references indexed in Scilit:
- OpenMP as runtime for providing high-level stream parallelism on multi-coresThe Journal of Supercomputing, 2022
- High-Level Stream and Data Parallelism in C++ for Multi-Cores2021
- High-level and efficient structured stream parallelism for rust on multi-coresJournal of Computer Languages, 2021
- Stream Parallelism Annotations for Multi-Core Frameworks2020
- Towards Profile-Guided Optimization for Safe and Efficient Parallel Stream Processing in Rust2020
- Efficient NAS Parallel Benchmark Kernels with CUDA2020
- Structured Stream Parallelism for Rust2019
- A DSL embedded in Rust2018
- SPar: A DSL for High-Level and Productive Stream ParallelismParallel Processing Letters, 2017
- When and how to develop domain-specific languagesACM Computing Surveys, 2005