Hi Mathijs,
The reason why the GWT compiler works from Java source instead of bytecode
is because of all the extra information we get from source that can be used
in cross-compile optimization when going from Java to JavaScript. As the
thread Paul pointed to indicates, it is possible to work from bytecode, but
might not be ideal when you want to go for maximum code optimization /
minification in the final JavaScript artifact.

Hope that helps,
-Sumit Chandel

On Mon, Jul 20, 2009 at 10:42 AM, Paul Robinson <[email protected]> wrote:

>
> It uses the source code, not the bytecode. It can't be made to work at
> the bytecode level for various reasons.
>
>
> http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/d19dd5769e993f63/3418f999d1536f57
>
>
> Paul
>
> Mathijs wrote:
> > Hello,
> >
> > I would like to know at which level gwtc works. Is it purely at the
> > source level (.java) or more low-level (bytecode)?
> > I'm a ruby developer, using jruby (which runs on JVM). jruby is able
> > to compile ruby code to .class files. Also, I'm able to interact with
> > other java libraries, so in theory, I should be able to use the GWT
> > classes from ruby.
> > I would like to use GWT, but I don't want to switch to java. If GWT's
> > compiler would be able to process the .class files jruby creates for
> > me (without having a .java source file) this would be very cool.
> >
> > Googling didn't turn up much for this subject so I'm affraid I'm out
> > of luck.
> > Thanks for any help
> > Mathijs
> >
> > >
> >
> >
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to