Skip to content
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

Is there a Bug in Master? #82

Closed
alex-ilin opened this issue Dec 27, 2018 · 4 comments
Closed

Is there a Bug in Master? #82

alex-ilin opened this issue Dec 27, 2018 · 4 comments

Comments

@alex-ilin
Copy link
Contributor

alex-ilin commented Dec 27, 2018

In commit 388280c the comment is "add comprehensive tests, finding a core algorithm bug." That commit is only included in the generate-full-output branch.

Does it mean that there was a bug discovered in the Ryu algorithm, which is currently not fixed in master?

I'm asking, because I'm porting Ryu into a different language, and would like to understand the current state.

Thank you!

@ulfjack
Copy link
Owner

ulfjack commented Dec 27, 2018

The generate-full-output branch adds support for printf %e and %f formats (core Ryu only supports generating shortest round-trip-safe output, which has no direct relationship with printf), and there was a bug in an earlier version, which I've fixed as of commit 471e583. I still need to reorganize the code a bit (and maybe add more tests) before merging the branch into master. I have a paper which explains the algorithmic differences from core Ryu, which is currently in double-blind review (so don't tell anyone :-).

@ulfjack
Copy link
Owner

ulfjack commented Dec 27, 2018

The short answer is no, there are no known issues in the C implementation of Ryu. There is a known issue in the Java implementation, which doesn't round correctly to two digits in some cases - see #83.

There are no known issues in the new code at head (which only has a C implementation).

@ulfjack ulfjack closed this as completed Dec 27, 2018
@alex-ilin
Copy link
Contributor Author

Cool stuff, I'll keep my mouth shut! Thanks for all the great work!
I've just finished porting Ryu to Factor. The last test ran successfully for the first time a few minutes ago.
I'll send you the pull request to list the implementation in the readme, OK?

@ulfjack
Copy link
Owner

ulfjack commented Dec 27, 2018

Sure!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants