-
Erlang the movie
-
history of Erlang
-
why the need for another language
-
thinking functional
-
benefits of knowing functional language for OOP programmers
-
sample OOP program
- rewriting OOP example in Erlang
- Q&A
http://wroclaw.erlangers.org/erlang_tech_night
google + erlang the movie
use --path=../../../../data
for launch from debug
demo program:
- get directory as parameter
- for each file in the directory: 2.1 split into words 2.2 count words
- display count per file
reference output:
C:\Users\cplotnicki\dev\erlang_tech_night\data\1ws4910.txt: 18368
...
C:\Users\cplotnicki\dev\erlang_tech_night\data\nkrnn11.txt: 371870
all words in all files: 4740653
$ cd example/erlang/
$ git checkout <milestone-sha1> -- word_count.erl
$ erl
Erlang R15B01 (erts-5.9.1) [source] [smp:4:4] [async-threads:0] [hipe] [kernel-poll:false]
Eshell V5.9.1 (abort with ^G)
1> c(word_count). % after each milestone
{ok,word_count}
2> word_count:start(). % except #1 and #2
...
acbed19a91dee10c1cea96c3db9f213dc42f1302
empty module example287999f941c405442a0e2fe58bedc4c15ba1c307
list data dirba1ec3912c3afe3b23a98498cc140d4d862703bd
print lines + exceptionb5726365630e4ad9b2f0fcb57b9c382a60ba54cf
proper eof handlingdf9282c164f5a9157ce242e2f8e4a41118be9053
count words for each line51dd3682a0094ce80672624d641931a4ff5878ac
sum6c88cdf951013159e6be24badcd36ef4d3060cb2
run on all files + sum1145054318d0385674603b1093c72c93c1c92070
prepare for processes78a74306b141214eb0c884f3f3b144aeccde18ec
processes!!!!