3 ms·
I was waiting for this one. Julia's multiple dispatch and the amazing composability was eye opening. The first time you see exchanging a Measurement for a sim
by nritchie 2y ago
I was waiting for this one. Julia's multiple dispatch and the amazing composability was eye opening. The first time you see exchanging a Measurement for a simple number and returning a computation with uncertainties. Or a Unitful for a simple number and returning a computation with units. Amazing!
- agumonkey 2y agoYou use Julia at work ? I was wondering if there were still generics issues (type system being too open and inferring hard to guess types)
- jakobnissen 2y agoI use it at work. I must say I've never experienced that as an issue, so perhaps we use the programming language in a different way. One issue that i have experienced, which may be related, is that it's hard to have a little bit of controlled type dynamism. That is, once you have a type that is a union with many possibilities, you need to be vigilant not to do operations on it that makes type inference give up and return `Any`. This still bites me. There are some solutions to that in pacakges (e.g. the relatively new Moshi.jl), but I do miss it with language-level support.
- kjrfghslkdjfl 2y ago[dead]
- agumonkey 2y agoThanks a lot, I think that's what people meant by being surprised by functions over complex types. But it seems you can still be productive even without it.