This is the mail archive of the
kawa@sourceware.org
mailing list for the Kawa project.
Re: Some other oddities
On May 31, 2006, at 2:06 AM, Per Bothner wrote:
Is that jython or "native" python?
Python. Actually, I've found few tests where optimized Java isn't
around 10x optimized python. At least as of about six months ago.
That's why I was so surprised with the type-optimized kawa results.
jython is slower still.
If you *compile* a module that define two mutually references
classes,
I believe that should work.
Actually, I'm failing on loading classes compiled to .class files
as well.
I suggest compiling both classes at the same time:
kawa -C tutoria1.scm ca.scm
A compile like this, followed by (require <ca>) (require <tutorial1>)
works! Unfortunately, if I do (require <tutorial1>) first, I get
exception while initializing module tutorial1
at gnu.expr.ModuleInfo.setupModuleExp(ModuleInfo.java:100)
at kawa.standard.require.importDefinitions(require.java:194)
at kawa.standard.require.scanForDefinitions(require.java:158)
at kawa.lang.Syntax.scanForm(Syntax.java:64)
at kawa.lang.Translator.scanForm(Translator.java:1006)
at gnu.kawa.lispexpr.LispLanguage.parse(LispLanguage.java:80)
at gnu.kawa.lispexpr.LispLanguage.parse(LispLanguage.java:47)
at kawa.Shell.run(Shell.java:207)
at kawa.Shell.run(Shell.java:172)
at kawa.Shell.run(Shell.java:159)
at kawa.repl.main(repl.java:846)
Caused by: exception while initializing module tutorial1
at gnu.expr.ModuleContext.makeInstance(ModuleContext.java:70)
at gnu.expr.ModuleContext.findInstance(ModuleContext.java:82)
at gnu.expr.ModuleInfo.getInstance(ModuleInfo.java:141)
at gnu.expr.ModuleInfo.setupModuleExp(ModuleInfo.java:87)
... 10 more
Caused by: java.lang.InstantiationException: tutorial1
at java.lang.Class.newInstance0(Class.java:335)
at java.lang.Class.newInstance(Class.java:303)
at gnu.expr.ModuleContext.makeInstance(ModuleContext.java:65)
... 13 more
[by the way, I wanted to say thanks for all your responses --
particularly for this one where at this stage I'm really feeding bug
reports more than having further problems that can't be solved
java.lang.RuntimeException: class not instantiable: in load
at kawa.standard.load.loadClassFile(load.java:48)
It can be useful to put an ex.printStackTrace() just before the
re-throw.
Hmmm, I wasn't throwing anything -- it's an exception in Kawa I think.
Sean