Hello,
Iβam new. Exist a picture with a type tree of all Julia types?
Well, the type tree is kind of huge and gets dynamically extended by packages etc. Instead of trying to find and expect a static image, why not explore (branches of) it interactively? E.g.
julia> using AbstractTrees
julia> AbstractTrees.children(t::Type) = subtypes(t)
julia> print_tree(Number)
Number
ββ Complex
ββ Real
ββ AbstractFloat
β ββ BigFloat
β ββ Float16
β ββ Float32
β ββ Float64
ββ AbstractIrrational
β ββ Irrational
ββ Integer
β ββ Bool
β ββ Signed
β β ββ BigInt
β β ββ Int128
β β ββ Int16
β β ββ Int32
β β ββ Int64
β β ββ Int8
β ββ Unsigned
β ββ UInt128
β ββ UInt16
β ββ UInt32
β ββ UInt64
β ββ UInt8
ββ Rational
9 Likes
Another package for this is TypeTree.jl
:
using TypeTree
println(join(tt(Real), ""))
Real
ββ AbstractFloat
β ββ BigFloat
β ββ Float16
β ββ Float32
β ββ Float64
ββ AbstractIrrational
β ββ Irrational
ββ Integer
β ββ Bool
β ββ Signed
β β ββ BigInt
β β ββ Int128
β β ββ Int16
β β ββ Int32
β β ββ Int64
β β ββ Int8
β ββ Unsigned
β ββ UInt128
β ββ UInt16
β ββ UInt32
β ββ UInt64
β ββ UInt8
ββ Rational
3 Likes
2 Likes
@cormullion, how on earth did you generate such a PDF β2129.48 cm wide x 16.8 cm tallβ ???
I just used the Graphviz default settings, so the more nodes, the bigger the page. I think the biggest PDF page you can have is 15,000,000 inches square, or 38,000,000 cm, so thereβs plenty of room for even more typesβ¦
4 Likes