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
mkdir -p ~/julia | |
curl -s -L https://julialang.s3.amazonaws.com/bin/linux/x64/0.4/julia-0.4.6-linux-x86_64.tar.gz | \ | |
tar -C ~/julia -x -z --strip-components=1 -f - | |
echo "export PATH=$PATH:$HOME/julia/bin" >> ~/.profile | |
source ~/.profile |
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
f(a) = a + 1 | |
g(a,f) = f(a) + 10 | |
g(1,f) | |
@code_llvm f(1) | |
@code_llvm g(1,f) |
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
==6481== Memcheck, a memory error detector | |
==6481== Copyright (C) 2002-2012, and GNU GPL'd, by Julian Seward et al. | |
==6481== Using Valgrind-3.8.1 and LibVEX; rerun with -h for copyright info | |
==6481== Command: julia -e using\ WebApp;\ WebApp.demo() | |
==6481== Parent PID: 22678 | |
==6481== | |
--6481-- | |
--6481-- Valgrind options: | |
--6481-- --track-origins=yes | |
--6481-- -v |
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
rene@lemonlab:lib $ ls -la | |
total 152 | |
drwxr-xr-x 22 rene staff 748 Sep 20 23:01 . | |
drwxr-xr-x 14 rene staff 476 Sep 20 23:00 .. | |
lrwxr-xr-x 1 rene staff 54 Sep 20 23:01 libgnutls-openssl.27.dylib -> ../Cellar/gnutls/3.1.10/lib/libgnutls-openssl.27.dylib | |
lrwxr-xr-x 1 rene staff 51 Sep 20 23:01 libgnutls-openssl.dylib -> ../Cellar/gnutls/3.1.10/lib/libgnutls-openssl.dylib | |
lrwxr-xr-x 1 rene staff 50 Sep 20 23:01 libgnutls-xssl.0.dylib -> ../Cellar/gnutls/3.1.10/lib/libgnutls-xssl.0.dylib | |
lrwxr-xr-x 1 rene staff 48 Sep 20 23:01 libgnutls-xssl.dylib -> ../Cellar/gnutls/3.1.10/lib/libgnutls-xssl.dylib | |
lrwxr-xr-x 1 rene staff 46 Sep 20 23:01 libgnutls.28.dylib -> ../Cellar/gnutls/3.1.10/lib/libgnutls.28.dylib | |
lrwxr-xr-x 1 rene staff 43 Sep 20 23:01 libgnutls.dylib -> ../Cellar/gnutls/3.1.10/lib/libgnutls.dylib |
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
ene@lemonlab:julia $ rm -rf ~/.julia | |
rene@lemonlab:julia $ DYLD_LIBRARY_PATH="/Users/rene/local/julia/usr/lib/" julia | |
_ | |
_ _ _(_)_ | A fresh approach to technical computing | |
(_) | (_) (_) | Documentation: http://docs.julialang.org | |
_ _ _| |_ __ _ | Type "help()" to list help topics | |
| | | | | | |/ _` | | | |
| | |_| | | | (_| | | Version 0.2.0-prerelease+3798 | |
_/ |\__'_|_|_|\__'_| | Commit b581ea1* 2013-09-20 18:16:46 UTC | |
|__/ | x86_64-apple-darwin12.5.0 |
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
rene@cirdesk3:~ $ DYLD_LIBRARY_PATH=/Users/rene/local/julia/usr/lib:/usr/lib julia | |
_ | |
_ _ _(_)_ | A fresh approach to technical computing | |
(_) | (_) (_) | Documentation: http://docs.julialang.org | |
_ _ _| |_ __ _ | Type "help()" to list help topics | |
| | | | | | |/ _` | | | |
| | |_| | | | (_| | | Version 0.2.0-prerelease+3743 | |
_/ |\__'_|_|_|\__'_| | Commit fc445f8* 2013-09-16 05:29:41 UTC | |
|__/ | x86_64-apple-darwin12.4.0 |
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
rene@cirdesk3:julia $ julia | |
_ | |
_ _ _(_)_ | A fresh approach to technical computing | |
(_) | (_) (_) | Documentation: http://docs.julialang.org | |
_ _ _| |_ __ _ | Type "help()" to list help topics | |
| | | | | | |/ _` | | | |
| | |_| | | | (_| | | Version 0.2.0-prerelease+3743 | |
_/ |\__'_|_|_|\__'_| | Commit fc445f8* 2013-09-16 05:29:41 UTC | |
|__/ | x86_64-apple-darwin12.4.0 |
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
julia> Pkg.add("HttpServer") | |
INFO: Installing Calendar v0.4.0 | |
INFO: Installing FactCheck v0.1.0 | |
INFO: Installing HttpServer v0.0.3 | |
INFO: Installing GnuTLS v0.0.0 | |
INFO: Installing HttpParser v0.0.4 | |
INFO: Installing HttpCommon v0.0.2 | |
INFO: Installing ICU v0.0.0 | |
INFO: Installing UTF16 v0.2.0 | |
INFO: Running build script for package GnuTLS |
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
rene@cn2:~ $ rm -rf .julia | |
rene@cn2:~ $ julia | |
_ | |
_ _ _(_)_ | A fresh approach to technical computing | |
(_) | (_) (_) | Documentation: http://docs.julialang.org | |
_ _ _| |_ __ _ | Type "help()" to list help topics | |
| | | | | | |/ _` | | | |
| | |_| | | | (_| | | Version 0.2.0-prerelease+3743 | |
_/ |\__'_|_|_|\__'_| | Commit fc445f8* 2013-09-16 05:29:41 UTC | |
|__/ | x86_64-redhat-linux |
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
#!/bin/bash | |
# This script installs nix from source into the current working directory. | |
set -e | |
export TARGET=$(pwd) | |
export BUILDTMP=/tmp/install-nix-here | |
export BUILDTMPESC=$(echo $BUILDTMP | sed -e's/\//\\\//g') | |
if [ "$(ls -A $TARGET)" ]; then |
NewerOlder