Giter VIP home page Giter VIP logo

Comments (3)

vchuravy avatar vchuravy commented on July 17, 2024

Interesting.

julia> Base._methods_by_ftype(Tuple{Array{Int}, typeof(undef), Int}, -1, typemax(UInt))
0-element Array{Any,1}
julia> code_typed(Array{Int}, (typeof(undef), Int))
1-element Array{Any,1}:
 CodeInfo(
1 ─ %1 = $(Expr(:foreigncall, :(:jl_alloc_array_1d), Array{Int64,1}, svec(Any, Int64), :(:ccall), 2, Array{Int64,1}, :(m), :(m)))::Array{Int64,1}
└──      return %1
) => Array{Int64,1}

The former method is what Cthulhu uses.

from cthulhu.jl.

vchuravy avatar vchuravy commented on July 17, 2024

Ah:

Base._methods(Array{Int}, Tuple{typeof(undef), Int}, -1, typemax(UInt))
1-element Array{Any,1}:
 svec(Tuple{Type{Array{Int64,N} where N},UndefInitializer,Int64}, svec(Int64), (::Type{Array{T,N} where N})(::UndefInitializer, m::Int64) where T in Core at boot.jl:416)

from cthulhu.jl.

mbauman avatar mbauman commented on July 17, 2024

Thanks!

from cthulhu.jl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.