Re: [ANN] clojure.java.jdbc 0.2.3 available on Maven Central

2012-06-26 Thread Niels van Klaveren
. > > Also, I thought that clojure.contrib.datalog worked for SQL queries... > That would be even better ;) > > On Monday, June 25, 2012 1:50:19 PM UTC+2, Niels van Klaveren wrote: >> >> You can use the Datomic datalog implementation to query Clojure >> collect

Re: Anyone using Sublime Text 2 + SumblimeREPL with Windows?

2012-06-27 Thread Niels van Klaveren
This combination of Sublime -text & -REPL looks pretty useful, with little extra configuration (except that decommenting part :) ). When I have the REPL launched, when returning values I get a lot of lines with BS..BS sequences. Any idea how to get rid of those ? On Monday, June 25, 2012 4:09:00

Re: NoSuchMethodError clojure.lang.Numbers.lt(ILjava/lang/Object;)Z clojure.contrib.string/drop (string.clj:121)

2012-07-02 Thread Niels van Klaveren
In the new Counterclockwise 9.0, just clicking the 'play' button should be enough to start a REPL and load the the current clj file if it has the focus. On Monday, July 2, 2012 10:24:38 AM UTC+2, omer wrote: > > hi, i'm new to clojure and i keep running in to this error! > i'm using eclipse in w

Re: Java 7 & GC Settings

2012-07-03 Thread Niels van Klaveren
I haven't got much experience with large scale Clojure environments, but I do know something from managing a lot of JVM production environments. The biggest lesson is: All applications behave differently, usually more so in type of application than JVM language used. No hard and fast rules can b

Re: Java 7 & GC Settings

2012-07-04 Thread Niels van Klaveren
Interesting settings Sam, I'm curious about this one: "-XX:MaxTenuringThreshold=0" ; Makes the full NewSize available to every NewGC ; cycle, and reduces the pause time by not ; evaluating tenured objects. Technically,

Re: newer versions

2012-07-15 Thread Niels van Klaveren
You might try the sonatype snapshot repository, there's a recent core.logic snapshot build on there. Add :repositories {"sonatype-snapshots" "https://oss.sonatype.org/content/repositories/snapshots/"} :dependencies [[org.clojure/clojure "1.4.0"] [org.clojure/core.logic "0.7.

Re: Just wanted to say how much I like ClojurePY

2012-08-16 Thread Niels van Klaveren
You seriously think the lack of Leiningen is an advantage ? On Thursday, August 16, 2012 3:00:50 PM UTC+2, Sean Neilan wrote: > > Hey All, > > ClojurePY is actually quite amazing. It has none of the complexities with > libraries and projects like Clojure and is suitable for crunching data > (be

Re: Just wanted to say how much I like ClojurePY

2012-08-16 Thread Niels van Klaveren
> > With pip/easy_install and virtual_env, there's really not much of a point. > Would lein-py be nice? Yeah, but it's hardly a show-stopper. > To me, maintaining / distributing (virtual) python environments, even in a small (but mixed) organisation, is more of a hassle than plonking in a few

Re: Just wanted to say how much I like ClojurePY

2012-08-16 Thread Niels van Klaveren
A lot of these implementation details bleed out into everyday language use, let alone using platform libraries. I agree with Sean on that. On Thursday, August 16, 2012 7:29:34 PM UTC+2, Luc wrote: > > Clojure is Clojure, Java and how much of the core of the is written in it > is an implementatio

Re: Just wanted to say how much I like ClojurePY

2012-08-16 Thread Niels van Klaveren
The criticism towards Lein is totally uncalled for, it's small, simple, lightweight and for the JVM it's a great clojure-centric way to gather and manage dependencies. Yes, there's lots of options, but for simple projects, you're done with a few lines of configuration. No-one could say it doesn'

Re: Just wanted to say how much I like ClojurePY

2012-08-16 Thread Niels van Klaveren
> > This seems to be a common misconception (and I'm not exactly sure why). > Clojure-py is a complete "from scratch" re-implementation of Clojure in > Python > Didn't know that, that's pretty cool. You taking the effort to do it is even more impressive. > I'm going to stop here and say tha

Re: clojure - "diff" of sequence's

2012-09-26 Thread Niels van Klaveren
There's several different options, best read up on the differences between these differences in the docstrings: (remove (set b) a) (clojure.set/difference (set b) (set a)) (last (clojure.data/diff a b)) On Wednesday, September 26, 2012 10:46:57 AM UTC+2, Alex Shabanov wrote: > > Good day, > >

Re: Is Slick feasible in Clojure?

2012-09-29 Thread Niels van Klaveren
Clojure already has something like this, it's called datalog. Datomic has an implementation that can be used to query it's database as well as most collections. There's also another datalog implementation which has it's own persistent database. An opportunity that's still open would be a datalog

Re: best practices for small RAM usage

2012-10-04 Thread Niels van Klaveren
You might want to use the -XX:+UseCompressedOops JVM option to compress the JVM object pointer size in 64 bits. On Wednesday, October 3, 2012 9:17:21 PM UTC+2, Thomas wrote: > > try and use a 32bit JVM. I found that a 64bit JVM uses almost twice as > much memory. YMMV > > Thomas > -- You recei

Re: pmap performance degradation after 30-40 min of work?

2012-10-13 Thread Niels van Klaveren
If it is a memory / gc problem, the easiest way to spot it is writing a gc log. Add the following parameters to your JVM parameters: -Xloggc:D:/log/myGClog.log -XX:+PrintGCDetails Then, use a GC log viewer to keep a look on the logs (by refreshing or tail refresh) with a GC log viewer. These

Re: Clojure turns 5

2012-10-17 Thread Niels van Klaveren
(take 5 (range)) Many happy return values, Rich ! On Wednesday, October 17, 2012 3:53:55 AM UTC+2, Rich Hickey wrote: > > I released Clojure 5 years ago today. It's been a terrific ride so far. > > Thanks to everyone who contributes to making Clojure, and its community, > great. > > Rich --

Re: (def some? (comp not nil? some))

2012-12-03 Thread Niels van Klaveren
That's why Jim mentions if-let and when-let in combination with some, they both detect if results are nil. On Sunday, December 2, 2012 10:11:24 PM UTC+1, Ben wrote: > > On Sun, Dec 2, 2012 at 12:48 PM, Jim - FooBar(); > > > wrote: > > Its perfectly fine to use some as a predicate as far as I k

Re: Clojure Full Syntactical Reference

2012-12-18 Thread Niels van Klaveren
It's a feature of the REPLy NREPL client. See https://github.com/trptcolin/reply/blob/master/src/clj/reply/initialization.clj how it works so you can emulate it. On Tuesday, December 18, 2012 5:10:00 AM UTC+1, Karim A. Nassar wrote: > > When using nrepl in emacs (cdoc ) emits: > > CompilerExcep

Re: Clojure Full Syntactical Reference

2012-12-18 Thread Niels van Klaveren
I wonder if this couldn't have been better implemented as nrepl middleware. On Tuesday, December 18, 2012 10:34:01 AM UTC+1, Niels van Klaveren wrote: > > It's a feature of the REPLy NREPL client. See > https://github.com/trptcolin/reply/blob/master/src/clj/reply/initiali

<    1   2