News for hackers. Stuff that matters.
Re:Swift: Google’s Bet on Differentiable Programming by SaxonRobber on Thursday April 09, 2020 @05:07PM (#22827211)
This is actually one of the most frustrating parts about using python. You can’t write normal python code that performs well. Instead you have to use the numpy dsl, which I often find unintuitive and too often results in me needing to consult stack overflow. This is very frustrating because I know how I want to solve the problem, but the limitations of the language prevent me from taking the path of least resistance and just writing nested loops.
Re:Swift: Google’s Bet on Differentiable Programming by pacofvf on Thursday April 09, 2020 @09:24PM (#22828993)
my point is that the benchmark is deceiving, again if you are doing data analytics or ML, then you already are using numpy/pandas/scipy, so thats not a valid argument.
Re:Swift: Google’s Bet on Differentiable Programming by SaxonRobber on Friday April 10, 2020 @12:25PM (#22834576)
But it is. A good compiler could unroll my loop and rewrite it with the appropriate vector ops. But that isn’t possible with just python right now.