TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Python JSON library in Rust, faster than ujson

40 pointsby ijlover 6 years ago

2 comments

eridiusover 6 years ago
&gt; <i>It raises TypeError on an unsupported type or a number that is too large.</i><p>Why does it raise an error on &quot;a number that is too large&quot;? The JSON spec does not put any limit on the size of numbers. Practically speaking, integers that don&#x27;t fit in 53 bits won&#x27;t be preserved when decoded by JavaScript and some other libraries, and integers that don&#x27;t fit in 64 bits will likely not be preserved by most libraries, but as far as the JSON spec is concerned you can have integers of any size (or floating-point numbers of any precision).
评论 #18722937 未加载
solidsnack9000over 6 years ago
This is the kind of thing that Rust can do so well -- export high performance, safe and trustworthy functionality to any language that can bind with native code.<p>C&#x2F;C++ does everything but the safe and trustworthy part.