IRC client, clojure channel

2011-11-19 Thread Michael Jaaka
Hi, some time ago I've used to use mac irc client to log in onto Clojure channel. People on that chnnel helped me to learn Clojure. But one day there was a strange behaviour of channel which required me to register. I abandoned the channel because the procedure for registration didn't worked for m

Re: IRC client, clojure channel

2011-11-19 Thread Michael Jaaka
The direct link is http://webchat.freenode.net/?channels=clojure On 19 Lis, 09:59, Michael Jaaka wrote: > Hi, > > some time ago I've used to use mac irc client to log in onto Clojure > channel. People on that chnnel helped me to learn Clojure. But one day > there was a strange behaviour of channe

Re: Blog: SQL in Clojure

2011-11-19 Thread faenvie
thanks for the interesting blog-post. the main-points that makes sqlkorma attractive for me are: - it's simple to use and understand (focuses on one aspect) and leaves relational heavy-lifting @rdbms. - it adds signidicant value (composability) - the implementation has excellent code-quality an

Re: Literate Programming example

2011-11-19 Thread Laurent PETIT
Hello, 2011/11/19 TimDaly > On Fri, 2011-11-18 at 20:02 -0800, Daniel Jomphe wrote: > > On Friday, November 18, 2011 7:17:08 AM UTC-5, TimDaly wrote: > > Many of you asked me to show an example of a literate > > program and demonstrate the use of the tangle function. > > > >

Re: Blog: SQL in Clojure

2011-11-19 Thread owendall
+1 Sent from my iPhone On Nov 19, 2011, at 6:09 AM, faenvie wrote: > thanks for the interesting blog-post. > > the main-points that makes sqlkorma attractive for me are: > > - it's simple to use and understand (focuses on one aspect) and leaves > relational heavy-lifting @rdbms. > > - it add

Re: repl dodges ns :use :only ?

