Week 14
Last Class
Parallel Composition in Golang (one last thing to show you!)
implementing Legoland in golang presents a challenge: no PAR!
demo without PAR
demo with a PAR
and some lambdas…
PAR is blocking! (I forgot to show you this! and what happens…)
demo of sort pump with PAR and Replicated PAR
Wrap-up
check-in with the syllabus and how we did
other models/implementations to explore on your own
shared memory: STM
Software Transactional Memory
distributed computing:
MapReduce
message passing:
Actor model
message passing: MPI
Message Passing Interface
and many others!
Final Assignment
Due: today, or by end of study period
Tue, May 12, 11:59pm (latest I'm allowed to accept any coursework)
Logistics
submit electronically via submit377 script:
$ submit377 final my-final
email Marc to confirm your submission
The S'mores Problem
background clip from The Sandlot (S'mores scene):
https://youtu.be/XlddDZkkxCc
implement using Ruby/Rinda where processes coordinate using tuples as semaphores to make S'mores
The Water Molecule Problem
chem background: Water molecule made up of two hydrogen atoms and one oxygen atom
represent atoms as Go processes that must coordinate to form a water molecule (also a Go process)
Any last questions?
ECS
Last 10–15 minutes of class
End of Course Survey