3 ms·
Have you seen Julia's type system? It is strong, and parametric on types, bitvalues, and tuples thereof. So for example Array{Int32, 2} is a 2-dimensional arr
by dnautics 10y ago
Have you seen Julia's type system? It is strong, and parametric on types, bitvalues, and tuples thereof. So for example Array{Int32, 2} is a 2-dimensional array of Int32.
Types are tied into multiple dispatch; so the properties are defined by the functions created for it. Moreover, JITting is type-dependent; if you call a function with a type signature, it compiles it, unless it's seen that signature before.
- lambdasquirrel 10y agoWhat build tools would you use with it?
- dnautics 10y agoI don't think those sorts of things are a good use case for Julia. Julia is best used for deploying backend mathematics. I'm just suggesting the type system is beautiful, and if someone wanted to implement a more general purpose language with that type system it might be welcome.
- Jcol1 10y agoHow is julia or it's type system not suitable for general purpose programming? Multidispatch seems like a generalization of python...and fields don't have to be typed. general purpose programs in julia: https://github.com/shashi/Escher.jl https://github.com/shashi/Escher.jl https://github.com/essenciary/Genie.jl https://github.com/essenciary/Genie.jl
- Xcelerate 10y agoI love Julia's type system. I just wish the whole thing was static (I've never had a case where the Any type worked better than explicitly specifying a type).
- dnautics 10y agoIt works fine when you are lazy... I didn't feel like figuring out a type for a dictionary that was stashing parameters, so I just made it {symbol, any}.