Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Yes, Julia has some of it. But you're still required to specify the template parameters of a type (unless I'm mistaken). Whereas what I'm talking about is that any value of a data type could be compile time known. For example, some or all of the dimensions of an nd-array, as well some or all values of said nd-array.


Julia has explicit parameterization, but will also interprocedurally propagate known field values at compile time if known (which happens a lot more because our compile time is later), even if they weren't explicitly parameterized. Since this is so useful (e.g. as you say for dimensions of nd arrays - particularly in machine learning), there's been some talk of adding explicit mechanisms to control the implicit specialization also.


Ah, that's good to know. This sounds exactly like what I'm looking for. Thanks will read up on this in the docs!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: