Re: "closed" maps / reducing runtime errors due to mistyped keywords

2011-04-23 Thread pepijn (aka fliebel)
This project seems to be all about beans, but it is empty so far: https://github.com/clojure/java.data On Apr 23, 8:57 am, Christian Schuhegger wrote: > Thanks for all of your answers, but I think for my use cases the > approach proposed by Justin looks most promising. I'll implement my > own clo

Re: Feedback Request

2011-04-23 Thread pepijn (aka fliebel)
Cool. Have you seen https://github.com/stuartsierra/cljque ? They might be nice to use with Swing events. I figured you could turn a string into a label, button or textbox depending on if it's wrapped in an atom, observer or not at all. But that is just more blabla, I need to make some time to loo

Re: clojure.contrib.sql => clojure.java.jdbc - looking for feedback!

2011-04-23 Thread Shantanu Kumar
> > 1. Allow _ (underscore) in field names > > This already seems to work. I just tested the following - can you elaborate: Yes, I tested this and it seems to work now. Not sure where I noticed earlier where it was not working. My bad. > > I agree that translating - / _ would be more idiomatic. I

Start Clojure programs from Eclipse

2011-04-23 Thread Zlatko Josic
Hi, I would like to start two progams from Eclipse. One is a server and the other one is a client. I use Load Clojure file in REPL from Eclipse menu. When I start the server it never ends because the server has endless loop where it waits for clients. Now when I start the client programs it never

Re: Start Clojure programs from Eclipse

2011-04-23 Thread Zlatko Josic
Sorry. My oversight. Run as from menu works just fine. Zlaja On Sat, Apr 23, 2011 at 11:12 AM, Zlatko Josic wrote: > Hi, > > I would like to start two progams from Eclipse. One is a server and the > other one is a client. > I use Load Clojure file in REPL from Eclipse menu. When I start the ser

Re: Two types of special symbol

2011-04-23 Thread Simon Katz
Thanks -- interesting, especially the bit about the design notes on a compiler rewrite. On Thu, Apr 21, 2011 at 22:23, Kevin Downey wrote: > the current compiler doesn't namespace qualify special forms (forms > which are built into the compiler) but somethings that the > documentation lists as "

Re: Emacs 23 issues.

2011-04-23 Thread mmwaikar
Thanks a lot Vincent. At least now I can run Emacs with Clojure, otherwise I was stuck at the very first step :) Thx again. Manoj. On Apr 21, 8:06 pm, Vincent Liard wrote: > Hi Manoj, > > > "unreadable message: (:emacs-rex (swank:autodoc (quote ("d" swank:: > > %cursor-marker%)) :print-right-mar

Re: Start Clojure programs from Eclipse

2011-04-23 Thread Ken Wesson
On Sat, Apr 23, 2011 at 5:12 AM, Zlatko Josic wrote: > Hi, > I would like to start two progams from Eclipse. One is a server and the > other one is a client. > I use Load Clojure file in REPL from Eclipse menu. When I start the server > it never ends because > the server has endless loop where it

Re: clojure.contrib.sql => clojure.java.jdbc - looking for feedback!

2011-04-23 Thread Stuart Sierra
One snag I ran into recently with c.c.sql: it creates structmaps for returning query results, which means you can't subsequently dissoc one of the keys without converting to a regular map. In general, c.c.sql is inconsistent about using tuples of column values versus maps of column=>value pairs. B

Re: clojure.contrib.sql => clojure.java.jdbc - looking for feedback!

2011-04-23 Thread Nicolas Buduroi
> > I'm going to be working on clojure.java.jdbc, with Steve Gilardi, and > I'd like to get people's feedback on what you like / what you don't > like / what you need changed or added in clojure.contrib.sql so that > clojure.java.jdbc can become what the community wants for 1.3.0. What I would l

Aw: Re: Emacs 23 issues.

2011-04-23 Thread Stefan Kamphausen
Hi, the problem is, that Clojure does not accept the symbol name "%cursor-marker%" while common lisp does. The autodoc feature of slime uses that symbol to tell the backend where the cursor was when the user asked for completion or documentation. There was a long discussion on the SLIME maili

Re: Clojure performance optimization

2011-04-23 Thread Michael Golovanov
Hi, all I fix some discussed details. Please review my code at https://github.com/mgoblin/GCS-puzzles/wiki/42-puzzle -- 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 n

Re: clojure.contrib.sql => clojure.java.jdbc - looking for feedback!

