3 ms·
Sort of. Java interop is an extra win for Clojure, but I really meant just the Clojure libraries. Every time I need one, it seems much more feature-complete tha
by TeMPOraL 8y ago
Sort of. Java interop is an extra win for Clojure, but I really meant just the Clojure libraries. Every time I need one, it seems much more feature-complete than CL alternative.
To take an example: in a project I'm working on, we're using Ring[0] at the backend + bunch of middleware, including Liberator[1]. Take a look at e.g. Liberator docs[2] and tell me, where's a CL library for just that, with so much thought that went into it? Or, in a CL project we had to implement CORS handling ourselves, whereas in Clojure we get it for free. Etc. This kind of story seems to repeat every time I need a library. In Common Lisp, you have to hope that Edi Weitz, Shinmera or Fukamachi wrote something, and that you won't have to patch much to make it work for you. In Clojure, everything I've seen so far[3] makes me expect to find solid and feature-complete libraries whenever I need something.
Now to be clear, I still love working in Common Lisp. It's just that my experience with Clojure made me jealous.
--
[0] - https://github.com/ring-clojure/ring https://github.com/ring-clojure/ring
[1] - https://github.com/clojure-liberator/liberator https://github.com/clojure-liberator/liberator
[2] - http://clojure-liberator.github.io/liberator/ http://clojure-liberator.github.io/liberator/
[3] - I've been writing Clojure for only couple of months, so this may be colored by first impressions.
- flavio81 8y ago>we're using Ring[0] at the backend >Ring is a Clojure web applications library inspired by Python's WSGI and Ruby's Rack. We have had this on the Common Lisp world for years, see "Clack" and "Lack" -- two libs that work together and do exactly this. > Take a look at e.g. Liberator docs[2] and tell me, where's a CL library for just that If you want exactly a "Liberator" in Common Lisp, there has been a good one for 3 years on: https://github.com/joaotavora/snooze https://github.com/joaotavora/snooze Note how Snooze uses Clack. Clack is almost a de-facto standard now. To be honest, REST services can be done with a regular web development routing lib. >Or, in a CL project we had to implement CORS handling ourselves, whereas in Clojure we get it for free But it's only adding a few headers to your HTTP headers... Patching the response handler to add those is an easy task in CL (Clack already has the facilities to let you add middlewares into the response handler), does one really need a library for that? I don't want to sound arrogant, but the complains seem a bit exaggerated.