tag:blogger.com,1999:blog-7056990295646173627.post7630583826707299285..comments2022-12-03T16:26:38.645+00:00Comments on Learning Clojure: Clojure Dojo: The method of Heron of AlexandriaJohn Lawrence Aspdenhttp://www.blogger.com/profile/02587130870181071109noreply@blogger.comBlogger14125tag:blogger.com,1999:blog-7056990295646173627.post-72695009869361694992011-08-05T22:08:51.653+01:002011-08-05T22:08:51.653+01:00@John, Thanks! I am a beginner but I have read thi...@John, Thanks! I am a beginner but I have read this far. Trying to understand http://clojure.org/special_forms#Special Forms--(recur exprs*) is hard without looking up what all those things mean. So, could you post a `recur` version of `(defn good-enough-guess [x]` as a comment?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-7056990295646173627.post-37954262117017093652011-03-16T00:58:45.451+00:002011-03-16T00:58:45.451+00:00@Steve, Remember that this is a talk for beginners...@Steve, Remember that this is a talk for beginners! I didn't want to talk about tail recursion, let alone recur.<br /><br />But yes, for anyone reading this who's got this far, Steve is right. The code above is broken in Clojure (although not in Scheme, it's because of some horrid Java-thing.) and should be fixed with recur.John Lawrence Aspdenhttps://www.blogger.com/profile/02587130870181071109noreply@blogger.comtag:blogger.com,1999:blog-7056990295646173627.post-39541822529332907192011-03-15T20:42:31.561+00:002011-03-15T20:42:31.561+00:00good-enough-guess should use recur for the recursi...good-enough-guess should use recur for the recursive call.<br /><br />http://clojure.org/special_forms<br /><br />"Note that recur is the only non-stack-consuming looping construct in Clojure. There is no tail-call optimization and the use of self-calls for looping of unknown bounds is discouraged. recur is functional and its use in tail-position is verified by the compiler."Steve Minerhttp://miner49r.posterous.comnoreply@blogger.comtag:blogger.com,1999:blog-7056990295646173627.post-51408998027190283272011-02-22T20:21:12.879+00:002011-02-22T20:21:12.879+00:00John, Thanks much. I am mostly learning Clojure fr...John, Thanks much. I am mostly learning Clojure from 2 sources: you and actually typing it.Lawrence Krubnerhttp://www.smashcompany.com/noreply@blogger.comtag:blogger.com,1999:blog-7056990295646173627.post-27776191665989491432011-02-17T11:14:23.414+00:002011-02-17T11:14:23.414+00:00Damien, Thank you! That's a superb tip.Damien, Thank you! That's a superb tip.John Lawrence Aspdenhttps://www.blogger.com/profile/02587130870181071109noreply@blogger.comtag:blogger.com,1999:blog-7056990295646173627.post-58525650577848291042011-02-16T21:48:40.844+00:002011-02-16T21:48:40.844+00:00Well done! Each time I read one of your articles, ...Well done! Each time I read one of your articles, I want to learn more about Clojure. Keep it up!<br /><br />To solve your display issue, you can add<br />overflow: auto;<br />to your CSS class .clojure-text<br />It will add a scrollbar to your code section when the text gets bigger than your page.<br /><br />You may find more formatting tips here:<br />http://perishablepress.com/press/2009/11/09/perfect-pre-tags/Damienhttp://damienlepage.com/noreply@blogger.comtag:blogger.com,1999:blog-7056990295646173627.post-1282700579866059192010-09-16T15:30:52.758+01:002010-09-16T15:30:52.758+01:00coolcoolAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-7056990295646173627.post-70826420549416899352010-08-28T19:23:07.266+01:002010-08-28T19:23:07.266+01:00Hey, very nice tutorial. I enjoy your writing styl...Hey, very nice tutorial. I enjoy your writing style - I actually just came here to clear up a question about iterate, and ended up reading the whole thing. Thanks!Sean Grovehttp://trapm.comnoreply@blogger.comtag:blogger.com,1999:blog-7056990295646173627.post-2996839937703186752010-03-01T10:47:09.844+00:002010-03-01T10:47:09.844+00:00@Kohath, Chris
Thank you both! Enjoy LISP.@Kohath, Chris<br /><br />Thank you both! Enjoy LISP.John Lawrence Aspdenhttps://www.blogger.com/profile/02587130870181071109noreply@blogger.comtag:blogger.com,1999:blog-7056990295646173627.post-31237722271468442852010-03-01T09:59:37.080+00:002010-03-01T09:59:37.080+00:00Hi John, I was in your clojure dojo at dev8d last ...Hi John, I was in your clojure dojo at dev8d last week and found it interesting and fun. Well done.Chris Wilperhttps://www.blogger.com/profile/02854752603314709168noreply@blogger.comtag:blogger.com,1999:blog-7056990295646173627.post-59395260933900529542010-02-26T21:16:14.617+00:002010-02-26T21:16:14.617+00:00That's a very nice tutorial you've got the...That's a very nice tutorial you've got there :). I like it. Alas, I know less about html than would help...Anonymoushttps://www.blogger.com/profile/12242792031255007733noreply@blogger.comtag:blogger.com,1999:blog-7056990295646173627.post-3428790308298251502010-01-29T09:23:08.044+00:002010-01-29T09:23:08.044+00:00@Bob. Thanks !
@Anonymous.
At least in Firefox, ...@Bob. Thanks !<br /><br />@Anonymous.<br /><br />At least in Firefox, the background doesn't seem to scale with the text. In default size it's close to OK, at least where the lines aren't too long, but with Ctrl+ to make the text larger it spills over the edge. <br /><br />Does anyone who knows more about html/blogger than me know a fix?John Lawrence Aspdenhttps://www.blogger.com/profile/02587130870181071109noreply@blogger.comtag:blogger.com,1999:blog-7056990295646173627.post-24068755503232607432010-01-29T05:05:19.951+00:002010-01-29T05:05:19.951+00:00Very nice, John. Very clear. Looking forward to pa...Very nice, John. Very clear. Looking forward to part two.Bob Erbhttps://www.blogger.com/profile/08191171988896636276noreply@blogger.comtag:blogger.com,1999:blog-7056990295646173627.post-69169090325747998242010-01-29T04:49:07.869+00:002010-01-29T04:49:07.869+00:00Hi, John.
Would be nice if the black background w...Hi, John.<br /><br />Would be nice if the black background was wider, or all lines wrapped at, say, 78 characters. As is, long lines above stretch into the white background, and are hard to read in yellow type.Anonymousnoreply@blogger.com