accordproject / concerto

Business schema language and runtime
https://concerto.accordproject.org
Apache License 2.0
121 stars 107 forks source link

Numeric type Improvements #189

Open jeromesimeon opened 4 years ago

jeromesimeon commented 4 years ago

The specification for Concerto has Integer (32bits) and Long (64bits): https://docs.accordproject.org/docs/model-properties.html#primitive-types

The current implementation supports neither. Integer and Long are treated interchangeably and internally represented as JavaScript numbers. Those are safe only up to MAX_SAFE_INTEGER which is 2^53-1 instead of 2^31-1 or 2^63-1.

Questions

dselman commented 1 year ago

This is a nice description of how Avro deals with this: https://github.com/apache/avro/blob/master/lang/js/doc/Advanced-usage.md