Use erlc instead of escript, which make a huge runtime difference.
authorPete Elmore <pete@debu.gs>
Sun, 9 Jan 2011 23:04:10 +0000 (15:04 -0800)
committerPete Elmore <pete@debu.gs>
Sun, 9 Jan 2011 23:04:10 +0000 (15:04 -0800)
Makefile
erlang/p102.erl

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
index f26df1034e8d428cbe1f100b454efecf04e830bc..520e194e188cccaac89ba66250564cbe0f867b50 100644 (file)
@@ -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) ->