News for hackers. Stuff that matters.
Re:Differentiable Programming Manifesto by nnq on Wednesday November 13, 2019 @02:16AM (#21521772)
> Julia seems like a much better target for this

Exactly, at least from an outside perspective, why tf?! It seems like people love so much bolting stuff to "classic, conservative" languages that they do it even if it's 10x more work than doing it in a language already having full fledged mature real macros. And this is not Common Lisp we're talking about... Julia is a pretty "normal" language that wouldn't scare anyone off!

(EDIT+: though, as a software engineer primarily, I do have a slight personal preference for more classic single-dispatchy languages like Swift... I imagine that in general it's some king of Stockholm-syndrome we developers experience :P)

Re:Differentiable Programming Manifesto by cbkeller on Wednesday November 13, 2019 @11:09AM (#21525696)
Julia seems to be making good progress on this front anyways :) https://github.com/FluxML/Zygote.jl
Re:Differentiable Programming Manifesto by dnautics on Wednesday November 13, 2019 @10:31AM (#21525205)
> classic single-dispatchy languages like Swift

Is C++ not classic enough these days?

Re:Differentiable Programming Manifesto by madhadron on Wednesday November 13, 2019 @11:10AM (#21525711)
Hard to categorize C++. The base object system is single dispatch, but the way you use the STL is multiple dispatch.
Re:Differentiable Programming Manifesto by dnautics on Thursday November 14, 2019 @02:16AM (#21533461)
You can overload any function in c++. It's multiple dispatch.
Re:Differentiable Programming Manifesto by ddragon on Thursday November 14, 2019 @08:07AM (#21535053)
Multiple dispatch is a little more than just overload. In C++ if you have a base class Animal with two derived Dog and Cat, and you have an Animal * pointer to Dog or Cat and do animal->walk() it will dispatch to either the Dog or Cat method (single dispatch). If you do animal->meet(animal) it will dispatch to either dog.meet(Animal * ) or cat.meet(Animal * ), not dog.meet(Dog * ) or cat.meet(Cat * ) like multiple dispatch languages do. You need a visitor pattern in C++ (or apparently templates) to get double dispatch:

https://en.wikipedia.org/wiki/Visitor_pattern#C++_example

Re:Differentiable Programming Manifesto by MiroF on Wednesday November 13, 2019 @09:48AM (#21524694)
> "classic, conservative"

Very odd to see these words used in conjunction with a modern language like Swift.