ryu

Converts floating point numbers to decimal strings (by ulfjack)

Ryu Alternatives

Similar projects and alternatives to ryu

  1. FrameworkBenchmarks

    Source for the TechEmpower Framework Benchmarks project

  2. CodeRabbit

    CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.

    CodeRabbit logo
  3. ClickHouse

    236 ryu VS ClickHouse

    ClickHouse® is a real-time analytics database management system

  4. stb

    172 ryu VS stb

    stb single-file public domain libraries for C/C++

  5. {fmt}

    167 ryu VS {fmt}

    A modern formatting library

  6. STL

    159 ryu VS STL

    MSVC's implementation of the C++ Standard Library.

  7. Adminer

    58 ryu VS Adminer

    Database management in a single PHP file

  8. oss-fuzz

    31 ryu VS oss-fuzz

    OSS-Fuzz - continuous fuzzing for open source software.

  9. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  10. jsoniter-scala

    Scala macros for compile-time generation of safe and ultra-fast JSON codecs + circe booster

  11. concise-encoding

    The secure data format for a modern world

  12. rapidgzip

    Gzip Decompression and Random Access for Modern Multi-Core Machines

  13. dragonbox

    Reference implementation of Dragonbox in C++

  14. fast_float

    15 ryu VS fast_float

    Fast and exact implementation of the C++ from_chars functions for number types: 4x to 10x faster than strtod, part of GCC 12, Chromium, Redis and WebKit/Safari

  15. itoa

    2 ryu VS itoa

    Fast integer to ascii / integer to string conversion

  16. FastDoubleParser

    A Java port of Daniel Lemire's fast_float project

  17. gdtoa

    David M. Gay's floating-point conversion library

  18. proust

    1 ryu VS proust

    Compiling implementation of mustache

  19. parquet-format

    5 ryu VS parquet-format

    Apache Parquet Format

  20. Jackson

    4 ryu VS Jackson

    Core part of Jackson that defines Streaming API as well as basic shared abstractions

  21. arrow-tools

    A collection of handy CLI tools to convert CSV and JSON to Apache Arrow and Parquet

  22. fast_int

    Header-only C++11 implementation of the C++17 `from_chars` functions for integer types

  23. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better ryu alternative or higher similarity.

ryu discussion

Log in or Post with

ryu reviews and mentions

Posts with mentions or reviews of ryu. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-10-14.
  • C++ String Conversion: Exploring std:from_chars in C++17 to C++26
    4 projects | news.ycombinator.com | 14 Oct 2024
    I believe the impl you link to is not fully standards compliant, so just calls back to

    MSFT's one is totally standards compliant and it is a very different beast: https://github.com/microsoft/STL/blob/main/stl/inc/charconv

    Apart from various nuts and bolts optimizations (eg not using locales, better cache friendless, etc...) it also uses a novel algorithm which is an order of magnitude quicker for many floating points tasks (https://github.com/ulfjack/ryu).

    If you actually want to learn about this, then watch the video I linked earlier.

  • Printing double aka the most difficult problem in computer sciences
    1 project | /r/cpp | 5 Jun 2023
    Nah. This is about ryu printf.
  • Parquet: More than just “Turbo CSV”
    7 projects | news.ycombinator.com | 3 Apr 2023
    > Google put in significant engineering effort into "Ryu", a parsing library for double-precision floating point numbers: https://github.com/ulfjack/ryu

    It's not a parsing library, but a printing one, i.e., double -> string. https://github.com/fastfloat/fast_float is a parsing library, i.e., string -> double, not by Google though, but was indeed motivated by parsing JSON fast https://lemire.me/blog/2020/03/10/fast-float-parsing-in-prac...

  • Faster way to convert double to string, not using "%f"?
    2 projects | /r/C_Programming | 6 Oct 2022
  • After obtaning a CS degree and 16 years of experience in industry, I feel somewhat confident that I can answer your programming questions correctly. Ask me anything
    1 project | /r/ProgrammerHumor | 12 Aug 2022
    Me and Ryu agree that the answer should be 0.30000000000000004
  • 23 years into my career, I still love PHP and JavaScript
    6 projects | news.ycombinator.com | 2 Aug 2022
    Apparently exact minimal float-to-string conversion is more recent than I thought, and many languages used to print more (Python?) or less (PHP) decimal digits than necessary to uniquely identify the bit pattern. Python correctly prints 46000.80 + 553.04 as 46553.840000000004, but I don't know if it ever prints more digits than needed. One recent algorithm for printing floats exactly is https://github.com/ulfjack/ryu, though I'm unaware what's the state-of-the-art (https://github.com/jk-jeon/dragonbox claims to be a benchmark and the best algorithm).
  • What's the most elegant algo in your subjective view and why?
    1 project | /r/computerscience | 15 Jul 2022
    On the huge speedup side, you have the Ryū algorithm for decimal conversion (Video, Source), which is now finding its way in most standard libraries. But it isn't a hack, and a very dense, complex and precise algo, nothing like the fast-and-loose inverse square root.
  • C++ devs at FAANG companies, what kind of work do you do?
    2 projects | /r/cpp | 10 Jul 2022
    Used a wizard's magic to print "3.14" faster
  • how to make ftoa procedure from scratch
    2 projects | /r/asm | 13 Jun 2022
    Here's a paper that details an optimized algorithm (reference implementation). It also contains a description of a correct, but slow algorithm as well as references to classic papers on the subject. Earlier the classic implementation was the dtoa one included in netlib by David Gay.
  • Dragonbox 1.1.0 is released (a fast float-to-string conversion algorithm)
    4 projects | /r/cpp | 8 Feb 2022
    At the very core of all these theoretical stuffs, there is the theory of continued fractions. This is an immensely useful monster which I even dare call as the ultimate tool for floating-point formatting/parsing that everyone who wants to contribute in this field should learn. Before I learned continued fractions, my main tool for proving stuffs was the minmax Euclid algorithm (which is one of the greatest contributions of the wonderful Ryu paper), but it turns out that it is actually just a quite straightforward application of the theory of continued fractions. The main role minmax Euclid algorithm played was to estimate the maximum size of possible errors, but with continued fractions it is even possible to find the list of all examples that generate errors above a given threshold. This is something I desperately wanted but really couldn't do back in 2020.
  • A note from our sponsor - CodeRabbit
    coderabbit.ai | 24 Mar 2025
    Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR. Learn more →

Stats

Basic ryu repo stats
14
1,231
5.2
9 months ago

ulfjack/ryu is an open source project licensed under Apache License 2.0 which is an OSI approved license.

The primary programming language of ryu is C++.


Sponsored
CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai