Hooking into doc and source

2013-01-31 Thread Phillip Lord
I'm build a library which provides a DSL for building ontologies. Underneath this backs onto a Java API. The library works by provide some macros, which create Java objects then intern them into the local namespace. Now, I would like to be to support documentation and source code lookup. The

Re: is intellij idea a good ide for clojure development?

2013-01-31 Thread Niels van Klaveren
Another vote for Eclipse/CCW over Netbeans and IntelliJ. I used all three, and CCW's development has proven to be consistently better than plugins for the other IDE's. Both CCW's excellent Leiningen and REPL support, as the option to link projects when working on multiple sources at the same

multicore list processing (was Re: abysmal multicore performance, especially on AMD processors)

2013-01-31 Thread Chas Emerick
Keeping the discussion here would make sense, esp. in light of meetup.com's horrible discussion board. I don't have a lot to offer on the JVM/Clojure-specific problem beyond what I wrote in that meetup thread, but Lee's challenge(s) were too hard to resist: Would your conclusion be something

Clojure 1.5 RC 4 wants to be Clojure 1.5

2013-01-31 Thread Stuart Halloway
Clojure 1.5 RC 4 is now available via Maven Central: http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22org.clojure%22%20AND%20a%3A%22clojure%22%20AND%20v%3A1.5.0* Please test it! -- -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this

Re: multicore list processing (was Re: abysmal multicore performance, especially on AMD processors)

2013-01-31 Thread Marshall Bockrath-Vandegrift
Chas Emerick c...@cemerick.com writes: Keeping the discussion here would make sense, esp. in light of meetup.com's horrible discussion board. Excellent. Solves the problem of deciding the etiquette of jumping on the meetup board for a meetup one has never been involved in. :-) The nature

Re: is intellij idea a good ide for clojure development?

2013-01-31 Thread Laurent PETIT
2013/1/31 Niels van Klaveren niels.vanklave...@gmail.com: Another vote for Eclipse/CCW over Netbeans and IntelliJ. I used all three, and CCW's development has proven to be consistently better than plugins for the other IDE's. Both CCW's excellent Leiningen and REPL support, as the option to

Re: multicore list processing (was Re: abysmal multicore performance, especially on AMD processors)

2013-01-31 Thread Chas Emerick
On Jan 31, 2013, at 9:23 AM, Marshall Bockrath-Vandegrift wrote: Chas Emerick c...@cemerick.com writes: The nature of the `burn` program is such that I'm skeptical of the ability of any garbage-collected runtime (lispy or not) to scale its operation across multiple threads. Bringing you

ANN Spyglass 1.1.0-beta2

2013-01-31 Thread Michael Klishin
Spyglass is a very fast Clojure client for Memcached (as well as Couchbase and Kestrel) built on top of SpyMemcached. Release notes: http://blog.clojurewerkz.org/blog/2013/01/31/spyglass-1-dot-1-0-beta2-is-released/ -- MK http://github.com/michaelklishin http://twitter.com/michaelklishin --

Re: GSOC 2013 projects?

2013-01-31 Thread Dmitry Groshev
I would really like to try to participate this year too. I was thinking about porting ClojureScript to ErlangVM (BEAM); not in fully compatible with standard JS-CLJS way, I think, but at least as an alternative language for BEAM. There is a clear lack of decent language for hard problems now

Re: screencast: friend and creating a login form

2013-01-31 Thread Timothy Washington
Wow, this is great. And it came just in time, as I want to use compojure + friend + an account chooser (accountchooser.com). Account Chooser uses OpenID in the background, so hopefully I can use that friend workflow out of the box. But if anyone's had experience with friend + accountchooser, I'd

Re: multicore list processing (was Re: abysmal multicore performance, especially on AMD processors)

2013-01-31 Thread Lee Spector
On Jan 31, 2013, at 10:15 AM, Chas Emerick wrote: Then Wm. Josiah posted a full-application benchmark, which appears to have entirely different performance problems from the synthetic `burn` benchmark. I’d rejected GC as the cause for the slowdown there too, but ATM can’t recall why or

Re: GSOC 2013 projects?

2013-01-31 Thread David Nolen
I helped manage the process last year. It's not a small amount of work. I don't think I have the time to put into it this year, though I'd be willing to be a mentor. Anybody want to step forward and lead that process? David On Thu, Jan 31, 2013 at 10:23 AM, Dmitry Groshev

Re: Hooking into doc and source

2013-01-31 Thread Brian Marick
On Jan 31, 2013, at 5:50 AM, Phillip Lord phillip.l...@newcastle.ac.uk wrote: So, I really would like to hook into the doc function so that I can return a documentation string pulled directly from the underlying Java object; I already have a function for doing this, but do not know how to get

strange error: : Could not find or load main class –jar

