Async loading of a big set of entries from a redis database?

2013-08-26 Thread Bastien
Hi all, I'm playing with http://www.mapbox.com to build a map with 1.3M markers. The markers are stored in a redis database on heroku. I'm learning Clojure, so my first attempt has been to use Carmine for loading the entries and creating the javascript variable on the fly. This works ok for a

[ANN] expresso 0.1.0 released

2013-08-26 Thread Maik Schünemann
Hi, I released a first version of my gsoc project expresso [1]. This is an important Milestone in my gsoc project. What is there: an expressive and powerful rule based translator, on top of which many transformations can be based. functions to simplify (currently without ratio test),

Re: [ANN] optparse-clj: Functional GNU-style command line options parsing

2013-08-26 Thread guns
On Sun 25 Aug 2013 at 09:05:15PM -0500, gaz jones wrote: Hey, i am the current maintainer of tools.cli - i have very little time to make any changes to it at the moment (kids :) ). I'm not sure what the process is for adding you as a developer or transferring ownership etc but if I'm happy to

Re: [ANN] optparse-clj: Functional GNU-style command line options parsing

2013-08-26 Thread Cedric Greevey
You already got the ring of power when you downloaded Clojure. ;) On Mon, Aug 26, 2013 at 8:57 AM, guns s...@sungpae.com wrote: On Sun 25 Aug 2013 at 09:05:15PM -0500, gaz jones wrote: Hey, i am the current maintainer of tools.cli - i have very little time to make any changes to it at the

Place of function?

2013-08-26 Thread Christian Sperandio
Hi, Does anyone know why the functions like: map?, number?, vector?, … belongs to the clojure.core but not function? ? Christian -- -- 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

clojure.java.jdbc: suggestion to name mapping

2013-08-26 Thread Alice
It would be convenient if I can specify the default entities and identifiers functions in a database spec. I usually want those mappings to be applied all the time. -- -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email

Re: Place of function?

2013-08-26 Thread Jay Fields
you're probably looking for fn? On Mon, Aug 26, 2013 at 9:11 AM, Christian Sperandio christian.speran...@gmail.com wrote: Hi, Does anyone know why the functions like: map?, number?, vector?, … belongs to the clojure.core but not function? ? Christian -- -- You received this message

Re: Place of function?

2013-08-26 Thread Christian Sperandio
I didn't think search this term. Thanks :) Le 26 août 2013 à 15:13, Jay Fields j...@jayfields.com a écrit : you're probably looking for fn? On Mon, Aug 26, 2013 at 9:11 AM, Christian Sperandio christian.speran...@gmail.com wrote: Hi, Does anyone know why the functions like: map?,

Re: clojure.java.jdbc: suggestion to name mapping

2013-08-26 Thread Alice
Yes. It's described at http://clojure-doc.org/articles/ecosystem/java_jdbc/name_mapping.html. On Monday, August 26, 2013 10:13:22 PM UTC+9, Shantanu Kumar wrote: Hi Alice, Do you mean default `values` for entity columns for INSERT statements? And by `identifiers function` did you mean

Re: problem with edn

2013-08-26 Thread Jim - FooBar();
On 23/08/13 10:49, Jim wrote: I do regret not having checked whether Java serialization preserves the metadata or not .I plan to do it this afternoon. If it does ,I've got 2 perfectly working ways to achieve what I want, with no extra dependencies added... I finally got the chance to check

Re: ANN Gemini 0.3.0

2013-08-26 Thread Christian Sperandio
Hi, I released a minor version 0.3.1. This version provide a way to get a function to find expressions likeness. I implemented a macro too. This macro reduces the code size by limiting the declarations for the expressions likeness. Christian https://github.com/chrix75/Gemini -- -- You

Re: ANN Gemini 0.3.0

2013-08-26 Thread Christian Sperandio
After realising the 0.3.1 version, I wondered if it's a good idea the with-likeness macro returns always nil. it's a mistake, isn't it? Le 26 août 2013 16:50, Christian Sperandio christian.speran...@gmail.com a écrit : Hi, I released a minor version 0.3.1. This version provide a way to

