Skip to content

Instantly share code, notes, and snippets.

View tkelman's full-sized avatar

Tony Kelman tkelman

View GitHub Profile
# Dockerfile for MinGW cross-compilation of Julia
FROM opensuse:13.1
MAINTAINER Tony Kelman <tony@kelman.net>
RUN zypper addrepo http://download.opensuse.org/repositories/windows:mingw:win32/openSUSE_13.1/windows:mingw:win32.repo
RUN zypper addrepo http://download.opensuse.org/repositories/windows:mingw:win64/openSUSE_13.1/windows:mingw:win64.repo
RUN zypper addrepo http://download.opensuse.org/repositories/Emulators/openSUSE_13.1/Emulators.repo
RUN zypper --gpg-auto-import-keys refresh
RUN zypper -n install mingw32-cross-gcc-c++ mingw32-cross-gcc-fortran
RUN zypper -n install mingw64-cross-gcc-c++ mingw64-cross-gcc-fortran
#!/bin/sh
# install julia release: ./install-julia.sh juliareleases
# install julia nightly: ./install-julia.sh julianightlies
# stop on error
set -e
# default to juliareleases
if [ $# -ge 1 ]; then
JULIAVERSION=$1
elif [ -z "$JULIAVERSION" ]; then
julia> @code_native Base._start()
.text
Filename: client.jl
Source line: 0
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
julia> @code_native Dates.slotparse(df.slots[4], "118")
.text
Filename: dates/io.jl
Source line: 99
push EBP
mov EBP, ESP
push EDI
push ESI
and ESP, 4294967288
sub ESP, 64
tkelman@ygdesk:~/Julia/julia-linux32$ ./julia -e 'Base.runtests()'
* linalg1
* linalg2
* linalg3
* linalg4
* linalg/lapack
* linalg/triangular
* linalg/tridiag
* linalg/pinv
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 0.3.0 (2014-08-20 20:43 UTC)
_/ |\__'_|_|_|\__'_| | Official http://julialang.org/ build
|__/ | i686-w64-mingw32
julia> using Blosc
julia> a=rand(Float64,32);
julia> roundtrip(orig) = Blosc.decompress(eltype(orig), Blosc.compress(orig)) ==
_/ |\__'_|_|_|\__'_| | Commit 726c508* (0 days old release-0.3)
|__/ | i686-w64-mingw32
julia> Ti = Int64; elty = Float64;
julia> A = sprand(10,10,0.1)
10x10 sparse matrix with 11 Float64 entries:
[1 , 2] = 0.0356797
[6 , 3] = 0.593121
[1 , 5] = 0.215786
| | |_| | | | (_| | | Version 0.4.0-dev+1913 (2014-12-01 22:44 UTC)
_/ |\__'_|_|_|\__'_| | (detached from acroy/cholmod)/5920095* (fork: 5 commit
s, 0 days)
|__/ | i686-w64-mingw32
julia> const CHOLMOD = Base.LinAlg.CHOLMOD
Base.LinAlg.CHOLMOD
julia> C = CHOLMOD.CholmodDense(rand(10,10))
| | |_| | | | (_| | | Version 0.4.0-dev+1914 (2014-12-02 11:07 UTC)
_/ |\__'_|_|_|\__'_| | (detached from acroy/cholmod)/dd2c6a3* (fork: 6 commit
s, 1 day)
|__/ | x86_64-w64-mingw32
julia> const CHOLMOD = Base.LinAlg.CHOLMOD
Base.LinAlg.CHOLMOD
julia> function print_sparse{Tv<:Float64}(ccs::CHOLMOD.c_CholmodSparse{Tv,Int},
lev=int32(5), nm="")
_
_ _ _(_)_ | A fresh approach to technical computing
(_) | (_) (_) | Documentation: http://docs.julialang.org
_ _ _| |_ __ _ | Type "help()" for help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 0.4.0-dev+1914 (2014-12-02 11:07 UTC)
_/ |\__'_|_|_|\__'_| | (detached from acroy/cholmod)/dd2c6a3* (fork: 6 commit
s, 1 day)
|__/ | i686-w64-mingw32