[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), differentiat

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

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 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 moment (ki

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 emai

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

2013-08-26 Thread Shantanu Kumar
Hi Alice, Do you mean default `values` for entity columns for INSERT statements? And by `identifiers function` did you mean functions that decorate an identifier representation in an SQL statement -- for example, column name emp_id could become `emp_id` on MySQL? Shantanu On Monday, 26 August

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 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 because you are subscr

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 a écrit : > you're probably looking for fn? > > On Mon, Aug 26, 2013 at 9:11 AM, Christian Sperandio > wrote: >> Hi, >> >> Does anyone know why the functions like: map?, number?, vector?, … belongs >> to the cl

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 w

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 rece

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" a écrit : > Hi, > > I released a minor version 0.3.1. > > This version provide a way to get a function to find ex

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 emai

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 wrote: > > On Mon, Aug 26, 2013 at 1:37 PM, Timothy Baldridge > wrote: > >> Since reducers use fork-join pools, > > > Reducers use multiple threads and fork-jo

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 par

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 wrote: > It would be convenient if I can specify t

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 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 AM, Zach Tellm

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 wrote: A Tuple protocol that defines get0 get1 get3 etc for fa

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(); wrote: > 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 belie

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 receiv

[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, bi

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, push/pul

[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 a

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 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.

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 opti

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 thi

Re: too circular?

2013-08-26 Thread Marshall Bockrath-Vandegrift
Dennis Haupt 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 to itself f

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 it

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 l

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 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 pretty fast. When I g

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

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

2013-08-26 Thread Sean Corfield
You can wrap your code in (entities ...) and/or (identifiers ...) and it will apply to all the java.jdbc calls inside. Clojure/core have specifically said they don't want *dynamic-vars* in contrib libraries. We have thousands of lines of java.jdbc code at work and name mapping hasn't been an issu