$ cat ../../wip.jl
using InteractiveUtils
# code_llvm(exp, Tuple{Float64})
function f(x)
_1 = exp(x)
_2 = exp(x)
return _1 + _2
end
This file has been truncated, but you can view the full file.
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
| Some tests did not pass: 117 passed, 1 failed, 0 errored, 4 broken.spawn: Test Failed at /data/jrevels/juliadev/test/spawn.jl:479 | |
| Expression: sort(readlines(#= /data/jrevels/juliadev/test/spawn.jl:479 =# @cmd("\$lscmd -A"))) == sort(readdir()) | |
| Evaluated: [".gitignore", "Makefile", "TestHelpers.jl", "abstractarray.jl", "ambiguous.jl", "arrayops.jl", "asyncmap.jl", "backtrace.jl", "bigfloat.jl", "bigint.jl" … "testdefs.jl", "testenv.jl", "threads.jl", "triplequote.jl", "tuple.jl", "unicode", "util", "vecelement.jl", "version.jl", "worlds.jl"] == [".gitignore", ".sha", "Makefile", "TestHelpers.jl", "abstractarray.jl", "ambiguous.jl", "arrayops.jl", "asyncmap.jl", "backtrace.jl", "bigfloat.jl" … "testdefs.jl", "testenv.jl", "threads.jl", "triplequote.jl", "tuple.jl", "unicode", "util", "vecelement.jl", "version.jl", "worlds.jl"] | |
| Stacktrace: | |
| [1] record(::Test.DefaultTestSet, ::Test.Fail) at /data/jrevels/juliadev/usr/share/julia/stdlib/v0.7/Test/src/Test.jl:741 | |
| [2] (::getfield(Main, Symbol("##44#50")))( |
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
| using Test, SparseArrays, LinearAlgebra, Random | |
| N, M, p = 10, 12, 0.3; | |
| Q, X, Y, Z = sprand(N, M, p), sprand(Float32, N, M, p), sprand(N, M, p), sprand(N, M, p); | |
| f(x, y, z) = x + y + z + 1; | |
| broadcast!(+, Q, X, Y, Z); # warmup for @allocated | |
| broadcast!(*, Q, X, Y, Z); # warmup for @allocated | |
| broadcast!(f, Q, X, Y, Z); # warmup for @allocated |
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
| ./.freebsdci.sh runtests | |
| in dir /usr/home/julia/julia-fbsd-buildbot/worker/11rel-amd64/build (timeout 1200 secs) | |
| watching logfiles {} | |
| argv: ['./.freebsdci.sh', 'runtests'] | |
| environment: | |
| BLOCKSIZE=K | |
| COLORFGBG=default;default | |
| COLORTERM=rxvt-xpm | |
| DESKTOP_STARTUP_ID=awesome/urxvt/1040-0-abeing_TIME707846 | |
| EDITOR=vi |
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
| #!/bin/bash -eo pipefail | |
| cd .. && | |
| mv project julia-src && | |
| /tmp/julia/bin/julia -e 'Base.require(Main, :InteractiveUtils).versioninfo()' && | |
| /tmp/julia/bin/julia --sysimage-native-code=no -e 'true' && | |
| /tmp/julia/bin/julia-debug --sysimage-native-code=no -e 'true' && | |
| pushd /tmp/julia/share/julia/test && | |
| /tmp/julia/bin/julia --check-bounds=yes runtests.jl all --skip Sockets | bar -i 30 && | |
| /tmp/julia/bin/julia --check-bounds=yes runtests.jl LibGit2/online OldPkg/pkg Pkg/pkg download && | |
| popd && |
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
| using Test | |
| using Cassette: @overdub, @context, @pass | |
| f27078(T::Type{S}) where {S} = isa(T, UnionAll) ? f27078(T.body) : T | |
| T27078 = Vector{Vector{T}} where T | |
| @test f27078(T27078) === T27078.body | |
| @context Ctx | |
| @overdub(Ctx(), convert(Tuple{Vararg{Float64}}, (1,2))) | |
| bar(T) = isa(T, UnionAll) ? bar(T.body) : T |
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
| using Cassette | |
| using Core: CodeInfo, SlotNumber, SSAValue | |
| Cassette.@context Ctx | |
| struct Slice end | |
| const SLICE = Slice() | |
| function Cassette.execute(ctx::Ctx, ::Slice, callback, f, args...) |
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
| diff --git a/llvm1.log b/llvm2.log | |
| index 99f9319..be6ed79 100644 | |
| --- a/llvm1.log | |
| +++ b/llvm2.log | |
| @@ -1,13 +1,13 @@ | |
| ; Function f | |
| -; Location: REPL[18]:1 | |
| -define nonnull %jl_value_t addrspace(10)* @japi1_f_249602385(%jl_value_t addrspace(10)*, %jl_value_t addrspace(10)**, i32) #0 { | |
| +; Location: REPL[9]:1 | |
| +define nonnull %jl_value_t addrspace(10)* @japi1_f_94174783(%jl_value_t addrspace(10)*, %jl_value_t addrspace(10)**, i32) #0 { |
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
| diff --git a/llvm2.log b/llvm1.log | |
| index e9e65c0..2544cf0 100644 | |
| --- a/llvm2.log | |
| +++ b/llvm1.log | |
| @@ -8,30 +8,32 @@ CodeInfo( | |
| └─── goto #6 if not %6 | |
| 5 ── invoke Base.getindex(()::Tuple, 1::Int64)::Union{} | |
| └─── $(Expr(:unreachable))::Union{} | |
| - 6 ── goto #7 | |
| - 7 ── goto #8 |
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
| # Basic example. | |
| using Stheno | |
| using Stheno: GPC | |
| # Define model. | |
| function gp(σ, l) | |
| g = GP(EQ(), GPC()) | |
| f = σ * g ∘ (x->l * x) | |
| return g, f | |
| end |