Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sapphire » On-demand compilation of model elements
On-demand compilation of model elements [message #997255] Fri, 04 January 2013 13:16 Go to next message
Konstantin Komissarchik is currently offline Konstantin Komissarchik
Messages: 923
Registered: July 2009
Senior Member
I'd like to highlight a key change to how developers work with Sapphire that is coming in the 0.7 release.

==============

For the last several years Sapphire has used a Java annotation processor linked to @GenerateImpl annotation to produces implementation classes for the model element interfaces.

A better approach is to produce implementation classes on-demand at runtime by generating bytecode. This has the following key advantages:

1. No need to customize the build to run the annotation processor.

2. No need to tag interfaces with @GenerateImpl.

3. Smaller application binaries to distribute

4. Less complex compiler since generating bytecode is easier than generating readable Java source code.

Old Compiler: 17 classes, 3219 lines of code
New Compiler: 3 classes, 808 lines of code, ASM bytecode library

https://bugs.eclipse.org/bugs/show_bug.cgi?id=397466
Re: On-demand compilation of model elements [message #997361 is a reply to message #997255] Sun, 06 January 2013 22:32 Go to previous message
Greg Amerson is currently offline Greg Amerson
Messages: 105
Registered: March 2010
Senior Member
Nice! This makes me want to skip 0.6.x and move straight to 0.7. So long Eclipse PDE/apt compilation bug!
Previous Topic:Virtual Node Factory for classification of Nodes
Next Topic:Changing minimum requirement from Helios/3.6 to Indigo/3.7
Goto Forum:
  


Current Time: Wed Apr 16 06:53:26 EDT 2014

Powered by FUDForum. Page generated in 0.02769 seconds