Distributed Programming via Safe Closure Passing
Open Access
- 10 February 2016
- journal article
- Published by Open Publishing Association in Electronic Proceedings in Theoretical Computer Science
- Vol. 203, 99-107
Abstract
Programming systems incorporating aspects of functional programming, e.g., higher-order functions, are becoming increasingly popular for large-scale distributed programming. New frameworks such as Apache Spark leverage functional techniques to provide high-level, declarative APIs for in-memory data analytics, often outperforming traditional "big data" frameworks like Hadoop MapReduce. However, widely-used programming models remain rather ad-hoc; aspects such as implementation trade-offs, static typing, and semantics are not yet well-understood. We present a new asynchronous programming model that has at its core several principles facilitating functional processing of distributed data. The emphasis of our model is on simplicity, performance, and expressiveness. The primary means of communication is by passing functions (closures) to distributed, immutable data. To ensure safe and efficient distribution of closures, our model leverages both syntactic and type-based restrictions. We report on a prototype implementation in Scala. Finally, we present preliminary experimental results evaluating the performance impact of a static, type-based optimization of serialization.Comment: In Proceedings PLACES 2015, arXiv:1602.0325Keywords
All Related Versions
This publication has 12 references indexed in Scilit:
- Spores: A Type-Based Foundation for Closures in the Age of Concurrency and DistributionLecture Notes in Computer Science, 2014
- River trail2013
- Instant pickles2013
- Your mouse is a databaseCommunications of the ACM, 2012
- Towards Haskell in the cloud2011
- Google’s MapReduce programming model — RevisitedScience of Computer Programming, 2008
- MapReduceCommunications of the ACM, 2008
- Concurrency oriented programming in termite scheme2006
- Object serialization for marshalling data in a Java interface to MPI1999
- An efficient implementation of Java's remote method invocation1999