(no title)
bos | 4 months ago
> To be kind, we’ve spent several decades twisting hardware to make the FP spherical cow work “faster”, at the expense of exponential growth in memory usage, and, some would argue, at the expense of increased fragility of software.
There is not one iota of support for functional programming in any modern CPU.
seanhunter|4 months ago
https://dataverse.jpl.nasa.gov/dataset.xhtml?persistentId=hd...
Even by the standards of substack TFA is an extraordinarily poor blogpost.
imtringued|4 months ago
Spherical cows are about simplifying assumptions that lead to absurd conclusions, not simplified models or simplified notation in general.
Calling functional programming a spherical cow when you mean that automatic memory management is a simplifying assumption, is such a gross sign of incompetence that nobody should keep reading the rest of the blog.
JumpCrisscross|4 months ago
There aren’t any commonly-accepted conclusions from spherical cows because the bit is the punch line. It’s a joke a physics 101 student makes when toughing through problems that assume away any real-world complexity and thus applicability.
Spherical cows, in the real world, are pedagogical tools first, approximations second, and mis-applied models by inexperienced practitioners third.
“Hello World” is a spherical cow. Simplifying assumptions about data are spherical cows. (And real dairy farmers implicitly assume flat cows when using square feet to determine how much room and grazing area they need per head.)
dragontamer|4 months ago
The joke as I recall it, was a physics student who brags that he can predict the winner of any horserace, so long as all of the horses were perfectly spherical perfectly elastic horses.
I'm actually not sure where cows came in, but maybe there's a different version of the joke out there.
jibal|4 months ago
Scubabear68|4 months ago
This is a great example of why rewrites are often important, in both English essays and blogs as well as in software development. Don't get wedded to an idea too early, and if evidence starts piling up that you're going down a bad path, be fearless and don't be afraid of a partial or even total rewrite from the ground up.
froh|4 months ago
assuming pointing at a problem counts as nugget.
Yoric|4 months ago
To the best of my understanding, the author describes the structured imperative programming style used since the 70s as "functional" because most languages used since the 70s offer functions. If so, it makes sense to describe hardware is optimized for what the author calls "functional programming", since hardware has long been optimized for C compilers. It also makes sense to describe callbacks, async, then, thread-safety as extensions of this definition if "functional programming", because yes, they're extensions of structured imperative programming.
There are a few other models of programming, including what people actually call functional programming, or logical programming, or synchronous programming, or odder beasts such as term rewriting, digraphs, etc. And of course, each of them has its own tradeoffs.
But all in all, I don't feel that this article has anything to offer to readers.
foobarian|4 months ago
karmakaze|4 months ago
I agree that code tends to be overrepresented--we don't 'data golf'. Even non-async dataflow oriented programs are much easier to follow, which happens to play exceptionally well with FP.
mananaysiempre|4 months ago
[1] https://www.cs.princeton.edu/~appel/papers/ssafun.pdf
hinkley|4 months ago
But for the classic ALU, I can’t think of anything. Anything that helps FP was probably meant to help with text processing and loops in general.
muststopmyths|4 months ago
Doesn't makes any point very coherently, but it's not exclusively about FP though that gets mentioned a lot.
kgwgk|4 months ago
What does that mean in the context of the comment you reply to - which includes the literal quote about "twisting hardware to make the FP spherical cow work faster”? The article may not be exclusively about FP but nobody said it was.
KerrAvon|4 months ago
JumpCrisscross|4 months ago
I’m genuinely curious if anyone can derive a consistent definition of what the author thinks a spherical cow is.
andersmurphy|4 months ago
quamserena|4 months ago
But there is a ton of support for speeding up imperative, serial programs (aka C code) with speculative execution, out-of-order execution, etc.