home
/
code
/
cellular-automata.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Some clarifying comments.
[cellular-automata.git]
/
001
/
bin
/
life
diff --git
a/001/bin/life
b/001/bin/life
index
87edae8
..
993ca12
100755
(executable)
--- a/
001/bin/life
+++ b/
001/bin/life
@@
-4,8
+4,15
@@
Y=`expr \`stty size | awk '{print $1}'\` - 3`
X=`stty size | awk '{print $2}'`
Y=`expr \`stty size | awk '{print $1}'\` - 3`
X=`stty size | awk '{print $2}'`
+NUM_BEAM_PROCESSES=31
+NUM_LIFE_CELLS=`expr $X \* $Y`
+NUM_LIFE_PROCESSES=`expr $NUM_LIFE_CELLS + 4`
+NUM_PROCESSES=`expr $NUM_BEAM_PROCESSES + $NUM_LIFE_PROCESSES`
+
erl \
erl \
+ +P $NUM_PROCESSES \
+ -name life_001@localhost \
-noshell \
-pa ebin \
-life x $X y $Y \
-noshell \
-pa ebin \
-life x $X y $Y \
This page took
0.039002 seconds
and
4
git commands to generate.