arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.13040cs.DCcs.ARcs.PL
收藏

无需CPU的lambda演算并行执行

CPU-less parallel execution of lambda calculus in digital logic

School of Engineering and Physical Science, University of Lincoln(林肯大学工程与物理科学学院)

Harry Fitchett, Charles Fox

AI总结:

本研究提出了一种无需CPU的函数式计算模型,通过将lambda演算编译为数字逻辑,实现并行执行,展示了成功执行lambda表达式的实现。

摘要:

尽管晶体管密度仍在增加,但时钟速度却不再提升,这促使人们寻找新的并行架构。一种方法是完全放弃CPU的概念以及串行命令式编程,转而并行指定和执行任务,将编程语言编译为数据流数字逻辑。众所周知,纯函数式语言本质上是并行的,因为Church-Rosser定理,且已有许多函数式语言的CPU基于并行编译器。然而,这些仍然依赖于传统CPU及其冯诺依曼瓶颈。另一种方法是将函数式语言直接编译为数字逻辑,以最大限度地利用可用的并行性。由于现代完整函数式语言特性众多,难以直接使用,因此我们使用lambda演算作为源语言,编译为数字逻辑,演示了一个概念验证系统。我们展示了如何将函数式硬件定制到一个简化的函数式语言,为新的无CPU函数式计算模型奠定基础。在算法层面,我们使用基于树的表示方法,数据本地化在节点内,通信数据在节点之间传递。这通过物理数字逻辑块对应于节点,并通过总线实现消息传递来实现。节点类型和行为对应于lambda语法形式,beta减少在并行中执行,允许分支独立地同时进行转换。作为这种方法的证据,我们展示了实现及其仿真结果,展示了lambda表达式的成功执行。这表明这种方法可以扩展到更大的函数式语言。成功的lambda表达式测试套件执行表明,这种方法可以扩展到更大的函数式语言。

英文摘要:

While transistor density is still increasing, clock speeds are not, motivating the search for new parallel architectures. One approach is to completely abandon the concept of CPU -- and thus serial imperative programming -- and instead to specify and execute tasks in parallel, compiling from programming languages to data flow digital logic. It is well-known that pure functional languages are inherently parallel, due to the Church-Rosser theorem, and CPU-based parallel compilers exist for many functional languages. However, these still rely on conventional CPUs and their von Neumann bottlenecks. An alternative is to compile functional languages directly into digital logic to maximize available parallelism. It is difficult to work with complete modern functional languages due to their many features, so we demonstrate a proof-of-concept system using lambda calculus as the source language and compiling to digital logic. We show how functional hardware can be tailored to a simplistic functional language, forming the ground for a new model of CPU-less functional computation. At the algorithmic level, we use a tree-based representation, with data localized within nodes and communicated data passed between them. This is implemented by physical digital logic blocks corresponding to nodes, and buses enabling message passing. Node types and behaviors correspond to lambda grammar forms, and beta-reductions are performed in parallel allowing branches independent from one another to perform transformations simultaneously. As evidence for this approach, we present an implementation, along with simulation results, showcasing successful execution of lambda expressions. This suggests that the approach could be scaled to larger functional languages. Successful execution of a test suite of lambda expressions suggests that the approach could be scaled to larger functional languages.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