1βββββββ
ββββββββ
βββββββ3
ββ4βββββ
ββββ5βββ
2βββββββ
ββββββββ
ββββββββ
βββββββ6
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
| ``` | |
| - # This file is a part of Julia. License is MIT: https://julialang.org/license | |
| - | |
| - module UUIDs | |
| - | |
| - using Random | |
| - | |
| - import SHA | |
| - | |
| - export UUID, uuid1, uuid4, uuid5, uuid_version |
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 BenchmarkTools | |
| @enum Shape Rock Paper Scissors | |
| function play(a::Shape, b::Shape) | |
| if a == b | |
| return 0 | |
| elseif a == Paper && b == Rock | |
| return 1 | |
| elseif a == Paper && b == Scissors |
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 Statistics | |
| using Printf | |
| import Pkg | |
| const JULIA_CMD = Base.julia_cmd() | |
| run_cmd(cmd) = run(`$JULIA_CMD --startup=no --history-file=no -e $cmd`) | |
| const N_STARTUP_RUNS = 5 | |
| function run_latency_check() |
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
| julia> Profile.print(noisefloor=4) | |
| 15604 ./task.jl:259; (::getfield(REPL, Symbol("##26#27")){REPL.REPLBackend})() | |
| 15604 /Users/kristoffer/julia/usr/share/julia/stdlib/v1.2/REPL/src/REPL.jl:117; macro expansion | |
| 15603 /Users/kristoffer/julia/usr/share/julia/stdlib/v1.2/REPL/src/REPL.jl:85; eval_user_input(::Any, ::REPL.REPLBackend) | |
| 15603 ./boot.jl:328; eval(::Module, ::Any) | |
| 15599 /Users/kristoffer/.julia/packages/GeoStats/r5a6L/src/solvers/kriging.jl:94; solve(::EstimationProblem{PointSetData{Float64,2},RegularGrid{Float64,2},SimpleMapper}, ::Kriging) | |
| 14715 /Users/kristoffer/.julia/packages/GeoStats/r5a6L/src/solvers/kriging.jl:126; solve(::EstimationProblem{PointSetData{Float64,2},RegularGrid{Float64,2},SimpleMapper}, ::Symbol, ::OrdinaryKrigin... | |
| 14258 /Users/kristoffer/.julia/packages/KrigingEstimators/IyyR6/src/estimators.jl:39; predict(::OrdinaryKriging{Float64,Float64}, ::StaticArrays.MArray{Tuple{2},Float64,1,2}) | |
| 2985 /Users/kristoffer/.julia/packages/KrigingEstimators/IyyR6/s |
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
| const XX = ([2.0, 3.0, 4.0], [6.0, 3.0, 2.0], [2.0, 5.0, 1.0], [4.0, 3.0, 6.0], [4.0, 3.0, 3.0], [4.0, 4.0, 1.5], [2.0, 4.0, 2.5], [3.0, 3.0, 5.0], [5.0, 3.0, 4.0], [3.0, 4.0, 3.5]) | |
| function FEMBase.assemble_elements!(problem::Problem{Poisson}, | |
| assembly::Assembly, | |
| elements::Vector{Element{E}}, | |
| time::Float64) where E | |
| bi = BasisInfo(E) | |
| ndofs = length(bi) | |
| Ke = zeros(ndofs, ndofs) |
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
| struct Point | |
| id::Int | |
| x::Int | |
| y::Int | |
| end | |
| function run_6() | |
| data = readlines(joinpath(@__DIR__, "../../inputs/input_6")) | |
| points = Point[] |
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
| module x86SimdIntrinsics | |
| const VE{N, T} = NTuple{N, VecElement{T}} | |
| const jlt_to_llvmt = Dict( | |
| Int64 => "i64", | |
| UInt64 => "i64", | |
| Int32 => "i32", | |
| UInt32 => "i32", | |
| Int16 => "i16", |
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
| import Base: convert, isassigned, getindex | |
| struct expected{T,E} | |
| v::Union{T,E} | |
| ok::Bool | |
| end | |
| convert(::Type{expected{T,E}}, v::T) where {T, E} = expected{T, E}(v, true) | |
| convert(::Type{expected{T,E}}, v::E) where {T, E} = expected{T, E}(v, false) | |
| convert(::Type{expected{T,T}}, v::T) where {T} = expected{T, T}(v, true) |
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
| import GitHub | |
| GITHUB_AUTH = ENV["GITHUB_AUTH"] | |
| REPO = "JuliaLang/julia" | |
| BUGFIX_LABEL = "bugfix" | |
| PERFORMANCE_LABEL = "performance" | |
| DOC_LABEL = "doc" | |
| if !@isdefined(__myauth) | |
| const __myauth = Ref{GitHub.Authorization}() |