Re: ANN Gemini 0.3.0

2013-08-26 Thread Christian Sperandio
I released a version 0.3.2. The macro with-likeness doesn't return nil anymore. I think this behavior is more correct. Christian https://github.com/chrix75/Gemini -- -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email

Re: lazy seq from reducers with core.async

2013-08-26 Thread Timothy Baldridge
Although this also ties up a thread for every reduce. Not exactly efficient IMO. Timothy On Sun, Aug 25, 2013 at 11:50 PM, Alan Busby thebu...@gmail.com wrote: On Mon, Aug 26, 2013 at 1:37 PM, Timothy Baldridge tbaldri...@gmail.comwrote: Since reducers use fork-join pools, Reducers

ANN: abracad 0.4.2 – Avro de/serialization for Clojure

2013-08-26 Thread Marshall Bockrath-Vandegrift
Abracad is a library for de/serializing Clojure data structures as Avro [1], leveraging the Java Avro implementation. Avro is a schema-based binary serialization system similar to Thrift or Protocol Buffers, but with some philosophical differences and better support for dynamic languages. In

Re: clojure.java.jdbc: suggestion to name mapping

2013-08-26 Thread Sean Corfield
The db-spec is not used by the DSL. Name mapping is a function of the DSL, in general. This request has come up in the past and it just isn't practical since the db-spec is completely independent of the DSL. On Mon, Aug 26, 2013 at 6:06 AM, Alice dofflt...@gmail.com wrote: It would be convenient

Re: ANN: clj-tuple, efficient small collections

2013-08-26 Thread Kevin Downey
A Tuple protocol that defines get0 get1 get3 etc for fast element access that doesn't tie you to using field names might be a good idea. On 8/25/13 9:35 AM, Zach Tellman wrote: I don't think so, even the existence of all the Tuple* types are an implementation detail, and you'd need to hint it

Re: ANN: clj-tuple, efficient small collections

2013-08-26 Thread Asim Jalis
I believe this is what clj-tuple is doing under the hood with macros. On Aug 26, 2013, at 10:38 AM, Kevin Downey redc...@gmail.com wrote: A Tuple protocol that defines get0 get1 get3 etc for fast element access that doesn't tie you to using field names might be a good idea. On 8/25/13 9:35

Re: ANN: clj-tuple, efficient small collections

2013-08-26 Thread Jim - FooBar();
I had a quick look at clj-tuple and I don't remember seeing any macros... Jim On 26/08/13 19:02, Asim Jalis wrote: I believe this is what clj-tuple is doing under the hood with macros. On Aug 26, 2013, at 10:38 AM, Kevin Downey redc...@gmail.com wrote: A Tuple protocol that defines get0

Re: ANN: clj-tuple, efficient small collections

2013-08-26 Thread Robert Levy
No, Asim is right, and the majority of LOC is macro code (which expands to a deftype expression). On Mon, Aug 26, 2013 at 11:51 AM, Jim - FooBar(); jimpil1...@gmail.comwrote: I had a quick look at clj-tuple and I don't remember seeing any macros... Jim On 26/08/13 19:02, Asim Jalis

CFP: CodeMash - Jan 7-10, 2014 - Sandusky, OH

2013-08-26 Thread Alex Miller
(no affiliation, just passing this along) CodeMash is a large multi-technology conference in a giant water park with a great secondary track for kids. It is my opinion that they need some more Clojure submissions. :) CFP closes Friday, Sept 6th. http://codemash.org/submissions -- -- You

[ANN] nativot 0.1.0 (leiningen plugin) public beta

2013-08-26 Thread Alex Fowler
hi, nativot is a leiningen plugin that is intended to deliver clojurians from the burden of classpath hells of any flavour. highlights: 1) built upon lein uberjar and jdotsoft jarclassloader 2) makes it possible to deploy clojure application that depend upon any jar-files, native libraries,

Re: [ANN] nativot 0.1.0 (leiningen plugin) public beta

