amadan (Goran Topic)
- Login: amadan
- Registered on: 06/01/2018
- Last sign in: 05/06/2020
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 0 | 0 | 0 |
| Reported issues | 0 | 2 | 2 |
Activity
06/01/2018
-
10:45 PM Ruby Bug #14804: GzipReader cannot read Freebase dump (but gzcat/zless can)
- (Note that `f.each_line.count` would return the wrong result anyway, due to https://bugs.ruby-lang.org/issues/14805 , since 3130753066 is outside int32 range, but it doesn't have the chance to do so, on account of stopping prematurely.)
-
07:27 AM Ruby Bug #14804 (Closed): GzipReader cannot read Freebase dump (but gzcat/zless can)
- This is likely related to https://stackoverflow.com/questions/35354951/gzipstream-quietly-fails-on-large-file-stream-ends-at-2gb (and its accepted answer).
The file in question: http://commondatastorage.googleapis.com/freebase-public/... -
07:41 AM Ruby Bug #14805 (Closed): Enumerator#count is silently limited to int32
- One takes for granted that integers will be promoted into bigints in Ruby when needed.
Not so with `Enumerator#count`:
2147483647.times.count
# => 2147483647
2147483648.times.count
# => -2147483648
(notice the ...