Re: ANN: SQLRat - A Clojure 1.2 library to access Relational Databases using DataTypes
SQLRat 0.2 is released to Clojars. Highlights of the release: - DSL for SQL clauses, Sub-query support - Support for :groupby and :other attributes in entity/find-xxx functions - Support large sized query result-sets (with-query-results style) - *assert-args* flag for development mode (can be turned off in production) http://bitbucket.org/kumarshantanu/sqlrat/src This version makes SQLRat usable for ETL/Data-warehousing jobs due to the large result-sets support and the clause API will likely make querying easier. The clause API is not complete; it needs to further evolve. There is plenty of work ahead (listed in CHANGES file) and feedback/contribution is most welcome. Regards, Shantanu On Oct 6, 2:27 pm, Shantanu Kumar wrote: > On Oct 6, 8:39 am, nchubrich wrote: > > > > So, the question is -- isSQLRatdoing more or less the same thing as > > > ClojureQL? Partly "yes", but mostly "no". > > > Thanks Shantanu! So I suppose one way you could use them both is > > simply use the SQL compilation feature of ClojureQLyou could pass > >SQLRata raw SQL query created from ClojureQL? > > If you look at the Entity[1] API and the CHANGES[2] file you will > noticeSQLRatneeds to work with the entity/table meta data and > relation meta data.SQLRataccepts the WHERE, GROUP-BY and OTHER > clauses in the find-xxx functions where you can pass pre-generated SQL > clauses. Whether such partial SQL clauses can be generated using > ClojureQL is something I am not sure of. > > ClojureQL provides database-agnostic API for > (a) creating tables (also for altering tables?) and > (b) reporting queries involving JOIN/UNION etc > > These are not provided bySQLRat. I think you can readily use them > while working in mixed-mode (ClojureQL andSQLRat). > > [1]http://bitbucket.org/kumarshantanu/sqlrat/src/tip/src/main/clj/org/bi... > [2]http://bitbucket.org/kumarshantanu/sqlrat/src/tip/CHANGES > > > > > I've used ClojureQL quite a bit, but I haven't attempted to verify its > > database agnoticity. I think having that is a good goal, though. I'd > > be curious to hear what the ClojureQL developers think of working with > > your project. > > IMHO database agnosticism is a good goal indeed -- quite useful for > those having to switch between databases. > > Regards, > Shantanu -- 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: BigInt + 0.5 = Infinity?
Sure. BigInteger.doubleValue() casts to infinity if the value is too large to be represented: user> (double (fact 1000)) Infinity You could try this using BigDecimals instead of doubles: user> (+ 0.5M (fact 1000)) -Per On Sat, Oct 9, 2010 at 11:08 AM, Miki wrote: > If the following intentional? > > user=> (defn fact [n] (reduce * 1 (range 1 (inc n > #'user/fact > user=> (fact 1000) > 402387260077093773543702433923003985719374864210714632543799910... > user=> (+ 0.5 (fact 1000)) > Infinity > > -- > 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
BigInt + 0.5 = Infinity?
If the following intentional? user=> (defn fact [n] (reduce * 1 (range 1 (inc n #'user/fact user=> (fact 1000) 402387260077093773543702433923003985719374864210714632543799910... user=> (+ 0.5 (fact 1000)) Infinity -- 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: Attribution in the cookbook
On Wed, Oct 6, 2010 at 12:50 PM, David Sletten wrote: > I have also incorporated some suggestions made in the comments at the site > (thanks Sean, matti, and tebeka) without asking permission. Presumably these > readers added their thoughts for the purpose of improving the examples. I consider any comments I make on other people's sites to be public property so that's fine by me, especially on a site like this. I think the cookbook's a great idea and I hope lots of people contribute! As indicated by my comments, I think the simplest solution is always worth posting. Many of the cookbook solutions are very comprehensive but might be a bit overwhelming to folks new to Clojure who I think could really benefit from seeing simple solutions first to many of these problems. Thoughts? (from the list in general) Also, you say you don't want to be the sole contributor: how would you like contributions? Through the forums? Is it OK for folks to submit just questions for which they'd like to see recipes? Are the forums the place to submit recipes themselves? -- Sean A Corfield -- (904) 302-SEAN Railo Technologies, Inc. -- http://getrailo.com/ An Architect's View -- http://corfield.org/ "If you're not annoying somebody, you're not really alive." -- Margaret Atwood -- 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: New Release of the Clojure Debugging Toolkit
I use "java - agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8021 - client -cp h:/clojure/libs/clojure-contrib-1.2.0.jar;h:/clojure/libs/ clojure-1.2.0.jar clojure.main --repl" to invoke java, and there is not any jars in the classpath. The user namespace is there after I invoke java with that command. Greate thank for your reply. On 10月9日, 上午7时45分, Robert McIntyre wrote: > I believe this is not caused by any problems with the debugging environment. > > Instead you appear to not have the clojure jar on your classpath. > > I would recommend you explicitly launch java with > > java -cp "H:\path\to\clojure.jar" > > plus any additional arguments of course. > > if this is still not working for you, please post the exact command > you are using to invoke java, > as well as a listing of all jars on your classpath, and I'll try to > help some more. > > Good luck, > > --Robert McIntyre > > 2010/10/8 limux : > > > > > > > > > I do a full source install of clojure follow by the article "Emacs > > Front End to the Clojure Debugging Toolkit", I started the java vm > > with all the necesory arguments, and M-x cdt, then there will be some > > error messages as below: > > > Current directory is H:\heoxsoft\emacs\emacs-23.2\bin/ > > java.lang.NoClassDefFoundError: clojure/main > > Caused by: java.lang.ClassNotFoundException: clojure.main > >at java.net.URLClassLoader$1.run(URLClassLoader.java:202) > >at java.security.AccessController.doPrivileged(Native Method) > >at java.net.URLClassLoader.findClass(URLClassLoader.java:190) > >at java.lang.ClassLoader.loadClass(ClassLoader.java:307) > >at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) > >at java.lang.ClassLoader.loadClass(ClassLoader.java:248) > > Could not find the main class: clojure.main. Program will exit. > > Exception in thread "main" > > Debugger exited abnormally with code 1 > > > I am a newbie of clojure and java, thanks for you help! > > > My java is sun jdk 1.6.18, os is windows 7 x64. I will try it after > > October 10 because I will install the Ubuntu 10.10. > > On 10月8日, 下午7时32分, George Jahad wrote: > >> sa-jdi.jar is supposed to come with the jdk. The code I use for > >> finding it should work for sun's 1.6 jdk on linux and osx. > > >> Which java are you using? What os are you running it on? > > >> Also, what problem are you running into without it? (I think I only > >> use it for some advanced features which you may not need.) > > >> On Oct 7, 8:15 pm, limux wrote: > > >> > where is the sa-jdi.jar, there isn't the sa-jdi.jar under my java's > >> > lib directory. > > >> > On 9月29日, 下午12时00分, George Jahad wrote: > > >> > > hmmm, you must be as big a debugger geek as I am, but I'm not sure > >> > > anyone else would be interested. > > >> > > In any case the commands are almost trivial, which is why I don't > >> > > think it will be too hard to port this to other IDE's: > > >> > > These are theCDTcommands that were generated by the Emacs front end > >> > > in the first example: > > >> > > (set-bpclojure.set/difference) > >> > > (reval s1) > >> > > (reval s2) > >> > > (reval count) > >> > > (reval (count s2)) > >> > > (step-over) > >> > > (reval (reduce disj s1 s2)) > >> > > (up) > >> > > (down) > >> > > (cont) > >> > > (line-bp "/Users/georgejahad/incoming/clo11/clojure/src/clj/clojure/ > >> > > set.clj" 56) > > >> > > On Sep 28, 5:13 am, David Nolen wrote: > > >> > > > On Tue, Sep 28, 2010 at 3:40 AM, George Jahad > >> > > > wrote: > > >> > > > > As some of you know, I suffer from a seemingly interminable > >> > > > > obsession > >> > > > > with improving theClojuredebugging story. It just seems so clear > >> > > > > to > >> > > > > me thatClojuredeserves a world class debugger, one befitting it's > >> > > > > power, beauty and elegance. Maybe one day, we'll get there. Till > >> > > > > then, here are my latest improvements to theCDT: > > >> > > > Great stuff! Would it be possible to write a version of the tutorial > >> > > > that > >> > > > shows how to accomplish the same things purely from the command > >> > > > line? While > >> > > > I love Emacs as much as the next guy, I think a tutorial that shows > >> > > > how to > >> > > > debug using only theCDTREPL would be useful to many people. > > >> > > > David > > > -- > > 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
Re: Newbie - Map to String
Note that apart from the answers above, you'll probably need to encode the parameters, something like: (import 'java.net.URLEncoder) (defn encode [s] (URLEncoder/encode s)) (defn urlencode [s] (apply str (interpose "&" (for [[k v] d] (str (encode (name k)) "=" (encode v) -- 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-clr and mono
Mono 2.8 just came out yesterday. You don't have to wait for your distro to package it up. Building official source releases are as easy as ./configure && make && make install. I just did it last night. On Oct 8, 7:23 am, Sampo Vuori wrote: > Hello, > I would be very interested in getting clojure-clr to work on mono. To > me, mono would be a nice platform as it has access to many libraries I > would like to use (and jvm doesn't) but there is not a single good > lisp implementation which would work on top of mono! So I would really > like to get clojure working on it. > > Bear with me as I'm not too well versed with the clr/mono/monodevelop > yet.. I have mono 2.4 installed and monodevelop 2.2.1. I downloaded > clojure-clr and DLR. The newest DLR from the version control doesn't > work, since it doesn't have DLR_Main/Runtime/Microsoft.Scripting.Core/ > Microsoft.Scripting.ExtensionAttribute.csproj anymore.. So I > downloaded the older one. I open the solution file in monodevelop and > try to compile it.. I get following error messages (among others): > > Warning: The reference 'System.Core, Version=3.5.0.0, Culture=neutral, > PublicKeyToken=b77a5c561934e089' is not valid for the target framework > of the project. (Microsoft.Scripting) > Warning: Assembly 'mscorlib, Version=2.0.5.0, Culture=neutral, > PublicKeyToken=7cec85d7bea7798e' not found. Make sure that the > assembly exists in disk. If the reference is required to build the > project you may get compilation errors. (Microsoft.Scripting) > Warning: Assembly 'System, Version=2.0.5.0, Culture=neutral, > PublicKeyToken=7cec85d7bea7798e' not found. Make sure that the > assembly exists in disk. If the reference is required to build the > project you may get compilation errors. (Microsoft.Scripting) > > etc. Anyone know how to get over these? Anyone got further? Is Mono > 2.4 too old? > > Thanks, > > - Sampo -- 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: New Release of the Clojure Debugging Toolkit
I believe this is not caused by any problems with the debugging environment. Instead you appear to not have the clojure jar on your classpath. I would recommend you explicitly launch java with java -cp "H:\path\to\clojure.jar" plus any additional arguments of course. if this is still not working for you, please post the exact command you are using to invoke java, as well as a listing of all jars on your classpath, and I'll try to help some more. Good luck, --Robert McIntyre 2010/10/8 limux : > I do a full source install of clojure follow by the article "Emacs > Front End to the Clojure Debugging Toolkit", I started the java vm > with all the necesory arguments, and M-x cdt, then there will be some > error messages as below: > > Current directory is H:\heoxsoft\emacs\emacs-23.2\bin/ > java.lang.NoClassDefFoundError: clojure/main > Caused by: java.lang.ClassNotFoundException: clojure.main >at java.net.URLClassLoader$1.run(URLClassLoader.java:202) >at java.security.AccessController.doPrivileged(Native Method) >at java.net.URLClassLoader.findClass(URLClassLoader.java:190) >at java.lang.ClassLoader.loadClass(ClassLoader.java:307) >at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) >at java.lang.ClassLoader.loadClass(ClassLoader.java:248) > Could not find the main class: clojure.main. Program will exit. > Exception in thread "main" > Debugger exited abnormally with code 1 > > I am a newbie of clojure and java, thanks for you help! > > My java is sun jdk 1.6.18, os is windows 7 x64. I will try it after > October 10 because I will install the Ubuntu 10.10. > On 10月8日, 下午7时32分, George Jahad wrote: >> sa-jdi.jar is supposed to come with the jdk. The code I use for >> finding it should work for sun's 1.6 jdk on linux and osx. >> >> Which java are you using? What os are you running it on? >> >> Also, what problem are you running into without it? (I think I only >> use it for some advanced features which you may not need.) >> >> On Oct 7, 8:15 pm, limux wrote: >> >> >> >> >> >> >> >> > where is the sa-jdi.jar, there isn't the sa-jdi.jar under my java's >> > lib directory. >> >> > On 9月29日, 下午12时00分, George Jahad wrote: >> >> > > hmmm, you must be as big a debugger geek as I am, but I'm not sure >> > > anyone else would be interested. >> >> > > In any case the commands are almost trivial, which is why I don't >> > > think it will be too hard to port this to other IDE's: >> >> > > These are theCDTcommands that were generated by the Emacs front end >> > > in the first example: >> >> > > (set-bpclojure.set/difference) >> > > (reval s1) >> > > (reval s2) >> > > (reval count) >> > > (reval (count s2)) >> > > (step-over) >> > > (reval (reduce disj s1 s2)) >> > > (up) >> > > (down) >> > > (cont) >> > > (line-bp "/Users/georgejahad/incoming/clo11/clojure/src/clj/clojure/ >> > > set.clj" 56) >> >> > > On Sep 28, 5:13 am, David Nolen wrote: >> >> > > > On Tue, Sep 28, 2010 at 3:40 AM, George Jahad >> > > > wrote: >> >> > > > > As some of you know, I suffer from a seemingly interminable obsession >> > > > > with improving theClojuredebugging story. It just seems so clear to >> > > > > me thatClojuredeserves a world class debugger, one befitting it's >> > > > > power, beauty and elegance. Maybe one day, we'll get there. Till >> > > > > then, here are my latest improvements to theCDT: >> >> > > > Great stuff! Would it be possible to write a version of the tutorial >> > > > that >> > > > shows how to accomplish the same things purely from the command line? >> > > > While >> > > > I love Emacs as much as the next guy, I think a tutorial that shows >> > > > how to >> > > > debug using only theCDTREPL would be useful to many people. >> >> > > > David > > -- > 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: Newbie - Map to String
On Oct 8, 2010, at 5:09 PM, Paul wrote: > I'm trying to parse a map unto a URI string, e.g: > > {:apple "green", :cherry "red", :banana "yellow"} into > "apple=green&cherry=red&banana=yellow" (use 'clojure.string) (def kvs {:apple "green", :cherry "red", :banana "yellow"}) (join "&" (map (fn [[k v]] (format "%s=%s" (name k) v)) kvs)) (format) is great for building strings out of a mix of bare string values and other expressions. -- 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: Newbie - Map to String
If your asking this as an exercise for manipulating clojure datastructure, then a solution could be : (def d {:apple "green", :cherry "red", :banana "yellow"}) (apply str (interpose "&" (map (fn [[k v]] (str (name k) "=" v)) d))) Of course, there's more to URI than that, e.g. name and values should be appropriately encoded => so for real world usage, I'd use whatever library is already available in your context. The idiomatic way above leverages higher order functions. It's generally the more concise way. Of course, it uses seqs under the cover : X seq objects for the innermost map, X seq objects as a result of interpose, not to say X vectors creations as the result of map applying (seq) to d (to be able to consume the map as a seq of key/value pairs). It could also be written (apply str (interpose "&" (for [[k v] d] (str (name k) "=" v which seems even more readable But anyway, it would probably be considered premature optimization to use recur in the first place. I generally tend to use recur in the first place when I give up with finding a cleaner way to write code with higher order functions. 2010/10/9 Paul > Hi all, > > I'm trying to parse a map unto a URI string, e.g: > > {:apple "green", :cherry "red", :banana "yellow"} into > "apple=green&cherry=red&banana=yellow" > > I've almost got there by several routes, but is there a 'preferred' > idiomatically correct way to perform this? > > What are the advantages of, say, using recursion over sequences? > > Many thanks, > > P. > > -- > 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: Newbie - Map to String
user=> (use 'clojure.string) WARNING: replace already refers to: #'clojure.core/replace in namespace: user, being replaced by: #'clojure.string/replace WARNING: reverse already refers to: #'clojure.core/reverse in namespace: user, being replaced by: #'clojure.string/reverse nil user=> (join "&" (map #(str (name (key %)) '= (val %)) {:apple 1 :cherry "red" :banana "yellow"})) "apple=1&cherry=red&banana=yellow" On Oct 8, 3:09 pm, Paul wrote: > Hi all, > > I'm trying to parse a map unto a URI string, e.g: > > {:apple "green", :cherry "red", :banana "yellow"} into > "apple=green&cherry=red&banana=yellow" > > I've almost got there by several routes, but is there a 'preferred' > idiomatically correct way to perform this? > > What are the advantages of, say, using recursion over sequences? > > Many thanks, > > P. -- 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
Newbie - Map to String
Hi all, I'm trying to parse a map unto a URI string, e.g: {:apple "green", :cherry "red", :banana "yellow"} into "apple=green&cherry=red&banana=yellow" I've almost got there by several routes, but is there a 'preferred' idiomatically correct way to perform this? What are the advantages of, say, using recursion over sequences? Many thanks, P. -- 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: VimClojure 2.2.0 released
out of box CLI ready I only know of http://code.google.com/p/stomppy/ but that would be you'd have to introduce python dep, which would increase complexity. or write the c hook yourself to use libstomp http://svn.stomp.codehaus.org/browse/stomp/trunk/c/src/main.c?r=31 On Fri, Oct 8, 2010 at 3:13 AM, Meikel Brandmeyer wrote: > Hi, > > On 6 Okt., 17:31, Wilson MacGyver wrote: > >> If the STOMP support happens with nREPL as Rich was pushing for, >> you'd have the windows solution. There are plenty of STOMP client >> that works on windows. > > Do you have some pointers? Googling didn't turn up useful stuff. > Important requirement: must be driven by CLI. > > Sincerely > Meikel > > -- > 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 -- Omnem crede diem tibi diluxisse supremum. -- 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: New Release of the Clojure Debugging Toolkit
I do a full source install of clojure follow by the article "Emacs Front End to the Clojure Debugging Toolkit", I started the java vm with all the necesory arguments, and M-x cdt, then there will be some error messages as below: Current directory is H:\heoxsoft\emacs\emacs-23.2\bin/ java.lang.NoClassDefFoundError: clojure/main Caused by: java.lang.ClassNotFoundException: clojure.main at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) Could not find the main class: clojure.main. Program will exit. Exception in thread "main" Debugger exited abnormally with code 1 I am a newbie of clojure and java, thanks for you help! My java is sun jdk 1.6.18, os is windows 7 x64. I will try it after October 10 because I will install the Ubuntu 10.10. On 10月8日, 下午7时32分, George Jahad wrote: > sa-jdi.jar is supposed to come with the jdk. The code I use for > finding it should work for sun's 1.6 jdk on linux and osx. > > Which java are you using? What os are you running it on? > > Also, what problem are you running into without it? (I think I only > use it for some advanced features which you may not need.) > > On Oct 7, 8:15 pm, limux wrote: > > > > > > > > > where is the sa-jdi.jar, there isn't the sa-jdi.jar under my java's > > lib directory. > > > On 9月29日, 下午12时00分, George Jahad wrote: > > > > hmmm, you must be as big a debugger geek as I am, but I'm not sure > > > anyone else would be interested. > > > > In any case the commands are almost trivial, which is why I don't > > > think it will be too hard to port this to other IDE's: > > > > These are theCDTcommands that were generated by the Emacs front end > > > in the first example: > > > > (set-bpclojure.set/difference) > > > (reval s1) > > > (reval s2) > > > (reval count) > > > (reval (count s2)) > > > (step-over) > > > (reval (reduce disj s1 s2)) > > > (up) > > > (down) > > > (cont) > > > (line-bp "/Users/georgejahad/incoming/clo11/clojure/src/clj/clojure/ > > > set.clj" 56) > > > > On Sep 28, 5:13 am, David Nolen wrote: > > > > > On Tue, Sep 28, 2010 at 3:40 AM, George Jahad > > > > wrote: > > > > > > As some of you know, I suffer from a seemingly interminable obsession > > > > > with improving theClojuredebugging story. It just seems so clear to > > > > > me thatClojuredeserves a world class debugger, one befitting it's > > > > > power, beauty and elegance. Maybe one day, we'll get there. Till > > > > > then, here are my latest improvements to theCDT: > > > > > Great stuff! Would it be possible to write a version of the tutorial > > > > that > > > > shows how to accomplish the same things purely from the command line? > > > > While > > > > I love Emacs as much as the next guy, I think a tutorial that shows how > > > > to > > > > debug using only theCDTREPL would be useful to many people. > > > > > David -- 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-cake
On Oct 8, 5:47 am, Sunil S Nandihalli wrote: > Hello everybody, > I am trying to use cake .. was just exploring it with a very simple default > > >> cake new expcake > >> cake deps > > but cake deps gives me the following error > > http://gist.github.com/616564 This is mostly a guess, but take a look here: http://docs.rubygems.org/read/chapter/19 Specifically section 3.3. It looks like gems is installed in ruby 1.9, but your path is set to ruby 1.8.7. Good Luck. -- 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
clojure-clr and mono
Hello, I would be very interested in getting clojure-clr to work on mono. To me, mono would be a nice platform as it has access to many libraries I would like to use (and jvm doesn't) but there is not a single good lisp implementation which would work on top of mono! So I would really like to get clojure working on it. Bear with me as I'm not too well versed with the clr/mono/monodevelop yet.. I have mono 2.4 installed and monodevelop 2.2.1. I downloaded clojure-clr and DLR. The newest DLR from the version control doesn't work, since it doesn't have DLR_Main/Runtime/Microsoft.Scripting.Core/ Microsoft.Scripting.ExtensionAttribute.csproj anymore.. So I downloaded the older one. I open the solution file in monodevelop and try to compile it.. I get following error messages (among others): Warning: The reference 'System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' is not valid for the target framework of the project. (Microsoft.Scripting) Warning: Assembly 'mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' not found. Make sure that the assembly exists in disk. If the reference is required to build the project you may get compilation errors. (Microsoft.Scripting) Warning: Assembly 'System, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' not found. Make sure that the assembly exists in disk. If the reference is required to build the project you may get compilation errors. (Microsoft.Scripting) etc. Anyone know how to get over these? Anyone got further? Is Mono 2.4 too old? Thanks, - Sampo -- 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: New Release of the Clojure Debugging Toolkit
sa-jdi.jar is supposed to come with the jdk. The code I use for finding it should work for sun's 1.6 jdk on linux and osx. Which java are you using? What os are you running it on? Also, what problem are you running into without it? (I think I only use it for some advanced features which you may not need.) On Oct 7, 8:15 pm, limux wrote: > where is the sa-jdi.jar, there isn't the sa-jdi.jar under my java's > lib directory. > > On 9月29日, 下午12时00分, George Jahad wrote: > > > hmmm, you must be as big a debugger geek as I am, but I'm not sure > > anyone else would be interested. > > > In any case the commands are almost trivial, which is why I don't > > think it will be too hard to port this to other IDE's: > > > These are the CDT commands that were generated by the Emacs front end > > in the first example: > > > (set-bp clojure.set/difference) > > (reval s1) > > (reval s2) > > (reval count) > > (reval (count s2)) > > (step-over) > > (reval (reduce disj s1 s2)) > > (up) > > (down) > > (cont) > > (line-bp "/Users/georgejahad/incoming/clo11/clojure/src/clj/clojure/ > > set.clj" 56) > > > On Sep 28, 5:13 am, David Nolen wrote: > > > > On Tue, Sep 28, 2010 at 3:40 AM, George Jahad > > > wrote: > > > > > As some of you know, I suffer from a seemingly interminable obsession > > > > with improving the Clojure debugging story. It just seems so clear to > > > > me that Clojure deserves a world class debugger, one befitting it's > > > > power, beauty and elegance. Maybe one day, we'll get there. Till > > > > then, here are my latest improvements to the CDT: > > > > Great stuff! Would it be possible to write a version of the tutorial that > > > shows how to accomplish the same things purely from the command line? > > > While > > > I love Emacs as much as the next guy, I think a tutorial that shows how to > > > debug using only the CDT REPL would be useful to many people. > > > > David -- 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-cake
I had a similar error last time I tried. Didn't manage to solve it. On Fri, Oct 8, 2010 at 10:49 AM, Sunil S Nandihalli wrote: > I forgot to mention the versions... > My cake version is "0.4.18" > and ruby version is "ruby 1.8.7 (2010-01-10 patchlevel 249) [i486-linux]" > On Fri, Oct 8, 2010 at 3:17 PM, Sunil S Nandihalli > wrote: >> >> Hello everybody, >> I am trying to use cake .. was just exploring it with a very simple >> default >> >> cake new expcake >> >> cake deps >> but cake deps gives me the following error >> http://gist.github.com/616564 >> can anybody suggest as to what could be going wrong? >> Thanks, >> Sunil. > > -- > 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 -- Sent from an IBM Model M, 15 August 1989. -- 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-cake
I forgot to mention the versions... My cake version is "0.4.18" and ruby version is "ruby 1.8.7 (2010-01-10 patchlevel 249) [i486-linux]" On Fri, Oct 8, 2010 at 3:17 PM, Sunil S Nandihalli < sunil.nandiha...@gmail.com> wrote: > Hello everybody, > I am trying to use cake .. was just exploring it with a very simple > default > > >> cake new expcake > >> cake deps > > but cake deps gives me the following error > > http://gist.github.com/616564 > > can anybody suggest as to what could be going wrong? > Thanks, > Sunil. > -- 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
clojure-cake
Hello everybody, I am trying to use cake .. was just exploring it with a very simple default >> cake new expcake >> cake deps but cake deps gives me the following error http://gist.github.com/616564 can anybody suggest as to what could be going wrong? Thanks, Sunil. -- 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: VimClojure 2.2.0 released
Hi, On 6 Okt., 17:31, Wilson MacGyver wrote: > If the STOMP support happens with nREPL as Rich was pushing for, > you'd have the windows solution. There are plenty of STOMP client > that works on windows. Do you have some pointers? Googling didn't turn up useful stuff. Important requirement: must be driven by CLI. Sincerely Meikel -- 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