News for hackers. Stuff that matters.
Re:Lamdu - towards the next generation IDE by freyrs3 on Wednesday December 25, 2013 @07:54PM (#6964872)
> This is a problem with functional programming in general, it is fundamentally anti-human

I would argue that the "anything goes" dynamic procedural languages ( like Ruby, Python ) are far more anti-human, in that human ability to reason about large masses of code scales orders of magnitude worse than in languages that provide a strong theoretic framework for reasoning about code.

Re:Lamdu - towards the next generation IDE by seanmcdirmid on Wednesday December 25, 2013 @08:52PM (#6964986)
You should read up on flow and how it applies to programming, start here:

http://en.wikipedia.org/wiki/Flow_(psychology)

The reason straight jackets lead to poor usability is that human minds are fairly diverse in the way they solve problems, and rigid constraints imposed by a tool are likely to trip up your thinking.

There is a tension between flow and feedback, but its not clear at all that one dominates the other as you've stated.

Re:Lamdu - towards the next generation IDE by tel on Wednesday December 25, 2013 @08:55PM (#6964989)
I find dynamic languages break my flow badly by eventually losing clarity on what things are supposed to do. Haskell is annoying as he'll to begin with but eventually those constraints give very tight, very fast feedback that's very flow-compatible.
Re:Lamdu - towards the next generation IDE by Edmond on Wednesday December 25, 2013 @09:25PM (#6965038)
Were you at the social innovation lab kickoff at Hopkins a few weeks back? I thought I saw a booth for Reify Health.
Re:Lamdu - towards the next generation IDE by tel on Thursday December 26, 2013 @12:09AM (#6965316)
I wasn't personally, but I another guy on the team made it. Let me know if you'd like to say hi and grab a beer!
Re:Lamdu - towards the next generation IDE by Edmond on Thursday December 26, 2013 @10:57AM (#6966604)
sure, will be in touch!
Re:Lamdu - towards the next generation IDE by freyrs3 on Wednesday December 25, 2013 @09:11PM (#6965013)
Constraints are what prevent fallacious reasoning. It's better to have a tool/framework tell you you're wrong then not knowing about problems or believing falsehoods.
Re:Lamdu - towards the next generation IDE by seanmcdirmid on Wednesday December 25, 2013 @09:26PM (#6965040)
Again, there is tension between flow and feedback. The ability to express and tolerate incomplete and incorrect solutions when trying to solve, and more importantly, understand a problem, is very important. Bondage and discipline languages typically lack that capability, which is why many programmers are still flocking to dynamic languages. For this reason, even Haskell is trying to get into the hybrid typing game (type inference also helps of course, without which Haskell would be unusable).

Ideally, we could achieve flow without sacrificing semantic feedback (or vice versa). It is definitely a worthy goal

Re:Lamdu - towards the next generation IDE by tel on Thursday December 26, 2013 @12:12AM (#6965323)
I've been fiddling with a System F language for a bit and find the types not as burdensome as I had originally thought. I couldn't imagine learning to use it from scratch though. I do think the loss of magic inference is a boon though.
Re:Lamdu - towards the next generation IDE by Sssnake on Wednesday December 25, 2013 @11:25PM (#6965251)
You are repeating what appears to be a completely baseless claim all over this discussion. What evidence do you have to support the notion that languages you happen to dislike decrease flow?
Re:Lamdu - towards the next generation IDE by rm82 on Thursday December 26, 2013 @08:51PM (#6969016)
>I would argue that the "anything goes" dynamic procedural languages ( like Ruby, Python ) are far more anti-human,

Is it anti-human to be able to interact with the code, and explore what it actually does? A run-time type error is one that has real example data.

The assumption we can write perfect code immediately and easily, or that a type analysis can just guide us through, is not the case. And it's breaks down even worse, when 99% of your code is interacting with systems outside of the scope of the typing system. (database servers, client-side browsers, network connections, file-systems). Dynamically typed language are good fits, when the code is mostly glue-code between multiple systems outside of the scope of any type analysis.

But let's not equate functional programming with static typing.

>in languages that provide a strong theoretic framework for reasoning about code.

You act like many of us are ever writing complicated algorithms. We're not. We're writing simple algorithms that deal with complex structures of information. And in the few cases where the algorithms get so complicated you want your invariants to be formally proven, anything less than a full blown theory prover, will be insuffient anyway.

Re:Lamdu - towards the next generation IDE by Edmond on Wednesday December 25, 2013 @08:09PM (#6964901)
Sure if it was easy for people to think functionally then functional programming is without a doubt more elegant. But elegance doesn't negate the fact that the reasoning model demanded by functional programming isn't friendly to the way we think. The elegance argument is something proponents always bring up, but it misses the point.

While dynamic procedural languages have their problems, I think they work for the most part, hence their success Vis-à-vis functional languages. As far as the issue of scale, that's why modular constructs as added to manage large code bases.

Re:Lamdu - towards the next generation IDE by freyrs3 on Wednesday December 25, 2013 @08:20PM (#6964924)
I don't know how you're coming to this result, but it /is/ easy for people to think functionally. You can teach intro-CS classes in both functional and imperative styles and generally they pick up both styles at the same rate. I've seen it year after year of teaching these courses. The myth that functional programming doesn't match human thought is just flat out FUD, there's no evidence to support it.

The adoption of programming languages is more influenced by economic factors than informed by solid engineering.

Re:Lamdu - towards the next generation IDE by Edmond on Wednesday December 25, 2013 @08:36PM (#6964951)
I wont argue about your experience in the class room but both styles of programming have been around for about the same length of time and yet their adoption rates speak volume.

We can debate this ad infinitum and probably wont come to an agreement.

Re:Lamdu - towards the next generation IDE by freyrs3 on Wednesday December 25, 2013 @08:44PM (#6964969)
The adoption rates do say a lot of things, but not about the claims you're making about human reasoning.