3 ms·
I had a problem last year with opentelemetry.js where it started concatenating numbers as strings instead of summing them. The backend, which I believe is Pytho
by hinkley 3y ago
I had a problem last year with opentelemetry.js where it started concatenating numbers as strings instead of summing them. The backend, which I believe is Python? Did not blow up until we hit somewhere north of 300 digits, which is still pretty good.
But a million digits is a pretty good BigInteger. What is that? Half a megabyte?
- hansvm 3y agoPython>2.6 has excellent bignum support. Do you happen to know what blew up?
- hinkley 3y ago“OpenTelemetry.js” is written in typescript and they thought putting argument types on functions would protect them from bad inputs and thus “1” + 1 problems. Only none of that happens when calling it from JavaScript. Somewhere in our half million line (I actually don’t know, because we didn’t have a monorepo) application someone turned a stat into a string and I never did track it down. When we migrated from StatsD that became a problem.