arXiv.itsnick.co

an independent field guide to 23 million papers from arXiv & OpenAlex — not affiliated with arXiv.org

Computer Science · Hardware and Architecture

A Hybrid Functional and Object-Oriented Language for a Multi-Core Future

Ronald Veldema, Michæl Philippsen

· it - Information Technology

See on the map

Abstract

Abstract Current (heterogeneous) multi-core environments such as GPU architectures are hard to program with normal imperative and object-oriented (OO) languages because of race-conditions and general side-effects that code may have. We propose that both problems can be solved with a hybrid language that combines both Functional Programming (FP) and OO programming. By auto-parallelization in the FP-core, all loops and non-dependent calls can be executed in parallel. FP is to be used to write computationally intensive code with safe concurrent memory access. OO is to be used for I / O and management related tasks. In this article, we propose a new clean way to integrate the two language cores that even grants some restricted means to read and write arrays and objects from within FP mode. For the proposed new language features we have developed a compiler prototype that transparently parallelizes code to target both Cuda and multi-core machines (without annotations from the programmer) and that obtains good speedups.

More like this