Re:Programming Languages That Blew My Mind (2023)
by nritchie on Sunday November 03, 2024 @07:31PM
(#42037341)
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!
[ Parent
| on HN ]
Re:Programming Languages That Blew My Mind (2023)
by agumonkey on Monday November 04, 2024 @05:06AM
(#42040105)
You use Julia at work ? I was wondering if there were still generics issues (type system being too open and inferring hard to guess types)
Re:Programming Languages That Blew My Mind (2023)
by jakobnissen on Monday November 04, 2024 @05:28AM
(#42040237)
I 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.