refer-clojure seems to have no effect.
Hi, I'm trying to use core.logic using the following namespace expression (modelled on core.logic's own test file): (ns user (:refer-clojure :exclude [==]) (:use clojure.core.logic)) However, this gives the following warning: WARNING: == already refers to: #'clojure.core/== in namespace: user, being replaced by: #'clojure.core.logic/== It seems that the refer-clojure line has no effect. What am I doing wrong? Kind regards, Frederik -- 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: refer-clojure seems to have no effect.
The user namespace is implicitly created with a blanket refer for clojure.core; removing the mapping for e.g. '== in user would require using ns-unmap. Just use a different namespace. - Chas On Nov 22, 2012, at 8:40 AM, Frederik De Bleser wrote: Hi, I'm trying to use core.logic using the following namespace expression (modelled on core.logic's own test file): (ns user (:refer-clojure :exclude [==]) (:use clojure.core.logic)) However, this gives the following warning: WARNING: == already refers to: #'clojure.core/== in namespace: user, being replaced by: #'clojure.core.logic/== It seems that the refer-clojure line has no effect. What am I doing wrong? Kind regards, Frederik -- 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
Removing URLClasspath from Pomegranate
Tobias Crawley rightly suggested that Pomegranate's URLClasspath protocol should be factored out into a separate project, so as to provide a common abstraction for interacting with dynamic classloaders. The new project (dynapath @ https://github.com/tobias/dynapath) is already being used by other Clojure projects, and he has a pull request into Pomegranate now that would make the necessary changes there: https://github.com/cemerick/pomegranate/pull/43 Using dynapath should be a total win; aside from participating in what looks to be the emerging standard for the protocol for this purpose, dynapath's protocol supersets Pomegranate's and dynapath includes a couple of handy utilities that pomegranate does not. I'm sending this message now as an early heads-up to anyone who is using Pomegranate and has already extended its URLClasspath protocol. The change to Pomegranate will be a breaking one, and I'd like to make sure people have sufficient time to look at the proposed changes, potentially suggest alternatives, and otherwise make appropriate plans. FWIW, I plan on merging the pull request soon, whatever that means. Pipe up if you'll be negatively affected, etc. 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
core.logic and laziness...
Hi all, this question may sound stupid but I've got to ask it given a fn like the one below, how would one make it lazy (assuming that it can be done)? also if it can, I'd like to make it fully-lazy (instead of chunked-lazy)...any ideas? I remember something about restoring '1 at a time' laziness in the 'Joy of Clojure' but I 'm not sure if I rememer correctly and I don't have access to the book at the moment (lent it to someone for 2 weeks!)... (def ^:const board (vec (range 8))) (defn bishop-moves Returns the logical moves for a bishop (on a 8x8 grid) given its current position and direction. [x y] (run* [q] (fresh [a b] (membero a board) (membero b board) (!= a x) (!= b y) (project [x y a b] (== (Math/abs ^long (- x a)) (Math/abs ^long (- y b))) (== q [a b]) the reason I want to do this, believe it or not, is performance !!! why calculate all the moves if I'm not going to consume them all?it's a waste isn't it? many thanks in advance... Jim -- 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: core.logic and laziness...
core.logic has lazy-run. On Thursday, November 22, 2012, Jim foo.bar wrote: Hi all, this question may sound stupid but I've got to ask it given a fn like the one below, how would one make it lazy (assuming that it can be done)? also if it can, I'd like to make it fully-lazy (instead of chunked-lazy)...any ideas? I remember something about restoring '1 at a time' laziness in the 'Joy of Clojure' but I 'm not sure if I rememer correctly and I don't have access to the book at the moment (lent it to someone for 2 weeks!)... (def ^:const board (vec (range 8))) (defn bishop-moves Returns the logical moves for a bishop (on a 8x8 grid) given its current position and direction. [x y] (run* [q] (fresh [a b] (membero a board) (membero b board) (!= a x) (!= b y) (project [x y a b] (== (Math/abs ^long (- x a)) (Math/abs ^long (- y b))) (== q [a b]) the reason I want to do this, believe it or not, is performance !!! why calculate all the moves if I'm not going to consume them all?it's a waste isn't it? many thanks in advance... Jim -- 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=enhttp://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
Re: core.logic and laziness...
On 22/11/12 16:25, David Nolen wrote: core.logic has lazy-run. ooo thanks a lot!!! Jim -- 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
ease of use
K guys, I honestly don't want to piss on Clojure, I know how hard a lot of people have worked for a long time in order to make this a viable language. I respect and am grateful for your dedication. But you should know this: every time I come back to use Clojure I find that it's become harder. Maybe it's my mind that's going (quite possible). Or maybe it's something you should worry about. A -- 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: ease of use
Sorry, I'm in a bad mood. For context, after hours of struggling with Aquamacs and the new nrepl, I find it's overwritten my last two days' work. I guess it's likely my fault, I probably clicked the wrong key in my frustrated eightieth attempt to restart the repl. On Thursday, November 22, 2012 10:37:22 PM UTC, atucker wrote: K guys, I honestly don't want to piss on Clojure, I know how hard a lot of people have worked for a long time in order to make this a viable language. I respect and am grateful for your dedication. But you should know this: every time I come back to use Clojure I find that it's become harder. Maybe it's my mind that's going (quite possible). Or maybe it's something you should worry about. A -- 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: ease of use
Reports like this are only as valuable as the information they provide. While we're sympathetic with your frustration, you haven't even begun to give us anything to go on in terms of 1) helping you with your problem or even 2) improving Clojure. Happy Thanksgiving! On Thu, Nov 22, 2012 at 5:47 PM, atucker agjf.tuc...@gmail.com wrote: Sorry, I'm in a bad mood. For context, after hours of struggling with Aquamacs and the new nrepl, I find it's overwritten my last two days' work. I guess it's likely my fault, I probably clicked the wrong key in my frustrated eightieth attempt to restart the repl. On Thursday, November 22, 2012 10:37:22 PM UTC, atucker wrote: K guys, I honestly don't want to piss on Clojure, I know how hard a lot of people have worked for a long time in order to make this a viable language. I respect and am grateful for your dedication. But you should know this: every time I come back to use Clojure I find that it's become harder. Maybe it's my mind that's going (quite possible). Or maybe it's something you should worry about. A -- 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
Re: Anyone using Sublime Text 2 + SumblimeREPL with Windows?
Hi, I've started using Sublime as well, and I'm having the same problem. Any progress? On Wednesday, 19 September 2012 03:27:01 UTC-4, cp16net wrote: I am trying this out with clojure on windows sublime 2.0.1. i get the clojure repl up using 'ctrl+f12' then 'c' then 's' then i type (println hello) then i have tried an array of keys F2 then ''l' (lower case 'L') ctrl+,, l shift+ctrl+,, l tried all the above with 'b' for block as well with nothing. this post looks similar http://www.sublimetext.com/forum/viewtopic.php?f=3t=7878 I've tried to set my own keys but i see nothing in the sublime console or anything. Any ideas to make this work? https://github.com/wuub/SublimeREPL you can see here that the windows defaults have changed some since the start of this thread but nothing is working yet On Wednesday, June 27, 2012 10:59:54 AM UTC-5, Jacobo Polavieja wrote: On Wednesday, June 27, 2012 5:07:05 PM UTC+2, Niels van Klaveren wrote: This combination of Sublime -text -REPL looks pretty useful, with little extra configuration (except that decommenting part :) ). When I have the REPL launched, when returning values I get a lot of lines with BS..BS sequences. Any idea how to get rid of those ? I'm just new using Clojure and Sublime but don't seem to have those lines. Does it always happend to you? Can you provide some code that does? Cheers! -- 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: ease of use
Happy Thanksgiving! You're right of course. I guess my problem is with the emacs set-up, I should make a proper report on the dedicated mailing lists. In general terms, I just find it surprising that it's getting harder not easier. I've tried with emacs on linux but apparently version 22 is too old, even with Tromey's ELPA file, and I don't have the privileges to update it. On the Mac, I got it kinda working, but can't work out how to break on a misjudged command, and the namespaces are permanently misaligned (in-ns doesn't work, C-c M-n doesn't work). It feels like nothing really works, perhaps it didn't install properly (M-x install-package just hung). A On Thursday, November 22, 2012 10:54:59 PM UTC, Aaron Cohen wrote: Reports like this are only as valuable as the information they provide. While we're sympathetic with your frustration, you haven't even begun to give us anything to go on in terms of 1) helping you with your problem or even 2) improving Clojure. Happy Thanksgiving! On Thu, Nov 22, 2012 at 5:47 PM, atucker agjf@gmail.com javascript: wrote: Sorry, I'm in a bad mood. For context, after hours of struggling with Aquamacs and the new nrepl, I find it's overwritten my last two days' work. I guess it's likely my fault, I probably clicked the wrong key in my frustrated eightieth attempt to restart the repl. On Thursday, November 22, 2012 10:37:22 PM UTC, atucker wrote: K guys, I honestly don't want to piss on Clojure, I know how hard a lot of people have worked for a long time in order to make this a viable language. I respect and am grateful for your dedication. But you should know this: every time I come back to use Clojure I find that it's become harder. Maybe it's my mind that's going (quite possible). Or maybe it's something you should worry about. A -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clo...@googlegroups.comjavascript: Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+u...@googlegroups.com javascript: 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
Re: ease of use
Don't use Aquamacs. I don't know of the current state, but some time ago experienced the same stuff. It somehow doesn't work when using Aquamacs. I recommend Emacs.app from http://emacsformacosx.com or installation via homebrew (brew install emacs --cocoa brew linkapps). M-x package-list-packages, select nrepl and clojure-mode, hit x, setup finished. Leiningen2 is the perfect companion for this setup. On Fri, Nov 23, 2012 at 12:24 AM, atucker agjf.tuc...@gmail.com wrote: On the Mac, I got it kinda working, but can't work out how to break on a misjudged command, and the namespaces are permanently misaligned (in-ns doesn't work, C-c M-n doesn't work). It feels like nothing really works, perhaps it didn't install properly (M-x install-package just hung). -- 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: Anyone using Sublime Text 2 + SumblimeREPL with Windows?
I am using Sublime Text 2 on Windows 7 Professional with a remote telnet REPL. When editing a Clojure source code file, to evaluate it, I hold CTRL key down, press comma key twice, release CTRL key, then press lower case f (for file). This works for me. On Thursday, November 22, 2012 5:56:30 PM UTC-5, JvJ wrote: Hi, I've started using Sublime as well, and I'm having the same problem. Any progress? On Wednesday, 19 September 2012 03:27:01 UTC-4, cp16net wrote: I am trying this out with clojure on windows sublime 2.0.1. i get the clojure repl up using 'ctrl+f12' then 'c' then 's' then i type (println hello) then i have tried an array of keys F2 then ''l' (lower case 'L') ctrl+,, l shift+ctrl+,, l tried all the above with 'b' for block as well with nothing. this post looks similar http://www.sublimetext.com/forum/viewtopic.php?f=3t=7878 I've tried to set my own keys but i see nothing in the sublime console or anything. Any ideas to make this work? https://github.com/wuub/SublimeREPL you can see here that the windows defaults have changed some since the start of this thread but nothing is working yet On Wednesday, June 27, 2012 10:59:54 AM UTC-5, Jacobo Polavieja wrote: On Wednesday, June 27, 2012 5:07:05 PM UTC+2, Niels van Klaveren wrote: This combination of Sublime -text -REPL looks pretty useful, with little extra configuration (except that decommenting part :) ). When I have the REPL launched, when returning values I get a lot of lines with BS..BS sequences. Any idea how to get rid of those ? I'm just new using Clojure and Sublime but don't seem to have those lines. Does it always happend to you? Can you provide some code that does? Cheers! -- 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: ease of use
Alternatively, do as Moritz suggested, except don't install packages manually via M-x package-list-packages, but rather go and get https://github.com/overtone/emacs-live then nrepl.el keybindings are documented at https://github.com/kingtim/nrepl.el Good luck! Las 2012/11/23 Moritz Ulrich mor...@tarn-vedra.de Don't use Aquamacs. I don't know of the current state, but some time ago experienced the same stuff. It somehow doesn't work when using Aquamacs. I recommend Emacs.app from http://emacsformacosx.com or installation via homebrew (brew install emacs --cocoa brew linkapps). M-x package-list-packages, select nrepl and clojure-mode, hit x, setup finished. Leiningen2 is the perfect companion for this setup. On Fri, Nov 23, 2012 at 12:24 AM, atucker agjf.tuc...@gmail.com wrote: On the Mac, I got it kinda working, but can't work out how to break on a misjudged command, and the namespaces are permanently misaligned (in-ns doesn't work, C-c M-n doesn't work). It feels like nothing really works, perhaps it didn't install properly (M-x install-package just hung). -- 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 -- László Török -- 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: ease of use
Thanks all! Sounds like I need to install some more stuff. One more question if anyone knows: didn't it use to be possible to make parallel connections to the same server? Can't seem to do it with the new set-up... A On Friday, November 23, 2012 12:37:33 AM UTC, Las wrote: Alternatively, do as Moritz suggested, except don't install packages manually via M-x package-list-packages, but rather go and get https://github.com/overtone/emacs-live then nrepl.el keybindings are documented at https://github.com/kingtim/nrepl.el Good luck! Las 2012/11/23 Moritz Ulrich mor...@tarn-vedra.de javascript: Don't use Aquamacs. I don't know of the current state, but some time ago experienced the same stuff. It somehow doesn't work when using Aquamacs. I recommend Emacs.app from http://emacsformacosx.com or installation via homebrew (brew install emacs --cocoa brew linkapps). M-x package-list-packages, select nrepl and clojure-mode, hit x, setup finished. Leiningen2 is the perfect companion for this setup. On Fri, Nov 23, 2012 at 12:24 AM, atucker agjf@gmail.comjavascript: wrote: On the Mac, I got it kinda working, but can't work out how to break on a misjudged command, and the namespaces are permanently misaligned (in-ns doesn't work, C-c M-n doesn't work). It feels like nothing really works, perhaps it didn't install properly (M-x install-package just hung). -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clo...@googlegroups.comjavascript: Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+u...@googlegroups.com javascript: For more options, visit this group at http://groups.google.com/group/clojure?hl=en -- László Török -- 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: Anyone using Sublime Text 2 + SumblimeREPL with Windows?
It's not working. In fact, I can't evaluate any code in the REPL at all. The prompt is there, but nothing happens when I press enter. On Thursday, 22 November 2012 19:20:17 UTC-5, Marc wrote: I am using Sublime Text 2 on Windows 7 Professional with a remote telnet REPL. When editing a Clojure source code file, to evaluate it, I hold CTRL key down, press comma key twice, release CTRL key, then press lower case f (for file). This works for me. On Thursday, November 22, 2012 5:56:30 PM UTC-5, JvJ wrote: Hi, I've started using Sublime as well, and I'm having the same problem. Any progress? On Wednesday, 19 September 2012 03:27:01 UTC-4, cp16net wrote: I am trying this out with clojure on windows sublime 2.0.1. i get the clojure repl up using 'ctrl+f12' then 'c' then 's' then i type (println hello) then i have tried an array of keys F2 then ''l' (lower case 'L') ctrl+,, l shift+ctrl+,, l tried all the above with 'b' for block as well with nothing. this post looks similar http://www.sublimetext.com/forum/viewtopic.php?f=3t=7878 I've tried to set my own keys but i see nothing in the sublime console or anything. Any ideas to make this work? https://github.com/wuub/SublimeREPL you can see here that the windows defaults have changed some since the start of this thread but nothing is working yet On Wednesday, June 27, 2012 10:59:54 AM UTC-5, Jacobo Polavieja wrote: On Wednesday, June 27, 2012 5:07:05 PM UTC+2, Niels van Klaveren wrote: This combination of Sublime -text -REPL looks pretty useful, with little extra configuration (except that decommenting part :) ). When I have the REPL launched, when returning values I get a lot of lines with BS..BS sequences. Any idea how to get rid of those ? I'm just new using Clojure and Sublime but don't seem to have those lines. Does it always happend to you? Can you provide some code that does? Cheers! -- 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: ease of use
On Thu, Nov 22, 2012 at 5:39 PM, atucker agjf.tuc...@gmail.com wrote: Thanks all! Sounds like I need to install some more stuff. I'll +1 what some of the others have said: I too started with Aquamacs and was told don't do that and later learned they were right! Emacs 24.x from the emacsformacosx.com site will be a better start. Add the marmalade repo, install the starter-kit package and the various nrepl packages and you should be mostly good to go. One more question if anyone knows: didn't it use to be possible to make parallel connections to the same server? Can't seem to do it with the new set-up... I just started up a lein repl in one window and then in Emacs did M-x nrepl to connect to it, then M-x nrepl again to create a second connection to the same server and it seems to work (I hadn't tried that before). -- Perfection is the enemy of the good. -- Gustave Flaubert, French realist novelist (1821-1880) -- 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: Designing for Simplicity
This series of posts can be useful to you http://stevelosh.com/blog/2012/07/caves-of-clojure-01/ Juan Manuel -- 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