[
https://issues.apache.org/jira/browse/AVRO-1747?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15026289#comment-15026289
]
ASF GitHub Bot commented on AVRO-1747:
--------------------------------------
GitHub user mtth opened a pull request:
https://github.com/apache/avro/pull/58
AVRO-1747: JavaScript: Add implementation.
A few features:
+ [Fast!][benchmarks] Typically twice as fast as JSON with much smaller
encodings.
+ Full Avro support, including recursive schemas, sort order, and
[evolution][schema-evolution].
+ Serialization of arbitrary JavaScript objects via [logical
types][logical-types].
+ Unopinionated [64-bit integer compatibility][custom-long].
+ No dependencies, it even runs in the browser. (`underscore` is required
only to support the previous API which is included for backwards compatibility.)
[benchmarks]: https://github.com/mtth/avsc/wiki/Benchmarks
[schema-evolution]:
https://github.com/mtth/avsc/wiki/Advanced-usage#schema-evolution
[logical-types]:
https://github.com/mtth/avsc/wiki/Advanced-usage#logical-types
[custom-long]:
https://github.com/mtth/avsc/wiki/Advanced-usage#custom-long-types
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/mtth/avro trunk
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/avro/pull/58.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #58
----
commit a91936ab9613637e8118096fde452690bce9c4fd
Author: Matthieu Monsch <[email protected]>
Date: 2015-11-25T05:53:33Z
AVRO-1747: JavaScript: Add implementation.
A few features:
+ Fast! Typically twice as fast as JSON with much smaller encodings.
+ Full Avro support, including recursive schemas, sort order, and
evolution.
+ Serialization of arbitrary JavaScript objects via logical types.
+ Unopinionated 64-bit integer compatibility.
+ No dependencies, it even runs in the browser.
The previous API is included with deprecation warnings (this adds
`underscore` as a dependency).
----
> JavaScript implementation
> -------------------------
>
> Key: AVRO-1747
> URL: https://issues.apache.org/jira/browse/AVRO-1747
> Project: Avro
> Issue Type: Improvement
> Components: javascript
> Reporter: Matthieu Monsch
> Attachments: AVRO-1747.patch, AVRO-1747.patch, AVRO-1747.patch
>
>
> Hello,
> I'm not sure if there is still interest in a JavaScript implementation of the
> Avro spec, or if this is the right place for this message (apologies if not),
> but in case it's useful here is one: https://github.com/mtth/avsc
> It's pretty fast, fully featured aside from protocols (AFAIK), and runs in
> the browser.
> Disclaimer: I wrote this library. (I initially searched around for existing
> implementations, and even saw a few tickets on this board about JavaScript
> decoders, but couldn't find one to support the schemas I have to process.)
> Best,
> -Matthieu
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)