Open ToonTalk opened 6 years ago
Quick test: The library does work fine and the same as always for me, showing the precise big value when clicking on the reporter. the stage watcher is unaffected by the library and therefore shows the simplified JS value.
Strange. I just tried again. Just ran "USE BIGNUMS true" and then 1000! and nothing happens. And nothing in the console. In Version 67.0.3396.99
Then I tried it again in FireFox 61.0.1 and it worked fine.
And same problem with Chrome 68.0.3440.75
Works fine in Edge as well. (All tests are Windows 10)
By the way, why doesn't USE BIGNUMS have 'true' as the default value?
Probably a coincidence but Chrome just added direct support for bignums - https://developers.google.com/web/updates/2018/05/bigint
Maybe not a coincidence. Chrome's bignum support doesn't provide the rest of the Scheme numeric tower, though, so it's not so useful.
I confirm that it's broken. 795! has this interesting behavior:
Numbers visible, but not in a speech bubble. And 800! doesn't display anything, although it is correctly computing the value:
So the problem is in the display of very long strings, not in the computation.
I wonder if anyone will update the rest of the Scheme numeric tower to sit on top of the browser's bignum support (once it becomes ubiquitous -- it is a proposed standard) since it is 2 or 3 times faster in benchmarks with 4 libraries implementing bignums.
They should just put all of it in the standard.
A few months ago it was working fine but today at least factorial is broken. 1000! is infinity (and it clicking on it doesn't display anything).