26
18
13
24
u/forreddits Jun 18 '16
You can't call yourself a Lisp without tail call optimization.
3
u/hiptobecubic Jun 19 '16
Really though...
1
Jun 21 '16
1
u/hiptobecubic Jun 21 '16
I don't see how an in-progress library is akin to a first class language feature.
Note: the subset of Clojure currently accepted by CTCO is very small and will continue to grow.
1
22
u/ernest_as Jun 18 '16
Types.
-1
u/Pet_Ant Jun 18 '16
Until I heard of the typed project I had no interest. My Groovy the experience has taught me the joys of prototyping dynamically and then finishing off with types as documentation.
2
5
20
Jun 18 '16 edited Jun 18 '16
Caused by: java.lang.StackOverflowError at clojure.lang.LazySeq.seq(LazySeq.java:56) at clojure.lang.RT.seq(RT.java:450) at clojure.core$seq.invoke(core.clj:122) at clojure.core$map$fn3699.invoke(core.clj:2099) at clojure.lang.LazySeq.sval(LazySeq.java:42) at clojure.lang.LazySeq.seq(LazySeq.java:56) at clojure.lang.RT.seq(RT.java:450) at clojure.core$seq.invoke(core.clj:122) at clojure.core$map$fn3699.invoke(core.clj:2099) at clojure.lang.LazySeq.sval(LazySeq.java:42) at clojure.lang.LazySeq.seq(LazySeq.java:56) at clojure.lang.RT.seq(RT.java:450) at clojure.core$seq.invoke(core.clj:122) at clojure.core$map$fn3699.invoke(core.clj:2099) at clojure.lang.LazySeq.sval(LazySeq.java:42) at clojure.lang.LazySeq.seq(LazySeq.java:56) at clojure.lang.RT.seq(RT.java:450) at clojure.core$seq.invoke(core.clj:122) at clojure.core$map$fn3699.invoke(core.clj:2099)
I am sorry...
1
27
u/Blazeix Jun 18 '16 edited Jun 18 '16
Now that Java 8 has lambdas, there's no real point in learning Clojure anymore.
9
8
13
12
11
10
u/forreddits Jun 18 '16 edited Jun 18 '16
Most Clojure users are old Java farts that now think they are smarter than everybody else because they discovered Lisp and they still can't code without an IDE.
5
5
12
u/unmanned_drama Jun 18 '16
Dynamic typing means it's destined to fail.
1
u/swiftonista Jun 22 '16
I suppose we're doomed to be relegated to the same dustbin of history as Perl, Python, Ruby, and Javascript.
1
u/DannyB2 Jul 01 '16
Even modern mental health care has difficulty helping to achieve full recovery from having used Perl.
11
10
6
u/john_atx Jun 18 '16
Clojure trades in mutable data for mutable functions.
1
u/huahaiy Jun 19 '16
Clojure got mutable functions? Where can I get that?
3
u/camdez Jun 19 '16
I'm assuming this refers to how vars can be redefined:
(do (defn aloha [x] (println (str "Hello, " x))) (aloha "friend") (defn aloha [x] (println (str "Goodbye, " x))) (aloha "friend")) ;; Hello, friend ;; Goodbye, friend3
u/john_atx Jun 19 '16
That's exactly what I mean. I haven't work on big systems, but I am imaging how terrible it would be if you had a back door Repl to a running production system, where people patched up issues. It would be very hard to reason about the system, since you can't really know what functions were defined as a all the time...
2
u/dwwoelfel Jun 19 '16
I've worked on multiple large systems in Clojure, most of them with a repl in production. Best practice is to use the repl to patch the system, then create a diff with the patch and deploy it. The repl is just there to help you diagnose problems and reduce downtime.
2
Jun 27 '16
Erlang has a really interesting solution to this; basically all functions will see consistent versions of other functions in the same module, but as soon as you call out to another module, updated versions become available.
But they also have a built-in mechanism for applying (and rolling back) changes to your live data directly on the stack and ensuring these changes are synchronized with the visibility of newly-loaded code on a per-green-thread level. (Typically you would write these conversion functions for every live-deploy that changed the shape of a record.) Without having a sophisticated system like that you'd be fairly hosed.
1
u/spotter Jun 19 '16
REPL? Non-interactively
load-fileon something like that:(in-ns 'clojure.core) (defn cycle [& args] :no)And enjoy namespace mutability.
1
6
8
u/ares623 Jun 18 '16
Scala is better in every way.
2
u/swiftonista Jun 22 '16
One of these years I'll finish reading the Scala type system documentation, so that I can judge the merits of this claim!
1
8
2
2
4
3
2
1
u/TotesMessenger Jun 18 '16
1
1
1
1
0
5
u/code-shoily Jun 19 '16
This post http://www.loper-os.org/?p=42