You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Roger Meier (JIRA)" <ji...@apache.org> on 2011/05/20 11:22:47 UTC

[jira] [Commented] (THRIFT-1173) Using template system (for example: ctemplate) for code generation

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

Roger Meier commented on THRIFT-1173:
-------------------------------------

I use ctemplate on several applications, it's a great piece of software.

However migrating the Thrift compiler to a template based concept sounds like lot of work and adds additional dependencies to the Thrift compiler. And this will make it more difficult to cross compile the compiler for Windows.

On the other side a template based mechanism would be a great option to test or prototype new adoptions of languages or to create other things like custom documentation or proprietary code ready to use.

Do you already have a prototype?

> Using template system (for example: ctemplate) for code generation
> ------------------------------------------------------------------
>
>                 Key: THRIFT-1173
>                 URL: https://issues.apache.org/jira/browse/THRIFT-1173
>             Project: Thrift
>          Issue Type: Improvement
>          Components: Compiler (General)
>    Affects Versions: 0.6.1
>            Reporter: alessandro rossi
>            Priority: Minor
>              Labels: generation, template
>
> IMHO, the code generation embedded into generator's code is not a good solution.
> With ctemplate (http://code.google.com/p/google-ctemplate/), for example, we can separate logic with generation code.
> If you want I can implement an example for cpp generator.
> Best Regards,
> Alessandro

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira