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

2^32, 10^10 are conveniently used and will silently overflow on 32 bit machines. #5573

Closed
mschauer opened this issue Jan 27, 2014 · 2 comments
Labels
needs decision A decision on this change is needed

Comments

@mschauer
Copy link
Contributor

mschauer commented Jan 27, 2014

C.f.
https://github.com/search?q=2%5E32+extension%3Ajl&type=Code&ref=searchresults

There are several possiblities regarding this, a runtime error in case of overflow, a E-notation for Ints for example.

Edit: The github search got worse, the link above does not find examples anymore.

@quinnj
Copy link
Member

quinnj commented Jun 5, 2014

@mschauer, all of the current results to your link (for 2^32 and 10^10) are either in comments or unregistered packages. Given there are now over 300 packages + Base Julia, I'd say that is pretty good corpus without the use of 2^32 or 10^10. If a use does arise that causes problems, I'd say it'd be better to file an issue with the specific pacakge.

@tkelman
Copy link
Contributor

tkelman commented Jul 20, 2015

Really this just calls for better testing of packages on 32 bit. We could think about ways of adapting the language: julia setup to make 32 bit installation easy, an issue or prototype implementation at https://github.com/JuliaCI/travis-build would be welcome. Travis doesn't offer 32 bit VM's, but running 32 bit Julia inside a 64 bit VM will usually work (though it can easily confuse BinDeps). #12215 makes testing Win32 Julia quite easy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs decision A decision on this change is needed
Projects
None yet
Development

No branches or pull requests

3 participants