News for hackers. Stuff that matters.
Re:Is Typed Clojure worth the trouble? by boothead on Monday June 22, 2015 @09:32AM (#9758135)
That's nonsense frankly. I've worked with an excellent team of Haskellers before I don't think we'd have been anywhere near as good without the type system. I'd agree that having an awesome team gives you a lot of other advantages, and actually FP is a huge opportunity to build that team for start ups. FP tends to attract the kind of people who make up a great team. It's for this reason that I think the conclusions of the flub paradox article are wrong http://steved-imaginaryreal.blogspot.co.uk/2015/06/the-flub-...
Re:Is Typed Clojure worth the trouble? by sebastianconcpt on Tuesday June 23, 2015 @08:58PM (#9768903)
Thanks for the downvotes, I was referring to things beyond FP. The type system is a set of early restrictions (as opposing to late restrictions or runtime or late bound). But now you mention it, I'm curious about if you think the type checker allowed you and your team to reach the goals of the project faster or not.
Re:Is Typed Clojure worth the trouble? by dllthomas on Saturday June 27, 2015 @03:00PM (#9791179)
I had a system in C, with a goal of extremely low latency. This involved a small collection of threads, each serving a different role. Project goals would periodically change, and I would find myself needing to move some functionality from one thread to another. With some creativity, I was able to enlist the help of the type checker in assuring that a particular function ran only on a particular thread. This sped me up tremendously, as my tooling would point me to inconsistencies rather than having to reason them out myself.
Re:Is Typed Clojure worth the trouble? by boothead on Wednesday June 24, 2015 @10:10AM (#9771677)
Sometimes restrictions are useful...

Aside from that in Haskell the type system isn't usually a restriction. Experts in Haskell tend to use the type system to guide them towards a correct solution.

I'm not sure it possible to say that we couldn't have built something quicker in another language or stack. What I will say was that the underlying abstraction that we built our system on (streams of events) is very well suited to a Haskell implementation, and I can say with some certainty that building a solution that is as "correct" as the one we built would have been extremely challenging. The code also held together for longer than has been my experience in some other languages and communities.

Re:Is Typed Clojure worth the trouble? by michaelochurch on Monday June 22, 2015 @10:22AM (#9758490)
I'd agree that having an awesome team gives you a lot of other advantages, and actually FP is a huge opportunity to build that team for start ups. FP tends to attract the kind of people who make up a great team.

Yes, absolutely. It's amazing how overlooked this fact seems to be, by many. Languages aren't that hard to learn, so excluding the really awful ones (e.g. Java for anything other than code that has to be on the JVM and has to be fast) the "familiarity" aspect is minuscule. Programmers learn new languages quickly. What does matter is the community and the quality of programmer you'll attract based on the tools you use and the signals that your tools send about who makes decisions.

Re:Is Typed Clojure worth the trouble? by jstuxx on Tuesday June 23, 2015 @11:28AM (#9765275)
Why is Java one the of really awful ones? I know Java is not the best language, it's not my favorite language, but I wouldn't say its really awful.
Re:Is Typed Clojure worth the trouble? by kyllo on Tuesday June 23, 2015 @02:42PM (#9766755)
Two words: no functions.
Re:Is Typed Clojure worth the trouble? by jstuxx on Tuesday June 23, 2015 @03:39PM (#9767198)
Java has functions one word "static".
Re:Is Typed Clojure worth the trouble? by kyllo on Tuesday June 23, 2015 @07:26PM (#9768495)
You can't pass a static method as an argument to another static method. You can't write a static method that returns a static method. You can't partially apply a static method. Static methods are not functions.
Re:Is Typed Clojure worth the trouble? by sebastianconcpt on Tuesday June 23, 2015 @08:53PM (#9768882)
Yeah, it do not have closures
Re:Is Typed Clojure worth the trouble? by notduncansmith on Wednesday June 24, 2015 @02:01AM (#9769916)
I think Kyllo was referring more to first-class/higher-order functions. I believe Java 8 added support for lambda expressions, but it's nowhere near the same thing.
Re:Is Typed Clojure worth the trouble? by sebastianconcpt on Wednesday June 24, 2015 @08:27AM (#9771075)
I think so too and agree about the power of being consistent with first class things (functions in this case)
Re:Is Typed Clojure worth the trouble? by RazvanPanda on Tuesday June 30, 2015 @02:56PM (#9807627)
Java 8 does have functions as values/lambdas
Re:Is Typed Clojure worth the trouble? by jstuxx on Wednesday June 24, 2015 @04:29AM (#9770346)
That's the lack of higher order functions and the lack of first class functions. Anyway I think higher order functions and method references have been added to Java 8 as well as Lambda functions.