Skip to content

Instantly share code, notes, and snippets.

Avatar

Shuhei Kadowaki aviatesk

  • Recruit Co., Ltd.
  • Tokyo
View GitHub Profile
@aviatesk
aviatesk / nospecialize.ipynb
Created Sep 1, 2019
Benchmarks for `@nospecialize`
View nospecialize.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@aviatesk
aviatesk / mdbranch.jl
Last active Aug 15, 2019
isa vs. multiple dispatch branching
View mdbranch.jl
# %% defines
function isabranch(numsary)
s = 0
for (n1, n2) numsary
if n1 isa Int8 && n2 isa Int8
s += 1
elseif n1 isa Int8 && n2 isa Int16
s += 2
elseif n1 isa Int8 && n2 isa Int32
s += 3
@aviatesk
aviatesk / benchmarks.ipynb
Created Jul 24, 2019
Benchmarks for Traceur.jl: Cassette.jl to Vinyl.jl
View benchmarks.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
You can’t perform that action at this time.