4 ms·
As for the Java bashing in the beginning I'm not saying Java is anywhere near the expressive power of Haskell but many people think different things based on Ja
by agentgt 10y ago
As for the Java bashing in the beginning I'm not saying Java is anywhere near the expressive power of Haskell but many people think different things based on Java because of features they either don't know about, outdated libraries used, or experiences with older versions and codebases.
For example most don't know that Java actually does have macro like capabilities through APT (annotation processor that will work automagically I might add). Some might say ewww its not macros but then again annotation processing might just be 80/20 good enough (aka what OCaml learned with ppx vs camlp) and that Java now sort of has traits and that its code swapping is actually fairly good (jrebel). There are even sadly people that don't know Java has lambdas, and even some (usually C++ dudes) that don't know it has generics.
Most don't even know that you can combine interfaces with generic types as in: `<T extends Comparable & Serializable> void someFunc(T t)`.
Yes Java is not Rust, Haskell or even OCaml in expressiveness but it certainly is more powerful than Golang and definitely compiles fast (albeit starts up slow).
That being said OCaml is still my favorite. Compiles fast and easier for me to understand. Super mature and lots of companies use it.
- iLemming 10y agoIt's not Java what makes Java platform one of the most popular but rather JVM. That's why Clojure grows in popularity. Because it brings the expressiveness.
- oweiler 10y agoPlease show me how Clojure is growing in popularity. Clojure has never been more than a niche language.
- ardacinar 10y agoA language can grow in popularity while still remaining a niche language. Haskell is a very good example of that, but I really can't say the same thing about Clojure.
- adrianN 10y agohttps://xkcd.com/1102/ https://xkcd.com/1102/
- diminishedprime 10y agowell for one, it's being used in the industry quite a lot. Citi, Walmart, Amazon, CapitalOne, Facebook, and Spotify are just some of the names from this list. http://clojure.org/community/companies http://clojure.org/community/companies
- acchow 10y ago> and lots of companies use it Curious, who uses ocaml other than FB and Jane Street?
- grault 10y agohttps://ocaml.org/learn/companies.html https://ocaml.org/learn/companies.html