2 ms·
So, to be clear, you had to avoid using dependent type style in Julia and use something very different? And that different thing wasn't another style of depende
by nickpsecurity 11y ago
So, to be clear, you had to avoid using dependent type style in Julia and use something very different? And that different thing wasn't another style of dependent types? Am I interpreting it correctly?
Reason being that the only emulation of dependent types in Julia being way to slow would be an extra argument against any claims for Julia having dependent types vs real, dependently-typed languages that don't punish you for using them. I'd rather be clear before going that far, though.
- wbhart 11y agoAvoiding dependent types wasn't due to a problem in Julia. Proper dependent types are essentially not something you want to mix with Jit compilation due to undecidability, at least not if you want to use bignums in your dependent values. Of course you could emulate them some other way in Julia, but they are deliberately not baked into the language. In the end we used the model that some computer algebra systems, like Sage and Magma use, of having parent objects for the rings in which the element objects live. I'll leave it up to the experts to figure out if this is dependent typing or not. It obviously works very well either way.
- nickpsecurity 11y agoMakes sense. Appreciate the clarification.