Skip to content

Trivial (and very incomplete) implementation of the Linda Coordination Language

Notifications You must be signed in to change notification settings

owulveryck/go-linda

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This is a trivial and incomplete implementation of the linda language.

The purpose is to implement the dinner of the philosopher as described in page 451 of the document Linda in Context from Nicholas Carriero and David Gelernter.

Running the example

go get -v github.com/owulveryck/go-linda

cd $GOPATH/src/github.com/owulveryck/go-linda/example/dinner && go run *.go

Philosopher 1 is born
[1] is thinking
Philosopher 0 is born
[0] is thinking
Philosopher 3 is born
[3] is thinking
Philosopher 2 is born
[2] is thinking
Philosopher 4 is born
[4] is thinking
[2] has finished thinking
[2] is hungry
[2] is eating
[1] has finished thinking
[1] is hungry
[1] is eating
[4] has finished thinking
[4] is hungry
[4] is eating
...

Caution

This project is not production ready at all and has not been tested. The API may change at each commit.

About

Trivial (and very incomplete) implementation of the Linda Coordination Language

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages