Re: [Job spam] Write Clojure in your pajamas, for decent money in a pleasant company, remote pairing all the time

2013-11-20 Thread Alex Baranosky
Why all that pesky Ruby? =D On Tue, Nov 19, 2013 at 4:44 PM, Alexey Verkhovsky < alexey.verkhov...@gmail.com> wrote: > On Monday, 18 November 2013 16:45:40 UTC-7, Tony Tam wrote: >> >> If I sent you a like to a github profile that looked like yours ( >> https://github.com/alexeyv?tab=repositorie

Re: 2013 State of Clojure & ClojureScript survey results

2013-11-20 Thread Alex Baranosky
"The increased # of questions probably also reduces survey conversion" ... I ran out of time because it was so long, and had a lot of other things to do, so I didn't submit my entry this year. On Tue, Nov 19, 2013 at 7:09 PM, Sean Corfield wrote: > Yes, the path separator is O/S dependent: > > u

Re: ANN 2 years of ClojureWerkz

2013-11-20 Thread László Török
Hi Michael, outstanding work, thanks for taking the lead on this effort and many thanks to all the contributors. Las Sent from my phone On Nov 20, 2013 12:13 AM, "Bruce Durling" wrote: > Michael, > > Congrats and keep on going. I love using your libraries. > > cheers, > Bruce > > On Tue, Nov 1

core.async timeout channels are values - is this intended

2013-11-20 Thread Thomas G. Kristensen
Hi all, I ran into a core.async behaviour that confused me a bit the other day. In some of our systems, we need to fire different timeouts, perform actions and schedule a new timeout. The problem is, that if the timeouts are of the same number of ms, we can't distinguish them, and therefore not

Re: Get "OutOfMemoryError Java heap space" when parsing big log file

2013-11-20 Thread Jiaqi Liu
hi,Mark, thanks for your assistance. Now, i modified the function "parse-recur" as you said . And the new "parse-file" function code is: . (with-open [rdr (io/reader file)] (let [res (parse-recur *(line-seq rdr) *{});lines) sorted (into (sorted-map-by (fn [key1 key2

Re: Get "OutOfMemoryError Java heap space" when parsing big log file

2013-11-20 Thread Mark Engelberg
Create a fresh reader? On Wed, Nov 20, 2013 at 1:13 AM, Jiaqi Liu wrote: > hi,Mark, thanks for your assistance. > Now, i modified the function "parse-recur" as you said . > And the new "parse-file" function code is: >. > (with-open [rdr (io/reader file)] > (let [res (parse-recur *

Re: Padding missing elements in a sequence of identical K/V maps

2013-11-20 Thread Colin Yates
Thanks all. This just highlights one of the nice things about Clojure to me - the code gets out of the way to allow the algorithm to shine through. Lovely. By the way, this implementation is closest to my initial although I didn't use juxt at the repl, but I did lose my repl history and can't

Re: java.jdbc DSLs (java.jdbc.sql / java.jdbc.ddl)

2013-11-20 Thread Colin Yates
Hi Sean, First - I hugely appreciate the work you have done and use java.jdbc daily. However, as a complete newbie I found the included DSL very unhelpful. The java.jdbc API is very wide and navigating it was hard, Particularly as it was in a transition from using bound *db* to not, so effect

Re: core.async timeout channels are values - is this intended

2013-11-20 Thread Michał Marczyk
The reason = considers you timeout channels to be equal is that they are, in fact, the same object. In fact, they may end up being the same object even with different timeout values: (identical? (timeout 1) (timeout 2)) ;= true Except I got a false just now with a fresh REPL and same timeout valu

Re: core.async timeout channels are values - is this intended

2013-11-20 Thread Cedric Greevey
Isn't that not only violating least astonishment, but potentially introducing a terrible bug into the library? One could use "two different" timeout channels in two different alts, and if the timeout channels are aliased, then perhaps only one of the alts would actually get notified. On Wed, Nov

Re: core.async timeout channels are values - is this intended

2013-11-20 Thread Michał Marczyk
The behaviour of timeout channels is to close after the timeout elapses. This will be visible everywhere the channel is used. Cheers, Michał On 20 November 2013 11:22, Cedric Greevey wrote: > Isn't that not only violating least astonishment, but potentially > introducing a terrible bug into the

Re: core.async timeout channels are values - is this intended

2013-11-20 Thread Michał Marczyk
As for scheduling the printlns, this prints out 1, 2, 3 (in some order): (let [c (chan)] (doseq [v [1 2 3]] (take! (async/timeout 1000) (fn [_] (put! c v (go-loop [v ( wrote: > The behaviour of timeout channels is to close after the timeout > elapses. This will be visible everywhere th

Re: Releasing Caribou today: Open Source Clojure Web Ecosystem

2013-11-20 Thread Murtaza Husain
Ryan - I read somewhere that Datomic support is also being talked about. I think that would be great, as the type of time variant queries that are possible with datomic are not easily replicable in a RDBMS. So will really appreciate that support. On Wednesday, November 20, 2013 12:27:37 AM UT

Re: java.jdbc DSLs (java.jdbc.sql / java.jdbc.ddl)

2013-11-20 Thread Alice
I agree with Colin and had a similar experience. Even if you say it's completely optional, people will first try it because it's already included. I think honeysql is good and also not any harder to use than the included DSL. It's concept is very simple and clear. Actually, your DSL is magical

Re: [ANN]: clj.jdbc 0.1-beta1 - Alternative implementation of jdbc wrapper for clojure.

2013-11-20 Thread Andy Fingerhut
Andrey: I am no lawyer, but the following answer on this Q&A page about the Eclipse Public License suggests that if you take code from an EPL-licensed project (which java.jdbc is), then the project in which you include it must also be licensed under the EPL (whch clj.jdbc is currently not, as far

preferred way to dereference a ref: outside or inside dosync?

2013-11-20 Thread Jim - FooBar();
Hi all, I've been wondering about this lately and I'm not sure which approach to pick as both give the correct results (in my rudimentary tress-test). So as I understand it is generally suggested to have pure, testable functions that oter side-effecting functions rely on. like so for example:

Re: preferred way to dereference a ref: outside or inside dosync?

2013-11-20 Thread Jim - FooBar();
right the docs say: Within a transaction, returns the in-transaction-value of ref, else returns the most-recently-committed value of ref. so outside the transaction is probably what I want... Jim On 20/11/13 14:11, Jim - FooBar(); wrote: Hi all, I've been wondering about this lately and I'm

Re: cider status

2013-11-20 Thread Phillip Lord
I don't normally use test-mode as it happens -- my main library fails to test correctly in test-mode while working when run through lein for reasons that I have never determined. Clean tests feel nicer anyway. I'm hoping ritz updates soon -- name changes have to happen sometimes, and making the f

Re: [ANN] Leiningen 2.3.4 released

2013-11-20 Thread Tim Visher
Thanks so much to Phil, Nelson, Jean Niklas, and the rest of the Leiningen team! On Tue, Nov 19, 2013 at 1:41 PM, Phil Hagelberg wrote: > > Hello folks. I'm happy to announce the release of Leiningen 2.3.4. > > This one is primarily a bugfix release; though there are a few minor > enhancements. >

Re: preferred way to dereference a ref: outside or inside dosync?

2013-11-20 Thread Stefan Kamphausen
Hi, you would only want to use Refs when you need to update at least two of them with transaction semantics. When you need to read only one of them, you can just deref them any time you want, if you need a consistent snapshot of two refs, you need to read them inside a transaction, i.e. insi

Re: core.async timeout channels are values - is this intended

2013-11-20 Thread Thomas G. Kristensen
Thanks for the response and discussion. Your proposal solves the problem, but not the general observation: that timeout channels are not usable keys. A small tweak on your proposal can make a key-safe channel: (defn unique-timeout [ms] (let [c (chan)] (take! (timeout ms) (fn [_] (close!

My recap of Clojure/conj 2013

2013-11-20 Thread Logan Linn
I've posted a writeup of my experience from this year's Clojure/conj and wanted to share with those who couldn't make it: http://loganlinn.com/blog/2013/11/18/clojureconj-2013/ Big thanks to all who helped organize & operate the event! -- -- You received this message because you are subscribe

Re: Using xlisp assoc-lists in clojure

2013-11-20 Thread hpw014
Hello, Thanks for the answers and code hints. What a bit surprise me, is the fact that clojure is announced as 'a lisp' and is relativ poor on working with lists. A long time ago I learned that 'lisp' was the agronym for 'ListProcessing'. ;-) As I note, I am a longtime user of newLISP which is

Re: Using xlisp assoc-lists in clojure

2013-11-20 Thread Gary Trakhman
'Relatively bad at lists' ? I think the thing that clojure's intentionally bad at is arbitrary nested mutation, so you're forced to be recursive about things and return values (this is how update-in and assoc-in are implemented), but this has nothing to do with data type. Clojure provides simple

What's new and exciting w.r.t. Clojure use in data & analytics, and cloud apps that scale out?

2013-11-20 Thread Dave Tenny
Just looking for interesting tidbits on recent spearheads with, or wins for, Clojure in the cloud with the buzzwords du jour. Part of an interest to take the pulse of Clojure in the domains for which my employer presently uses other tools. I like Java just fine (for what it is), and I have a lo

Re: preferred way to dereference a ref: outside or inside dosync?

2013-11-20 Thread juan.facorro
Jim, The value for all refs whose value you don't actually modify inside a transaction should be obtained through ensure if you want to make sure :P their value won't be changed by a different transaction, that way you get a consistent v

Re: What's new and exciting w.r.t. Clojure use in data & analytics, and cloud apps that scale out?

2013-11-20 Thread Mikera
Hi Dave, I'm probably biased because it's my project, but I think core.matrix has the potential to make data & analytics applications in Clojure extremely compelling. https://github.com/mikera/core.matrix It brings multi-dimensional array programming capabilities to Clojure (philosophically

Re: java.jdbc DSLs (java.jdbc.sql / java.jdbc.ddl)

2013-11-20 Thread Alexander Hudek
Thanks for the explanation Sean. That was helpful. Alex On Tuesday, November 19, 2013 10:05:34 PM UTC-5, Sean Corfield wrote: > > In response to the (very reasonable) question from Alex Hudek in a > recent thread, here are some of my responses to questions that have > arisen about the inclusion

Re: [ANN] clojure-sql 0.1.0: relational algebra in clojure

2013-11-20 Thread Mark
Hi Carlo - I'm using the 2.0 snapshot. How should I express a join on multiple columns, ie SELECT blah FROM t1 JOIN t2 ON (t1.a=t2.b) AND (t1.c=t2.d) ? On Wednesday, July 3, 2013 1:48:07 AM UTC-7, Carlo wrote: > > Hey guys! > > I've been working on a small library to make writing SQL queries a

Re: core.logic merge substitutions map?

2013-11-20 Thread Mark
Thanks for the advice and code-snippet. On Monday, November 18, 2013 7:43:12 PM UTC-8, Norman Richards wrote: > > > On Mon, Nov 18, 2013 at 6:26 PM, Kevin Downey > > wrote: > >> >> https://github.com/sonian/Greenmail/blob/master/src/clj/greenmail/db.clj#L98-L126 >> has an example, using clojure

Re: [ANN]: clj.jdbc 0.1-beta1 - Alternative implementation of jdbc wrapper for clojure.

2013-11-20 Thread Andrey Antukh
Hi Andy. A lot of thanks for this information. I was also researching on this point. Currently I have removed all taken code from the clojure.java.jdbc, license problem should be solved. Again, I in no way want to belittle the original work. It was big mistake on my part not to mention from start

Re: java.jdbc DSLs (java.jdbc.sql / java.jdbc.ddl)

2013-11-20 Thread Sean Corfield
Thank you both - that's excellent feedback! I certainly don't want the library to cause confusion so maybe hiding/removing the DSLs would be the best path going forward. Right now, a handful of the DSL functions are used to generate the SQL behind delete!, insert! and update! as well as the core

Re: java.jdbc DSLs (java.jdbc.sql / java.jdbc.ddl)

2013-11-20 Thread Ray Miller
On 20 November 2013 22:25, Sean Corfield wrote: > > Is anyone using the java.jdbc.sql namespace? (besides World Singles :) > Only the 'where' function, in a few places. Ray. -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group

a Prensentation I made to a Tunisian University to Clojure... too bad it is in French !

2013-11-20 Thread Rafik NACCACHE
Hey Guys, I wanted to share these with the community, too bad it is in french, but it is the language used for scientific education in Tunisia ! Hope it'll help, http://www.clojure.tn/2013/11/20/Slides-Seminaire-FST.html -- -- You received this message because you are subscribed to the Googl

Next ClojureScript Release: 1 more ticket

2013-11-20 Thread David Nolen
If you are using ClojureScript source maps please try master and give us feedback, the experience should be significantly improved and we now have clear errors when the wrong combination of compiler options are used. You can install a local copy of master by checking out the repo and running ./scr

Re: Next ClojureScript Release: 1 more ticket

2013-11-20 Thread David Nolen
And by "take a look", I mean confirm that the issue no longer exists in master. David On Wed, Nov 20, 2013 at 6:12 PM, David Nolen wrote: > If you are using ClojureScript source maps please try master and give us > feedback, the experience should be significantly improved and we now have > cle

Re: [ANN] Leiningen 2.3.4 released

2013-11-20 Thread ronen
Thanks guys for the hard work On Wednesday, November 20, 2013 4:30:03 PM UTC+2, Tim Visher wrote: > > Thanks so much to Phil, Nelson, Jean Niklas, and the rest of the Leiningen > team! > > On Tue, Nov 19, 2013 at 1:41 PM, Phil Hagelberg > > > wrote: > > > > Hello folks. I'm happy to announc

ANN: Clojure High Performance Programming

2013-11-20 Thread Shantanu Kumar
Hi, I am pleased to announce availability of the book `Clojure High Performance Programming` that I have been writing for the better part of this year: http://www.packtpub.com/clojure-high-performance-programming/book This book is ideally meant for intermediate Clojure programmers. It is divid

[ANN] Major update of modern-cljs

2013-11-20 Thread Mimmo Cosenza
Hi all, I just updated all the modern-cljs tutorials to the latest available libs and plugins. it has been a true PITA, because in few weeks a lot of libs/plugins used in the modern-cljs series of tutorials on ClojureScript have been considerably updated (and I had to update all the branches,

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

2013-11-20 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-11-20 Thread guns
On Wed 20 Nov 2013 at 06:32:49PM -0600, guns wrote: > The formatting is a bit ugly, so here is a plain text version: > > https://gist.github.com/guns/7573819/raw/26fc5a741d78b9cf1753fcde1a071dd467d44b4f/tools.cli.proposal.mail Sorry for the double post. The url above should be: https://gist.githu

Re: [Job spam] Write Clojure in your pajamas, for decent money in a pleasant company, remote pairing all the time

2013-11-20 Thread Alexey Verkhovsky
On Wednesday, 20 November 2013 01:16:35 UTC-7, Alex Baranosky wrote: > > Why all that pesky Ruby? =D > 1. Because it was a new/shiny object 8 years ago 2. It actually worked better than Bash, Tcl, Perl, Java or even Python for me in a testing team toolsmith role in mid 2000s 3. In 2006-7 ThoughtW

Re: [Job spam] Write Clojure in your pajamas, for decent money in a pleasant company, remote pairing all the time

2013-11-20 Thread Jeff Heon
On Tuesday, November 19, 2013 7:44:33 PM UTC-5, Alexey Verkhovsky wrote: > > Back to the original subject of the thread, it looks like either there is > more Clojure work than people with platform expertise, or Clojure is a > mostly South American phenomenon. One way or the other, South America

Re: ANN: Clojure High Performance Programming

2013-11-20 Thread Shantanu Kumar
Now also available on Amazon US: http://www.amazon.com/dp/1782165606/?tag=packtpubli-20 Amazon UK: http://www.amazon.co.uk/dp/1782165606/?tag=packtpubli-21 Shantanu On Thursday, 21 November 2013 05:21:45 UTC+5:30, Shantanu Kumar wrote: > > Hi, > > I am pleased to announce availability of the book

Re: ANN 2 years of ClojureWerkz

2013-11-20 Thread Wei Hsu
Huge fan of ClojureWerkz libraries. Thanks for the great code and documentation! On Wednesday, November 20, 2013 4:26:23 PM UTC+8, Las wrote: > > Hi Michael, > > outstanding work, thanks for taking the lead on this effort and many > thanks to all the contributors. > > Las > > Sent from my phon

[ANN] Component: dependency injection and state management

2013-11-20 Thread Stuart Sierra
This is a small library/framework I've been working on for a few months. https://github.com/stuartsierra/component I use this to manage runtime state in combination with my "reloaded" workflow using tools.namespace.[1] I've started using this on some personal and professional projects and it see

Re: ANN: Clojure High Performance Programming

2013-11-20 Thread Alex Baranosky
Congratulation on the book Shantanu! On Wed, Nov 20, 2013 at 5:16 PM, Shantanu Kumar wrote: > Now also available on > Amazon US: http://www.amazon.com/dp/1782165606/?tag=packtpubli-20 > Amazon UK: http://www.amazon.co.uk/dp/1782165606/?tag=packtpubli-21 > > Shantanu > > On Thursday, 21 November

Re: [ClojureScript] Re: Next ClojureScript Release: 1 more ticket

2013-11-20 Thread David Powell
It still isn't working on Windows. At https://github.com/clojure/clojurescript/blob/047dbb3d2bd7c3a2e00805ec2f2480e449451521/src/clj/cljs/closure.clj#L750 path is either a file:// url or something like: "/C:/Temp/cstest2/out/cljs/core.js" - which is a bit mangled, and is caused by calling .getPat

Re: Next ClojureScript Release: 1 more ticket

2013-11-20 Thread David Nolen
OK this is definitely a case where a patch from Windows users is most welcome. I'm willing to stall a release if someone will step forward. Thanks! David On Wednesday, November 20, 2013, David Powell wrote: > > It still isn't working on Windows. > > At > https://github.com/clojure/clojurescript/

Re: My recap of Clojure/conj 2013

2013-11-20 Thread Eduardo Lávaque
Thanks for this Logan. :) -- -- 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 patient with your first post. To unsubscribe from t

Re: [ClojureScript] Re: Next ClojureScript Release: 1 more ticket

2013-11-20 Thread David Powell
I think a good approach might be to: Keep everything as file:// urls given that we need to use urls anyway for.jar references. Never call .getPath on a URI / URL - it undoes the URL escaping that we want, and it returns weird /c:/ things on Windows that don't work as anything. Write our own URL

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

2013-11-20 Thread gaz jones
Hey guns, Yeah sounds good, I don't have admin access to add you as a developer so will ask on the clojure-dev mailing list to see who can do it and cc you on that. Cheers, Gaz On Wed, Nov 20, 2013 at 6:40 PM, guns wrote: > On Wed 20 Nov 2013 at 06:32:49PM -0600, guns wrote: > > The formattin

[ANN] tools.reader 0.8.0 released

2013-11-20 Thread Nicola Mometto
https://github.com/clojure/tools.reader Changelog: https://github.com/clojure/tools.reader/blob/master/CHANGELOG.md Leiningen dependency information: [org.clojure/tools.reader "0.8.0"] While the releases I made on the last months contained mainly small bugfixes and enhancements needed specifica

Re: [ANN] clojure-sql 0.1.0: relational algebra in clojure

2013-11-20 Thread Carlo Zancanaro
Hi Mark! On Wed, Nov 20, 2013 at 01:11:11PM -0800, Mark wrote: > I'm using the 2.0 snapshot. How should I express a join on multiple > columns, ie > SELECT blah FROM t1 JOIN t2 ON (t1.a=t2.b) AND (t1.c=t2.d) ? Something like this should work: (let [t1 (-> (table :t1) (proj

Re: Next ClojureScript Release: 1 more ticket

2013-11-20 Thread David Nolen
While talk is great a patch is better. If no one commits to a patch we will release and take a patch when we get it. Accounting for platforms is a lot of work and in the future it's only going to get more complicated. Community support is critical here. On Wednesday, November 20, 2013, David Powel

Re: My recap of Clojure/conj 2013

2013-11-20 Thread Praki Prakash
Please accept my thanks as well! Regards, Praki Prakash On Wed, Nov 20, 2013 at 6:25 PM, Eduardo Lávaque wrote: > Thanks for this Logan. :) > > -- > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to clojure@g

Re: [ANN] clojure-sql 0.1.0: relational algebra in clojure

2013-11-20 Thread Mark
Thanks, Carlo. Even without the documentation, I'm beginning to get the hang of the DSL. I should have guessed that '(and...) would have done the trick. I'd like to put a request in for using a map or a vector of pairs as an alternative since it's easier to construct those. One more request:

Compiling ClojureScript in the repl using a macro defined in Clojure

2013-11-20 Thread Ed Yu
Hello, I'm stuck on this particular problem that I'm having problem figuring out what to do: Say I have a leiningen project that has a simple ClojureScript src/cljs/hello_world/hello.cljs file that has the following: (ns hello-world.hello (:require-macros [hello-world.macro :as macro])) (d

Re: [ANN] Major update of modern-cljs

2013-11-20 Thread Bastien
Hi Mimmo, Mimmo Cosenza writes: > it has been a true PITA, because in few weeks a lot of libs/plugins > used in the modern-cljs series of tutorials on ClojureScript have been > considerably updated (and I had to update all the branches, one for > each of the current 22 tutorials). I know it won