Re: Clojure 1.5.0 RC 1
Were any breaking changes made between alpha3 and RC1? I haven't spent much time trying to track down causes so it's very possible I'm mistaken, but I seem to be running into some weird behavior under RC1. Specifically, seem to be having trouble with `ring.middleware.reload/wrap-reload`: Exception in thread main java.lang.IllegalArgumentException: contains? not supported on type: clojure.lang.LazySeq, compiling:(routes.clj:294:3) Line 294 is where the wrap-reload is applied, and this compiles fine under alpha3. Also `lein swank` appears to be failing on Leiningen 2.0.0-preview10: Exception in thread main java.lang.IllegalArgumentException: No matching ctor found for class clojure.lang.Compiler$CompilerException, compiling:(swank/commands/basic.clj:182:24) Is anyone else having problems? -- 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: Clojure 1.5.0 RC 1
I have been unable to run lein-swank since, I think, clojure-1.5.0-beta1. On Sun, Dec 23, 2012 at 8:50 AM, Peter Taoussanis ptaoussa...@gmail.comwrote: Were any breaking changes made between alpha3 and RC1? I haven't spent much time trying to track down causes so it's very possible I'm mistaken, but I seem to be running into some weird behavior under RC1. Specifically, seem to be having trouble with `ring.middleware.reload/wrap-reload`: Exception in thread main java.lang.IllegalArgumentException: contains? not supported on type: clojure.lang.LazySeq, compiling:(routes.clj:294:3) Line 294 is where the wrap-reload is applied, and this compiles fine under alpha3. Also `lein swank` appears to be failing on Leiningen 2.0.0-preview10: Exception in thread main java.lang.IllegalArgumentException: No matching ctor found for class clojure.lang.Compiler$CompilerException, compiling:(swank/commands/basic.clj:182:24) Is anyone else having problems? -- 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: Clojure 1.5.0 RC 1
Both of these cases appear to relate to namespaces btw. Line 182 of swank/commands/basic.clj is the 3rd `let` form: (defslimefn load-file [file-name] (let [libs-ref @(resolve 'clojure.core/*loaded-libs*) libs @libs-ref ns-form (ns/read-file-ns-decl (java.io.File. file-name)) ns (second ns-form)] (try (when ns (destroy-ns ns)) (dosync (ref-set libs-ref #{})) (pr-str (clojure.core/load-file file-name)) (finally (dosync (alter libs-ref into libs)) -- 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: Clojure 1.5.0 RC 1
Just confirming: both issues are indeed present in beta1 (and RC1), but not alpha3. Will go over the changelog tomorrow and try track this down. -- 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: Clojure 1.5.0 RC 1
On Sat, Dec 22, 2012 at 11:09:07AM -0500, Stuart Halloway wrote: Please test it. It would be fantastic if as many people as possible updated their projects and tested with the RC, so we can flush out issues now instead of in release. I have tried to build a RPM package of clojure-1.5.0-RC1 for Feodra and have got the following error message: test: [java] Exception in thread main java.io.FileNotFoundException: Could not locate clojure/test/generative/runner__init.class or clojure/test/generative/runner.clj on classpath: [java] at clojure.lang.RT.load(RT.java:434) [java] at clojure.lang.RT.load(RT.java:402) [java] at clojure.core$load$fn__5039.invoke(core.clj:5520) [java] at clojure.core$load.doInvoke(core.clj:5519) [java] at clojure.lang.RestFn.invoke(RestFn.java:408) [java] at clojure.core$load_one.invoke(core.clj:5326) [java] at clojure.core$load_lib$fn__4988.invoke(core.clj:5365) [java] at clojure.core$load_lib.doInvoke(core.clj:5364) [java] at clojure.lang.RestFn.applyTo(RestFn.java:142) [java] at clojure.core$apply.invoke(core.clj:619) [java] at clojure.core$load_libs.doInvoke(core.clj:5403) [java] at clojure.lang.RestFn.applyTo(RestFn.java:137) [java] at clojure.core$apply.invoke(core.clj:619) [java] at clojure.core$require.doInvoke(core.clj:5486) [java] at clojure.lang.RestFn.invoke(RestFn.java:408) [java] at user$eval1.invoke(run_tests.clj:1) [java] at clojure.lang.Compiler.eval(Compiler.java:6618) [java] at clojure.lang.Compiler.load(Compiler.java:7062) [java] at clojure.lang.Compiler.loadFile(Compiler.java:7019) [java] at clojure.main$load_script.invoke(main.clj:286) [java] at clojure.main$script_opt.invoke(main.clj:348) [java] at clojure.main$main$fn__6676.invoke(main.clj:432) [java] at clojure.main$main.doInvoke(main.clj:429) [java] at clojure.lang.RestFn.invoke(RestFn.java:408) [java] at clojure.lang.Var.invoke(Var.java:415) [java] at clojure.lang.AFn.applyToHelper(AFn.java:161) [java] at clojure.lang.Var.applyTo(Var.java:532) [java] at clojure.main.main(main.java:37) It may be nice, if you can give me a hint to solve this issue, so I can add this package to Fedora Rawhide. Best Regards: Jochen Schmitt -- 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: Clojure 1.5.0 RC 1
If part of the script to build an RPM package is this command: ant then you should run the command ./antsetup.sh just before that. Without ./antsetup.sh you will see the error message you give below, because ant by itself does not pull in the necessary dependencies. Andy On Dec 23, 2012, at 10:11 AM, Jochen Schmitt wrote: On Sat, Dec 22, 2012 at 11:09:07AM -0500, Stuart Halloway wrote: Please test it. It would be fantastic if as many people as possible updated their projects and tested with the RC, so we can flush out issues now instead of in release. I have tried to build a RPM package of clojure-1.5.0-RC1 for Feodra and have got the following error message: test: [java] Exception in thread main java.io.FileNotFoundException: Could not locate clojure/test/generative/runner__init.class or clojure/test/generative/runner.clj on classpath: [java]at clojure.lang.RT.load(RT.java:434) [java]at clojure.lang.RT.load(RT.java:402) [java]at clojure.core$load$fn__5039.invoke(core.clj:5520) [java]at clojure.core$load.doInvoke(core.clj:5519) [java]at clojure.lang.RestFn.invoke(RestFn.java:408) [java]at clojure.core$load_one.invoke(core.clj:5326) [java]at clojure.core$load_lib$fn__4988.invoke(core.clj:5365) [java]at clojure.core$load_lib.doInvoke(core.clj:5364) [java]at clojure.lang.RestFn.applyTo(RestFn.java:142) [java]at clojure.core$apply.invoke(core.clj:619) [java]at clojure.core$load_libs.doInvoke(core.clj:5403) [java]at clojure.lang.RestFn.applyTo(RestFn.java:137) [java]at clojure.core$apply.invoke(core.clj:619) [java]at clojure.core$require.doInvoke(core.clj:5486) [java]at clojure.lang.RestFn.invoke(RestFn.java:408) [java]at user$eval1.invoke(run_tests.clj:1) [java]at clojure.lang.Compiler.eval(Compiler.java:6618) [java]at clojure.lang.Compiler.load(Compiler.java:7062) [java]at clojure.lang.Compiler.loadFile(Compiler.java:7019) [java]at clojure.main$load_script.invoke(main.clj:286) [java]at clojure.main$script_opt.invoke(main.clj:348) [java]at clojure.main$main$fn__6676.invoke(main.clj:432) [java]at clojure.main$main.doInvoke(main.clj:429) [java]at clojure.lang.RestFn.invoke(RestFn.java:408) [java]at clojure.lang.Var.invoke(Var.java:415) [java]at clojure.lang.AFn.applyToHelper(AFn.java:161) [java]at clojure.lang.Var.applyTo(Var.java:532) [java]at clojure.main.main(main.java:37) It may be nice, if you can give me a hint to solve this issue, so I can add this package to Fedora Rawhide. Best Regards: Jochen Schmitt -- 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: Clojure 1.5.0 RC 1
On Sunday, December 23, 2012 1:11:31 PM UTC-5, JSchmitt wrote: I have tried to build a RPM package of clojure-1.5.0-RC1 for Feodra and have got the following error message: test: [java] Exception in thread main java.io.FileNotFoundException: Could not locate clojure/test/generative/runner__init.class or clojure/test/generative/runner.clj on classpath: It looks like you're missing the test.generative library: https://github.com/clojure/test.generative The 'test' step of Clojure's build now requires the test.generative library. The Maven build will download test.generative automatically as needed. If you're building with Ant, you need to run 'antsetup.sh' first. -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: Clojure 1.5.0 RC 1
On Sun, Dec 23, 2012 at 8:50 AM, Peter Taoussanis ptaoussa...@gmail.comwrote: Specifically, seem to be having trouble with `ring.middleware.reload/wrap-reload`: Exception in thread main java.lang.IllegalArgumentException: contains? not supported on type: clojure.lang.LazySeq, compiling:(routes.clj:294:3) Line 294 is where the wrap-reload is applied, and this compiles fine under alpha3. Sounds like http://dev.clojure.org/jira/browse/CLJ-932 where contains? now throws an exception if used on a non-keyed collection type. Also `lein swank` appears to be failing on Leiningen 2.0.0-preview10: Exception in thread main java.lang.IllegalArgumentException: No matching ctor found for class clojure.lang.Compiler$CompilerException, compiling:(swank/commands/basic.clj:182:24) Given that swank-clojure is deprecated, this may be the not so subtle push that moves everyone over to nREPL :) IIRC, the problem is that swank constructs that Java class explicitly and its signature has changed to include column number? -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ World Singles, LLC. -- http://worldsingles.com/ 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: Clojure 1.5.0 RC 1
On Sun, Dec 23, 2012 at 11:32:57AM -0800, Andy Fingerhut wrote: If part of the script to build an RPM package is this command: ant then you should run the command ./antsetup.sh just before that. Without ./antsetup.sh you will see the error message you give below, because ant by itself does not pull in the necessary dependencies. This is not a acceptable solution because this will downloading files from the internet. On the build server you will get error messages which was cause my the attemp to make a internet connection. Best Regards: Jochen Schmitt -- 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: Clojure 1.5.0 RC 1
Are there no other RPMs that require Internet access to complete their build? e.g. no others that use Maven to pull in dependencies before building? If there is no provision for that, I'd open up the question to others with more experience in these matters: How would you recommend that someone create an RPM for Clojure on a build machine with no Internet access? The only way I can think of would be to pull in the dependencies on a machine with Internet access, and make a package available to the RPM build machine with all dependencies included. Either that, or get a pre-built JAR file for Clojure from the official distribution locations (e.g. the Maven repo) and put that into an RPM. Andy On Dec 23, 2012, at 12:33 PM, Jochen Schmitt wrote: On Sun, Dec 23, 2012 at 11:32:57AM -0800, Andy Fingerhut wrote: If part of the script to build an RPM package is this command: ant then you should run the command ./antsetup.sh just before that. Without ./antsetup.sh you will see the error message you give below, because ant by itself does not pull in the necessary dependencies. This is not a acceptable solution because this will downloading files from the internet. On the build server you will get error messages which was cause my the attemp to make a internet connection. Best Regards: Jochen Schmitt -- 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: Clojure 1.5.0 RC 1
On Sun, Dec 23, 2012 at 12:45:50PM -0800, Andy Fingerhut wrote: Are there no other RPMs that require Internet access to complete their build? e.g. no others that use Maven to pull in dependencies before building? Dependencies should be solved by the specification of BuildRequires statements in the SPEC file, so the build system will install the packages which are required to build a package before the build will be start. If there is no provision for that, I'd open up the question to others with more experience in these matters: How would you recommend that someone create an RPM for Clojure on a build machine with no Internet access? Sorry, I'm talking about the official build system of the Fedora projejct and the download of data during the build process may a violatation of the packaging policies. The only way I can think of would be to pull in the dependencies on a machine with Internet access, and make a package available to the RPM build machine with all dependencies included. ??? Either that, or get a pre-built JAR file for Clojure from the official distribution locations (e.g. the Maven repo) and put that into an RPM. Using of pre-built JAR files in a package is also a violation of the packaging policy which state that all stuff should be built from soruce. Because it's looks like, thest test.gnerative may be a speicial JAR file for Clojure, the best way may to include it into the official Clojure soruce pacakge. In the meanwhile, I have found a way to suppres the test step in the ant script. Best Regards: Jochen Schmitt -- 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: Clojure 1.5.0 RC 1
If find this odd, these days you need remote access to install things, wether it's Maven or some RPM repos is irrelevant. Pulling RPMs by hand is a nightmare, even worse than Maven, there is a myriad of RPM dependencies out there depending on your Linux distro. Jochen, I would suggest implementing apache archiva on a server that has internet access. Using lein on this server would allow you to pull the dependencies locally and then transfer them by hand on the other server if needed. You can define repos to search in archiva (you can add clojars, sonatype is there by default I think). If your build server has access to this gateway server, it's even simpler. Archiva can serve as a cache for all the other computers that need artifacts from maven. It would require you to change the repos in your builds to refer to your archiva repos but this should be a minimal change. You can even add your own artifacts if you need to. A typical example are projects that do not publish to maven. Archiva is very simple to use and configure compared to other softwares like nexus. It's comparable to apt-proxy. If you need more help, drop me an email off the mailing list. Luc Are there no other RPMs that require Internet access to complete their build? e.g. no others that use Maven to pull in dependencies before building? If there is no provision for that, I'd open up the question to others with more experience in these matters: How would you recommend that someone create an RPM for Clojure on a build machine with no Internet access? The only way I can think of would be to pull in the dependencies on a machine with Internet access, and make a package available to the RPM build machine with all dependencies included. Either that, or get a pre-built JAR file for Clojure from the official distribution locations (e.g. the Maven repo) and put that into an RPM. Andy On Dec 23, 2012, at 12:33 PM, Jochen Schmitt wrote: On Sun, Dec 23, 2012 at 11:32:57AM -0800, Andy Fingerhut wrote: If part of the script to build an RPM package is this command: ant then you should run the command ./antsetup.sh just before that. Without ./antsetup.sh you will see the error message you give below, because ant by itself does not pull in the necessary dependencies. This is not a acceptable solution because this will downloading files from the internet. On the build server you will get error messages which was cause my the attemp to make a internet connection. Best Regards: Jochen Schmitt -- 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 -- Softaddictslprefonta...@softaddicts.ca sent by ibisMail from my ipad! -- 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: Clojure 1.5.0 RC 1
Jochen, Official Clojure libs including test.generative already go through a strict build process using Hudson + test matrixes against multiple JVM implementations. You are creating an RPM from components that are not managed through RPMs but through an alien build process. Do you intend to rerun the Hudson test matrix against multiple JVM implementations ? If not, your current build is far from being complete compared to what Hudson does. Build redundancy here does not provide any added value. Most users source the implementation from Maven or through direct downloads, Hudson must not fail building these artifacts upfront. It already guards against corrupted artifacts. Creating an RPM here should only be a nicer way to package all the dependencies out from Maven and place them at the appropriate spot in a Fedora system. Getting a proper JVM if necessary is part of that process (this is an RPM dependency). As a Linux user I would not expect more from such a package. Luc P. On Sun, Dec 23, 2012 at 12:45:50PM -0800, Andy Fingerhut wrote: Are there no other RPMs that require Internet access to complete their build? e.g. no others that use Maven to pull in dependencies before building? Dependencies should be solved by the specification of BuildRequires statements in the SPEC file, so the build system will install the packages which are required to build a package before the build will be start. If there is no provision for that, I'd open up the question to others with more experience in these matters: How would you recommend that someone create an RPM for Clojure on a build machine with no Internet access? Sorry, I'm talking about the official build system of the Fedora projejct and the download of data during the build process may a violatation of the packaging policies. The only way I can think of would be to pull in the dependencies on a machine with Internet access, and make a package available to the RPM build machine with all dependencies included. ??? Either that, or get a pre-built JAR file for Clojure from the official distribution locations (e.g. the Maven repo) and put that into an RPM. Using of pre-built JAR files in a package is also a violation of the packaging policy which state that all stuff should be built from soruce. Because it's looks like, thest test.gnerative may be a speicial JAR file for Clojure, the best way may to include it into the official Clojure soruce pacakge. In the meanwhile, I have found a way to suppres the test step in the ant script. Best Regards: Jochen Schmitt -- 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 -- Softaddictslprefonta...@softaddicts.ca sent by ibisMail from my ipad! -- 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
EOF when executing lein trampoline cljsbuild repl-listen
Hi, I'm trying to make my way through the modern-cljs tutorials and running into a blocker: I'm on tutorial 2 (https://github.com/magomimmo/modern-cljs/blob/master/doc/tutorial-02.md?.mdown) and when I try lein trampoline cljsbuild repl-listen, I get Exception in thread main clojure.lang.LispReader$ReaderException: java.lang.RuntimeException: EOF while reading, starting at line 1 at clojure.lang.LispReader.read(LispReader.java:215) at clojure.core$read.invoke(core.clj:3346) at clojure.core$read.invoke(core.clj:3344) at clojure.main$eval_opt.invoke(main.clj:295) at clojure.main$initialize.invoke(main.clj:316) at clojure.main$script_opt.invoke(main.clj:340) at clojure.main$main.doInvoke(main.clj:427) at clojure.lang.RestFn.invoke(RestFn.java:930) at clojure.lang.Var.invoke(Var.java:460) at clojure.lang.AFn.applyToHelper(AFn.java:235) at clojure.lang.Var.applyTo(Var.java:532) at clojure.main.main(main.java:37) Caused by: java.lang.RuntimeException: EOF while reading, starting at line 1 at clojure.lang.Util.runtimeException(Util.java:170) at clojure.lang.LispReader.readDelimitedList(LispReader.java:1117) at clojure.lang.LispReader$ListReader.invoke(LispReader.java:962) at clojure.lang.LispReader.read(LispReader.java:180) ... 11 more I figure the reader is trying to load the project.clj but I'm executing from the project's root directory. I'm using lein 2.0 preview 10 on a Windows 7 machine if that matters. -- 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: Clojure 1.5.0 RC 1
Sean Corfield writes: On Sun, Dec 23, 2012 at 8:50 AM, Peter Taoussanis ptaoussa...@gmail.comwrote: Also `lein swank` appears to be failing on Leiningen 2.0.0-preview10: Exception in thread main java.lang.IllegalArgumentException: No matching ctor found for class clojure.lang.Compiler$CompilerException, compiling:(swank/commands/basic.clj:182:24) Given that swank-clojure is deprecated, this may be the not so subtle push that moves everyone over to nREPL :) IIRC, the problem is that swank constructs that Java class explicitly and its signature has changed to include column number? This has actually been fixed in swank-clojure 1.4.3, but the latest lein-swank (1.4.4) still pulls in swank-clojure 1.4.2. Maybe it's time to release a newer lein-swank - I'll chat with Phil about that. -- Toby Crawley http://immutant.org | http://torquebox.org -- 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
[ANN] dj.plurality, generic dispatch decomplected
Previously discussed here https://groups.google.com/forum/?fromgroups=#!searchin/clojure/plural/clojure/KC-zfUE1rXk/ifURo1ReSugJ In that thread, Chris Ford talked about opening up the implementation of the dispatch function of multimethods. I've implemented that idea but I go further to decomplect the datastructure and resolving algorithm. Also I've decomplected state (identity), as plural-fns are immutable values. To reduce the number of protocols generated, I'm using metadata to enable extensibility (defining additional methods). Code is found here: https://github.com/bmillare/dj.plurality You should notice that the implementation is almost nothing. The core of plural-fns is in the specification as the only real helper function I provide is update-implementation. I've provided a basic multimethod implementation without hiearchies (perhaps merge work with brandon bloom? https://github.com/brandonbloom/dispatch-map/tree/master/src/dispatch_map). I've also hacked together a naive predicate dispatching system using David Nolen's core.match. I'm interested in feedback. Simple example: (require '[dj.plurality :as dp]) (let [x (dp/-simple-multi-fn {java.lang.Long inc} type) y (dp/update-implementation x assoc java.lang.Double dec)] [(x 3) (y 3.0) (y 1)]) = [4 2.0 2] -- 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: Clojure 1.5.0 RC 1
On Sun, Dec 23, 2012 at 7:21 PM, Toby Crawley t...@tcrawley.org wrote: Sean Corfield writes: On Sun, Dec 23, 2012 at 8:50 AM, Peter Taoussanis ptaoussa...@gmail.comwrote: Also `lein swank` appears to be failing on Leiningen 2.0.0-preview10: Exception in thread main java.lang.IllegalArgumentException: No matching ctor found for class clojure.lang.Compiler$CompilerException, compiling:(swank/commands/basic.clj:182:24) Given that swank-clojure is deprecated, this may be the not so subtle push that moves everyone over to nREPL :) IIRC, the problem is that swank constructs that Java class explicitly and its signature has changed to include column number? This has actually been fixed in swank-clojure 1.4.3, but the latest lein-swank (1.4.4) still pulls in swank-clojure 1.4.2. Maybe it's time to release a newer lein-swank - I'll chat with Phil about that. Cool. This is also working for me with clojure 1.5.0-RC1: https://clojars.org/org.clojars.chouser/lein-swank Jeff -- 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: Clojure 1.5.0 RC 1
Jeff Dik writes: This is also working for me with clojure 1.5.0-RC1: https://clojars.org/org.clojars.chouser/lein-swank The change to lein-swank to load the proper swank-clojure is already on master[1] - is chouser's version just a release with that change? [1]: https://github.com/technomancy/swank-clojure/commit/3446bbbe2618e5683799fe1d01e50083b3a60245 -- Toby Crawley http://immutant.org | http://torquebox.org -- 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
Can't get ritz-swank working
I'd like to move away from lein-swank and swank-clojure, since they're noted as deprecated (though still working for me in the context of Clojure 1.4.0 and Emacs 24). I've tried working with nREPL + Emacs, but it just doesn't seem as nice what I get with lein-swank (stacktraces and other aspects of the integration feel more raw). What I'd really like is to get lein-ritz and ritz-swank https://github.com/pallet/ritz/tree/develop/swank working, as they seems to be the proper slime/swank successors to lein-swank and swank-clojure. I've tried a couple of times in the past couple of months to setup lein-ritz / ritz-swank, but they just don't seem to work for me. I've followed the instructions in the README to the letter, and then tried tweaking things here and there to see if I can figure out what's going wrong ... nothing seems to work. Long story short, after I run `slime-connect` in Emacs, I get a warning: Versions differ: 2010-11-13 (slime) vs. 20101113 (swank). After choosing to continue, I'm told a connection has been established, but no REPL appears, and I can't seem to bring one up manually. Any help or suggestions would be appreciated. -- Michael Bradley, Jr. @michaelsbradley -- 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: Clojure 1.5.0 RC 1
On Sun, Dec 23, 2012 at 10:21 PM, Toby Crawley t...@tcrawley.org wrote: Jeff Dik writes: This is also working for me with clojure 1.5.0-RC1: https://clojars.org/org.clojars.chouser/lein-swank The change to lein-swank to load the proper swank-clojure is already on master[1] - is chouser's version just a release with that change? No, it was pushed one day before your 1.4.3 changes :-) I think it was just a stopgap for lein-swank not working with clojure 1.5.0-beta1. Looking forward for a new lein-swank release, Jeff -- 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
Use repeat with a function argument
I'm trying to use repeat with a function argument. This works: (reduce + (filter (fn [number] (zero? (some #{0} (map mod (take 2 (repeat 9)) [3 5] (range 1 1000))) This doesn't: (reduce + (filter (fn [number] (zero? (some #{0} (map mod (take 2 (repeat number)) [3 5] (range 1 1000))) Why can I use (repeat 9) and not (repeat number)? -- 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: EOF when executing lein trampoline cljsbuild repl-listen
On Sunday, December 23, 2012 3:30:53 PM UTC-8, Mark wrote: I figure the reader is trying to load the project.clj but I'm executing from the project's root directory. I'm using lein 2.0 preview 10 on a Windows 7 machine if that matters. This might be a Windows + trampoline problem. See https://groups.google.com/d/msg/clojure/J0imbgVWh5I/lXL8DlvJxAoJ . -- 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
New Functional Programming Job Opportunities
Here are some functional programming job opportunities that were posted recently:Software Engineer -- Security and Scalability (clojure) at Brightcovehttp://functionaljobs.com/jobs/119-software-engineer-security-and-scalability-clojure-at-brightcoveCheers,Sean MurphyFunctionalJobs.com -- 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: Use repeat with a function argument
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, Am 24.12.12 04:20, schrieb Andrew Care: Why can I use (repeat 9) and not (repeat number)? Because you call zero? on nil, which doesn't work. Instead of (zero? (some #{0} ...)) use (some zero? ...). Kind regards Meikel -BEGIN PGP SIGNATURE- Version: GnuPG/MacGPG2 v2.0.18 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with undefined - http://www.enigmail.net/ iQIcBAEBAgAGBQJQ2Ao1AAoJEM2sO9pIirXjqVEP/34UYmSbw3P0M22KmCCXR+pZ XKoFOJ3pFbTseBekFPrAIoHwIPARuUxoQTCheBuszU2o8j2bXku2sRr614KR8XE0 2CzNGVswd7dN7X4IeuXoe5O9aknYpSFNmCI38eBDc07PUR8i6m4e0/Y/95/pckTO 1W6jnSf6pOYbUjDKp7U//dfMrfvAZKvOJ5eo40I+mq3qKB4OV4FjWv5m4D/L+rZt fu/5RId+VWukbnxNTWUBInTZ/Z4rlbgPDLZ3EcqJNHQzetRjZlRH+/X6zlmFnF/7 Vffduzf374KdzVPOIWabEzGLE/yi/MFAyo/WCzk4n4qLoFS0Dnhi9lG6QExcwd1S VhOY4ZAc3MbDdBea6tiBUJeLCTG4A9k/48/RGlrtM9UjqkkHiXzQk2d7pK7jfYkh cmLPA4oKDkmccZAqd99J9A0/LS1wpnGXh95POlKrgs3n9PcSEAlyU+OA5UU/KiKD wciXvMwfjllw0SmoFHNvNJZL4rjmAce2vWf88RyitquxF468KUiZtjDy+tLauFH+ QS8mw+P1vAzZ1O3ul3W/YJt3ypi4h7paHllDrhRS4TiPYF7zUSfmj1f5gSCTf8d+ 5EJ9bsMIJINRZ8ByhJzNojVjWBq/t8WdpMbAavObfAZ2hoT8zqFBk2uewPKpM2ve mRVtJejqeU2+Y2y8IPEc =Mqq2 -END PGP SIGNATURE- -- 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: Use repeat with a function argument
*repeat* is not supposed to work with functions, but there's *repeatedly.* On Monday, December 24, 2012 4:20:23 AM UTC+1, Andrew Care wrote: I'm trying to use repeat with a function argument. This works: (reduce + (filter (fn [number] (zero? (some #{0} (map mod (take 2 (repeat 9)) [3 5] (range 1 1000))) This doesn't: (reduce + (filter (fn [number] (zero? (some #{0} (map mod (take 2 (repeat number)) [3 5] (range 1 1000))) Why can I use (repeat 9) and not (repeat number)? -- 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