https://github.com/yegor256/damsi
Dataflow Machine Simulator
https://github.com/yegor256/damsi
dataflow-machine dataflow-programming ruby
Last synced: 12 months ago
JSON representation
Dataflow Machine Simulator
- Host: GitHub
- URL: https://github.com/yegor256/damsi
- Owner: yegor256
- License: mit
- Created: 2023-07-27T03:45:40.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-10-15T12:40:01.000Z (over 1 year ago)
- Last Synced: 2024-10-19T09:07:22.816Z (over 1 year ago)
- Topics: dataflow-machine, dataflow-programming, ruby
- Language: Ruby
- Homepage:
- Size: 122 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
[](http://www.rultor.com/p/yegor256/damsi)
[](https://www.jetbrains.com/ruby/)
[](https://github.com/yegor256/damsi/actions/workflows/rake.yml)
[](http://www.0pdd.com/p?name=yegor256/damsi)
[](https://hitsofcode.com/view/github/yegor256/damsi)
[](https://github.com/yegor256/damsi/blob/master/LICENSE.txt)
It's a simulator of a dataflow machine.
First, you define a dataflow graph and save it to `test.dfg`:
```
recv :start do
send :sum, :a, 10
send :sum, :b, 15
end
recv :sum do |a, b|
send :mul, :x, (a+b)
end
recv :mul do |x|
send :stop, :x, x
end
```
This is a Ruby dialect.