News for hackers. Stuff that matters.
Re:OCaml for the Masses (2011) by ofrzeta on Monday November 26, 2018 @06:32AM (#18532577)
Nice. Now the big question is what language to pick, because if there are many small communities around each language it won't help the cause.

I see Elixir (also mentioned in this thread) getting some traction. Like most of the time its success is mainly due to a singular project with a specific application, namely web programming in Phoenix. Just as back then with Ruby and Rails.

Probably F# would be a better candidate for mainstream adoption with a vast .NET ecosystem and the open source release of .NET Core.

Re:OCaml for the Masses (2011) by jasim on Monday November 26, 2018 @06:55AM (#18532663)
From my biased perspective, it could be OCaml thru Reason.

The .NET/Microsoft ecosystem is a no-go for a lot of people, and F# doesn't have functors. Being a statically typed language, you don't have something like Ruby's mixins to share code, nor do you have OO's interface inheritance. Functors fill this gap by allowing you to mint new modules out of existing modules, and is a powerful way of achieving modularity. Simon Peyton Jones critiques that while OCaml's modules are very powerful, the power/cost ratio is not very favourable. And it is true - there is a bit of learning curve, but I think it can be eased as the community grows.

For good or for bad, Javascript is the lingua-franca of computing today if adoption is any measure, and anything that goes against its norms face strong downdraft (try getting Ruby+Opal mainstream adoption). But the updraft can be useful (I'm probably the only person on the internet who don't understand React Hooks yet which was announced just a few weeks ago). Reason is Javascript++: the syntax is very close, and it compiles to vanilla JS with great interop with npm. The promise of gradual adoption I think is a good marketing lever. We'll see in a few years.

There is also Elm, which is just so good for building rich web applications on the browser. It is a language with wonderful aesthetics, clear long-term vision, and avoids importing the complexity of academic research, which is often the case in other typed functional languages.

But you don't really need to pick a language more than you pick Typed FP. F#, Haskell, and PureScript are great as well - each has different tradeoffs. But once you understand the set of features underpinning Typed FP you can move around languages with relative ease, and that's what I think matters most.

Re:OCaml for the Masses (2011) by Bizarro on Monday November 26, 2018 @11:13AM (#18534319)
The Facebook ecosystem is a no-go for a lot of people.

Reason seems interesting and I'm glad they shed some of the OCaml syntactic baggage to make it more programmer ergonomic, but it's very unlikely that it'll ever take off. Typescript already has the statically-typed JS market share, and that won't change.

Once Web assembly becomes a mainstream, viable thing, I think we'll see a couple new languages come out that don't have the baggage of legacy like OCaml or Javascript, and could possibly flourish.

Re:OCaml for the Masses (2011) by pjmlp on Tuesday November 27, 2018 @02:41AM (#18540319)
Languages need a reason (OS SDK, framework, use case) to flourish.

Mainstream picks languages based on use cases, not the other way around.

Re:OCaml for the Masses (2011) by int_19h on Monday November 26, 2018 @03:37PM (#18536582)
> Being a statically typed language, you don't have something like Ruby's mixins to share code, nor do you have OO's interface inheritance.

But you do, though. You have open object types, and you can write generic functions in terms of those types, which effectively serves as interfaces (or traits) in other languages.

Re:OCaml for the Masses (2011) by plinkplonk on Monday November 26, 2018 @08:39AM (#18533231)
"For good or for bad, Javascript is the lingua-franca of computing today "

a very strong claim. There is a lot of 'computing' outside the browser.

lingua franca of front end web dev, I grant you, (almost by definition 'front end web dev' is mostly javascript).

Re:OCaml for the Masses (2011) by jasim on Monday November 26, 2018 @08:46AM (#18533281)
Yes you're right. I thought Javascript had become the most popular language out there, but TIOBE claims otherwise.
Re:OCaml for the Masses (2011) by oblio on Monday November 26, 2018 @10:19AM (#18533871)
> The .NET/Microsoft ecosystem is a no-go for a lot of people

Why? It's not 2005 - 2009 anymore, when there was this Mono push in Linux-land (remember Banshee? :) ).

Re:OCaml for the Masses (2011) by pjmlp on Tuesday November 27, 2018 @02:38AM (#18540305)
Functors can be implemented via classes, interfaces and generics.

It is 100% the same?

No, but it is pretty close for practical purposes.

Re:OCaml for the Masses (2011) by proaralyst on Monday November 26, 2018 @06:50AM (#18532640)
Elixir is not statically typed. It's definitely interesting but you don't get a lot of the same safety as you do with ML.
Re:OCaml for the Masses (2011) by zinclozenge on Monday November 26, 2018 @10:48AM (#18534106)
In fairness, a lot of the 'safety' in BEAM languages is delegated to processes. It's ok for a process to crash.