IN[59]570 Exercise Session 0
Joachim Tilsted Kristensen
joachkr@ifi.uio.no
University of Oslo, January 26, 2023
What is an emerald node?
- TCP/IP-enabled hardware (host).
- A runtime system.
- Uniquely identified by
host:port
. host
is an IP address or a hostname.port
is a natural number less than2^16
.
How do we run an emerald node?
- Within Docker containers.
- On a PlanetLab (preinstalled).
Getting Started (Docker).
- Install Docker.
- Visit: https://github.com/emerald/in5570v23/ .
- Modify the Makefile to suit your setup.
- Using the Makefile, run the command "
make environment
". - Alternatively run the command "
make fresh
".
Compiling and running programs.
The container file-system is ephemeral (will disappear after you close the container). However, it will mount your current directory as a volume. Your changes in this directory will persist.
The container provides two programs ec
and emx
. The former compiles an
emerald program, the latter runs it.
Examples:
Read the code for the following programs:
hello.m
hello-all.m
Try to run the programs.