2011-04-23 Thread Sean Corfield
I've added an issue for getting access to generated SQL and possibly execution statistics. On Sat, Apr 23, 2011 at 1:38 AM, Shantanu Kumar wrote: > Some databases (under certain configuration) work only with case- > sensitive entity names. Converting them to all lowercase breaks under > those sit

Re: clojure.contrib.sql => clojure.java.jdbc - looking for feedback!

2011-04-23 Thread Sean Corfield
On Sat, Apr 23, 2011 at 10:01 AM, Stuart Sierra wrote: > One snag I ran into recently with c.c.sql: it creates structmaps for > returning query results, which means you can't subsequently dissoc one > of the keys without converting to a regular map. That's down to resultset-seq - should c.j.j sto

Re: clojure.contrib.sql => clojure.java.jdbc - looking for feedback!

2011-04-23 Thread Sean Corfield
On Sat, Apr 23, 2011 at 10:13 AM, Nicolas Buduroi wrote: > What I would like to see added is a global connection mechanism like in > ClojureQL and Lobos. We could even add a connection pool behind the scene. Thanx. I'll take a look at those. > Then there's support for quoted identifiers, maybe s

Re: clojure.contrib.sql => clojure.java.jdbc - looking for feedback!

2011-04-23 Thread Nicolas Buduroi
On Saturday, 23 April 2011 16:15:57 UTC-4, Sean Corfield wrote: > > Should [:some-schema :a-table] become "some_schema.a_table"? > > How do people want to handle mixed case entity names? Do we want > something like Hibernate Naming Strategies? > I hadn't thought about naming strategies that could b

Re: Start Clojure programs from Eclipse

2011-04-23 Thread Michael Wood
On 23 April 2011 17:31, Ken Wesson wrote: > On Sat, Apr 23, 2011 at 5:12 AM, Zlatko Josic wrote: >> Hi, >> I would like to start two progams from Eclipse. One is a server and the >> other one is a client. >> I use Load Clojure file in REPL from Eclipse menu. When I start the server >> it never en

Re: clojure.contrib.sql => clojure.java.jdbc - looking for feedback!

2011-04-23 Thread Sean Corfield
On Sat, Apr 23, 2011 at 1:37 PM, Nicolas Buduroi wrote: > After rethinking about quoted identifiers, I realized they would probably > need an extra argument to escape the quotes found inside an identifier if > there are some. Well, not all DB stropping approaches are simply (str q ident q) - ther

Re: clojure.contrib.sql => clojure.java.jdbc - looking for feedback!

2011-04-23 Thread Nicolas Buduroi
On Saturday, 23 April 2011 17:33:48 UTC-4, Sean Corfield wrote: > > Well, not all DB stropping approaches are simply (str q ident q) - there's also select [name] from [table] style quoting and that part is DB vendor specific I believe? Oh yeah, I forgot SQL Server again! (with-quoted-identif

Re: Two types of special symbol

2011-04-23 Thread Kevin Downey
http://dev.clojure.org/display/design/Compiler+in+Clojure On Sat, Apr 23, 2011 at 3:37 AM, Simon Katz wrote: > Thanks -- interesting, especially the bit about the design notes on a > compiler rewrite. > > On Thu, Apr 21, 2011 at 22:23, Kevin Downey wrote: >> >> the current compiler doesn't names

Re: Start Clojure programs from Eclipse

2011-04-23 Thread Ken Wesson
On Sat, Apr 23, 2011 at 5:30 PM, Michael Wood wrote: > On 23 April 2011 17:31, Ken Wesson wrote: >> On Sat, Apr 23, 2011 at 5:12 AM, Zlatko Josic wrote: >>> Hi, >>> I would like to start two progams from Eclipse. One is a server and the >>> other one is a client. >>> I use Load Clojure file in R

Re: Start Clojure programs from Eclipse

2011-04-23 Thread Mike Meyer
On Sat, 23 Apr 2011 19:41:28 -0400 Ken Wesson wrote: > > Well, Java servers probably are yes, but traditional Unix servers > > would normally fork a new process for each incoming connection. > > Poor man's threads. Although the insulation of each one against > crashes in the others might be usefu

Re: Start Clojure programs from Eclipse

2011-04-23 Thread Ken Wesson
On Sat, Apr 23, 2011 at 8:13 PM, Mike Meyer wrote: > On Sat, 23 Apr 2011 19:41:28 -0400 > Ken Wesson wrote: >> > Well, Java servers probably are yes, but traditional Unix servers >> > would normally fork a new process for each incoming connection. >> >> Poor man's threads. Although the insulation

