Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace ArrayMath/Util scripts with templates #86

Open
hamishmorgan opened this issue Sep 19, 2012 · 0 comments
Open

Replace ArrayMath/Util scripts with templates #86

hamishmorgan opened this issue Sep 19, 2012 · 0 comments

Comments

@hamishmorgan
Copy link
Member

The code generation scripts genArrayMath.sh and genArrayUtil.sh are becoming unmanageable. In particular the resultant .java files need associated unit tests, but construction of these will be painful using the current system. Further, it is not fitting with the maven best practice to include generation scripts within the /src/main/java hierarchy.

There seems to be three major contenders in the Java templating for code generation field:

  • Velocity
    • Apache project.
    • Largest user-base, probably because of the previous point.
  • Freemarker
    • Alleged to be faster, not that I care about that for this use-case.
  • StringTemplate
    • MVC nazis, but possibly in a good way. Will require doing things properly or not at all.
    • Used by ANTLR parser generator, so obviously it copes well with source generation.

Over all there doesn't seem to be a huge amount of difference between these libraries.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant