Re: [ANN] Introducing pulley.cps

2015-02-24 Thread Vladimir Bokov
Hi, Nathan Would you like to describe shortly, why one would need such transformation. What are the benefits and what prevents to write code in CPS style by hand? p.s. sorry, I'm far from being expert in this field :) четверг, 19 февраля 2015 г., 23:45:10 UTC+6 пользователь Nathan Davis написал

Re: Advice on core.async and (JDBC) transactions

2015-02-24 Thread Colin Yates
Hi Andrey - thanks for responding. Asciidoctor looks great! I think I understand the sucriata approach which serialises access to the connection (via the agent). But this doesn't ensure that all operations using the connection are done in the same thread does it (I didn't think agents were thread-

[ANN] semantic-csv 0.1.0-alpha2 released

2015-02-24 Thread Christopher Small
Semantic CSV is a library for taking you the extra mile with CSV parsing - https://github.com/metasoarous/semantic-csv This release will hopefully be the last 0.1.0-alpha release, as long as no major issues come up in the next week or two. Till then, please take it for a spin and leave any fee

Re: Advice on core.async and (JDBC) transactions

2015-02-24 Thread Andrey Antukh
2015-02-24 10:15 GMT+01:00 Colin Yates : > Hi Andrey - thanks for responding. Asciidoctor looks great! > > I think I understand the sucriata approach which serialises access to > the connection (via the agent). But this doesn't ensure that all > operations using the connection are done in the same

New scientific article out on plague and climate, using clojure, quil and incanter for data analysis, and lighttable as IDE.

2015-02-24 Thread Boris V. Schmid
Hi all, Published a new paper, using clojure, quil, and incanter to do some custom statistics (permutation testing) and data exploration, and lighttable as IDE Aim was to discover the wildlife reservoirs of plague in medieval Europe, but we ended up finding evidence for repeated reintroductions

Re: ANN: ClojureScript 0.0-2913, Google Closure Modules, improved nREPL support

2015-02-24 Thread Max Gonzih
On Saturday, February 21, 2015 at 7:01:39 PM UTC+1, David Nolen wrote: > ClojureScript, the Clojure compiler that emits JavaScript source code. > > > README and source code: https://github.com/clojure/clojurescript > > > New release version: 0.0-2913 > > > Leiningen dependency information: >

Re: can binary arithmetic guru help improve these "bitmasking" ops?

2015-02-24 Thread danle...@gmail.com
Lief you have a really valid point here. I was definitely aware that there are only about a dozen actual masks that get used, so I had been looking for a good way to unroll that computation. So, you definitely have showed me something useful with your macro approach. I think doing that thoug

Re: Advice on core.async and (JDBC) transactions

2015-02-24 Thread Colin Yates
It seems like it is worthwhile to brush up my knowledge then, this looks quite hopeful - thanks! On 24 February 2015 at 10:39, Andrey Antukh wrote: > > > 2015-02-24 10:15 GMT+01:00 Colin Yates : >> >> Hi Andrey - thanks for responding. Asciidoctor looks great! >> >> I think I understand the sucri

Re: [ClojureScript] Re: ANN: ClojureScript 0.0-2913, Google Closure Modules, improved nREPL support

2015-02-24 Thread David Nolen
:preamble will only be applied to the base module. When using :modules there is not such thing as a main output file. You cannot currently have a per module :preamble. David On Tue, Feb 24, 2015 at 6:25 AM, Max Gonzih wrote: > On Saturday, February 21, 2015 at 7:01:39 PM UTC+1, David Nolen wro

Current best-of-breed JDBC libraries?

2015-02-24 Thread Colin Yates
Hi all, What are you all using for interacting with an RDBMS? In the past I looked at clojure.java.jdbc, honeysql and korma (and for querying, honeysql just rocks). I have lost touch a bit - any recommendations? Thanks. -- You received this message because you are subscribed to the Google Gro

Re: Current best-of-breed JDBC libraries?

