Re: error in nrepl

2017-06-23 Thread Peter Hull
On Friday, 23 June 2017 23:14:55 UTC+1, lawrence...@gmail.com wrote: > > > I'm curious if folks think it is easier to work with Emacs on a Linux > machine, or on a Mac? > > I use Emacs on Mac, Linux and Windows. I disagree that it's more difficult to use on the Mac vs Linux. On Windows I get my

Clojure android activity?

2017-06-23 Thread Mike Meyer
Is there still any activity in the clojure-android space? The clojure-android mail list is largely inactive, seems like the developers of lein-droid haven't done anything in months (1.7.0-r4 is still used in the templates), and the numerous references If ind for an android-clojure web site are

Re: error in nrepl

2017-06-23 Thread Sean Corfield
For several years I used Emacs on both Mac and Windows and I went through several configurations. I tried to build a config from scratch early on and gave up with that, so I switched to Emacs-Live from the Overtone folks, which worked well enough back in the day but had a strange view of package

Re: Stubbornly eager results in clojure.java.jdbc

2017-06-23 Thread Luke Burton
> On Jun 23, 2017, at 2:26 PM, Sean Corfield wrote: > > This is excellent news as far as I’m concerned because it shows there’s no > specific bug in clojure.java.jdbc that is fundamentally causing the OOM > problem you’re seeing! I'm relieved too, given that I use clojure.java.jdbc extensivel

Re: error in nrepl

2017-06-23 Thread Kevin Baldor
It's much easier on Linux, I wish that I had taken notes when I set up my Mac. But after a few false starts, it's working well for me. My mac is at home, so I'll have to wait until I get there to see if I can figure out what version I'm running and from where I downloaded it. There's a pretty good

Re: error in nrepl

2017-06-23 Thread lawrence . krubner
Thank you. Maybe I can find some time to upgrade my whole Emacs setup next weekend. It is a bit out of date. I'm curious if folks think it is easier to work with Emacs on a Linux machine, or on a Mac? On Friday, June 23, 2017 at 5:39:42 PM UTC-4, Kevin Baldor wrote: > > Have you tried foll

Re: error in nrepl

2017-06-23 Thread Kevin Baldor
Have you tried following the instructions at http://www.braveclojure.com/basic-emacs/ ? It's a bit heavy-handed (replacing your entire .emacs directory), but it might give you a starting point to figure out how to integrate it into your emacs setup. On Fri, Jun 23, 2017 at 4:36 PM, wrote: > > Y

Re: error in nrepl

2017-06-23 Thread lawrence . krubner
On Friday, June 23, 2017 at 4:29:24 PM UTC-4, lawrence...@gmail.com wrote: > > I'm using Emacs on my Mac. I ran "nrepl-jack-in" to load up the repl. I'm > iterating over a dataset from mysql. My code is very simple, I'm just > trying to count the words: > > (reduce > > (fn [map-of-word-count

Re: error in nrepl

2017-06-23 Thread lawrence . krubner
Yes, sadly, I've never gotten Cider to work with Emacs. I keep thinking someday I'll take a weekend and work through all the errors and get it working, but I never seem to find the time. So I keep working with an old version of nrepl. But I take it, from your answer, you think this error would

Re: Stubbornly eager results in clojure.java.jdbc

2017-06-23 Thread Sean Corfield
This is excellent news as far as I’m concerned because it shows there’s no specific bug in clojure.java.jdbc that is fundamentally causing the OOM problem you’re seeing! (that’s not to say there aren’t _other_ bugs in clojure.java.jdbc and the idea of the reducible result set definitely has

Re: error in nrepl

2017-06-23 Thread James Reeves
nrepl-jack-in? Do you mean cider-jack-in? AFAIK nrepl-jack-in is from a very old version of Cider. On 23 June 2017 at 21:29, wrote: > I'm using Emacs on my Mac. I ran "nrepl-jack-in" to load up the repl. I'm > iterating over a dataset from mysql. My code is very simple, I'm just > trying to coun

Re: Stubbornly eager results in clojure.java.jdbc

2017-06-23 Thread Luke Burton
Well, shoot. I went back and revisited this because it was bugging me … I looked at the code generated with and without usage of ^:once fn* and that led me down the right path. TL;DR – the problem appears to be locals clearing always disabled in Cursive REPL. This is just my current hypothesis

error in nrepl

2017-06-23 Thread lawrence . krubner
I'm using Emacs on my Mac. I ran "nrepl-jack-in" to load up the repl. I'm iterating over a dataset from mysql. My code is very simple, I'm just trying to count the words: (reduce (fn [map-of-word-count next-name] (let [ words (clojure.string/split next-name #"\s") map-of-names-words-with-co

Re: Stubbornly eager results in clojure.java.jdbc

2017-06-23 Thread Luke Burton
Postgres, as mentioned in the mail and the linked source code. The problem at this point doesn't appear to be options given to the driver, since I show two implementations using the same driver options. One processes the results lazily, one does not. Now, I'm calling two different methods in

Re: Stubbornly eager results in clojure.java.jdbc

2017-06-23 Thread r0man
Hi Luke, which database are you using? I had the same issue with MySQL recently. At the end I got it working with clojure.java.jdbc. I don't have the code at hand, but according to the MySQL docs you have to set the fetch size to Integer.MIN_VALUE. https://dev.mysql.com/doc/connector-j/5.1/en/c