Skip to content

Instantly share code, notes, and snippets.

Avatar
⛰️
working from home

Leah Hanson astrieanna

⛰️
working from home
View GitHub Profile
View Foo.jl
module Foo
export @timeof, @bench, BinaryTree, Node, Leaf, insert
macro timeof(expr)
quote
t1 = time()
value = $(expr)
t2 = time()
t2-t1
View configure.log
configure: looking for configure programs
configure: found cmp
configure: found mkdir
configure: found printf
configure: found cut
configure: found grep
configure: found xargs
configure: found cp
configure: found find
configure: found uname
@astrieanna
astrieanna / make.log
Last active Dec 15, 2015
Output of make on failed build of Servo.
View make.log
make[1]: Entering directory `/home/leah/code/servo/build/src/pixman'
make all-recursive
make[2]: Entering directory `/home/leah/code/servo/build/src/pixman'
Making all in pixman
make[3]: Entering directory `/home/leah/code/servo/build/src/pixman/pixman'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/leah/code/servo/build/src/pixman/pixman'
Making all in demos
make[3]: Entering directory `/home/leah/code/servo/build/src/pixman/demos'
make[3]: Nothing to be done for `all'.
@astrieanna
astrieanna / bitmapped-vector-trie.rs
Created Mar 20, 2013
A file that makes rustc have an internal error (task failed at 'Unsupported constant expr') and the backtrace log from the compiler. The file compile.log was created using `rustc bitmapped-vector-trie.rs --test &> compile.log`.
View bitmapped-vector-trie.rs
struct Level1<A> {
data : @mut [@A * 5]
, mut current : int
}
struct Level2<A> {
data : @mut [@Level1<A> * 32]
, mut current : int
}
@astrieanna
astrieanna / freezes.jl
Created Mar 14, 2013
Socket code in Julia.
View freezes.jl
echo2_helper(socket,stat) =
begin
println(stat)
show(socket)
c = accept(socket)
println(c)
line = read_line(c)
println(line)
while line != "0\n"
write(c,line)
@astrieanna
astrieanna / fingertree.rs
Created Mar 12, 2013
The file that makes rustc have an "unexpected failure" and the resulting log.
View fingertree.rs
enum FingerTree<A> { Empty
, Single(A)
, Deep (Digit<A>, @FingerTree<Node<A>>, Digit<A>)
}
enum Node<A> { Node2(A,A), Node3(A,A,A) }
enum Digit<A> { One(A)
, Two(A,A)
, Three(A,A,A)
, Four(A,A,A,A)