2013-08-26 Thread Alex Fowler
--- description --- A Leiningen plugin to jar your project with arbitrary jars, native libs and resources into main jar. Based on the wonderful JDotSoft JarClassLoader. USAGE: A. --- Create a :nativot profile in your project.clj The map is

[ANN] zmq-async: A thread safe core.async wrapper for ZeroMQ

2013-08-26 Thread Kevin Lynagh
Hi everyone, I wrote a core.async-based wrapper for ZeroMQ: https://github.com/lynaghk/zmq-async ZeroMQ is a message-oriented socket library with bindings to lots of languages and support for a variety of communication styles (request/reply, publish/subscribe, in-process pair sockets,

[ANN] jetty7-websockets-async: A core.async wrapper for websocket client/server communications

2013-08-26 Thread Kevin Lynagh
Hi everyone, I wrote a core.async wrapper for Jetty 7 websockets: https://github.com/lynaghk/jetty7-websockets-async On past projects I've used http-kit, Aleph/Netty, and Jetty 9 for websockets. However, I recently discovered that good 'ol Jetty 7 (of ring-jetty-adapter fame) can act both as

Re: ANN: clj-tuple, efficient small collections

2013-08-26 Thread Zach Tellman
I'm not sure I understand the motivation behind what you're suggesting. Why not just (nth tuple 0)? On Mon, Aug 26, 2013 at 10:38 AM, Kevin Downey redc...@gmail.com wrote: A Tuple protocol that defines get0 get1 get3 etc for fast element access that doesn't tie you to using field names might

Re: ANN: clj-tuple, efficient small collections

2013-08-26 Thread Kevin Downey
looking at clj-tuple a call to (nth some-tuple 0) turns in to a case dispatch (case idx 0 e0 ...) or something. if you have a Tuple protocol with a function like get0 you can avoid the overhead of the case there, and the jvm has a better change of inlining the rest away. for hotspot to

too circular?

2013-08-26 Thread Dennis Haupt
(defn fib-n [n] (let [fib (fn [a b] (cons a (lazy-seq (fib b (+ b a)] (take n (fib 1 1 can't i do a recursion here? how can i achieve this without doing an outer defn? -- -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this

Re: too circular?

2013-08-26 Thread Marshall Bockrath-Vandegrift
Dennis Haupt d.haup...@gmail.com writes: (defn fib-n [n] (let [fib (fn [a b] (cons a (lazy-seq (fib b (+ b a)] (take n (fib 1 1 can't i do a recursion here? how can i achieve this without doing an outer defn? You just need to give the anonymous function a name it can use to refer

Re: too circular?

2013-08-26 Thread Sean Corfield
If you want the sequence itself, so you can take various prefixes of it: (def fib (cons 1 (cons 1 (map + fib (rest fib) (take 5 fib) (take 10 fib) Has the advantage of not recalculating any part of it - and the disadvantage of holding onto the head - so it depends what you want to do with

Re: [ANN] nativot 0.1.0 (leiningen plugin) public beta

2013-08-26 Thread Mikera
JarClassLoader looks cool Aren't there some pretty severe licensing restrictions though? Looks like it is GPLv3 or commercial license only from the website, which rules it out of most EPL projects I think On Tuesday, 27 August 2013 03:50:10 UTC+8, Alex Fowler wrote: hi, nativot is a

Re: YA regular expression tool

2013-08-26 Thread Paulo Suzart
This will save my time a lot. No more rubular.com :) great On 1 August 2013 21:33, Joel Holdbrooks cjholdbro...@gmail.com wrote: Thanks. This tool was really more or less for fun but I'd been thinking about it for a while. According to some benchmarks it appears the generated patterns are

Re: clojure.java.jdbc: suggestion to name mapping

2013-08-26 Thread Alice
Then, how about making them global so that they can be altered? I know global parameters are ugly, but having to specify them every time is really a pain. On Tuesday, August 27, 2013 2:32:20 AM UTC+9, Sean Corfield wrote: The db-spec is not used by the DSL. Name mapping is a function of the