This file contains hidden or 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
val r = new scala.util.Random() | |
val data = List.fill(10)(r.nextInt(100)) | |
def msort(data: List[Int]): List[Int] = { | |
def merge(xs: List[Int], ys: List[Int]): List[Int] = (xs, ys) match { | |
case (List(), _) => ys | |
case (_, List()) => xs | |
case (x :: xs1, y :: ys1) => if (x < y) x :: merge(xs1, ys) else y :: merge(xs, ys1) | |
} |
This file contains hidden or 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
here is the full compile log: http://gist.github.com/266605 | |
the relevant part is: | |
`check/crc32_x86.S:96:suffix or operands invalid for 'push' | |
check/crc32_x86.S:97:suffix or operands invalid for 'push' | |
check/crc32_x86.S:98:suffix or operands invalid for 'push' | |
check/crc32_x86.S:99:suffix or operands invalid for 'push' | |
check/crc32_x86.S:265:suffix or operands invalid for 'pop' | |
check/crc32_x86.S:266:suffix or operands invalid for 'pop' |
This file contains hidden or 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
$ brew install xz | |
==> Downloading http://tukaani.org/xz/xz-4.999.9beta.tar.bz2 | |
######################################################################## 100.0% | |
==> ./configure --prefix=/usr/local/Cellar/xz/4.999.9beta --disable-debug --disa | |
==> make install | |
Making install in src | |
Making install in liblzma | |
Making install in api | |
make[4]: Nothing to be done for `install-exec-am'. | |
test -z "/usr/local/Cellar/xz/4.999.9beta/include" || ../../../build-aux/install-sh -c -d "/usr/local/Cellar/xz/4.999.9beta/include" |
NewerOlder