r/programming • • Dec 18 '18

Clojure 1.10 release

https://clojure.org/news/2018/12/17/clojure110
72 Upvotes

24 comments sorted by

View all comments

18

u/dpash Dec 18 '18 edited Dec 18 '18

It's interesting that Lisp and it's dialects are possibly the oldest language still in general use today. It was originally released in 1958. Fortran is slightly older, but doesn't seem to be as common outside of niche domains.

And here we are, 60 years later and the languages are still getting new releases, when so many others have fallen by the wayside.

Lisp also brought us garbage collection.

8

u/flipstables Dec 18 '18

That's a good perspective. I'm still disappointed that the lisp community has mostly fractured since the 90s.

I hope clojure and functional programming get more popular.

30

u/defunkydrummer Dec 18 '18 edited Dec 18 '18

I'm still disappointed that the lisp community has mostly fractured since the 90s.

Do you think so? Currently it's split between Schemers (Racket being a subset), Lispers (majority using CL) and Clojurians.

Those three languages are markedly different to be honest, so I wouldn't say that there's a "fracture".

A Schemer moving to Common Lisp will miss the high performance first-class continuations, third-party code based mainly in recursion, and the simple, elegant, uniform syntax.

A Clojurian moving to Common Lisp will miss the immutable data, lots of built-in syntax sugar,, built-in concurrency support, built-in JVM integration, and easy dictionaries everywhere. He/she will find it complex and difficult.

A Common Lisp programmer moving to Scheme will miss the easy portability, image-based development, and practical features (like nil = false, documentation features, etc.)

A Common Lisp programmer moving to Clojure will miss the method combinations, multimethods, meta-object protocol, image-based development. compilation to native code, built-in disassembler, full numerical tower, performance that can reach C speed, code portable through dozens of implementations being able to run on almost any CPU and OS, reader macros, fully despotic macros, no [] littering the syntax, multiple namespaces, fully inspectable stacktraces, producing executable binaries, and the ability to redefine everything while the program is running, including changing the classes of instances that are alive in memory.

22

u/FirstLastMan Dec 18 '18

This guy lisps

8

u/defunkydrummer Dec 18 '18

This guy lisps

Thankst forth ze thupporth!!

3

u/vattenpuss Dec 18 '18

notation order lisp any to forth programmer moving miss will

2

u/defunkydrummer Dec 19 '18

applause dup dup dup dup . . . .

2

u/DoublePlusGood23 Dec 18 '18

As a newbie Schemer what would I think about Clojure?

4

u/defunkydrummer Dec 19 '18 edited Dec 19 '18

As a newbie Schemer what would I think about Clojure?

I'm not a Schemer but as far as I have seen usually code is written in the recursive style, and Scheme implementations require tail call optimization as a mandatory feature.

Clojure does not have TCO, instead there is a recur keyword to workaround the lack of TCO, which isn't a fault of Clojure but a fault of the JVM. (Or maybe the fault is designing Clojure around the JVM...)

https://clojuredocs.org/clojure.core/recur

There are also no first-class continuations, but at least there is a library to support them. Of course, they won't be as high-performance as in Scheme. On the other hand, Clojure has built-in support for several kind of concurrency programming models.

Many Schemers will tell you that the continuations are one of the most powerful features of Scheme; you can create all sorts of concurrency models, coroutines and exception handling based on them.

Clojure "lacks" scheme-style hygienic macros but they are available through libraries.

Clojure is always promoted as "the modern lisp" but honestly it is a different language. However it isn't difficult to learn for a Schemer or Lisper.

2

u/sammymammy2 Dec 19 '18

I'm trying out typed racket because types are cool and I want macros and Christ, what I do miss is a reasonable debugging experience and live running image. I get that semantics gets hard when you let the image live on, but it's really nice to have it.

4

u/[deleted] Dec 18 '18

First you must realise that most of the Lisp community is rightfully suspicious of all that "functional programming" fad.

3

u/cbleslie Dec 18 '18

The Clojure community should really focus on promoting to the JavaScript community. They would really dig it.

1

u/ArmoredPancake Dec 19 '18 edited Dec 19 '18

Fractured but whole.