News for hackers. Stuff that matters.
Re:A New Approach to Databases — Simulating 10Ks of Spaceshi... by papsosouid on Wednesday February 27, 2013 @01:24PM (#5293907)
>First, this means using a programming language built for concurrency. At present, there are two such languages in wide(ish) use: Erlang[2] and Clojure.

How exactly does clojure qualify while go and haskell do not?

Re:A New Approach to Databases — Simulating 10Ks of Spaceshi... by pron on Wednesday February 27, 2013 @01:28PM (#5293939)
Oh, Haskell qualifies, it's just not in wide(ish) use yet. Also, I don't know whether it supports mutable concurrent constructs (as Clojure does with refs and STM). Without those you don't have concurrent writes.

As for Go, it allows sharing of mutable state, and so does not prevent races and does not make it clear when modifications to said mutable state are visible. It supports concurrency well but is not built around it.

Re:A New Approach to Databases — Simulating 10Ks of Spaceshi... by jvanenk on Wednesday February 27, 2013 @01:41PM (#5294017)
Haskell has marvelous concurrent constructs. It's actually one of the few places where I end up thinking "wow, I'm glad I get to use threads here" and I'm not thinking it sarcastically.

http://hackage.haskell.org/packages/archive/base/4.6.0.1/doc...

http://hackage.haskell.org/packages/archive/stm/2.4.2/doc/ht...

Re:A New Approach to Databases — Simulating 10Ks of Spaceshi... by BrokenEnso on Wednesday February 27, 2013 @01:41PM (#5294014)
The RedMonk ranking from September 2012 [1] seems to contradict your statement about Haskell prevalence. Note, it edges out Erlang on both metrics.

[1] http://redmonk.com/sogrady/2012/09/12/language-rankings-9-12...

Re:A New Approach to Databases — Simulating 10Ks of Spaceshi... by fghh45sdfhr3 on Wednesday February 27, 2013 @03:50PM (#5294809)
What is RedMonk, and how is their ranking less B.S. than rankings according to Netcraft?
Re:A New Approach to Databases — Simulating 10Ks of Spaceshi... by sbov on Wednesday February 27, 2013 @03:07PM (#5294548)
With OTP it's pretty easy to make an Erlang program with race conditions.
Re:A New Approach to Databases — Simulating 10Ks of Spaceshi... by papsosouid on Wednesday February 27, 2013 @01:39PM (#5294002)
>Oh, Haskell qualifies, it's just not in wide(ish) use yet.

Seems to be more widely used than clojure.

>Also, I don't know whether it supports mutable concurrent constructs

Yeah, Control.Concurrent.STM has vars, queues, channels, etc.

Re:A New Approach to Databases — Simulating 10Ks of Spaceshi... by mtrimpe on Wednesday February 27, 2013 @01:44PM (#5294030)
Clojure runs on the JVM which means that it's 'politically usable' in many more places than Haskell
Re:A New Approach to Databases — Simulating 10Ks of Spaceshi... by regularfry on Wednesday February 27, 2013 @05:55PM (#5295592)
I don't dispute that this is true, but I still don't understand it. How have we got to a state where native code isn't politically acceptable?
Re:A New Approach to Databases — Simulating 10Ks of Spaceshi... by seanmcdirmid on Wednesday February 27, 2013 @08:18PM (#5296321)
Native code is just too expensive to write/maintain and is not justified unless you need the extra constant factor performance it gives you, which is quite unrelated to scalability.

In this case, at least, industry seems to be doing it right. C++ is reserved for the industries that really need it (gaming, embedded) and enterprise work focuses more on programmer productivity instead.

Re:A New Approach to Databases — Simulating 10Ks of Spaceshi... by regularfry on Thursday February 28, 2013 @04:42AM (#5297932)
So Haskell is damned with C++'s brush despite being safer than Java...
Re:A New Approach to Databases — Simulating 10Ks of Spaceshi... by seanmcdirmid on Thursday February 28, 2013 @05:31AM (#5298050)
Haskell is completely managed, its not very native at all. They have a garbage collector right? Since everyone is compiling to native instructions these days, GC (and the memory safety required for it) is about the main difference.

At the end of the day, each one of your VMs are running on hardware, the point about Clojure being JVM-friendly is more about ecosystem and interop then some efficient execution concerns. You could say Haskell is interoperable with everything and nothing, and be right on both counts.

Re:A New Approach to Databases — Simulating 10Ks of Spaceshi... by regularfry on Friday March 01, 2013 @03:17AM (#5303369)
> the point about Clojure being JVM-friendly is more about ecosystem and interop then some efficient execution concerns.

If you had only written that, you wouldn't have been downvoted. Almost everything else you've written here is wrong.

Re:A New Approach to Databases — Simulating 10Ks of Spaceshi... by robertfw on Wednesday February 27, 2013 @02:02PM (#5294126)
it will also be dead simple to integrate with spacebase, which is java
Re:A New Approach to Databases — Simulating 10Ks of Spaceshi... by papsosouid on Wednesday February 27, 2013 @01:52PM (#5294071)
Yes, that is certainly the theory. Have you seen that actually happen in practice? Java shops almost exclusively continue to use java, and refuse to allow the dozens of other jvm languages. Every measure I can find shows haskell is more widely used than either clojure or erlang.
Re:A New Approach to Databases — Simulating 10Ks of Spaceshi... by tlack on Wednesday February 27, 2013 @03:42PM (#5294761)
Can you share your Haskell vs. Erlang data?
Re:A New Approach to Databases — Simulating 10Ks of Spaceshi... by papsosouid on Wednesday February 27, 2013 @03:53PM (#5294828)
Just the usual suspects (redmonk, langpop, tiobe).
Re:A New Approach to Databases — Simulating 10Ks of Spaceshi... by banachtarski on Wednesday February 27, 2013 @10:28PM (#5296794)
As a professional practictioner of all 3, haskell is emphatically not used more widely than clojure or erlang.
Re:A New Approach to Databases — Simulating 10Ks of Spaceshi... by papsosouid on Thursday February 28, 2013 @10:54AM (#5299205)
How does being a "professional practictioner of all 3" qualify one to make that assertion? And how do you reconcile that with the fact that every objective measure available shows otherwise?
Re:A New Approach to Databases — Simulating 10Ks of Spaceshi... by banachtarski on Friday March 01, 2013 @01:02AM (#5303055)
Link to the objective measures?

The qualification is admittedly subjective but Haskell is not as practical for use in many use cases, whereas Erlang fits a niche very well, and the others (scala, clojure) are more general purpose. My assertion is based on what I know all my peers in the industry to be working on, and the sizes of the projects they are working on. If you have more data than this empirical data set, I'm all ears.

Edit, I see you reference tiobe and langpop.

This is a horrible* way of assessing industry usage, just fyi. Niche languages for example, may see relatively small general usage, but may be the de facto answer to a particularly type of problem. Many people use Erlang to solve their concurrency problems. Few use haskell (although that part is improving and I love haskell a lot).

Re:A New Approach to Databases — Simulating 10Ks of Spaceshi... by papsosouid on Friday March 01, 2013 @10:07AM (#5304539)
>but Haskell is not as practical for use in many use cases

Except that is entirely nonsense. Your misconceptions about the languages in question do not imply a particular amount of usage from other people.

>the others (scala, clojure) are more general purpose

I can't even imagine how one could make such an absurd statement. All that demonstrates is that you have not actually used haskell as you claim, or you only used it 20 years ago.

> My assertion is based on what I know all my peers in the industry to be working on

Which is ridiculous, just like claiming haskell is more widely used than C by only looking at the financial industry.

>This is a horrible* way of assessing industry usage,

It is a poor way, but it is infinitely superior to the "cause I said so" method you are employing. Erlang and haskell rate close together in all of them, so it certainly makes no sense to pretend one is more widely used than the other. Clojure rates miles behind both, and it is equally absurd to pretend it is so far behind in every measure but is actually ahead based on nothing.

Re:A New Approach to Databases — Simulating 10Ks of Spaceshi... by banachtarski on Friday March 08, 2013 @06:31PM (#5346463)
Oh really? Haskell is not suitable for practical use? Try getting any software firm to adopt it and explain to them how I/O works with monads and about applicative functors. You will be met with resistance every step of the way.

I love Haskell and use it nearly every day to do mathematics and a number of side projects. Please step off your high horse and throwing all this ad hominem around. You're giving haskellers a bad name everywhere.

Re:A New Approach to Databases — Simulating 10Ks of Spaceshi... by carterschonwald on Wednesday February 27, 2013 @03:02PM (#5294527)
Haskell BEAUTFIFULLY qualifies, its just that STM and the other abstractions have been in GHC since around 2005-2007, so they're hardly "novel" in that community.
Re:A New Approach to Databases — Simulating 10Ks of Spaceshi... by lucian1900 on Wednesday February 27, 2013 @01:31PM (#5293954)
Indeed. All 4 are reasonably mature, have excellent concurrency and parallelism stories and have been used practically for this purpose.

The author is right about there being few languages that do this, though.