2015-02-24 Thread Colin Yates
Actually, https://github.com/krisajenkins/yesql, now that it supports named parameters is probably just the ticket... On Tuesday, 24 February 2015 14:04:36 UTC, Colin Yates wrote: > > Hi all, > > What are you all using for interacting with an RDBMS? In the past I looked > at clojure.java.jdbc, h

Re: Current best-of-breed JDBC libraries?

2015-02-24 Thread Andrey Antukh
I'm currently using and maintaining this two: https://github.com/niwibe/clojure.jdbc - A clojure.java.jdbc alternative. https://github.com/niwibe/suricatta - High level Sql toolkit (slightly higher level abstraction over plain jdbc and includes sql dsl) Cheers. Andrey 2015-02-24 15:11 GMT+01:00

Re: Current best-of-breed JDBC libraries?

2015-02-24 Thread Niels van Klaveren
I've done a fair bit of complex SQL with honeysql, and must say it rocks. It could use a bit more documentation where extending it with new clauses is concerned, though. For my latest project being able to manipulate the datastructures that are rendered to SQL was crucial, and honeysql was the

Re: Current best-of-breed JDBC libraries?

2015-02-24 Thread Colin Yates
+1 to all of that. We are using honeysql to serve our ad-hoc reporting engine. Composing data structures for the win. On 24 February 2015 at 15:12, Niels van Klaveren wrote: > I've done a fair bit of complex SQL with honeysql, and must say it rocks. It > could use a bit more documentation where e

Re: Current best-of-breed JDBC libraries?

2015-02-24 Thread Erik Price
We tried Korma but found it too limiting for our needs. Later, I saw this tweet: https://twitter.com/ibdknox/status/557236505639665664 We are currently using HoneySQL to generate SQL which then gets passed to clojure.java.jdbc. e ​ On Tue, Feb 24, 2015 at 9:04 AM, Colin Yates wrote: > Hi all,

Re: [ANN] Introducing pulley.cps

2015-02-24 Thread Nathan Davis
Sure, you can write code in CPS style by hand. Javascript developers do it all the time. But it's a very tedius, mechanical transformation. And tedius, mechanical transformations are what Lisps excel at ;-) We could also ask why we would want (reified) continuations? From a theoretical point o

Re: [ANN] Buddy 0.4.0: Security library for clojure.

2015-02-24 Thread Sven Richter
Hi, What I like about buddy is that I can define access rules like this: https://funcool.github.io/buddy-auth/latest/#access-rules It gives me the ability to have the rules in one place and adjust them with patterns as I wish, it reminds me of shiro and I really like that approach. Best Regards

Re: Current best-of-breed JDBC libraries?

2015-02-24 Thread Sean Corfield
On Feb 24, 2015, at 6:04 AM, Colin Yates wrote: > What are you all using for interacting with an RDBMS? In the past I looked at > clojure.java.jdbc, honeysql and korma (and for querying, honeysql just > rocks). I have lost touch a bit - any recommendations? At World Singles, all our MySQL inter

Re: Current best-of-breed JDBC libraries?

2015-02-24 Thread Colin Yates
OK - thanks all. I am surprised that yesql isn't more adopted, particularly now named parameters is there - has anyone run into roadblocks with it? On 24 February 2015 at 16:50, Sean Corfield wrote: > On Feb 24, 2015, at 6:04 AM, Colin Yates wrote: >> What are you all using for interacting with

Re: Current best-of-breed JDBC libraries?

2015-02-24 Thread Sean Corfield
On Feb 24, 2015, at 9:16 AM, Colin Yates wrote: > I am surprised that yesql isn't more adopted, particularly now named > parameters is there - has anyone run into roadblocks with it? Most of our SQL is dynamically created -- data-driven -- so YeSQL isn't really a good fit, as I understand it. We

Re: Current best-of-breed JDBC libraries?

2015-02-24 Thread Colin Yates
Honeysql has to be one of the best examples of data transformation where Clojure really shines. {domain-data} -> {honey-sql data} -> SQL. Love it. I understand YeSQL's sweet spot is where the SQL is static except for parameters so yeah, not applicable for building up queries at runtime. Still, if

