TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

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

40 点作者 ijl超过 6 年前

2 条评论

eridius超过 6 年前
&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 未加载
solidsnack9000超过 6 年前
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.