Re: Start Clojure programs from Eclipse

2011-04-23 Thread Alan
On Apr 23, 4:41 pm, Ken Wesson wrote: > On Sat, Apr 23, 2011 at 5:30 PM, Michael Wood wrote: > > On 23 April 2011 17:31, Ken Wesson wrote: > >> On Sat, Apr 23, 2011 at 5:12 AM, Zlatko Josic > >> wrote: > >>> Hi, > >>> I would like to start two progams from Eclipse. One is a server and the > >>

Re: Start Clojure programs from Eclipse

2011-04-23 Thread Ken Wesson
On Sat, Apr 23, 2011 at 11:26 PM, Alan wrote: > On Apr 23, 4:41 pm, Ken Wesson wrote: >> On Sat, Apr 23, 2011 at 5:30 PM, Michael Wood wrote: >> > On 23 April 2011 17:31, Ken Wesson wrote: >> >> On Sat, Apr 23, 2011 at 5:12 AM, Zlatko Josic >> >> wrote: >> >>> Hi, >> >>> I would like to start

Re: Start Clojure programs from Eclipse

2011-04-23 Thread Ken Wesson
On Sat, Apr 23, 2011 at 11:28 PM, Ken Wesson wrote: > On Sat, Apr 23, 2011 at 11:26 PM, Alan wrote: >> On Apr 23, 4:41 pm, Ken Wesson wrote: >>> On Sat, Apr 23, 2011 at 5:30 PM, Michael Wood wrote: >>> > On 23 April 2011 17:31, Ken Wesson wrote: >>> >> On Sat, Apr 23, 2011 at 5:12 AM, Zlatko J

Re: Start Clojure programs from Eclipse

2011-04-23 Thread Mike Meyer
On Sat, 23 Apr 2011 23:19:53 -0400 Ken Wesson wrote: > On Sat, Apr 23, 2011 at 8:13 PM, Mike Meyer wrote: > > On Sat, 23 Apr 2011 19:41:28 -0400 > > Ken Wesson wrote: > > or you live in a universe where cosmic rays can flip bits and other > > sources of hardware hiccups exist. > Software crashe

Re: Start Clojure programs from Eclipse

2011-04-23 Thread Ken Wesson
On Sat, Apr 23, 2011 at 11:35 PM, Mike Meyer wrote: > On Sat, 23 Apr 2011 23:19:53 -0400 > Ken Wesson wrote: > >> On Sat, Apr 23, 2011 at 8:13 PM, Mike Meyer wrote: >> > On Sat, 23 Apr 2011 19:41:28 -0400 >> > Ken Wesson wrote: >> > or you live in a universe where cosmic rays can flip bits and

Re: Start Clojure programs from Eclipse

2011-04-23 Thread Alan
On Apr 23, 8:28 pm, Ken Wesson wrote: > On Sat, Apr 23, 2011 at 11:26 PM, Alan wrote: > > On Apr 23, 4:41 pm, Ken Wesson wrote: > >> On Sat, Apr 23, 2011 at 5:30 PM, Michael Wood wrote: > >> > On 23 April 2011 17:31, Ken Wesson wrote: > >> >> On Sat, Apr 23, 2011 at 5:12 AM, Zlatko Josic > >

Re: Start Clojure programs from Eclipse

2011-04-23 Thread Mike Meyer
On Sat, 23 Apr 2011 23:42:23 -0400 Ken Wesson wrote: > On Sat, Apr 23, 2011 at 11:35 PM, Mike Meyer wrote: > > On Sat, 23 Apr 2011 23:19:53 -0400 > > Ken Wesson wrote: > > > >> On Sat, Apr 23, 2011 at 8:13 PM, Mike Meyer wrote: > >> > On Sat, 23 Apr 2011 19:41:28 -0400 > >> > Ken Wesson wrote

Re: Start Clojure programs from Eclipse

2011-04-23 Thread Ken Wesson
On Sun, Apr 24, 2011 at 12:01 AM, Mike Meyer wrote: > On Sat, 23 Apr 2011 23:42:23 -0400 > Ken Wesson wrote: > >> On Sat, Apr 23, 2011 at 11:35 PM, Mike Meyer wrote: >> > On Sat, 23 Apr 2011 23:19:53 -0400 >> > Ken Wesson wrote: >> > >> >> On Sat, Apr 23, 2011 at 8:13 PM, Mike Meyer wrote: >>