Re: Current best-of-breed JDBC libraries?

2015-02-24 Thread Niels van Klaveren
Perhaps I'm missing something, but I don't really see the advantages of yesql over standard parametrized clojure.java.jdbc queries ? -- 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 th

Re: Current best-of-breed JDBC libraries?

2015-02-24 Thread Colin Yates
I haven't used it but I remember building up pages of SQL in Clojure wasn't fun. The idea of putting that SQL into a .sql file, accessible by non-Clojure DB developer is very appealing. On 24 February 2015 at 18:24, Niels van Klaveren wrote: > Perhaps I'm missing something, but I don't really see

Re: New scientific article out on plague and climate, using clojure, quil and incanter for data analysis, and lighttable as IDE.

2015-02-24 Thread Christopher Small
This is awesome. I had just opened the BBC news summary article, and then scrolled down my Clojure Group digest to see your post. Nice work. Always good to see other scientists using Clojure in their work. On Tuesday, February 24, 2015 at 2:59:41 AM UTC-8, Boris V. Schmid wrote: > > Hi all, > >

Re: Can someone offer refactoring suggestions for my protocol example?

2015-02-24 Thread Colin Fleming
There's one important case where (coll n) is not the same as (get coll n) - when coll is nil. In that case (get coll n) will return nil and (coll n) will barf. I tend to use get in those cases because of this. On 24 February 2015 at 08:50, Colin Yates wrote: > A minor point (get col n) is the sa

should edn recognise defrecord?

2015-02-24 Thread Colin Yates
I am sending instances of defrecords from clojurescript via transmit/edn and getting: 2015-Feb-24 19:23:52 + dev-os-mbp.local DEBUG [taoensso.sente] - Bad package: [[:client/message #health.shared.domain.PingCommand{}]] (clojure.lang.ExceptionInfo: No reader function for tag health.shared.

Re: should edn recognise defrecord?

2015-02-24 Thread Steve Miner
The edn format does not include records. The transit README gives an example of how to write a transit handler for a record. See the section on extensibility. https://github.com/cognitect/transit-format#extensibility Before transit

How not to drop core.async publication items?

2015-02-24 Thread Cristian C
My test case would be something like this: ;; I have a channel that I want to wrap in a publication (def publisher (async/chan)) (def publication (async/pub publisher :topic)) ;; then I put data into the publisher channel (async/put! publisher {:topic :foo :payload "first message"}) ;; then I cr

Re: Can someone offer refactoring suggestions for my protocol example?

2015-02-24 Thread Steve Miner
It’s probably fine to do a linear search with .indexOf for small vectors, but I’ll just say as a matter of style I prefer to use a couple of maps to hold previous and next items. The maps are callable like functions, which I think reads very nicely. Using your example data for ranks: ;; helpe

Re: Current best-of-breed JDBC libraries?

2015-02-24 Thread blake
I ran through all of the above and found it easier just to build my queries straight and call with clojure.java.jdbc. But my needs were light. On Tue, Feb 24, 2015 at 10:40 AM, Colin Yates wrote: > I haven't used it but I remember building up pages of SQL in Clojure > wasn't fun. The idea of put

Re: Current best-of-breed JDBC libraries?

2015-02-24 Thread Gary Johnson
I actually prefer yesql for most of my Clojure<->SQL interaction. Since a significant portion of my job involves me writing and optimizing SQL queries, I like being able to seamlessly switch between psql, org-babel's sql mode, and yesql with a simple cut and paste operation. For extra emacs sex

[ANN] thi.ng collection update (CLJ/CLJS)

2015-02-24 Thread Karsten Schmidt
Hi guys, thi.ng is a collection of over a dozen largely x-platform Clojure & Clojurescript libs for computational/generative design & data visualization tasks. I just wanted to give a little heads up that this project has recently seen a number of releases and, as a whole, by now is generally qui