M
Modular•13mo ago
dcbgv

Where are the types documented?

The programming manual has a section on strong types, but it doesn't actually enumerate the primitive types there. Where can I find a full enumeration of the available primitives?
3 Replies
guidorice
guidorice•13mo ago
Those are in the stdlib under builtin, like Int and SIMD is documented in there. Or the index page lists them all out with descriptions https://docs.modular.com/mojo/lib.html
Modular Docs - Mojo🔥 modules
A list of all modules in the current standard library.
dcbgv
dcbgvOP•13mo ago
I see int, but I don't see things like Int8, Float32, etc. Where can I find those? It looks like those are aliases to SIMD, but are there aliases for every DType?
guidorice
guidorice•13mo ago
Other than Int, Complex, and float_literal, it seems like all the numeric types really are in SIMD. SIMD is kind of pervasive in mojo. Definitely not an authoritative answer here though 🙂
Want results from more Discord servers?
Add your server