Parallel CM problem?
Geoffrey Alan Washburn <[email protected]> Thu, 01 Feb 2007 20:51:11 -0500
| Newsgroups | gmane.comp.lang.sml.smlnj |
|---|---|
| Message-ID | <[email protected]> |
I wrote the following little "build" program based upon my reading of
the Compilation Manager manual
(*************************************************)
(* Attach CM slave processes on the local machine *)
val smlBin = "..."
fun startServer sname =
CM.Server.start { name = sname,
pathtrans = NONE,
pref = 0,
cmd = (smlBin, ["@CMslave"]) }
val s1 = startServer "Server 1"
val s2 = startServer "Server 2"
val s3 = startServer "Server 3"
val s4 = startServer "Server 4"
fun build () = CM.make "sources.cm"
(*************************************************)
I then run this via "build.sml" and go on using "build()". The messages
that are printed seem to indeed indicate that Servers 1 through 4 are
apparently compiling my code, but the changes that I expect do not seem
to be visible from the SML/NJ top-level loop.
- CM.make "sources.cm";
[scanning sources.cm]
[scanning (sources.cm):common/sources.cm]
[parsing (sources.cm):source/inference-patexp.sml]
[scanning (sources.cm):ml-lpt/lib/ml-lpt-lib.cm]
[parsing (sources.cm):informl.sml]
[(Server 3): compiling sources.cm:source/inference-patexp.sml]
source/inference-patexp.sml:674.14-682.3 Warning: match nonexhaustive
((FunBinder (_,tvks,ps,SOME <pat>,e,polyrec),(_,ft)),idts) => ...
[receiving (sources.cm):source/inference-patexp.sml]
[code: 154473, data: 2073, env: 25312 bytes]
[(Server 3): compiling sources.cm:informl.sml]
[receiving (sources.cm):informl.sml]
[code: 7299, data: 315, env: 52 bytes]
[New bindings added.]
val it = true : bool
- (* The structure InforML at this point does not reflect the
changes I have made in informl.sml *)
As far as I understand what is said in the manual, after I run the above
code, CM.make should behave as it normally does only with parallel
compilation. Any ideas on what I'm missing? I'm using SML/NJ 110.61.
Thanks!
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642