Feb
21
2010
Already quite a while ago, I was involved in writing a workshop paper about an actor model for virtual machines. Actually, the main idea was to find a concurrency model for a VM which supports multi-dimensional separation of concerns. However, AOP is not that interesting for me at the moment, so I am focussing on the concurrency, especially the actor-based VM model.
After one year, I am back looking at that paper, and it still looks like a great model. Think, I will incorporate it into my manycore VM now
Abstract
In this position paper we propose to extend an existing delegation-based machine model with concurrency primitives. The original machine model which is built on the concepts of objects, messages, and delegation, provides support for languages enabling multi-dimensional separation of concerns (MDSOC). We propose to extend this model with an actor-based concurrency model, allowing for both true parallelism as well as lightweight concurrency primitives such as coroutines. In order to demonstrate its expressiveness, we informally describe how three high-level languages supporting different concurrency models can be mapped onto our extended machine model. We also provide an outlook on the extended model’s potential to support concurrency-related MDSOC features.
- Towards an Actor-based Concurrent Machine Model, Hans Schippers, Tom Van Cutsem, Stefan Marr, Michael Haupt, Robert Hirschfeld, Proceedings of the fourth workshop on the Implementation, Compilation, Optimization of Object-Oriented Languages, Programs and Systems (ICOOOLPS), New York, NY, USA, ACM (2009), p. 4–9.
- Paper: PDF
©ACM, 2009. This is the author’s version of the work. It is posted here by permission of ACM for your personal use. Not for redistribution. The definitive version was published in ICOOOLPS’09 July 6, 2009, Genova, Italy. http://doi.acm.org/10.1145/1565824.1565825
- BibTex: BibSonomy
2 comments | tags: Actors, concurrency, Manycore, multicore, paper, Research, Smalltalk, Virtual Machines, VMs, workshop
Sep
5
2009
Along the way to measure the performance of a Smalltalk implementation for commodity multi-core systems, I tried to use Pharo as a more convenient development platform. Well, and I failed in the first attempt…
To remind myself and document some of the necessary steps in this environment, I wrote up the following tutorial.
Command-line Scripts with a Headless Pharo
For some tasks like benchmarking and automated testing, an integration
with other tools comes in handy.
For such use cases, Pharo can be used headless, i.e., without its
graphical
user interface.
This brief tutorial will demonstrate how to use the Debian Language
Shootout
benchmarks with a fresh Pharo image.
Step 1: Setup Pharo and a Fresh Image
- download a Pharo image, the sources file, and a VM from the
download page
- extract all archives in the same folder
- start Pharo, from the commandline, on a MacOSX it should look
like this:
"Squeak 4.2.1beta1U.app/Contents/MacOS/Squeak VM Opt" \
pharo1.0-10418-BETAdev09.08.3.image
Step 2: Load OSProcess
For output on the shell, we need an extra package from the SqueakSource
repository.
It can be loaded by simply executing the following code in a workspace
window:
ScriptLoader loadLatestPackage: 'OSProcess' from:
'http://www.squeaksource.com/OSProcess'
To execute this code snippet, select it and press cmd+d or use the “do
it”
item in the context menu.
Step 3: Load Common Benchmark Code
Now we can load the common parts of all shootout benchmarks into our
image.
- On way to do this is to grab the code shown here
and save it to a file called common.st.
- Open the file browser from the Menu -> Tools -> File Browser.
- Select
common.st and press filein to load the code.
Now you can close all windows in your image and save and quit it.
Step 4: Run a Benchmark
no comments | tags: Benchmarks, Command-line, How to, Language Shootout, Pharo, Smalltalk, Squeak, Tutorial