2013-01-31 Thread larry google groups
I wrote a small Clojure app (1.4) and then bundled it up with lein uberjar. This app uses Ring and Jetty so it handles the webserver itself. On my local machine, a Macintosh, in the terminal, I can start it with: java -jar kiosk.clj 3 This works fine. I also moved to another server,

Re: the semantic of if-let macro

2013-01-31 Thread Stuart Halloway
The docs are clear that the test occurs before the bindings: (doc if-let) - clojure.core/if-let ([bindings then] [bindings then else oldform]) Macro bindings = binding-form test If test is true, evaluates then with binding-form bound to the value of test, if not,

Re: strange error: : Could not find or load main class –jar

2013-01-31 Thread larry google groups
This does not seem to apply: https://github.com/technomancy/leiningen/issues/739 I suspect you're missing a :gen-class declaration in src/cljmx/core.clj. But this is what I have: (ns kiosks-clojure.core (:gen-class) (:import (java.net URL) (java.io ByteArrayInputStream)

Re: strange error: : Could not find or load main class –jar

2013-01-31 Thread larry google groups
More info about my problem: java version 1.7.0_11 Java(TM) SE Runtime Environment (build 1.7.0_11-b21) Java HotSpot(TM) 64-Bit Server VM (build 23.6-b04, mixed mode) W dniu czwartek, 31 stycznia 2013 13:19:34 UTC-5 użytkownik larry google groups napisał: This does not seem to apply:

Re: GSOC 2013 projects?

2013-01-31 Thread Daniel Solano Gómez
On Thu Jan 31 11:52 2013, David Nolen wrote: I helped manage the process last year. It's not a small amount of work. I don't think I have the time to put into it this year, though I'd be willing to be a mentor. Anybody want to step forward and lead that process? I'd be happy to give it a

Re: Hooking into doc and source

2013-01-31 Thread Hugo Duncan
phillip.l...@newcastle.ac.uk (Phillip Lord) writes: I'm build a library which provides a DSL for building ontologies. Underneath this backs onto a Java API. The library works by provide some macros, which create Java objects then intern them into the local namespace. With the

Re: strange error: : Could not find or load main class –jar

2013-01-31 Thread larry google groups
Any suggestion, no matter how far fetched, will be welcome. I am ignorant about the JVM so I am having trouble debugging this problem. W dniu czwartek, 31 stycznia 2013 13:22:20 UTC-5 użytkownik larry google groups napisał: More info about my problem: java version 1.7.0_11 Java(TM) SE

Re: strange error: : Could not find or load main class –jar

