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(t) = +(t...,) | |
@code_typed f(ntuple(identity, 5)) # what you expect | |
@code_typed f(ntuple(identity, 18)) # something is going on | |
@code_typed f(ntuple(identity, 33)) # _apply |
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> function _subtypes(type::Type) | |
out = Any[] | |
_subtypes!(out, type) | |
end | |
_subtypes (generic function with 1 method) | |
julia> function _subtypes!(out, type::Type) | |
if !isabstracttype(type) |
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> foo() = @debug "Hello, World!"; | |
julia> foo() | |
julia> withenv("JULIA_DEBUG" => "all") do |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Please submit a bug report with steps to reproduce this fault, and any error messages that follow (i | |
n their entirety). Thanks. | |
Exception: EXCEPTION_ACCESS_VIOLATION at 0x43a2e5a91 -- jl_gc_pool_alloc at/home/Administrator/buil | |
dbot/worker/package_win64/build/src\gc.c:964 [inlined] | |
jl_gc_alloc_ at /home/Administrator/buildbot/worker/package_win64/build/src\julia_internal.h:274 [in | |
lined] | |
jl_gc_alloc at /home/Administrator/buildbot/worker/package_win64/build/src\gc.c:2668 | |
in expression starting at C:\Users\datseris\.julia\dev\DynamicalSystemsBase\src\minimal_ode.jl:169 | |
jl_gc_pool_alloc at /home/Administrator/buildbot/worker/package_win64/build/src\gc.c:963 [inlined] |
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
Please submit a bug report with steps to reproduce this fault, and any error messages that follow (i | |
n their entirety). Thanks. | |
Exception: EXCEPTION_ACCESS_VIOLATION at 0x43a2e5a91 -- jl_gc_pool_alloc at /home/Administrator/buil | |
dbot/worker/package_win64/build/src\gc.c:964 [inlined] | |
jl_gc_alloc_ at /home/Administrator/buildbot/worker/package_win64/build/src\julia_internal.h:274 [in | |
lined] | |
jl_gc_alloc at /home/Administrator/buildbot/worker/package_win64/build/src\gc.c:2668 | |
in expression starting at C:\Users\datseris\SimpleDiffEq.jl\src\tsit5_integrator.jl:224 | |
jl_gc_pool_alloc at /home/Administrator/buildbot/worker/package_win64/build/src\gc.c:963 [inlined] |
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
using Makie, AbstractPlotting | |
using AbstractPlotting: RefValue, absrect | |
scene = scatter(rand(10), rand(10)) | |
const key = Mouse.left | |
# Create an initially hidden rectangle | |
function select_rectangle(scene) |
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
# Based on Fresh: | |
["#65ADC2", "#233B43", "#E84646", | |
"#C29365", "#168E7F", "#985CC9", | |
"#B74305", "#56727A"] | |
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
""" | |
@forward T.x functions... | |
Define methods for `functions` on type `T`, which call the relevant function | |
on the field `x`. | |
# Example | |
```julia | |
struct Wrapper | |
x | |
end |
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
using Luxor, DSP; | |
cd(@__DIR__); | |
const AGENTSTEXT = "Agents.jl" | |
# const FONT = "Montserrat SemiBold" | |
const FONT = "Tamil MN Bold" | |
const FONTSIZE = 200 | |
using Random | |
Random.seed!(9) |