Re: Help on implementing a simple java (openNLP) EventStream interface

2013-02-15 Thread Max Penet
Yes, your example looks ok. About performance of reify vs proxy, http://clojure.org/datatypes explains this better than I could: The method bodies of reify are lexical closures, and can refer to the > surrounding local scope. *reify* differs from *proxy* in that: > > >- Only protocols o

Re: Why is this so difficult?

2013-02-15 Thread ybaumes
Do you know LispBox ? We need a ClojureBox. Le vendredi 15 février 2013 03:56:59 UTC+1, Jules a écrit : > > vemv, here is a file describing my Clojure install experience: > https://www.dropbox.com/s/ln2ek5f5n47qnl1/clojureinstall.odp > > How should I continue

Re: Pretty-printing `lein test`s output?

2013-02-15 Thread Víctor M . V .
I just tried out both lein-difftest and gui-diff and they work just great. I'd love a `lein test` command that defaulted to the former and could resort to the latter when things got hairy. But that's just wishful thinking at the moment :) Thanks you Sean for the advice as well - the workflow you d

Re: Why is this so difficult?

2013-02-15 Thread Sven Johansson
On Fri, Feb 15, 2013 at 9:12 AM, wrote: > Do you know LispBox ? We need a > ClojureBox. > > There is, or perhaps was, a ClojureBox. Although it seems to have been aimed specifically at Windows. Last update seems to have been about a year ago. https://github.c

how to understand differences in results for nrepl.el interrupt evaluation (C-c C-b)?

2013-02-15 Thread George Oliver
hi, I am experimenting at the repl with a while form. For now I just write it as (while true ...) and interrupt it with C-c C-b. This is for a basic socket server. Recently I noticed a difference in how C-c C-b behaves that I don't understand. Normally when I interrupt, the repl returns immedi

Re: Why is this so difficult?

