News for hackers. Stuff that matters.
Re:First-Class Automatic Differentiation in Swift by amelius on Monday October 22, 2018 @04:43AM (#18273094)
> I desperately want to write my ML code in a statically typed language.

Why? ML programs are typically sufficiently compact to not require a type system.

Re:First-Class Automatic Differentiation in Swift by geezerjay on Monday October 22, 2018 @05:06AM (#18273179)
Type errors can happen in small programs. In ML applications, which are computationally very expensive and take a lot of time to run, an avoidable type error can result in a considerable waste of time.
Re:First-Class Automatic Differentiation in Swift by Cybiote on Monday October 22, 2018 @06:26AM (#18273481)
Type annotations can be useful in helping a reader get a rough outline at a glance, of what some unfamiliar piece of code is doing. Especially under heavy use of broadcasting.

The second is compactness is true only if you're chaining straightforward library calls. If you're writing your own functions or building non-trivial functionality on top, types will be of aid too.