News for hackers. Stuff that matters.
Re:Ask HN: Is Python dying? by spiralpolitik on Sunday February 14, 2016 @08:16PM (#11100944)
Next year has always been the year that functional programming will take over the world. It's been like that since I started programming in the early 90s. While functional concepts have leaked into imperative languages, Haskell is the only pure functional language that so far has come close to breaking out although Lisp has also gotten close a few times.

(see also next year will be the year of Linux on Desktop)

Re:Ask HN: Is Python dying? by kedean on Sunday February 14, 2016 @10:39PM (#11101394)
Clojure and Scala have gotten close as well. I've seen Scala in use at scale at both universities and corporations. Clojure is being used in production by at least a few well known companies, too. Both have the primary benefit of being backed by the JVM.
Re:Ask HN: Is Python dying? by tayo42 on Sunday February 14, 2016 @11:07PM (#11101452)
Scala seems to have some momentum. I've wondered if the companies that have adopted it are using it like jvm haskell or a just a better java?
Re:Ask HN: Is Python dying? by hibikir on Sunday February 14, 2016 @11:52PM (#11101587)
Few people are treating it like jvm haskell in production, although a certain subset of really loud people wish it wasn't otherwise. They all tend to work in the same OSS projects, while the rest of the community does their best to pretend they don't exist.

I think that the reality of modern scala is that, while there is in no way a unified use of the language, the way to use Scala is in its own, intermediate location. Libraries have big gains from the most exotic features that make it be closer to FP, like higher kinded types. while business code tends to look more like java with case classes and algebraic data types. The difficult part is the fuzzy middle.

Another important part of adoption is that Scala's strengths lie in a few good libraries that underpin some great use cases. For instance, using Scalding or Spark as ways to do big data, or building other kinds of distributed systems on top of Akka. For other uses, like writing simple CRUD services, there are many options, and almost all of them are bad, which is why treating the language as just a better Java just doesn't fly.

Re:Ask HN: Is Python dying? by merb on Monday February 15, 2016 @09:57AM (#11103659)
Actually sealed traits and case object/case classes and pattern matching is really useful for http programming.
Re:Ask HN: Is Python dying? by runT1ME on Monday February 15, 2016 @02:20AM (#11101942)
Verizon is one of the bigger scala shops (a few hundred scala programmers on a "project") and is much closer to the functional side than a better Java. However, micro services and good library support mean some of the less experienced teams (in FP) use it more of Java++. Both are very pleasant to maintain/work on though.
Re:Ask HN: Is Python dying? by RobertKerans on Monday February 15, 2016 @01:36AM (#11101842)
This is just one [massive] project, but HMRC are rebuilding in Scala atm, & from talking to the developers working on the project, bit of both: selling it as a better Java with all the associated interop with existing stuff, but individual devs attracted by the functional side. The Guardian seemed to have similar reasoning.
Re:Ask HN: Is Python dying? by aphexairlines on Monday February 15, 2016 @03:24AM (#11102130)
Third option: like a JVM ML.
Re:Ask HN: Is Python dying? by angryasian on Sunday February 14, 2016 @11:51PM (#11101584)
With the popularity of Apache Spark in big data, Scala is definitely gaining a lot of traction.
Re:Ask HN: Is Python dying? by datashaman on Monday February 15, 2016 @12:43AM (#11101702)
Elixir is promising.

http://elixir-lang.org/

Re:Ask HN: Is Python dying? by markatkinson on Monday February 15, 2016 @01:49AM (#11101866)
And really enjoyable... That's what really counts right?
Re:Ask HN: Is Python dying? by datashaman on Monday February 15, 2016 @02:04AM (#11101907)
Couple that with Phoenix (which looks and acts like most other MVC frameworks [and has good docs]), and we have a win I think.

And yes, it's quite fun (and mind-bending at the same time, in a good way).

Re:Ask HN: Is Python dying? by FlyingSnake on Monday February 15, 2016 @12:06PM (#11104422)
Clearly you haven't worked with EXRM and the 'no documentation outside hello-world' Ecto query.

/s

Re:Ask HN: Is Python dying? by datashaman on Thursday February 18, 2016 @12:41AM (#11123940)
Seems comprehensive: http://hexdocs.pm/ecto/Ecto.Query.html

Disclaimer: complete Elixir noob

Re:Ask HN: Is Python dying? by TheWiseOne on Sunday February 14, 2016 @11:26PM (#11101510)
F#?

It's used by a few big names (Bayard Rock, Tachyus, Jet.com, BlueMountain Capital, Microsoft Research, etc.) and it looks to be gaining more mainstream acceptance.

Re:Ask HN: Is Python dying? by JBReefer on Monday February 15, 2016 @08:03PM (#11107258)
Jet.com does a ton of F# advocacy here in Silicon Alley
Re:Ask HN: Is Python dying? by eru on Sunday February 14, 2016 @11:15PM (#11101478)
> While functional concepts have leaked into imperative languages, [...]

I predict we'll see more and more of that, but never a great breakthrough:

- appreciation of pure functions and immutability - optional typing even in Python - Garbage collection (mainstream since Java) - higher order functions - algebraic data types (in Scala, sort-of possible in C++ boost, and even in protobuf) - etc

Re:Ask HN: Is Python dying? by pjmlp on Monday February 15, 2016 @02:57AM (#11102033)
Pure FP might not have taken over the world.

But those that read my Java, C# and C++14 code, better know their way around lambda calculus.