2013-01-31 Thread larry google groups
I am using wrap-resource instead of wrap-file. Could that cause some issues with the path? (And, is this a path issue?) (def app (- app-routes (wrap-resource public) (wrap-session {:cookie-name timeout-discovery-session :cookie-attrs {:max-age 1 }}) (wrap-cookies)

Re: strange error: : Could not find or load main class –jar

2013-01-31 Thread Marko Topolnik
The java command is interpreting -jar as the name of a class instead of a command-line option. Something is messed up in the way the command is executed in your sysadmin's context. On Thursday, January 31, 2013 9:01:07 PM UTC+1, larry google groups wrote: Any suggestion, no matter how far

Re: strange error: : Could not find or load main class –jar

2013-01-31 Thread Marshall Bockrath-Vandegrift
larry google groups lawrencecloj...@gmail.com writes: Any suggestion, no matter how far fetched, will be welcome. I am ignorant about the JVM so I am having trouble debugging this problem.  java -jar kiosk.clj 3 These are weird (.clj vs .jar), but since you say whatever you

extended mode for format strings?

2013-01-31 Thread Rich Morin
Looking at complicated format strings (in cl-format) such as: ~:~:@{[~25s ~30s]~:^~:@_~}~: I'm struck with a desire to break up the string, comment it, etc. In fact, in http://wiki.cfcl.com/bin/view/Projects/Clojure/CP_pprint, I did so: ~:~:@{[~25s ~30s]~:^~:@_~}~: ; the entire format

Re: strange error: : Could not find or load main class –jar

2013-01-31 Thread larry google groups
java -jar kiosk.clj 3 These are weird (.clj vs .jar), but since you say whatever you actually ran worked... Apologies. I re-typed and stupidly typed clj. But what I sent to the sysadmin was a copy and paste of what I had used in my terminal to get the app running. I

Re: strange error: : Could not find or load main class –jar

2013-01-31 Thread larry google groups
I'm guessing encoding error. In fact, if that error is a direct copy-paste from either the exact error or what you sent the sysadmin, it completely explains it. Your `-` character in `-jar` above is in fact `-` (en-dash), which is causing `java` to search the classpath for a class named

clojure web developer job offer

2013-01-31 Thread Vagif Verdi
Our company is looking for a full time or consultant developer. The job is to maintain and continue actively develop web application / internal webservices written in clojure. We use compojure web framework, darcs for repository. Remote work via ssh is ok. Haskell knowledge is a big plus. We

(into [] (take n v)) vs (subvec v 0 n)

2013-01-31 Thread Don Jackson
In the app I am working on, I have a number of pre-computed,cached collections, and for each collection, I have an accessor function that returns either the entire collection or the first n elements. Currently the underlying collection is a vector, so I had something like this: (defn

How to solve Collatz Conjecture problem for huge numbers using clojure parallelism tricks?

2013-01-31 Thread Leandro Moreira
The problem is known as Collatz Conjecture (also 3n + 1 conjecture). Basically given a n number then you apply the following rule. If n is even then n/2 otherwise 3 * n + 1, you keep applying this until you reach the number 1. For instance, starting with *n = 6*, one gets the sequence 6, 3,

Re: *read-eval* vulnerability

2013-01-31 Thread Chas Emerick
On Jan 30, 2013, at 5:59 PM, Michał Marczyk wrote: On 30 January 2013 23:32, Chas Emerick c...@cemerick.com wrote: On Jan 30, 2013, at 12:23 PM, Michael Fogus wrote: RuntimeException EvalReader not allowed when *read-eval* is false. The problem is that the second eval gets (the actual +

Re: Installing Clojure on Windows 7

2013-01-31 Thread James Wildheit
meant to say in my post entitled instructions for windows 7 to install clojure - leiningen - eclipse - counterclockwise: if Ctrl (not Cmd) Enter does not work in windows 7 try: Ctrl Alt S when done don't forget to restart after re-enabling your firewall and UAC (otherwise UAC will remain off

Re: How to solve Collatz Conjecture problem for huge numbers using clojure parallelism tricks?

2013-01-31 Thread Zack Maril
Take a look at this gist: https://gist.github.com/4688693 It uses memoize to eek out a little bit more performance. λ ~/Projects/experiments/collatz lein run Compiling collatz.core [9 19] Elapsed time: 30.236 msecs [97 118] Elapsed time: 5.532 msecs [871 178] Elapsed time: 22.529 msecs [6171

Re: Prismatic Plumbing and Graph Open-Source Release

2013-01-31 Thread Alex Miller
The video of the talk on Graph from Strange Loop just came out: http://www.infoq.com/presentations/Graph-Clojure-Prismatic On Tuesday, January 29, 2013 12:46:54 PM UTC-6, Aria Haghighi wrote: Hey all, Prismatic has open-sourced our Plumbing and Graph library on

Re: Prismatic Plumbing and Graph Open-Source Release

2013-01-31 Thread AtKaaZ
if you put that on youtube, let me know, currently I cannot see the slides or they are simply stuck on the first slide and never change (the video works though) On Fri, Feb 1, 2013 at 5:31 AM, Alex Miller a...@puredanger.com wrote: The video of the talk on Graph from Strange Loop just came

Re: Prismatic Plumbing and Graph Open-Source Release

2013-01-31 Thread Baishampayan Ghose
Try Firefox. ~BG On Fri, Feb 1, 2013 at 10:08 AM, AtKaaZ atk...@gmail.com wrote: if you put that on youtube, let me know, currently I cannot see the slides or they are simply stuck on the first slide and never change (the video works though) On Fri, Feb 1, 2013 at 5:31 AM, Alex Miller

AW: (into [] (take n v)) vs (subvec v 0 n)

2013-01-31 Thread Meikel Brandmeyer
Hi, how about simply doing this: (defn foo-accessor ([] foo-vector) ([n] (subvec foo-vector 0 (min n (count foo-vector) I wouldn't worry too much about subvectors. Unless you identify them as a bottleneck with the profiler. Kind regards Meikel Durch MOTOBLUR™ verbunden

Re: How to solve Collatz Conjecture problem for huge numbers using clojure parallelism tricks?

2013-01-31 Thread Leandro Moreira
Running through this problem I also faced the weird situation, so: Given two maps (def mario {:color red :power 45}) (def luigi {:color green :power 40}) I want the max between both but based on :power key. It would be something like this. (max mario luigi) I expect max return not only 45 but

Re: Prismatic Plumbing and Graph Open-Source Release

2013-01-31 Thread AtKaaZ
Thanks, I am already using it v 19.0, at one time I was unable to see any videos on infoq but then I realized that's because I perma-denied*flash*.exe *outgoing in firewall but as soon as I upgraded flash the newly named exe trying outgoing made the firewall prompt me and realized that's why some

Efficient idioms to handle large lists?

2013-01-31 Thread bruce li
Hello, everyone. I'm experience some performance issue when using clojure. The scenario is as follows: I have a huge list of xls files to process. I used the org.clojars.boechat107/cloxls to read the files which for each file generates a list(approximately 65,000 elements). Now I need to