[ 
https://issues.apache.org/jira/browse/THRIFT-3581?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15135930#comment-15135930
 ] 

Benjamin Gould commented on THRIFT-3581:
----------------------------------------

Indeed Roger, the main NestedVM project could be described as "unmaintained" by 
the original developers... although there have been a few bug fixes over the 
years.  It is definitely in a "mature" state and probably won't be sporting any 
shiny new features soon... the NestedVM runtime still targets Java 1.3 when 
compiling... but so far for my purposes there have been no issues.  However 
most of the advancement of that project is now scattered here and there across 
a few community forks.

In order to implement this build I needed to apply several patches from the 
NestedVM community to be able to use a modern GCC for instance.  My version is 
here:

https://github.com/bgould/nestedvm

This is essentially the same as the main version at nestedvm.ibex.org, but also 
includes a couple patches to enable using GCC 4.8 as well as a couple minor 
fixes to the "Unix runtime"

> Pure Java build of the Thrift compiler using NestedVM [WIP]
> -----------------------------------------------------------
>
>                 Key: THRIFT-3581
>                 URL: https://issues.apache.org/jira/browse/THRIFT-3581
>             Project: Thrift
>          Issue Type: New Feature
>          Components: Compiler (General)
>            Reporter: Benjamin Gould
>            Assignee: Benjamin Gould
>            Priority: Minor
>         Attachments: thrift-compiler-0.9.4-SNAPSHOT-sources.jar, 
> thrift-compiler-0.9.4-SNAPSHOT.jar
>
>
> I've developed a build process for building the Thrift compiler as a JAR file 
> that can be run on a JVM and requires no dependencies by cross-compiling the 
> executable with NestedVM.
> I think this could be use for the following, among other things:
> 1) Building Thrift plugins for IDEs written in Java
> 2) Integration into Java build tools like Ant and Maven
> 3) Calling the compiler from a Java program when the host platform is unknown
> Also, I see this as providing a way to potentially allow people to create 
> third party "plugins" for the compiler... Java and the plethora of JVM 
> language available might make creating new generators much more approachable 
> for people not comfortable with C++... and also in Java it is not complicated 
> to load code dynamically based on a class name as long as it is on the 
> classpath.
> In any case, I have a working prototype, but it is far from battle tested.
> For the inpatient, I'm attaching a snapshot build to this ticket, but you can 
> also find the source and build instructions here:
> https://github.com/bgould/thrift/tree/nestedvm/contrib/nestedvm
> Will open a pull request when I feel all of the wrinkles have been ironed out 
> (it is close, and quite usuable already) to see if it might be appropriate to 
> bring this into the contrib/ folder, or even include as an artifact in the 
> Maven repos for a future release.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to