You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Scott Carey (JIRA)" <ji...@apache.org> on 2012/12/18 04:26:13 UTC

[jira] [Commented] (AVRO-1105) Scala API for Avro

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

Scott Carey commented on AVRO-1105:
-----------------------------------

I did a little bit of research on Scala macros.  As of Scala 2.10 (nearing release), macros cannot create named types or methods, but they can implement or override methods defined in the source or create anonymous types.
Until there are type macros they cannot be used to fully replace code generation.  However, they can be used to optimize / implement an API defined in advance, such as the "Dynamic" use cases.  They also do not yet interact with annotations deeply, which would be very useful for some "Code first" use cases -- think the equivalent of Java reflection on annotations at compile time rather than runtime, so that a macro can be triggered to generate code declaratively by the presence of an annotation.
                
> Scala API for Avro
> ------------------
>
>                 Key: AVRO-1105
>                 URL: https://issues.apache.org/jira/browse/AVRO-1105
>             Project: Avro
>          Issue Type: New Feature
>            Reporter: Christophe Taton
>         Attachments: avro-scala.patch
>
>
> Umbrella issue.
> Goal is to provide Scala friendly APIs for Avro records and protocols (RPCs).
> Related project: http://code.google.com/p/avro-scala-compiler-plugin/ looks dead (no change since Sep 2010).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira