10 ms·
Plotting an escape from the quagmire of equality in Emacs Lisp (2012)
- hellofunk 10y agoPhil is one of the most interesting people in the Clojure community, and in the software industry in general. Always good to see what he's thinking.
- sunng 10y agoSo sad to see he is leaving Clojure community. That's a sign of the death of Clojure. A few great developers have moved their focus away from Clojure.
- deleted 10y ago[deleted]
- lvh 10y agoWhere are you getting this information from? Phil works for CircleCI, who have been very open about how much Clojure they use, and his GitHub profile indicates anything but: https://github.com/technomancy https://github.com/technomancy .
- Plugawy 10y agoFrom the looks of things he recently joined CircleCI which is using Clojure, so maybe not all is lost ;-)
- j_m_b 10y agoThe reports of Clojure's death have been greatly exaggerated.
- hacker_9 9y agoMainly from people who just want the language to fail for some reason.
- flavio81 9y agoWhere do they move to?
- peatmoss 10y agoThe timestamp shows that this was written some years ago (2012). I know Guile Emacs has made some progress in the meantime, but is still not done. I wonder if there have been any other changes that would allow for this to happen.
- deleted 9y ago[deleted]
- ungzd 10y ago> Of course, with a compiler that targets Emacs Lisp, you can work around this by implementing your own immutable types Clojurescript uses this approach and probably it's ok.
- cronjobber 10y agoQuite confused. Two examples: > It turns out there is very little code that would break if Emacs strings became immutable Which means that very little Clojure code would break if they just went ahead and used Emacs strings. > Common Lisp fans claim that lisp-2s have first-class functions, but the way they are kept separate from other first-class values in their own namespace ghetto brings to mind claims of "separate but equal"—at best it is Jim Crow functional programming. Jim Crow functional programming?? The virtue signalling is strong in this one. He's wrong on the facts, too. A Lisp-2 doesn't keep the function inside the ghetto, it keeps everyone else out. Functions can be everywhere, but a non-function can't be the value of a function binding. Function's aren't second class in this system, they're royal class.
- db48x 9y agoHe means that Emacs Lisp code wouldn't break much if strings were made to be immutable; you don't generally mutate strings. (Buffers, on the other hand, are mutated all the time.) I would suspect that the converse is also true though; Clojure code probably doesn't often rely on strings sharing storage, so making them mutable might not have a huge effect. I've less experience with Clojure than with Elisp, though, so I might well be wrong. As for the latter, it does occasionally feel like functions aren't truly first-class in a lisp-2 because you have to jump through hoops to pass them along as an argument (funcall, #'foo syntax, etc). In most lisps passing functions as arguments is just as common as "calling" non-function values is in Clojure. Anyway, I suspect that the "Jim Crow" dig was hyperbole, not intentional virtue signalling. :P
- lispm 9y ago> does occasionally feel like functions aren't truly first-class in a lisp-2 The definition of 'first class functions' is not a feeling, but three capabilities: CL-USER 9 > (let ((sin-fn (function sin))) (list ; 1) passing functions as arguments to other functions (mapcar sin-fn '(1 2 3 4)) ; 2) returning them as the values from other functions ((lambda () sin-fn)) ; 3) and assigning them to variables or storing them in data structures (let ((v #(1 2 3))) (setf (aref v 1) sin-fn) v))) ((0.84147096 0.9092974 0.14112 -0.7568025) ; 1) #<Function SIN 410007BC14> ; 2) #(1 #<Function SIN 410007BC14> 3)) ; 3) As you can see, functions are first-class values in Common Lisp. > In most lisps passing functions as arguments is just as common as "calling" non-function values is in Clojure Including Lisp-2s. Passing functions is completely normal and widely used in Common Lisp. The Common Lisp standard has literally zillions of functions where you pass one or more functions in. Common Lisp also can make CLOS objects callable.
- kruhft 9y ago"At the heart of Clojure and ClojureScript’s implementation is #equiv that is in turn based off of Henry Baker’s egal operator introduced in this paper. Briefly, equality in Clojure is defined by equality of value, which is facilitated by pervasive immutability. Equality in the presence of mutability has no meaning." http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.23.9999 http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.23.9...
- deleted 9y ago[deleted]