2013-02-15 Thread BJG145
(Loads of great advice and information, here, thanks. I don't know anything about build managers so I think my next step will be to pick up a book on Maven to get the background...) -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this

Re: Why is this so difficult?

2013-02-15 Thread BJG145
(Loads of great advice and information here, thanks! I don't know anything about build managers so I think my next step will be to pick up a book on Maven to get the background...) -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to thi

Re: Why is this so difficult?

2013-02-15 Thread Víctor M . V .
While it's perfectly useful and valuable to learn Maven, you need not to dive into it for most purposes in the Clojure world - Leiningen effectively abstracts its complexities and rigidities (which, I hear, are many). On Fri, Feb 15, 2013 at 10:17 AM, BJG145 wrote: > (Loads of great advice and i

Re: Why is this so difficult?

2013-02-15 Thread Angel Java Lopez
Hi people! Sean, thanks for your landscape description of Clojure world. I'm a lurker in this list, since +-2009. In the past year, I was showing Clojure in programmer talks, using my Windows machine, and I have no major problem, using plain command line with clojure jar, and then, lein. I don't u

Help on drafting a protocol for realtime communication between client and ring server

2013-02-15 Thread Feng Shen
Hi, I am trying to draft a protocol for realtime communication between client and ring server. http-kit try to implement the protocol, provide a fast & scalable ring adapter with websocket & async extension for Clojure web developers. Here is an initial version, any t

Re: Why is this so difficult?

2013-02-15 Thread Sven Johansson
On Fri, Feb 15, 2013 at 10:32 AM, Víctor M. V. wrote: > While it's perfectly useful and valuable to learn Maven, you need not to > dive into it for most purposes in the Clojure world - Leiningen effectively > abstracts its complexities and rigidities (which, I hear, are many). > > +1. Maven is a

Re: Help on drafting a protocol for realtime communication between client and ring server

2013-02-15 Thread Feng Shen
Opps, this post is intended to be posted on the Ring group, sorry for the noise. On Friday, February 15, 2013 5:50:15 PM UTC+8, Feng Shen wrote: > > Hi, I am trying to draft a protocol for realtime communication between > client and ring server. > > http-kit try to imp

Re: How to bind an Aleph TCP server to a TCP v4 port?

2013-02-15 Thread peter.courc...@googlemail.com
Hi Jorge, I'm not sure if this is what you need but, you could try starting the jvm with |-Djava.net.preferIPv4Stack=true Regards, Peter On Thursday, 14 February 2013 23:06:24 UTC, Jorge Luis Pérez wrote: > > I started to learn Clojure a couple of days ago. I was trying with some > Aleph T

ClojureScript atom behavior

2013-02-15 Thread Alexander Solovyov
Hi, I use atoms as a data storage in my application right now and add-watch to propagate data changes to DOM. And right now I noticed strange behavior - sometimes new-state is different from dereferenced atom (coming as a parameter to a function right now). And it's not just different, it is diff

Re: Why is this so difficult?

2013-02-15 Thread Bob Hutchison
On 2013-02-15, at 4:16 AM, BJG145 wrote: > I don't know anything about build managers so I think my next step will be to > pick up a book on Maven to get the background…) Don't. Just don't. All you really need to know about maven, and it's role, is what you can get from wikipedia. Seriously.

Re: Looping and accumulation

2013-02-15 Thread Jonathon McKitrick
On Thursday, February 14, 2013 7:44:18 PM UTC-5, Stephen Compall wrote: > On Feb 14, 2013 6:11 PM, "Jonathon McKitrick" > > > wrote: > > I have a loop over a function that is accumulating a list of database > keys for later use. But it is primarily doing other processing and > returning a col

Re: Why is this so difficult?

2013-02-15 Thread Jules
Sean, Thanks a lot, I'll try that method later. I have succeeded in installing leiningen, and indeed just running it from the command line and using emacs as an editor is the most user friendly way I've seen (other things like lighttable and ccw didn't work for me -- most likely i did something

Forcing evaluation of args to a macro?

2013-02-15 Thread Jason Lewis
Hey, Clojure n00b here... I'm working with a macro that expects a vector and iterates over the contents with a `for` form. I had naively assumed that it would work equally well to pass it a var containing the vector, but instead it tries to iterate over the individual symbol and the output is munge

Re: Forcing evaluation of args to a macro?

2013-02-15 Thread AtKaaZ
Hi. It would maybe help if you'd post some test code (deftest for the macro?), if not also that macro that you have so far. But, if you want to force evaluation you could maybe use *eval* but this may not need apply in your case, ie. maybe you want this: => (def a '(1 3 9)) #'runtime.q/a => a (1 3

Re: How to set the value of a static variable in a java factory class from clojure?

2013-02-15 Thread Joachim De Beule
yes, that works. thanks! Op donderdag 14 februari 2013 17:07:31 UTC+1 schreef Baishampayan Ghose het volgende: > > Haven't looked at the code, but `set!` should work. ~BG > > Sent from phone. Please excuse brevity. > On 14 Feb 2013 21:30, "Joachim De Beule" > > wrote: > >> Hi All, >> >> >> I kno

Re: Pretty-printing `lein test`s output?

2013-02-15 Thread Hugo Duncan
Sean Corfield writes: > You'll find your workflow greatly improved by using nrepl (or > slime/swank) and running tests directly from Emacs - and that applies > whether you're using bare clojure.test, midje or expectations. For nrepl.el, via clojure-test-mode, There is an pull request [1] to add

Re: protocol implementation delegating to protocol extension doesn't compile

2013-02-15 Thread Jim - FooBar();
Hi Juan, I have to admit you're a life saver! You didn't say anything that I did not know but you did make a couple of observations that made me have a closer look on my code...For example you noticed that the protocol extension to String was never registered...That is the *real* problem here

Re: Forcing evaluation of args to a macro?

2013-02-15 Thread vxm
Reader: Source code (text) -> Clojure reader -> Data structures (code) Compiler: [function or special form] -> bytecode, [macro] -> Data structures (code) Runtime: Data structures are evaluated: Literals -> to themselves (1->1, "some string" -> "some string", :some-key -> :some-key)

Re: Why is this so difficult?

2013-02-15 Thread BJG145
Jules sums up pretty exactly where I was at...tried CCW, nope, tried light Table, nope, looked at Leiningen, thought: "Edit PATH? What, I haven't done that since I was on Windows 3.1, and what does this thing do anyway"...I appreciate the time people have put into all the advice given above beca

Re: Why is this so difficult?

2013-02-15 Thread Laurent PETIT
Hello, 2013/2/15 BJG145 : > Jules sums up pretty exactly where I was at...tried CCW, nope, tried light Sorry to be a little bit off topic (or am I ?), but as one of the main developers of CCW, I'd like to learn from this "nope". Indeed, one of the main goals of CCW is to be beginner friendly so

Re: Why is this so difficult?

2013-02-15 Thread Víctor M . V .
Well, given that you've mentioned Ruby, I can tell you that getting real work done (no just a installing some welcome pack) in Ruby is orders of magnitude harder than with Clojure - and borderline impossible if using Windows. What Lein does is divided into a dozen tools, each with its own idiosyncr

STM in Clojure vs Haskell, why no retry or orElse?

2013-02-15 Thread Tom Hall
A few months ago I reread Simon Peyton Joneses article on STM in the Beautiful Code book and decided to try and translate it into clojures STM See the paper here http://research.microsoft.com/pubs/74063/beautiful.pdf He says 'Atomic blocks as we have introduced them so far are utterly inadequate

Re: Why is this so difficult?

2013-02-15 Thread BJG145
Figuring stuff out is all very well if you've got a clear, consistent, reliable source of information. Learning Clojure the language - get a book, no problem. Learning Clojure the IDE...it's a mess, loads of blogs, some good, some bad, a lot of outdated or abandoned stuff. Google Clojure and y

Re: Why is this so difficult?

2013-02-15 Thread MarkH
I too suggest taking a second look at CCW. I'll never be an Emacs guy and current CCW should be an almost seamless setup with Lein. On Friday, February 15, 2013 8:53:47 AM UTC-6, lpetit wrote: > > Hello, > > 2013/2/15 BJG145 >: > > Jules sums up pretty exactly where I was at...tried CCW, nope,

Re: Why is this so difficult?

2013-02-15 Thread BJG145
Sure...(lpetit, I can't remember what threw me, I probably don't have Eclipse set up correctly, but I'll add a note when I've checked it out.) -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegrou

Re: Why is this so difficult?

2013-02-15 Thread Phillip Lord
I'd agree with this. The situation is even not ideal with linux; when I first used Clojure I was reticient to install lein by hand and only lein 1 was available for my repo. Lazy? Well, I use 4 or 5 machines routinely, and I set them up as I go, so an quick and easy install is important. Eventuall

Re: Forcing evaluation of args to a macro?

2013-02-15 Thread Phillip Lord
The obvious answer is use a function and not a macro. So, for instance user> (defn f[x] (println x)) #'user/f user> (f [1 2 3]) [1 2 3] nil user> (def x [1 2 3]) #'user/x user> (f x) [1 2 3] nil In this case, the arguments are evaluated before being passed. x evals to [1 2 3] while [1 2 3]

Re: Why is this so difficult?

2013-02-15 Thread Jules
lpetit, I'll describe my experience with CCW on windows. Installing CCW is fairly easy, though not as easy as just downloading and running. If you go to the counterclockwise site (https://code.google.com/p/counterclockwise/) it is reasonably clear what you should do, but not as clear as it could

Re: Why is this so difficult?

2013-02-15 Thread Víctor M . V .
Phil, while I don't know the specific application you're working on, distributing Clojure apps to end users should't be any more difficult than distributing Java apps. Are you familiar with `lein uberjar`? As for Linux installation, curling and executing a single script can't be that much work...?

Re: Why is this so difficult?

2013-02-15 Thread Phil Hagelberg
So for the record, the reason Leiningen doesn't work on Windows is primarily that Windows users spend a lot more time talking about how it doesn't work on Windows, and very little time actually making it work on Windows. It's like some kind of reverse Heisenberg Uncertainty Principle. Just becaus

Re: Why is this so difficult?

2013-02-15 Thread Jules
By the way, I've been trying to write an install script for windows that installs leiningen + CCW. Creating a folder for all Clojure stuff, putting that folder on the PATH, downloading lein.bat, running lein self-install, downloading eclipse works OK. So far there are two problems I ran into tha

Re: Why is this so difficult?

2013-02-15 Thread Giacomo Cosenza
On Feb 15, 2013, at 5:30 PM, Phil Hagelberg wrote: > It's like some kind of reverse Heisenberg Uncertainty Principle. I never use +1, but this is the case mimmo -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email

Re: Why is this so difficult?

2013-02-15 Thread Víctor M . V .
on the CCW hang you mention - I saw an issue that was marked as "critical" on the bug tracker, two weeks ago. As I can't find it anymore I assume it's been fixed. Are you sure you're using the absolute latest version? If you are, you should open an issue. I like your idea. Assuming curl is instal

Re: Why is this so difficult?

2013-02-15 Thread Jason Lewis
I don't want to sound like a curmudgeon, but all I can say is people who complain about lein have never written a Makefile. Jason Lewis Email jasonlewi...@gmail.com Twitter@canweriotnow Blog http://decomplecting.org About htt

Re: Why is this so difficult?

2013-02-15 Thread Víctor M . V .
Now I think it, if automating the CCW plugin install is too difficult (Eclipse is very script-unfriendly) we could just mantain an already-configured setup ready to download. In other words, zipping and uploading a clean `eclipse` folder. On Fri, Feb 15, 2013 at 6:03 PM, Víctor M. V. wrote: > on

Re: Why is this so difficult?

2013-02-15 Thread Jules
Actually I think CCW is not the issue but leiningen. If I do this: lein new foo cd foo lein repl Now leiningen hangs. If I run lein repl outside of a project folder, it works. I'm not sure if this is really a problem with leiningen, or I just did something wrong at some point, so I'm a bit hesi

Re: Why is this so difficult?

2013-02-15 Thread Jules
Yes, just zipping up a clean eclipse+ccw was my first thought too, but the resulting file is rather large 200MB or so, so we'd need to find hosting for that. On Friday, February 15, 2013 6:09:14 PM UTC+1, vemv wrote: > > Now I think it, if automating the CCW plugin install is too difficult > (E

Re: Why is this so difficult?

2013-02-15 Thread Víctor M . V .
On `lein repl` hanging - it could be anything, from the repl is used ( https://github.com/trptcolin/reply/) to who knows. If your issue is reproducible with a clean lein install, there should be no reason why a bug report wouldn't be welcome. File hosting wouldn't be as much as problem a setting u

Re: Why is this so difficult?

2013-02-15 Thread David Powell
Just for the record, I've had problems with lein trampoline on the past, but the latest version of lein is fine. I do all my clojure on Windows 7. -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@google

Re: Why is this so difficult?

2013-02-15 Thread Jules
It is reproducible from a clean install, as far as I can tell (but it is possible that I had not deleted previous leiningen fully). I have posted it on the issue tracker. What I was thinking is not to integrate CCW installation to leiningen, but instead a "Clojure Starter Kit" just for windows

Re: Why is this so difficult?

2013-02-15 Thread Alan Shaw
Leiningen works on Windows. On Feb 15, 2013 8:32 AM, "Phil Hagelberg" wrote: > > So for the record, the reason Leiningen doesn't work on Windows is > primarily that Windows users spend a lot more time talking about how it > doesn't work on Windows, and very little time actually making it work on

Re: Why is this so difficult?

2013-02-15 Thread Víctor M . V .
Jules: between the current doc improvement for lein we're both participating in ( https://github.com/technomancy/leiningen/issues/1007) and the available doc for CCW (installation is one step really), are there any pain points that such a starter kit would address? On Fri, Feb 15, 2013 at 6:42 P

Re: Why is this so difficult?

2013-02-15 Thread Mark Engelberg
On Fri, Feb 15, 2013 at 8:19 AM, Jules wrote: > But now you still don't have leiningen, which is essential if you want to > do anything non toy. The installation page of CCW does describe how to > create a leiningen project, but doesn't say that you first have to manually > install leiningen. >

Re: Why is this so difficult?

2013-02-15 Thread Mark Engelberg
P.S. I've been very happy with the latest version of leiningen on Windows. -- -- 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 pa

Re: Forcing evaluation of args to a macro?

2013-02-15 Thread Jason Lewis
Thanks for the info - The macro in question was in a library I was using... I just ended up writing a function to build a data structure that did exactly what I needed. First hand lesson that data structures > functions > macros Thanks, Jason Lewis Email jasonlewi...@gmail.com Twitte

edn test data generator for vetting edn across platforms and a .Net edn reader/writer

2013-02-15 Thread Eric Thorsen
We use Clojure, .Net, javascript, iOS and are/planning on using edn as a data format across platforms. We wanted a test data generator that we could use to vet out the edn implementations. The repo is data.edn: https://github.com/edn-format/data.edn The first implementation we vetted was our ow

Re: Why is this so difficult?

2013-02-15 Thread Phil Hagelberg
Phillip Lord writes: > I'd agree with this. The situation is even not ideal with linux; when I > first used Clojure I was reticient to install lein by hand and only lein > 1 was available for my repo. Lazy? Well, I use 4 or 5 machines > routinely, and I set them up as I go, so an quick and easy i

.net port of fressian : fressian-clr

2013-02-15 Thread Eric Thorsen
We've created a .net port for fressian and tested this back and forth with the java library. Repo is here: https://github.com/fressian/fressian-clr Feedback welcome! Eric -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, se

Re: Why is this so difficult?

2013-02-15 Thread Lee Spector
On Feb 15, 2013, at 1:29 PM, Víctor M. V. wrote: > Jules: > > between the current doc improvement for lein we're both participating in > (https://github.com/technomancy/leiningen/issues/1007) and the available doc > for CCW (installation is one step really), are there any pain points that > s

Re: Why is this so difficult?

2013-02-15 Thread Sean Corfield
On Fri, Feb 15, 2013 at 4:02 AM, Jules wrote: > But most windows users aren't familiar with emacs. Probably fair to say that "most users aren't familiar with emacs" :) > Note also that the hypothetical beginner has not figured out yet that > lein.bat is in fact leiningen. He thinks that that is

"interleave" with one argument

2013-02-15 Thread Denis Washington
Hi, I just solved the "Replicate a Sequence" problem on 4clojure [1] using "interleave". However, I noticed that "interleave" cannot be called with a single argument. My first attempt at solving the problem was like this: (defn replicate-n-times [xs n] (apply interleave (replicate n xs)))

Re: "interleave" with one argument

2013-02-15 Thread Andy Fingerhut
There's a ticket requesting that enhancement: http://dev.clojure.org/jira/browse/CLJ-863 Andy On Feb 15, 2013, at 1:15 PM, Denis Washington wrote: > Hi, > > I just solved the "Replicate a Sequence" problem on 4clojure [1] using > "interleave". However, I noticed that "interleave" cannot be

Re: Why is this so difficult?

2013-02-15 Thread Jules
> between the current doc improvement for lein we're both participating in ( https://github.com/technomancy/leiningen/issues/1007) and the available doc for CCW (installation is one step really), are there any pain points that such a starter kit would address? A starter kit would address several

Re: Why is this so difficult?

2013-02-15 Thread Phil Hagelberg
> It's true that many people will want/need leiningen at some point, but > Clooj will suffice for a long time for some kinds of work and one can > use lein and Clooj together to do quite a lot more. There's really no reason (apart from a lack of motivated devs working on it) that you'd have to ch

Re: Why is this so difficult?

2013-02-15 Thread Lee Spector
On Feb 15, 2013, at 6:37 PM, Phil Hagelberg wrote: > > There's really no reason (apart from a lack of motivated devs working on > it) that you'd have to choose between the two. As of Leiningen 2.x it's > possible to use Leiningen as a library, which is how CCW uses it. It > would be easy in theor

Re: Why is this so difficult?

2013-02-15 Thread Jules
Okay, here is what happened when I tried to install on a fresh win 8 machine: - first downloaded eclipse - tried to run it => no java installed - installed java from the oracle site (making sure to opt out of their bundeled crapware :P) - tried to run eclipse again, says still no java installed

Re: Why is this so difficult?

2013-02-15 Thread Andy Fingerhut
Jules: Did you see this page on clojure-doc.org before? http://clojure-doc.org/articles/tutorials/eclipse.html I don't know if it covers any of the difficulties you found, or documents anything that you'd like to see documented, but Michael Klishin and others that maintain clojure-doc.org

Re: Google Summer of Code 2013

2013-02-15 Thread Andy Fingerhut
I don't know if it would be within the scope of what GSoC would be interested in funding, or if anyone would be interested in doing it, but from some of the messages in the "Why is it so hard?" thread, there are people interested in seeing Clooj stay up to date and maintained. Andy On Feb 14,

regarding Ring, am I reinventing the wheel?

2013-02-15 Thread larry google groups
I have been working with Clojure for a few months now. I am now more familiar with it then I was even 3 months ago. I am now going back through some of the early code I wrote, and I see a lot of redundancy and mistakes. In particular, I notice this function that I wrote to handle the request map (

Re: regarding Ring, am I reinventing the wheel?

2013-02-15 Thread James Reeves
A Ring middleware function takes a handler as its argument, and returns a new handler, so you could write: (defn wrap-pre-event-hooks [handler] (fn [request] (handler (process-pre-event-hooks request However, I'm curious as to what all your process-* functions are actually doing. It see

Can I embed sqlite inside of an uberjar file?

2013-02-15 Thread larry google groups
I am thinking about what they did at Hotelicopter (now renamed RoomKey) -- where they embed a whole snapshot of Solr, and all the data, inside their uberwar files, so that the uberwar file has no outside dependencies, not even a database. The CTO of RoomKey has talked about how you could wait 10 ye

Re: regarding Ring, am I reinventing the wheel?

2013-02-15 Thread Sean Corfield
On Fri, Feb 15, 2013 at 4:14 PM, larry google groups wrote: > (defn process-event [request] > (let [request1 (process-pre-event-hooks request) > request2 (process-page-specific-pre-page-hooks request1) > request3 (process-mid-event-hooks request2) > request4 (pr

Re: Can I embed sqlite inside of an uberjar file?

2013-02-15 Thread Phil Hagelberg
larry google groups writes: > I am wondering how close I could get to that with an active database > that still allows INSERT and DELETE operations. I am thinking that if > I use Sqlite I could possible get outside dependencies down to a > single file that Sqlite would read and write to? SQLite

Reusing parameters in a MAP function

2013-02-15 Thread Jonathon McKitrick
I'd like turn an array of maps into a map of maps, extracting a unique id from each map as the key. (into {} (map #([(:id %) %]) map-array) was my first attempt, but I'm not sure the syntax would work anyway. However, the first question (and obvious error cause) is how to repeat MAP-ARRAY twi

Re: Reusing parameters in a MAP function

2013-02-15 Thread Sean Corfield
(into {} (map (juxt :id identity) map-array)) ;; the first thing that comes to mind On Fri, Feb 15, 2013 at 4:55 PM, Jonathon McKitrick wrote: > I'd like turn an array of maps into a map of maps, extracting a unique id > from each map as the key. > > (into {} (map #([(:id %) %]) map-array) > > wa

Questions regarding lazy sequence processing

2013-02-15 Thread Steven Yi
Hi All, I'm fairly new to Clojure (enjoying it very much!) and had a couple questions regarding lazy sequences. 1. With a sequence of sequences, I want to reduce the sequences down into a single sequence. So, the heads of all the sequences gets reduced, then the next items, etc. The end re

Re: Reusing parameters in a MAP function

2013-02-15 Thread Jonathon McKitrick
Beautiful. I haven't gotten to juxt and identity yet, and this works brilliantly On Friday, February 15, 2013 7:58:09 PM UTC-5, Sean Corfield wrote: > > (into {} (map (juxt :id identity) map-array)) ;; the first thing that > comes to mind > > On Fri, Feb 15, 2013 at 4:55 PM, Jonathon McKit

Re: Reusing parameters in a MAP function

2013-02-15 Thread Jonathon McKitrick
Sorry, I should add I haven't gotten to them in my migration studies yet... common lisp to clojure is a longer road than appears. ;-) On Friday, February 15, 2013 8:28:26 PM UTC-5, Jonathon McKitrick wrote: > > Beautiful. I haven't gotten to juxt and identity yet, and this works > brilliantly

Re: Looping and accumulation

2013-02-15 Thread Jonathon McKitrick
So it looks like this might be perfect for what I need. I need to track a hash of the key fields of inserted db records so I can skip duplicates without db access. On Thursday, February 14, 2013 7:35:20 PM UTC-5, Luc wrote: > Look at the first example here: > > http://clojuredocs.org/clojure_

Building/inserting multiple records

2013-02-15 Thread Jonathon McKitrick
I'm iterating a large dataset and inserting a record for each row. After working in a Salesforce environment, I'm thinking it would be better to build a collection of records and insert them in one fell swoop. 1. Is it easy (and immutable) to build a collection of records to insert? I've bee

Re: [ANN] analyze 0.3.0 - Hygienic transformation

2013-02-15 Thread ronen
Great! The Clojure eco system is really fast paced Ronen On Friday, February 15, 2013 9:30:19 AM UTC+2, Ambrose Bonnaire-Sergeant wrote: > > Jonas already has another project which uses analyze > https://github.com/jonase/eastwood > > On Fri, Feb 15, 2013 at 12:19 PM, ronen >wrote: > >> >> It

Re: RC 16: Last chance to test against Clojure 1.5 before it ships

2013-02-15 Thread Eric Arthen
Stu, I changed my code from 1.4.0 to 1.5.0 RC 16 (about 70 source files) and ran into two small things.They are probably not bugs but they confused me. I have not been following 1.5 development in detail, so these are probably not at all new. So far everything else seems ok, which is great. 1.

Re: RC 16: Last chance to test against Clojure 1.5 before it ships

2013-02-15 Thread Andy Fingerhut
Eric: 1 was a result of a change made by choice: https://github.com/clojure/clojure/blob/master/changes.md#210-set-and-map-constructor-functions-allow-duplicates The ticket linked there has a link to a design page on it, which in turn has a link to an earlier discussion thread on the Cloju

Re: Building/inserting multiple records

2013-02-15 Thread Feng Shen
> Is it easy (and immutable) to build a collection of records to insert? I've been told CONJ is a good start. map maybe be helpful: (map (fn [d] return-map-of-records) datasets) > Does the clojure jdbc interface support insertion of multiple records? I haven't seen such a function yet. cloj

Re: Google Summer of Code 2013

2013-02-15 Thread Håkan Råberg
I'm pretty interested in setting up and mentor a project around Deuce[1] - exact scope to be decided. But I'm not sure this would fall under the scope of this? cheers, Hakan [1] https://github.com/hraberg/deuce/ On Thursday, 14 February 2013 23:33:58 UTC+5:30, Daniel Solano Gómez wrote: > > Hel