Re: ANN clojure.java.jdbc 0.2.0

2012-04-24 Thread Michael
I think I was leaking result sets. (defn oracle-insert-record [table pk-col-name pk-seq-name record] (let [sql (oracle-insert-sql table pk-col-name pk-seq-name (keys record))] (with-open [^PreparedStatement pstmt (.prepareStatement (jdbc/connection) sql,

Re: Alan Kay talk

2012-04-24 Thread Kai
The implications of Kay's talk are potent; and when one considers that his team at VPRI have mostly fulfilled their vision to reduce the tens/hundreds of millions of lines of code needed for personal computing down to under 20,000 lines (includes OS, networking, graphics, office apps, web brows

Re: ANN clojure.java.jdbc 0.2.0

2012-04-24 Thread Michael
Would it be possible to make resultset-seq a dynamic var so that you can bind in custom result set mapping without having to make two passes through the results? For instance, I would want to map sql date/timestamp to joda DateTime and T/F to true/false directly. > > -- You received this mess

Re: ANN clojure.java.jdbc 0.2.0

2012-04-24 Thread Michael
Would be convenient to have set-parameters public. I'm experimenting with a couple of fns to insert into oracle and oracle's sequences for generated keys are a headache. What's below is not fully tested but should give you an idea of the sql I'm dealing with. Any pointers on how to leaverage ja

Re: Embed clojurescript literals in server response

2012-04-24 Thread Evan Mezeske
> > Basically, I want to see what's possible. If someone's done the research > on how to do it this way, I'd like to see it. There's a different trade-off > being made with each method. > If you're looking for an example, the clojurescript browser REPL dynamically compiles forms and sends them

Re: Embed clojurescript literals in server response

2012-04-24 Thread Brent Millare
> > > $(function() {my_cljs_ns.initialize('data');}); > > > Today I coded up a method. Currently I'm creating divs of a class that is invisible. Then I just use some node searcher to grab the content then call read-string on it. Seems easier to do then inserting the javascript function cal

Re: Alan Kay talk

2012-04-24 Thread jim
That talk was one of the inspirations for my DSL talk at ClojureWest. I did several blog posts about DSL's in Clojure, starting with http://www.clojure.net/2012/02/15/DSL-Intro/ I think there's a lot of leverage to be gained with the kinds of ideas he talks about. Jim -- You received this messa

fnil should delay evaluation of its argument?

2012-04-24 Thread blais
Does anybody else feel that (fnil) should delay evaluation of its argument? Maybe I've been abusing mutability a bit too much, but for a map which refers to mutable object instances, I've found this useful: (defmacro fnil* "Delayed evaluation version of fnil, where the default expression gets

Re: Clojure alternatives to Esper

2012-04-24 Thread ronen
Iv been integrating Drools fusion with Clojure using a DSL to describe rules: https://github.com/narkisr/gelfino/wiki/drools I think it showcases nicely how interop can be done Ronen On Tuesday, April 24, 2012 12:23:39 AM UTC+3, Rogier wrote: > > Good questions. Mostly that it seems a technolo

Re: Disable name mangling for 'static'

2012-04-24 Thread David Nolen
Fixed in master thanks. On Tue, Apr 24, 2012 at 4:22 PM, Bronsa wrote: > This should fix it > http://dev.clojure.org/jira/browse/CLJS-202 > > > 2012/4/24 Chris Granger > >> If I remember right, I did this as a workaround: >> >> (js/my.ns.express.static "public") >> >> Cheers, >> Chris. >> >> On

Re: Disable name mangling for 'static'

2012-04-24 Thread Jonathan Fischer Friberg
> > This should fix it > Nice! The workaround I'm currently using is (.use app (js* "require('express')['static']('public')")) (the closure compiler wont allow require('express').static ... ) Jonathan On Tue, Apr 24, 2012 at 10:22 PM, Bronsa wrote: > This should fix it > http://dev.clojure.

Re: Disable name mangling for 'static'

2012-04-24 Thread Bronsa
This should fix it http://dev.clojure.org/jira/browse/CLJS-202 2012/4/24 Chris Granger > If I remember right, I did this as a workaround: > > (js/my.ns.express.static "public") > > Cheers, > Chris. > > On Apr 24, 12:33 pm, David Nolen wrote: > > It's a known bug. We should not munge JS reserved

Re: Disable name mangling for 'static'

2012-04-24 Thread Chris Granger
If I remember right, I did this as a workaround: (js/my.ns.express.static "public") Cheers, Chris. On Apr 24, 12:33 pm, David Nolen wrote: > It's a known bug. We should not munge JS reserved words that appear in > property access. Patch welcome. > > David > > On Tue, Apr 24, 2012 at 3:31 PM, Jo

Re: Embed clojurescript literals in server response

2012-04-24 Thread Evan Mezeske
> > I would like to evaluate other methods which may involve: > -parsing hidden strings in the html code > The way that I've been doing this, for better or worse, has been to insert a Javascript function call into the HTML output by my server, like: $(function() {my_cljs_ns.initialize('data'

Re: [CLJS] Disable name mangling for 'static'

2012-04-24 Thread David Nolen
It's a known bug. We should not munge JS reserved words that appear in property access. Patch welcome. David On Tue, Apr 24, 2012 at 3:31 PM, Jonathan Fischer Friberg < odysso...@gmail.com> wrote: > Hi, > > I want to create a (partially static) server with nodejs and express. > I want to be able

[CLJS] Disable name mangling for 'static'

2012-04-24 Thread Jonathan Fischer Friberg
Hi, I want to create a (partially static) server with nodejs and express. I want to be able to write something like the following: (def app (.createServer express)) (.use app (.static express "public")) (.listen app 8080) The problem here is that clojurescript seems to compile the name 'static

Re: Should read-string support \x.. escaped characters?

2012-04-24 Thread Brandon Bloom
Surprisingly, this differs from JSON, which only supports \u... On Friday, December 23, 2011 5:43:00 PM UTC-8, Dave Sann wrote: > > When sending data as strings from clojurescript to clojure there will be > issues if the source data contains certain unicode characters. (I think in > range 128-25

Re: [ANN] leinjacker: a library for Leiningen plug-in authors

2012-04-24 Thread Daniel Solano Gómez
I just realised I didn't post a link. Predictably, it's on github: https://github.com/sattvik/leinjacker On Tue Apr 24 12:26 2012, Daniel Solano Gómez wrote: > Hello, all, > > I was recently working on a Leiningen plug-in and got annoyed that I was > repeating myself. So, I have published 'lein

[ANN] leinjacker: a library for Leiningen plug-in authors

2012-04-24 Thread Daniel Solano Gómez
Hello, all, I was recently working on a Leiningen plug-in and got annoyed that I was repeating myself. So, I have published 'leinjacker', a library that contains some utilities for plug-in authors. It doesn't have much at the moment, the main highlights are: 1. A version of eval-in-project that

Re: Embed clojurescript literals in server response

2012-04-24 Thread Brent Millare
fetch uses goog.net.XhrIo under the hood, which has the disadvantage of making an additional request. My question is regarding on the initial request which includes the javascript, how can I send clojurescript literals, or is the best way to just parse existing clojurescript text embedded as ma

Re: ANN: Clojure/dev Google Summer of Code 2012 Proposals Selected!

2012-04-24 Thread David Nolen
I think the proposals are of broad enough appeal. Please discuss them here. Thanks! On Tue, Apr 24, 2012 at 9:55 AM, Alexander Yakushev wrote: > I am as well honored and excited to be selected for further participation! > > I promise to do my best in order to fulfill all the tasks I plan to work

Re: ANN: Clojure/dev Google Summer of Code 2012 Proposals Selected!

2012-04-24 Thread David Nolen
On Tue, Apr 24, 2012 at 3:56 AM, Sanel Zukan wrote: > > These proposals were selected as they not only had the best overall > > score as determined by the mentoring group > > I'm just curious: "Improved Clojars System" was rejected but is the second > one with highest scores in the list? > > Sane

Re: lein-exec 0.2.0 – Scripting in Clojure

2012-04-24 Thread John Gabriele
On Apr 24, 9:15 am, Shantanu Kumar wrote: > > lein-exec 0.1 can be used only in the context of a project. This is > related to a limitation in Leiningen 1.x wherein a plugin can run > either in project-context or out of it, not both. "lein exec" in 0.1 > is same as "lein exec -p" in 0.2.0. Ah, th

Re: ANN: Clojure/dev Google Summer of Code 2012 Proposals Selected!

2012-04-24 Thread Alexander Yakushev
I am as well honored and excited to be selected for further participation! I promise to do my best in order to fulfill all the tasks I plan to work on. Great thanks to everyone who made this happen, and I'm sure that the Clojure/dev organization performance on GSoC will prove itself worthy for

Re: lein-exec 0.2.0 – Scripting in Clojure

2012-04-24 Thread Shantanu Kumar
On Apr 24, 6:08 pm, John Gabriele wrote: > Hi Shantanu, > > Thanks for the detailed reply. > > BTW, an issue I ran into: when using lein-exec 0.1 (installed via > "lein plugin install lein-exec 0.1") with lein 1.7.1, trying `lein > exec foo.clj`, it tells me: > >     Couldn't find project.clj, w

Re: lein-exec 0.2.0 – Scripting in Clojure

2012-04-24 Thread John Gabriele
Hi Shantanu, Thanks for the detailed reply. BTW, an issue I ran into: when using lein-exec 0.1 (installed via "lein plugin install lein-exec 0.1") with lein 1.7.1, trying `lein exec foo.clj`, it tells me: Couldn't find project.clj, which is needed for exec Also, re. > 7. In lein-oneoff you

Re: StackOverflowError caused by apply-template

2012-04-24 Thread Shogo Ohta
> I think that falls under the heading of "don't do that." :) I see. Actually, I found the error when I just used clojure.test, like this: (clojure.test/are [x y] (= (f x) y) 'x 'y) ;=> StackOverflowError I think it's not as much obvious as clojure.template's case. At that time, I didn't know

Re: lein-exec 0.2.0 – Scripting in Clojure

2012-04-24 Thread Shantanu Kumar
Hi John, > Useful blog post, thanks! Thanks! > I've been using lein-oneoff for this. What are the differences between > lein-exec and lein-oneoff? Current latest versions of lein-exec (0.2.0) and lein-oneoff (0.2.0) have some overlap, but let me list few differences AFAIC: 1. lein-oneoff works

Re: New release of Paredit mode for Vim with support for VimClojure repls and Map literals

2012-04-24 Thread dgrnbrg
I've worked with Tamas, and the VimClojure compatibility support is now merged into the BitBucket repos, and Tamas' updated version is merged with my GitHub repo. On Apr 23, 12:34 am, Dave Ray wrote: > Note that Tomas recently extracted paredit from slimv, so it has its > own home now:https://bit

Re: Alan Kay talk

2012-04-24 Thread Brad Lucas
The link Tim provided is the direct link but it doesn't 'work' unless you are already on the site. I had the same problem. Try going to the main page for the video here http://tele-task.de/archive/lecture/overview/5819/ There is a group of links of which one of is the flash link which will

Re: Alan Kay talk

2012-04-24 Thread Michael Fogus
> In relation to Clojure, are there lessons to learn from the Meta > language he mentioned? Does anyone have references to it? I have looked at it a bit, it's called META-II. Some info below: * http://en.wikipedia.org/wiki/META_II * http://www.bayfronttechnologies.com/mc_tutorial.html * http://w

Re: Alan Kay talk

2012-04-24 Thread Kevin Ilchmann Jørgensen
Yes, their url handling is random. https://www.tele-task.de/search/?query=Programming+and+Scaling Should bring up the correct video. /Kevin On Tue, Apr 24, 2012 at 1:28 PM, Baishampayan Ghose wrote: > On Tue, Apr 24, 2012 at 4:53 PM, d...@axiom-developer.org > wrote: >> Alan Kay gave a very

Re: Alan Kay talk

2012-04-24 Thread Baishampayan Ghose
On Tue, Apr 24, 2012 at 4:53 PM, d...@axiom-developer.org wrote: > Alan Kay gave a very interesting talk which I think the Clojure > community might find enlightening. Specifically, near the end > he talks about building a DSL by careful domain analysis. > http://tele-task.de/archive/video/flash/1

Alan Kay talk

2012-04-24 Thread d...@axiom-developer.org
Alan Kay gave a very interesting talk which I think the Clojure community might find enlightening. Specifically, near the end he talks about building a DSL by careful domain analysis. http://tele-task.de/archive/video/flash/14029 In relation to Clojure, are there lessons to learn from the Meta lan

Re: ANN: Clojure/dev Google Summer of Code 2012 Proposals Selected!

2012-04-24 Thread Raphaël AMIARD
I'm thrilled and honored to see that my proposal has been selected ! Thanks to all people involved in the process for their work and effort, and thanks for putting your trust in me and my proposal, i'll work hard to try and produce something worthy of integration into ClojureScript ! On Tues

Re: ANN: Clojure/dev Google Summer of Code 2012 Proposals Selected!

2012-04-24 Thread Sanel Zukan
> These proposals were selected as they not only had the best overall > score as determined by the mentoring group I'm just curious: "Improved Clojars System" was rejected but is the second one with highest scores in the list? Sanel On Tuesday, April 24, 2012 5:03:02 AM UTC+2, David Nolen wrote