News for hackers. Stuff that matters.
Re:Nightcode: An IDE for Clojure and Java by emiljbs on Saturday August 03, 2013 @04:09PM (#6153186)
Re:Nightcode: An IDE for Clojure and Java by calibraxis on Saturday August 03, 2013 @04:39PM (#6153313)
Yes, I had Rhodes' work in mind. In Common Lisp, sequences are hardcoded as lists and vectors. [1] Which excludes the sets and hashtables (which I mentioned), not to mention anything sequence-like which users might come up with. (Actually, it doesn't even have sets built in. I've seen people use degenerate hashtables to simulate them — keys which just hash to true.)

Furthermore, the by far most common mapping functions operate only on proper lists, not sequences. [2] And in the very popular (albeit notorious) LOOP macro, one must even use in/across/"k being the hash-key using (hash-value v)", depending on whether you're operating on lists, vectors or hashtables respectively! [3]

(Of course, one could add these things to CL, in the sense that you have all of CL's power in C — by implementing CL atop C. Or you could invent your own generic seq functions, and hope others use it.)

Someone could point out that had CL's standard had continued to evolve, it might've had these things. Or that these limitations were due to weaker computers. But whatever happened happened, and this is the real-world CL we have. CL's a wonderfully powerful language (not counting the troll-dominated community), but there's seams.

[1] http://www.lispworks.com/documentation/HyperSpec/Body/26_glo...

[2] http://www.lispworks.com/documentation/HyperSpec/Body/f_mapc...

[3] http://www.unixuser.org/~euske/doc/cl/loop.html

Re:Nightcode: An IDE for Clojure and Java by emiljbs on Saturday August 03, 2013 @07:52PM (#6153879)
" But whatever happened happened, and this is the real-world CL we have."

Some of my links were there to point out that it's not really, we do have extensible sequences in SBCL for example.

Thanks for making such a long reply for what basically was link dumping.

Re:Nightcode: An IDE for Clojure and Java by lispm on Saturday August 03, 2013 @05:11PM (#6153420)
The ITERATE macro is a bit more powerful.