projects
/
euler
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ceea0df
)
Use erlc instead of escript, which make a huge runtime difference.
author
Pete Elmore
<pete@debu.gs>
Sun, 9 Jan 2011 23:04:10 +0000
(15:04 -0800)
committer
Pete Elmore
<pete@debu.gs>
Sun, 9 Jan 2011 23:04:10 +0000
(15:04 -0800)
Makefile
patch
|
blob
|
history
erlang/p102.erl
patch
|
blob
|
history
diff --git
a/Makefile
b/Makefile
index 9b9d9167e003fcdac88e589c46f9a3668c50296b..a6aa34763583b85242dbc972d833320403cfd4c6 100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-15,4
+15,4
@@
stats:
bin/stats
clean:
- rm -f c/bin/*
erlang
/*.beam
+ rm -f c/bin/*
tmp
/*.beam
diff --git
a/erlang/p102.erl
b/erlang/p102.erl
index f26df1034e8d428cbe1f100b454efecf04e830bc..520e194e188cccaac89ba66250564cbe0f867b50 100644
(file)
--- a/
erlang/p102.erl
+++ b/
erlang/p102.erl
@@
-4,7
+4,7
@@
%-export([main/1]).
-compile(export_all).
-fname() -> "
data/102.txt".
+fname() -> "
../data/102.txt". % The erlang stuff runs from tmp/
collector(Pid) -> collector(Pid, 0).
collector(Pid, N) ->