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

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

Hmm, thanks for the feedback... I actually have some step-by-step notes for 
building on Debian specifically, I'll get those cleaned up and published.

IIRC the main hiccup with building my NestedVM repo on Jessie is that some part 
of the toolchain (maybe binutils?) only builds ok with GCC 4.8... so on Jessie 
you need to "apt-get install g++-4.8" and then use "CC=gcc-4.8 CXX=g++-4.8" 
when compiling the toolchain... I'll double check my notes about Debian and 
them to my repo

> 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