4 ms·
As someone who has used CL and Clojure to write non-trivial code using REPL driven programming it makes me mad that the word REPL has been hijacked to mean "int
by globular-toast 6y ago
As someone who has used CL and Clojure to write non-trivial code using REPL driven programming it makes me mad that the word REPL has been hijacked to mean "interactive shell".
I'm thankful for this article shedding light on what it really is. It's sad that most programmers haven't experienced.
- tluyben2 6y agoI have some experience with clojure but besides using the repl as 'interactive shell' I never tried it further (for some reason I always thought it was a crippled lisp even though I did some fair amount of work in it); does it offer the full experience? I should try it again as that's something that's actually used in real life (and has a good client side cljs experience).
- mikelevins 6y agoIt does not offer the full experience. It has no breakloop and no ability to browse and edit the live running environment. It has no ability to rummage around inside the dynamic environment of a suspended function call, much less to redefine the suspended function or the types of its parameters, nor to restart the suspended call. Indeed, the JVM makes some of that stuff really inconvenient to do. You cannot do everything from the Clojure repl in the way you can from a Common Lisp repl or from a Smalltalk worksheet. I don't know that the Clojure language design forbids it; you might, for example, implement Clojure on top of a Lisp or Smalltalk environment and hook up their tools to Clojure through its interop. That might work, and ruricolist has been working on such an implementation called Cloture: https://github.com/ruricolist/cloture https://github.com/ruricolist/cloture But existing Clojure implementations don't have the full set of tools.
- lispm 6y agoThe examples from Mikel are just not possible in a default Clojure setup. It does not have break loops and it does not have a dynamic object system (by design).
- tluyben2 6y agoAh that answers my question I guess. Thanks
- globular-toast 6y agoYeah, true. I would still consider Clojure a "proper" REPL driven language, though.
- mikelevins 6y agoI do not. I have used it to write quite a bit of code, and I generally like it as a language, but I don't consider it a reasonable substitute for Common Lisp or Smalltalk. Factor, on the other hand, is--as far as I know.