2011-11-19 Thread Andrew
And how can I get what I originally wanted? (Import only function bar from library foo - renaming foo to f - requiring my own code to say f/bar and ensuring that foo/baz and f/baz and baz don't work since baz is not imported?) -- You received this message because you are subscribed to the Goog

Re: Probabilistic programming in clojure

2011-11-19 Thread Konrad Hinsen
On 19/11/11 00:32, Nils Bertschinger wrote: downstream conditioning somewhat different. The stream can basically be filtered to implement rejection sampling, whereas I thread a database state through the program to record all random choices (as well as their probability) that have been taken.

Re: Clojure on PyPy

2011-11-19 Thread Brent Millare
On Thursday, November 17, 2011 11:07:02 AM UTC-5, tbc++ wrote: > > True...true, it supports it, but it's still a "2nd class citizen". For > instance, we don't have lein, ring, parts of contrib, IDEs, etc. All > the examples, all the books are all about Clojure on the JVM. Do > anything else and y

Leiningen local dependencies?

2011-11-19 Thread Doug South
Hello, I'm looking at using Clojure to help with the maintenance of an existing Java Swing application. I'd like to reuse the out directories containing all the generated class files for the Swing application as classpath directories for a Leiningen project. Is there a way to point a Leiningen pr

Re: Literate Programming example

2011-11-19 Thread daly
On Sat, 2011-11-19 at 14:35 +0100, Laurent PETIT wrote: > Hello, > > 2011/11/19 TimDaly > On Fri, 2011-11-18 at 20:02 -0800, Daniel Jomphe wrote: > > On Friday, November 18, 2011 7:17:08 AM UTC-5, TimDaly > wrote: > > Many of you asked me to show an example

Clojure Stored Procedure

2011-11-19 Thread Ghadi Shayban
I'm trying to load and execute an Oracle Java Stored Procedure... written in Clojure. Has anyone successfully managed to do this? Are you done throwing up? I would appreciate any direction I have a little clj that is AOT compiled, and I load the whole jar into the DB successfully. What I'm ru

Re: Clojure Stored Procedure

2011-11-19 Thread willyh
Here's how I do it with clojure.java.jdbc: (defn do-stored "Executes an (optionally parameterized) SQL callable statement on the open database connection. Each param-group is a seq of values for all of the parameters." [sql & param-groups] (with-open [stmt (.prepareCall (sql/connection)

Re: Clojure Stored Procedure

2011-11-19 Thread Ghadi Shayban
Your code calls an existing stored procedure on the database. I'm wondering about *creating* a native Java stored procedure *inside* the database. Oracle supports Java 1.5 inside the DB, might as well use clojure. On Nov 19, 3:34 pm, willyh wrote: > Here's how I do it with clojure.java.jdbc: >

Re: Clojure Stored Procedure

2011-11-19 Thread willyh
Sorry. I read your message too fast. Cheers, Willy On Nov 19, 3:52 pm, Ghadi Shayban wrote: > Your code calls an existing stored procedure on the database.  I'm > wondering about *creating* a native Java stored procedure *inside* the > database.  Oracle supports Java 1.5 inside the DB, might a

Re: Literate Programming example

2011-11-19 Thread Daniel Jomphe
On Saturday, November 19, 2011 2:37:48 PM UTC-5, TimDaly wrote: > > However, as Knuth points out and as I've already experienced, writing > a program in literate form vastly reduces the errors. There are two > causes I can find. > > First, if I have to write an explanation then I have to justify m

Re: Why no anonymous record types, or (defstruct, create-struct) vs (defrecord, ???)

2011-11-19 Thread Stephen Compall
On Mon, 2011-11-14 at 14:09 -0800, John McDonald wrote: > Structmaps can be defined either named, thru the defstruct macro, or > anonymously, thru the create-struct function call. Record types must > be named and defined thru a call to defrecord. 1.2-style records and types are very different fro

Re: Leiningen local dependencies?

2011-11-19 Thread Stephen Compall
On Sat, 2011-11-19 at 14:06 -0500, Doug South wrote: > I'm looking at using Clojure to help with the maintenance of an > existing Java Swing application. I'd like to reuse the out directories > containing all the generated class files for the Swing application as > classpath directories for a Leini

Re: Creating a var, functions from a macro

2011-11-19 Thread Stephen Compall
On Wed, 2011-11-09 at 13:50 -0800, Sean Bowman wrote: > Apparently the missing bit is I need to "escape" the symbol calls, > e.g. > > (defn ~(symbol "index") ... > > Is this correct? Better yet, ~'index. There's a good example of this pattern in defmacro fn in clojure/core.clj. -- Stephe

Re: repl dodges ns :use :only ?

2011-11-19 Thread Stephen Compall
On Sat, 2011-11-19 at 08:15 -0800, Andrew wrote: > (Import only function bar from > library foo - renaming foo to f - requiring my own code to say f/bar and > ensuring that foo/baz and f/baz and baz don't work since baz is not > imported?) You can't do this within the confines of an ns form; it

Re: Leiningen local dependencies?

2011-11-19 Thread Doug South
Thanks Stephen, That's exactly the information I was looking for. FWIW, I went with the :extra-classpath-dirs as the source is being built via IntelliJ at the moment... Regards, Doug On Sat, Nov 19, 2011 at 5:25 PM, Stephen Compall wrote: > On Sat, 2011-11-19 at 14:06 -0500, Doug South wrote: >

ANN: A new Clojure brush for syntax highlighter

2011-11-19 Thread Andrew Brehaut
I have written a new brush for the javascript Syntax Highlighter to replace sh-clojure. Rather than using the typical regex system, it has a full parser and simple form annotator. This should result in significantly better highlighting than earlier brushes. You can find the project at https://gith

Re: ANN: A new Clojure brush for syntax highlighter

2011-11-19 Thread Sean Corfield
On Sat, Nov 19, 2011 at 1:46 PM, Andrew Brehaut wrote: > You can find the project at https://github.com/brehaut/inc-clojure-brush. > It's running on my blog, frinstance > http://brehaut.net/blog/2011/ring_introduction > and http://brehaut.net/blog/2011/l_systems Very nice! I see it highlights mi

Re: Probabilistic programming in clojure

2011-11-19 Thread Jeff Rose
Cool!  I experimented a little bit with Church a while back, but having something like this in Clojure could be really interesting.  I don't have much experience with sampling, but if I understand it correctly, your grass-is-wet demo is defining a belief network where each sample taken represents t

ANN v0.3 of Clojure wrapper for Liquibase

2011-11-19 Thread Shantanu Kumar
Hello, I have pushed v0.3 of Clj-Liquibase [1] and Lein-LB [2] to Clojars. This version creates InnoDB tables for MySQL by default and adds support for SQL-visitors and database-diff. [1] https://bitbucket.org/kumarshantanu/clj-liquibase/ [2] https://bitbucket.org/kumarshantanu/lein-lb/ I will a