Compiler as a service in Java

Microsoft Roslyn - compiler as a service is a nice addition to the .NET stack; I was looking for something similar in the Java world. I believe Scala has something similar in the form of compiler plugins but not sure how flexible it is.

The problem I am trying to solve in the Java world is allowing users to write some custom syntax and internally it would get re-wired into a different syntax.


Scala will have support for macros in the next release (2.10). You can already play with the milestone releases to check how it works. Basically, they allow to modify AST at compile time. So you can rewrite any piece of Scala in another piece of scala. Check the scalamacros website for examples and doc.

If you want to compile Scala source at runtime, you can look for Eval in the twitter/util project.

Need Your Help

ORA-03113: end-of-file on communication channel after long inactivity in ASP.Net app

oracle oracle10g oracleexception

I've got a load-balanced (not using Session state) ASP.Net 2.0 app on IIS5 running back to a single Oracle 10g server, using version of the ODAC/ODP.Net drivers. After a long period of

Have the central div define the width of the others

html css

i'm working on a sort of LED-Banner-Simulation with text running from right to left in one line.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.