[ANN] CFP - ACCU 2014 Conference, 8 - 12 April 2014, Bristol, UK

2013-10-01 Thread Giovanni Asproni
Hi All, I'm sending this on behalf of Jon Jagger, the conference Chair. The CFP for the ACCU 2014 conference is now open. The deadline for sending your proposal is the 5th of November 2013. The conference has a long tradition of high quality sessions covering many aspects of software develop

How to generalize these functions

2013-10-01 Thread Yoshinori Kohyama
Hi clojurians. I have functions for nested maps. They obviously have a same structure. Does anyone teach me a way to generalize them with a macro, a function or an existing API? (defn flatten-map [m kf vf] (into {} ((fn g [kv n] (if (map? n) (apply concat (ke

Re: [ANN] 美味しいClojure

2013-10-01 Thread Nicolas Modrzyk
yes, the ebook should be on sale in the next few weeks. On Tuesday, October 1, 2013 9:41:10 PM UTC+9, sailor...@gmail.com wrote: > > Is there any E-book to buy ? > The shipping cost of Amazon.jp is high. > > -- -- You received this message because you are subscribed to the Google Groups "Cloju

Re: [ANN] 美味しいClojure

2013-10-01 Thread Nicolas Modrzyk
The whole text has also been written in English, so I guess there could be a chance to put it out there. But we have had no contacts with US/UK publishers so far. On Tuesday, October 1, 2013 9:43:00 PM UTC+9, Jim foo.bar wrote: > > also, is this only going to be published in Japanese? > > Jim

Re: Jsonify a Jdbc4Array in Clojure

2013-10-01 Thread John D. Hume
I don't use clojure.java.jdbc, so this may be non-idiomatic or just wrong, but have you tried something like (with-open [connection (jdbc/db-connection *db*)] (json/write-str (jdbc/query {:connection connection} ["SELECT * FROM..."]))) On Tue, Oct 1, 2013 at 8:13 PM, Christian Jauvi

[ANN] Friend 0.2.0 released

2013-10-01 Thread Chas Emerick
Hi all, Friend is "an extensible authentication and authorization library for Clojure Ring web applications and services". [com.cemerick/friend "0.2.0"] has been released to Clojars. You can find the changelog here: https://github.com/cemerick/friend/blob/master/CHANGES.md Aside from the bu

Integration with Java dependency injection frameworks?

2013-10-01 Thread Marshall Bockrath-Vandegrift
Hi all: I was wondering – does anyone have any experience with or patterns for integrating Clojure with existing Java dependency injection frameworks? I’m working with the LensKit framework [1] for a MOOC and it uses a JSR-330/javax.inject dependency-injection framework named `grapht` [2] for, wel

Re: Jsonify a Jdbc4Array in Clojure

2013-10-01 Thread Christian Jauvin
Hi Philippe, The Jdbc4Array that's causing me trouble is not the "outer" one, returned from jdbc/query: that one seems to be properly handled by json/write-str. The problem happens with a Postgres table containing a text[] column: create table something ( something_id serial primary key,

Re: Problems starting with Clojure and Leiningen and Light Table

2013-10-01 Thread Zeynel
Thanks everyone. I reinstalled Lein this time without using the window installer and it is now working. Thanks, again. On Tuesday, October 1, 2013 6:26:07 AM UTC-4, Zeynel wrote: > > I was hoping that someone here can help me to start with Clojure. Nothing > seems to be working now. This is the

Re: [ANN] cloblarg

2013-10-01 Thread Marcus Blankenship
Very cool! On Oct 1, 2013, at 5:00 PM, Benjamin Vulpes wrote: > I made a minimalist blog engine for myself in Clojure and Datomic. It's > barebones but demonstrates stack componentry effectively. > > http://github.com/ikbrunel/cloblarg > > Yay Clojure! Yay Datomic! > > -- > -- > You rece

Re: GSoC Report: CinC, port of the clojure compiler in clojure

2013-10-01 Thread Mikera
Hi Nicola, Congratulations - great work! My main idea/feedback is that I'd love to see the "optimised" mode become able to emit code that matches Java / Scala performance in all cases. This would be a huge boost for people (like me) who do a lot of numerical / realtime work and would love to d

[ANN] cloblarg

2013-10-01 Thread Benjamin Vulpes
I made a minimalist blog engine for myself in Clojure and Datomic. It's barebones but demonstrates stack componentry effectively. http://github.com/ikbrunel/cloblarg Yay Clojure! Yay Datomic! -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To po

Re: Problems starting with Clojure and Leiningen and Light Table

2013-10-01 Thread Zeynel
There is an explanation of the error message here http://dev.clojure.org/jira/browse/CLJ-5 but I did not understand if there is a fix or what causes the error. On Tuesday, October 1, 2013 6:26:07 AM UTC-4, Zeynel wrote: > > I was hoping that someone here can help me to start with Clojure. Nothin

Re: Problems starting with Clojure and Leiningen and Light Table

2013-10-01 Thread Zeynel
I understand this, and I want to continue with Light Table, I liked it too. And the error pasted above is the same error that Light Table gives. I asked the same question in Light Table forum but there were no answers yet about the error message. https://groups.google.com/forum/#!topic/light-ta

Re: Problems starting with Clojure and Leiningen and Light Table

2013-10-01 Thread Zeynel
Thanks. I am glad to hear that Light Table and Lein are working on Windows 8. I am using a wrapper to have the start button, but I did not have any problems related to that so far. I checked curl's site but I wasn't sure why I need it. I installed Lein using Windows installer and that worked. B

Re: Problems starting with Clojure and Leiningen and Light Table

2013-10-01 Thread Zeynel
Thanks. Now I got a different error copied above to my answer to Shantanu. I used Windows installer to reinstall leiningen and that takes cares of adding leing to the PATH. Is this a problem? On Tuesday, October 1, 2013 11:04:31 AM UTC-4, George Oliver wrote: > > To add to Shantanu's directions,

Re: Problems starting with Clojure and Leiningen and Light Table

2013-10-01 Thread Zeynel
Thanks. I downloaded leiningen again and installed it and I created the folder as described above but I get this error message. Does this make sense? C:\Users\a\work>lein new app my-app java.lang.UnsupportedOperationException: nth not supported on this type: Symbol at clojure.lang.RT.nt

Problems starting with Clojure and Leiningen and Light Table

2013-10-01 Thread Peter Mancini
Also, forgot to add, emacs is awful to learn on. Too many issues come with it. Its a lot to ask anyone to learn Clojure and emacs at the same time. In my honest opinion you get no benefit. LT's instatepl is awesome and the latest interface works great! -- -- You received this message because

Problems starting with Clojure and Leiningen and Light Table

2013-10-01 Thread Peter Mancini
At home I'm working in Win 8, Light Table and Lein with no issues. So, have hope and save the money you'd spend on Apple products for fine arts investment or arctic expeditions. :-) First get lein working. If you do nothing else that will get you very far. You'll need a version of curl for wind

[ANN] FP Days 2013 Cambridge (UK) October 24-25 - Call for Participation

2013-10-01 Thread Mark Dalgarno
Now in its 3rd year, FP Days brings together some great speakers on Clojure, Haskell, Erlang, F#, OCaml and Scala for 2 days of intense, practical learning and shared experiences. Whether you're an FP beginner or a seasoned practitioner you're welcome to participate, meet your peers and have fu

Re: Why is this Project Euler solution slow?

2013-10-01 Thread David Chambers
> I'm always struck by how attractive brute force solutions look in > clojure (and lisps in general I'd say). Very concise and plain about > what it is trying to do. Right. The thing I've noticed in my (very) limited experience with the language is that it forces me to think about what it is that

Re: Jsonify a Jdbc4Array in Clojure

2013-10-01 Thread Philippe Guillebert
Hi, You probably need to realize your query using (doall (jdbc/query ...)) Also, I was wondering, depending on your needs, you could convert Jdbc4Arrayinto a native type (vector ?) as a post-processing function of your query and forget about registering JSON writers. On Tue, Oct 1, 2013 at 9:0

Re: Why is this Project Euler solution slow?

2013-10-01 Thread Stan Dyck
On Tue, Oct 1, 2013 at 11:22 AM, David Chambers > wrote: Last night I attempted Project Euler #5 in Clojure. The problem is as follows: > # Smallest multiple > > 2520 is the smallest number that can be divided by each o

Re: Why is this Project Euler solution slow?

2013-10-01 Thread David Chambers
> Any brute force solution will be relatively slow. The fast solutions > require a doing math to simplify. Quite right. The fault lies with me rather than with Clojure. I'll rework the code so that it expands to: 2^4 * 3^2 * 5^1 * 7^1 * 11^1 * 13^1 * 17^1 * 19^1 Relevant Stack Overflow post:

Re: infinite loop print out of cyclic structure at repl

2013-10-01 Thread Chouser
Bah, mutable state! To be cursed in all its forms! Here is the same content as was at that paste.lisp.org link. I haven't tested it with recent versions of Clojure or anything: https://gist.github.com/Chouser/6783292 --Chouser On Tue, Oct 1, 2013 at 12:44 PM, Patrik Sundberg wrote: > This past

Re: Jsonify a Jdbc4Array in Clojure

2013-10-01 Thread Christian Jauvin
Hi Roman, This approach works for java.sql.Timestamp, which was another type for which a JSON writer wasn't defined in my case. For org.postgresql.jdbc4.Jdbc4Array however, there's something missing, because I get: *org.postgresql.util.PSQLException: This connection has been closed.* As t

Re: Why is this Project Euler solution slow?

2013-10-01 Thread Ben Wolfson
You can actually solve this problem quite directly. I just looked up my python solution and it's just "print 9*16*5*7*11*13*17*19". On Tue, Oct 1, 2013 at 11:22 AM, David Chambers wrote: > Last night I attempted Project Euler #5in > Clojure. The problem is as

Re: Why is this Project Euler solution slow?

2013-10-01 Thread Wes Freeman
Any brute force solution will be relatively slow. The fast solutions require a doing math to simplify. Wes On Tue, Oct 1, 2013 at 2:22 PM, David Chambers wrote: > Last night I attempted Project Euler #5in > Clojure. The problem is as follows: > > > # Smallest

Why is this Project Euler solution slow?

2013-10-01 Thread David Chambers
Last night I attempted Project Euler #5 in Clojure. The problem is as follows: > # Smallest multiple > > 2520 is the smallest number that can be divided by each of the numbers > from 1 to 10 without any remainder. > > What is the smallest positive number that is

Re: Jsonify a Jdbc4Array in Clojure

2013-10-01 Thread r0man
I think you need to implement the JSONWriter protocol for the Jdbc4Array class, and possibly for the datatypes that are in the array. This for example makes the json library aware of java.util.Date classes. (extend-type java.util.Date JSONWriter (-write [date out] (-write (str date) out))

Re: infinite loop print out of cyclic structure at repl

2013-10-01 Thread Patrik Sundberg
This paste seems gone - anyone has it available? I seem to get bitten by this kind of thing in emacs using nrepl and it pretty printing something and it gets into an infinite loop locking up my emacs session completely. Running the same from command line i can see same behavior (seems related t

Re: Problems starting with Clojure and Leiningen and Light Table

2013-10-01 Thread George Oliver
To add to Shantanu's directions, if you receive an error when doing mkdir in C:\ it's probably because your user account doesn't have permissions to create directories there. At that point you have two basic options: 1) use a user account with admin privileges to do all your work (not recommend

Jsonify a Jdbc4Array in Clojure

2013-10-01 Thread Christian Jauvin
Hi, I asked this question on Stack Overflow yesterday: I want to jsonify the results of a query performed against a Postgres table containing a column of type text[], but the problem is that clojure.data.json.write-str doesn't seem to know how to handle PG arrays: *Exception Don't know how to

Re: [ANN] 美味しいClojure

2013-10-01 Thread Jim
also, is this only going to be published in Japanese? Jim On 01/10/13 13:41, sailormoo...@gmail.com wrote: Is there any E-book to buy ? The shipping cost of Amazon.jp is high. -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this grou

Re: [ANN] 美味しいClojure

2013-10-01 Thread sailormoo...@gmail.com
Is there any E-book to buy ? The shipping cost of Amazon.jp is high. -- -- 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 w

Re: [ann] class-diagram 0.1.0: utility to generate class inheritance diagrams

2013-10-01 Thread Ambrose Bonnaire-Sergeant
Very nice, thanks Stuart. Ambrose On Tue, Oct 1, 2013 at 8:31 PM, Stuart Sierra wrote: > *class-diagram:* a little utility to generate Java class inheritance > diagrams from the REPL. > > Version 0.1.0, first release > > Source, README, and examples: > https://github.com/stuartsierra/class-diag

Re: [ANN] Deriva 0.1.0-SNAPSHOT

2013-10-01 Thread Jim
I have to add that loking trough your code you're using :use, :require etc in a odd manner...Look at this for example in deriva.core.clj (ns com.lambder.deriva.core (:refer-clojure :include [=]) (:use clojure.tools.macro com.lambder.deriva.utils) (:require [clojure.zip :as zip] [clojure.walk :re

Re: API management in Clojure

2013-10-01 Thread Stuart Sierra
For timeouts, error-handling, and thread isolation, take a look at Netflix's Hystrix: https://github.com/Netflix/Hystrix/tree/master/hystrix-contrib/hystrix-clj On Monday, September 30, 2013 11:46:03 PM UTC-4, Mikera wrote: > > I'm curious about the options for managing APIs in Clojure code in a

[ann] class-diagram 0.1.0: utility to generate class inheritance diagrams

2013-10-01 Thread Stuart Sierra
*class-diagram:* a little utility to generate Java class inheritance diagrams from the REPL. Version 0.1.0, first release Source, README, and examples: https://github.com/stuartsierra/class-diagram Leiningen dependency info: [com.stuartsierra/class-diagram "0.1.0"] License: EPL -- -- You re

Re: [ANN] Deriva 0.1.0-SNAPSHOT

2013-10-01 Thread Michael Klishin
2013/10/1 Daniel Kwiecinski > All nitpickings are warmly welcome! ;) > If so, here's some from me. You should not announce snapshot releases. Snapshots are *not*, in fact, releases supposed to be used by most people. The key issue is that you cannot reliably rebuild your codebase if one of the

Re: [ANN] Deriva 0.1.0-SNAPSHOT

2013-10-01 Thread Jim
that's not technically a bug but rather more idiomatic code. In fact extend-protocol expands in to a bunch of extend-type calls just like your code... :) Jim On 01/10/13 13:05, Daniel Kwiecinski wrote: All nitpickings are warmly welcome! ;) I'll do my best to make it high quality lib. Report

Re: [ANN] Deriva 0.1.0-SNAPSHOT

2013-10-01 Thread Daniel Kwiecinski
All nitpickings are warmly welcome! ;) I'll do my best to make it high quality lib. Report all suggestions/bugs at https://github.com/lambder/Deriva/issues Kind Regards, Daniel Kwiecinski (lambder) On 1 October 2013 13:00, Jim wrote: > wow! I've not tried it yet but looks very cool...would y

Re: [ANN] Deriva 0.1.0-SNAPSHOT

2013-10-01 Thread Jim
wow! I've not tried it yet but looks very cool...would you mind a bit of nitpicking? In your java.clj you've got a bunch of 'extend-type' calls: (extend-type clojure.lang.Symbol ExpressionTree (to-tree [this] (symbol this))) (extend-type Character ExpressionTree (to-tree [this] (symbol (str this

[ANN] Deriva 0.1.0-SNAPSHOT

2013-10-01 Thread Daniel Kwiecinski
Hi All, I have just pushed Deriva - automated algorithmic differentiation for Clojure and Java. The code is on https://github.com/lambder/Deriva And I have blog post on http://lambder.com/articles/deriva-automatic-algorythmic-differentiation-for-java-and-clojure/ It uses algebraic expression tre

KickHub from ClojureCup

2013-10-01 Thread Bastien
ClojureCup was fun! Here is a post-mortem: http://bzg.fr/clojurecup-2013-post-mortem.html The problem I want to solve is the lack of transparency and easy-to-grok incentives to make donations to free software/content contributors. I will on this project after the ClojureCup, so I'm interested

Re: Problems starting with Clojure and Leiningen and Light Table

2013-10-01 Thread Shantanu Kumar
Hi Zeynel, I suspect you are fighting too many challenges at once. I would suggest that you get Leiningen working first, then try a simple editor that you are most comfortable with. Which Leiningen version are you using? Make sure it's the latest version. What error message are you getting? Do

Problems starting with Clojure and Leiningen and Light Table

2013-10-01 Thread Zeynel
I was hoping that someone here can help me to start with Clojure. Nothing seems to be working now. This is the thread with question about Light Table https://groups.google.com/forum/#!topic/light-table-discussion/Nif7b82DrzY. Light Table cannot connect to the project. This is the question abou

Re: [ANN] ribol 0.3.1 - conditional restarts - api stablized, docs updated.

2013-10-01 Thread Baishampayan Ghose
This is fantastic, Chris. Many thanks! ~BG On Tue, Oct 1, 2013 at 12:49 PM, Chris Zheng wrote: > Dima and BG, > > A new version is up with implementation details - > http://z.caudate.me/ribol/#implementation > > as well as the requested stacktrace … although I called it :origin instead > of :stac

Re: API management in Clojure

2013-10-01 Thread Jozef Wagner
Hi, Your approach seems very complected to me. What I'm currently working on is the following concept: A resource type, which can be a file, url, some remote REST/SOAP resource or e.g. a kestrel queue. Each resource has URI and can be used in following ways: - as a regular reducible collection: re

Re: [ANN] ribol 0.3.1 - conditional restarts - api stablized, docs updated.

2013-10-01 Thread Chris Zheng
Dima and BG, A new version is up with implementation details - http://z.caudate.me/ribol/#implementation as well as the requested stacktrace … although I called it :origin instead of :stacktrace. - http://z.caudate.me/ribol/#raise-on Chris -- -- You received this message because you are sub