Sun Microsystems Laboratories Experimental Stuff [Fortress-interest] trouble reading preparsed library AST (cygwin install worked... sort of)

[Fortress-interest] trouble reading preparsed library AST (cygwin install worked... sort of)

Eric Lavigne lavigne.eric@gmail.com
Wed, 17 Jan 2007 10:13:09 -0500


Dear Sukyoung,

Your revision 75 fixes the problem. The following transcript shows how
Fortress works on Cygwin after your fix. There is no longer an error
message, and the interpreter can run more than three times faster by
using the JST file from a previous run.

Thank you,
Eric

Eric@anakin ~/fortress/ProjectFortress
$ ./fortress hello.fss
Parsing hello.fss with the Rats! parser: 235 milliseconds
Missing or stale preparsed AST, rebuilding from source
Parsed C:\cygwin\home\Eric\fortress\ProjectFortress\FortressLibrary.fss:
1079 milliseconds
Hello, World!
finish runProgram
1843 milliseconds

Eric@anakin ~/fortress/ProjectFortress
$ ./fortress hello.fss
Parsing hello.fss with the Rats! parser: 204 milliseconds
Read C:\cygwin\home\Eric\fortress\ProjectFortress\FortressLibrary.jst:
266 milliseconds
Hello, World!
finish runProgram
562 milliseconds

On 1/17/07, Sukyoung Ryu <Sukyoung.Ryu@sun.com> wrote:
> Hi Eric,
>
> Could you download the revision 75 from the repository and try it
> again?  Thank you very much for your bug report!
> --
> Sukyoung
>
> On Jan 15, 2007, at 5:48 PM, Eric Lavigne wrote:
>
> > Side note: I finished the installation on Cygwin with Mark Breuer's
> > help. Some colons needed to be changed to colons, both in ./ant and
> > ./fortress.
> >
> >
> > After compiling fortress on Cygwin, I tried running the helloworld
> > script:
> >
> > $ ./fortress hello.fss
> > Parsing hello.fss with the Rats! parser: 203 milliseconds
> > Missing or stale preparsed AST, rebuilding from source
> > Parsed C:\cygwin\home\Eric\ProjectFortress\FortressLibrary.fss: 562
> > milliseconds
> >
> > Hello, World!
> > finish runProgram
> > 938 milliseconds
> >
> > The result is different if I run the same script again (although I can
> > get back to the original behavior by deleting FortressLibrary.jst):
> >
> > $ ./fortress hello.fss
> > Parsing hello.fss with the Rats! parser: 203 milliseconds
> > Parse of C:\cygwin\home\Eric\ProjectFortress\FortressLibrary.jst ended
> > EARLY at line = 1,  column = 18
> > Trouble reading preparsed library AST.
> > java.io.IOException: Near line 1 and column 17 got Backslash escape
> > c(hex 63)
> >        at com.sun.fortress.interpreter.reader.Lex.unexpected
> > (Lex.java:295)
> >        at com.sun.fortress.interpreter.reader.Lex.readQuoted
> > (Lex.java:261)
> >        at com.sun.fortress.interpreter.reader.Lex.name(Lex.java:210)
> >        at com.sun.fortress.interpreter.nodes.Unprinter.readSpan
> > (Unprinter.java:121)
> >        at com.sun.fortress.interpreter.nodes.Unprinter.readNode
> > (Unprinter.java:228)
> >        at com.sun.fortress.interpreter.drivers.Driver.readJavaAst
> > (Driver.java:85)
> >        at com.sun.fortress.interpreter.drivers.Driver.readJavaAst
> > (Driver.java:69)
> >        at com.sun.fortress.interpreter.drivers.Libraries.link
> > (Libraries.java:69)
> >        at com.sun.fortress.interpreter.drivers.Driver.evalComponent
> > (Driver.java:214)
> >        at com.sun.fortress.interpreter.drivers.Driver.runProgramTask
> > (Driver.java:227)
> >        at com.sun.fortress.interpreter.drivers.Driver
> > $EvaluatorTask.run(Driver.java:274)
> >        at EDU.oswego.cs.dl.util.concurrent.FJTask.invoke(Unknown
> > Source)
> >        at EDU.oswego.cs.dl.util.concurrent.FJTaskRunnerGroup
> > $InvokableFJTask.run(Unknown
> > Source)
> >        at
> > EDU.oswego.cs.dl.util.concurrent.FJTaskRunner.scanWhileIdling(Unknown
> > Source)
> >        at EDU.oswego.cs.dl.util.concurrent.FJTaskRunner.run(Unknown
> > Source)
> > com.sun.fortress.interpreter.evaluator.ProgramError: Missing value
> > _builtinFactory1
> >        at com.sun.fortress.interpreter.evaluator.CommonEnv.getValue
> > (CommonEnv.java:65)
> >        at
> > com.sun.fortress.interpreter.glue.Glue.instantiateGenericConstructor
> > (Glue.java:165)
> >        at
> > com.sun.fortress.interpreter.evaluator.values.NonPrimitive.buildEnvFro
> > mParams(NonPrimitive.java:180)
> >        at
> > com.sun.fortress.interpreter.evaluator.values.NonPrimitive.buildEnvFro
> > mParams(NonPrimitive.java:149)
> >        at
> > com.sun.fortress.interpreter.evaluator.values.Closure.applyInner
> > (Closure.java:131)
> >        at com.sun.fortress.interpreter.evaluator.values.Fcn.apply
> > (Fcn.java:44)
> >        at com.sun.fortress.interpreter.drivers.Driver.runProgramTask
> > (Driver.java:243)
> >        at com.sun.fortress.interpreter.drivers.Driver
> > $EvaluatorTask.run(Driver.java:274)
> >        at EDU.oswego.cs.dl.util.concurrent.FJTask.invoke(Unknown
> > Source)
> >        at EDU.oswego.cs.dl.util.concurrent.FJTaskRunnerGroup
> > $InvokableFJTask.run(Unknown
> > Source)
> >        at
> > EDU.oswego.cs.dl.util.concurrent.FJTaskRunner.scanWhileIdling(Unknown
> > Source)
> >        at EDU.oswego.cs.dl.util.concurrent.FJTaskRunner.run(Unknown
> > Source)
> >
> > --------Fortress error appears below--------
> >
> >
> > Missing value _builtinFactory1
> > _______________________________________________
> > Fortress-interest mailing list
> > Fortress-interest@experimentalstuff.com
> > http://www.experimentalstuff.com/mailman/listinfo/fortress-interest
>
>


This page is: http://www.experimentalstuff.com/pipermail/fortress-interest/2007-January/000077.html
Last Modified: Thu, 18 Jan 2007 13:58:02 GMT
copyright (c) 2000-2007, Sun Microsystems