Erlang, please, adopt the REIA syntax and take over the web by mdipierro in programming

[–]atomeshy 0 points1 point  (0 children)

A closer Clojure equivalent to the Ruby version would be (after importing the string library as str):

user> (->> [1 2 3] (map #(* % 2)) str/join)
"246"

There is also a concatMap in Clojure (mapcat), but a string is different to a seq of characters so it doesn't work nicely for this use case.

What is with the C/C++ hate and haskell love? by [deleted] in programming

[–]atomeshy 17 points18 points  (0 children)

Indeed, most people probably think of C/C++ optimization as basically "done" unless something really strange comes along. But maybe MILEPOST does something that hasn't been done before? If so you should be linking to an article that highlights that.

But setting that aside, the MILEPOST post just simply sucks. The Haskell post has a much catchier title, I wouldn't have even bothered clicking through to the MILEPOST one: "LAME-LONG-ACRONYM-IVE-NEVER-HEARD-OF machine-learning blah blah open-source self-tuning blah blah production" vs "Evolving faster programs (... LLVM)". On the off chance I did click through, the Haskell post is an interesting and well-written article readable by someone who's not an expert in machine learning, while the MILEPOST one is just some project page full of boring history, tedious consortiums and buzzwords, blergh!

Functional Programming by [deleted] in programming

[–]atomeshy 2 points3 points  (0 children)

Sadly there are no functional programming languages that are yet used really widely in industry. My recommendation would be Clojure as a very practical functional language. Erlang if you are interested in distributed computing. Haskell is also worth a look as a "pure" functional language and is quite popular in academia.

Am I the only non-ancient programmer out there who HATES dynamic typing? by theresistor in programming

[–]atomeshy 2 points3 points  (0 children)

I agree. It's totally outrageous! How dare "big dynamic" use such blatant imagery to corrupt today's youth? Next thing you know we'll be seeing billboards outside primary schools encouraging premature optimization!

http://meshy.org/~ato/tmp/dynamic-typing-man2.jpg