-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
stdlib needs ryu for compact and performant float to string #13365
Labels
Comments
I said I'd do it and I will. :laugh: Do you need it soon? |
Decided to do a syntax port and then once the tests pass and we can benchmark it, we can twiddle the bits and make it our own. |
we now have dragonbox, closing |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
as of #13364 json works with roundtrip correctness in mind, but sacrifices shortness of representation.
python's json doesnt' have this issue.
Example
Current Output
Expected Output
Possible Solution
port/wrap/implement ryu https://github.com/ulfjack/ryu which has several benefits:
example: python's print wrt float:
as a nice-to-have, we can also have
echo
behave same as in python:this isn't the case currently in nim
links
alternative: the newer dragonbox
The text was updated successfully, but these errors were encountered: