r/programming • • Dec 08 '17

Clojure 1.9 is now available!

http://blog.cognitect.com/blog/clojure19
583 Upvotes

258 comments sorted by

View all comments

25

u/romulotombulus Dec 09 '17

Good job Clojure team! Clojure is a fantastic language and I encourage anyone interested in learning to give it a shot. You will see some NPEs and some horrifying stack traces, but in time these won’t bother you much at all. The merits of clojure and dynamic languages have been debated elsewhere ad nauseum, but if you give yourself a month of working with the language I think you’ll see what the zealots like me are raving about.

5

u/[deleted] Dec 09 '17

[removed] — view removed comment

15

u/alexdmiller Dec 09 '17

There is tail call recursion with loop/recur, just not automatic TCO. In practice, most people typically use higher level operations like map/filter/reduce etc (which are written to leverage loop/recur or other ways of implementation) and find this to be completely a non-problem.

2

u/[deleted] Dec 10 '17

Static tail recursion is the least interesting form of tail calls.

What is mostly useful in practice is dynamic tail calls, and this is what JVM cannot handle in any way.

So, this is a huge problem.

1

u/yogthos Dec 10 '17

Huge problem for accomplishing what tasks exactly?

4

u/[deleted] Dec 10 '17

Executing arbitrary semantically correct code without throwing a stack overflow exception.

3

u/yogthos Dec 10 '17

Can you state a concrete problem this is a requirement for?

2

u/[deleted] Dec 10 '17

You don't know much about functional programming, do you? For everything based on combinators it's pretty much a requirement. From parsing to interpreters.

5

u/yogthos Dec 10 '17

I asked you about what tasks you wouldn't be able to accomplish, not what style of code you'd have to use to accomplish them. It's only a problem if you want to solve a specific set of problems using a specific style of code.

2

u/jsjolen Dec 10 '17

That's a silly argument though, because of Turing completeness. I think /u/combinatorylogic is showing a fair point, it's idiomatic functional style to do what he says and Clojure calls itself a functional language, so why does the std impl. have an issue with it?

→ More replies (0)

1

u/the_evergrowing_fool Dec 10 '17

It's only a problem if you want to solve a specific set of problems using a specific style of code.

Yeah... this is really important you know. Nobody wants your ad-hoc code.

0

u/[deleted] Dec 10 '17

Don't claim your shitty language is "functional" then, if you cannot use an idiomatic functional style to solve problems.

→ More replies (0)