Last active
December 10, 2015 14:58
-
-
Save osa1/4451206 to your computer and use it in GitHub Desktop.
ghci memory overflow
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import qualified Data.Vector.Unboxed as V | |
-- ... | |
ghci> V.replicate (2^32 :: Int) 0 | |
fromList <interactive>: out of memory (requested 34360786944 bytes) | |
ghci> V.replicate (2^32 :: Int) (2 :: Word32) | |
fromList <interactive>: out of memory (requested 17180917760 bytes) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment