Skip to main content

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 18:16 Go to next message
Konstantin Komissarchik is currently offline Konstantin KomissarchikFriend
Messages: 1077
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
Re: On-demand compilation of model elements [message #997361 is a reply to message #997255] Mon, 07 January 2013 03:32 Go to previous message
Greg Amerson is currently offline Greg AmersonFriend
Messages: 119
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: Fri May 25 09:10:41 GMT 2018

Powered by FUDForum. Page generated in 0.01339 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top