Re: NW UK Clojurians?
I guess that strictly I should have said NW England rather than NW UK since I don't think may of our Scottish friends would be able to make a regular trip south either... If it's of interest, there's a Clojure Dojo on the 2nd Monday of every month at Manchester's Madlab:http://manchester.clojuredojo.com/ Thanks. I did see some posts about Madlab a while back but there seems to have been no activity on the Clojure dojo website since February. There do seem to be Clojure things going on in Madlab as recently as November though. I'll keep an eye on the calendar. Simon -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: Idiomatic pmap for side-effects ?
Stuart Any idea when the Fork/Join frame work will be included in Clojure proper? I have seen the presentation somewhere on the web and it looks very promising. Thomas On Dec 8, 9:37 pm, Stuart Sierra the.stuart.sie...@gmail.com wrote: doall + pmap will work, but be aware that pmap is not particularly clever about allocating CPU usage. Fork/Join is a better approach, not yet integrated into Clojure proper but there are experimental branches. Also look at `pcalls`. -S -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: java reflection during macro
Thanks. I was missing the call to resolve. (let [klass (resolve c)] ) With it it works. Razvan On Dec 8, 11:39 pm, Stuart Sierra the.stuart.sie...@gmail.com wrote: Not sure if it helps, but here's my example of using reflection in a macro: http://stuartsierra.com/2010/12/16/single-abstract-method-macro -S -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: Idiomatic pmap for side-effects ?
I don't think the fork/join branch is currently active, but the work is there waiting for someone to pick it up again. -S -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: Counterclockwise nREPL multiple commands
On Dec 6, 2011, at 11:27 PM, jlhouchin wrote: As I work through the Programming Clojure book, I play with the code I enter into the REPL. I just want to say that I am infinitely enjoying using the REPL in Counterclockwise. It does make multi-line code so much nicer. Awesome job guys. Now that I had my perverse pleasure. Is there a way to force quit a command/job rather than the REPL? Thanks again for a totally awesome tool and language. Counterclockwise does not yet provide the UI for killing a running evaluation. Coming sooner or later. :-) BTW, if you have further tooling questions, there is a dedicated Counterclockwise mailing list: http://groups.google.com/group/clojuredev-users/ Cheers, - Chas -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: Ending or closing malformed line in REPL
On Dec 6, 2011, at 11:31 AM, jlhouchin wrote: This biggest issue I see in this context, is that the REPL is tied to the editor. Yes, I can detach the REPL, but it is still a part of the editor. I can't have the pdf of my book side by side with the REPL. As soon as I click on the REPL, the entire editor comes to the top, putting my book behind. Making it impossible to see the code I am attempting to enter. Is there a way to run this REPL completely independent of the editor? You can detach the REPL view from the Eclipse frame; right click on the REPL view's tab and choose Detached. If I'm reading your question right, that should get you what you want. Also, I do not see any way to go back in history with this REPL as I can with the other. Ctrl+up and Ctrl+down will allow you to recall expression history. (Note that if you're on the Mac, these shortcuts clash with Spaces; you'll need to either rebind them to other keys in the Eclipse preferences, turn off Spaces, or change Spaces' keyboard shortcuts.) Cheers, - Chas -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: Ending or closing malformed line in REPL
On 12/9/2011 1:34 PM, Chas Emerick wrote: On Dec 6, 2011, at 11:31 AM, jlhouchin wrote: This biggest issue I see in this context, is that the REPL is tied to the editor. Yes, I can detach the REPL, but it is still a part of the editor. I can't have the pdf of my book side by side with the REPL. As soon as I click on the REPL, the entire editor comes to the top, putting my book behind. Making it impossible to see the code I am attempting to enter. Is there a way to run this REPL completely independent of the editor? You can detach the REPL view from the Eclipse frame; right click on the REPL view's tab and choose Detached. If I'm reading your question right, that should get you what you want. Yes, you can detach the REPL from the the current tab or location within the editor. But it seems that either Eclipse or CCW is using a form of Multiple Document Interface which causes the editor window to come to the top above any other application when the REPL is selected and has the focus. If I have the REPL detached and only using 1/3 of the width of my screen and I have the editor at full width. The editor blocks everything except the REPL which is the topmost within the editor. So what I have settled on for my journey through the book is to leave the REPL in its normal place and resize the editor to 1/3 of the width of my screen. This leaves 2/3 the width for the book. This is working fine on my 15 laptop. I have also simply created a Clojure Project for the book, so that I can type the code as I progress through the book. This workflow is working fine for me. Also, I do not see any way to go back in history with this REPL as I can with the other. Ctrl+up and Ctrl+down will allow you to recall expression history. (Note that if you're on the Mac, these shortcuts clash with Spaces; you'll need to either rebind them to other keys in the Eclipse preferences, turn off Spaces, or change Spaces' keyboard shortcuts.) Thanks. I don't know if that is documented anywhere, but I missed it. I will definitely put that to use. And thanks for this wonderful tool. I know it isn't where you want it to be, but it is definitely very usable. I definitely look forward to seeing what a CCW 1.x looks like. Jimmie -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: Counterclockwise nREPL multiple commands
On Dec 9, 1:27 pm, Chas Emerick cemer...@snowtide.com wrote: On Dec 6, 2011, at 11:27 PM, jlhouchin wrote: As I work through the Programming Clojure book, I play with the code I enter into the REPL. I just want to say that I am infinitely enjoying using the REPL in Counterclockwise. It does make multi-line code so much nicer. Awesome job guys. Now that I had my perverse pleasure. Is there a way to force quit a command/job rather than the REPL? Thanks again for a totally awesome tool and language. Counterclockwise does not yet provide the UI for killing a running evaluation. Coming sooner or later. :-) BTW, if you have further tooling questions, there is a dedicated Counterclockwise mailing list: http://groups.google.com/group/clojuredev-users/ Hello, Yes, I am subscribed to the Counterclockwise list. The main reason I posted here is that I do no know what is Counterclockwise versus what is nREPL in this particular situation. Would you still consider the Counterclockwise list the preferred list for this question? I will keep that in mind for further questions and comments. Thanks. Jimmie -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: Trying to use CDT on 1.3.0
New to lein, coming from SBCL where slime setup is effortless! Any ideas why this fundamental step is failing? bash-4.1$ lein version Leiningen 1.6.1 on Java 1.6.0_25 Java HotSpot(TM) Client VM bash-4.1$ lein swank That's not a task. Use lein help to list all tasks. bash-4.1$ -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
My first clj project: A re-ranking twitter client
Hi, a while ago I wrote a basic twitter client for Compojure and CoffeeScript using adamwynne's twitter-api library. Now that I have the time to revisit Clojure again I noticed that I never managed to show it to anyone. So here it is: https://github.com/werg/simple-twitter-rerank If you're interested in the topic or an expert on writing Clojure REST- interfaces, I'd be delighted for some feedback. All the best, Gabe -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Lein not resolving?
bash-4.1$ lein search swank-clojure ... == Results from clojars - Showing page 1 / 1 total ... [swank-clojure 1.4.0-SNAPSHOT] Swank server connecting Clojure to Emacs SLIME bash-4.1$ lein plugin install swank-clojure 1.4.0-SNAPSHOT [INFO] Unable to find resource 'swank-clojure:swank-clojure:jar:1.4.0- SNAPSHOT' in repository central (http://repo1.maven.org/maven2) [INFO] Unable to find resource 'swank-clojure:swank-clojure:jar:1.4.0- SNAPSHOT' in repository clojars (http://clojars.org/repo/) === my version info === bash-4.1$ mvn --version Apache Maven 2.2.1 (r801777; 2009-08-06 13:16:01-0600) Java version: 1.6.0_25 Java home: /usr/local/jdk1.6.0_25/jre Default locale: en_US, platform encoding: ISO-8859-1 OS name: linux version: 2.6.37.6-smp arch: i386 Family: unix bash-4.1$ lein version Leiningen 1.6.2 on Java 1.6.0_25 Java HotSpot(TM) Client VM -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: Lein not resolving?
On Fri, Dec 9, 2011 at 12:38 PM, Richard Tiger Melville melvilleti...@gmail.com wrote: bash-4.1$ lein plugin install swank-clojure 1.4.0-SNAPSHOT [INFO] Unable to find resource 'swank-clojure:swank-clojure:jar:1.4.0- SNAPSHOT' in repository central (http://repo1.maven.org/maven2) [INFO] Unable to find resource 'swank-clojure:swank-clojure:jar:1.4.0- SNAPSHOT' in repository clojars (http://clojars.org/repo/) Very strange. I suspect a network or proxy issue. -Phil -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: Trying to use CDT on 1.3.0
Swank is not built in by default. Have you added a :dev-dependencies [[swank-clojure 1.4.0-SNAPSHOT]] map entry to project.clj and runned lein deps and the lein swank? (1.4.0-SNAPSHOT worked for me a few days ago, maybe 1.4.0 is out sooner or later) /Linus 2011/12/9 Richard Tiger Melville melvilleti...@gmail.com New to lein, coming from SBCL where slime setup is effortless! Any ideas why this fundamental step is failing? bash-4.1$ lein version Leiningen 1.6.1 on Java 1.6.0_25 Java HotSpot(TM) Client VM bash-4.1$ lein swank That's not a task. Use lein help to list all tasks. bash-4.1$ -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en