News for hackers. Stuff that matters.
Re:Why I use R by j88439h84 on Monday January 06, 2020 @05:59AM (#21968185)
What's the difference between julia's types and mypy other than julia lacking a static checker?
Re:Why I use R by dnautics on Monday January 06, 2020 @08:20AM (#21968893)
Julia uses types as compiler hints. If you dispatch f(x) as f(1.0), in most cases it will lazily compile f to be float-optimized. When you run f(1) it will recompile it to be integer optimized.

This enables you to also select libraries: a standard float type will use blas for matrix ops; a gpu float type will use cuda.

Re:Why I use R by johnmyleswhite on Monday January 06, 2020 @07:37AM (#21968641)
Mypy types don't usually have any runtime enforcement.