Re: lispy ways of handling dev mode

2010-10-02 Thread Scott Jaderholm
On Sat, Oct 2, 2010 at 6:36 PM, Michael Ossareh wrote: > What is the recommended manner in which to let your application know its on > a dev machine? > I use an environment variable that determines which config (dev, production, test) gets loaded. APPNAME_CONFIG=development lein swank I don't

Help Fixing Bug in Durable Reference Creation Inside DoSync Transaction

2010-10-02 Thread Alyssa Kwan
I've noticed a bug in my implementation of the durable ref, or "dref" construct. This is an attempt to add durability to the STM. drefs have all of the ACI guarantees of refs, with the additional property of being durable, so changes to the state of the identity are durable. The API is that ther

Re: lispy ways of handling dev mode

2010-10-02 Thread Phil Hagelberg
On Sat, Oct 2, 2010 at 3:36 PM, Michael Ossareh wrote: > In java I'd normally have a conf file somewhere, and that had a range of > issues so I'm wondering if there is something more lispy Actually it works really well to use the classpath. Leiningen (and presumably other tools) will place test/

The vsClojure Project

2010-10-02 Thread jmis
I'd like to announce my Visual Studio 2010 Clojure extension project, vsClojure. The extension is not yet complete but provides a base for further enhancements. Currently, it supports syntax highlighting, auto-indentation, brace matching, a Clojure project type, repl support, and a few ot

Re: Clojure 1.3 alpha 1 report - bitwise operations extremely slow

2010-10-02 Thread ataggart
I just submitted a patch for this issue. On Oct 1, 2:42 pm, ataggart wrote: > I'm working on the latter right now.  Note there's already a ticket > for the reflection problem:https://www.assembla.com/spaces/clojure/tickets/446 > > On Oct 1, 12:24 pm, Nicolas Oury wrote: > > > > > > David pointed

Re: relational data aggregation language

2010-10-02 Thread Michael Ossareh
On Fri, Oct 1, 2010 at 17:55, Ross Gayler wrote: > Hi, > > This is probably an abuse of the Clojure forum, but it is a bit > Clojure-related and strikes me as the sort of thing that a bright, > eclectic bunch of Clojure users might know about. (Plus I'm not really > a software person, so I need a

Re: Duplicate code in c.c.properties and c.c.java-utils

2010-10-02 Thread Stuart Sierra
On Oct 2, 4:11 pm, B Smith-Mannschott wrote: > > However, I can't find the properties functions in clojure-contrib > > 1.3.0-*.  Did I accidentally delete them when transitioning to > > modularized contrib? > > fixed. > > https://www.assembla.com/spaces/clojure-contrib/tickets/100 Applied. Thanks

Re: Screencast of the Emacs front end to the Clojure Debugging Toolkit:

2010-10-02 Thread Michael Ossareh
On Fri, Oct 1, 2010 at 13:32, George Jahad wrote: > For your delectation: > http://www.vimeo.com/15462015 This is sick! In the good sense! -- 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

Re: relational data aggregation language

2010-10-02 Thread Ross Gayler
Thanks Saul. That's all useful stuff. At this stage I am trying to simultaneously work out what my requirements should be and map out the space of implementation possibilities - so it's a matter of casting the net as widely as possible and kicking the tyres on everything in kicking range. Ross On

lispy ways of handling dev mode

2010-10-02 Thread Michael Ossareh
What is the recommended manner in which to let your application know its on a dev machine? I'm building an app that sends emails based on certain events, however when I'm developing locally I'd rather it print the email to my log file. I have a variable in that namespace: *send* which is def'ed to

Re: Clojure ensure

2010-10-02 Thread ka
I follow this thread, but haven't read Clojure's source. I have a similar question - http://groups.google.com/group/clojure/browse_thread/thread/46415b89c7b311f6, but haven't got any responses yet. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To p

Re: Screencast of the Emacs front end to the Clojure Debugging Toolkit:

2010-10-02 Thread George Jahad
Good question. The jvm debuggers are inherently linenumber oriented as is the JDI. The question is can we overload the "linenumber" concept to map more closely to what we want to do with Clojure. It's on my list of things to explore, but that's getting to be a pretty long list, and it's not at t

Re: Duplicate code in c.c.properties and c.c.java-utils

2010-10-02 Thread B Smith-Mannschott
On Sat, Oct 2, 2010 at 19:45, Stuart Sierra wrote: > On Oct 2, 2:53 am, Shantanu Kumar wrote: > > I found that the function read-properties is implemented in both > > c.c.properties and c.c.java-utils -- is this intentional? Which one is > > recommended, and why? > > c.c.properties is deprecated

Re: Web Development - templating?

2010-10-02 Thread Ilia Ablamonov
It's very simple, you only need to 1. create a directory with all needed templates 2. (fleet-ns templates "path/to/that_dir" [:fleet :xml]) 3. use templates.* functions just as any other Give it a try :) On Sep 2, 1:39 am, Sean Corfield wrote: > On Wed, Sep 1, 2010 at 2:14 PM, Saul Hazledine wr

Re: Duplicate code in c.c.properties and c.c.java-utils

2010-10-02 Thread B Smith-Mannschott
On Sat, Oct 2, 2010 at 21:29, B Smith-Mannschott wrote: > > > On Sat, Oct 2, 2010 at 19:45, Stuart Sierra > wrote: > >> On Oct 2, 2:53 am, Shantanu Kumar wrote: >> > I found that the function read-properties is implemented in both >> > c.c.properties and c.c.java-utils -- is this intentional? Wh

Re: Duplicate code in c.c.properties and c.c.java-utils

2010-10-02 Thread B Smith-Mannschott
On Sat, Oct 2, 2010 at 19:45, Stuart Sierra wrote: > On Oct 2, 2:53 am, Shantanu Kumar wrote: > > I found that the function read-properties is implemented in both > > c.c.properties and c.c.java-utils -- is this intentional? Which one is > > recommended, and why? > > c.c.properties is deprecated

Re: Clojure Database experience reports wanted

2010-10-02 Thread David Nolen
On Sat, Oct 2, 2010 at 2:01 PM, Mark Engelberg wrote: > So I'm thinking it's time to move to another database. Doing a > websearch, I couldn't really figure out which options are "ready for > prime-time" with respect to Clojure. For example, searching on > clojure and couchdb turned up a handful

Re: documentation request: please add examples for "use"

2010-10-02 Thread Sean Corfield
On Sat, Oct 2, 2010 at 7:32 AM, Albert Cardona wrote: > I'd like to understand how to properly use "use" with additional > options, such as :only. This doesn't directly address your request but it raised a question in my mind: Should the examples go in the core documentation or is ClojureDocs a

Re: Clojure Database experience reports wanted

2010-10-02 Thread Mark Engelberg
I should add that my needs are fairly simple as databases go. This is not for a webserver. I just need to locally store data which is too big to fit in memory, and store it in a durable fashion. Typically, my data is a uniquely identifying string combined with a number of numeric attributes. I

Clojure Database experience reports wanted

2010-10-02 Thread Mark Engelberg
I've been using clojure with mongodb for a while now. I found that using a nosql database system was very freeing and pleasurable, compared to the python/sqlite combination I'd used before. However, I'm starting to bump up against some limitations: 1. On my 32-bit Windows machine, mongodb is qui

Re: Duplicate code in c.c.properties and c.c.java-utils

2010-10-02 Thread Stuart Sierra
On Oct 2, 2:53 am, Shantanu Kumar wrote: > I found that the function read-properties is implemented in both > c.c.properties and c.c.java-utils -- is this intentional? Which one is > recommended, and why? c.c.properties is deprecated in version 1.2.0, replaced by functions in c.c.java-utils. It'

Re: Trying to understand clojure evaluation

2010-10-02 Thread swheeler
Andy Thanks. Makes complete sense when explained! Thanks for the speedy reply. On Oct 2, 6:27 pm, Andy Fingerhut wrote: > user> (def a ["a" "a" "a" "b" "c" "c" "a"]) > #'user/a > user> (pack a) > (("a" "a" "a") ("b") ("c" "c") ("a")) > > Now calling (map f (pack a)) will cause the function you

Re: Trying to understand clojure evaluation

2010-10-02 Thread Andy Fingerhut
user> (def a ["a" "a" "a" "b" "c" "c" "a"]) #'user/a user> (pack a) (("a" "a" "a") ("b") ("c" "c") ("a")) Now calling (map f (pack a)) will cause the function you give as the first argument of map to be called with each of the elements of the collection (pack a) in turn. Those elements are,

Re: documentation request: please add examples for "use"

2010-10-02 Thread Albert Cardona
I just realized the second paste was that of use, not of refer: user=> (doc refer) - clojure.core/refer ([ns-sym & filters]) refers to all public vars of ns, subject to filters. filters can include at most one each of: :exclude list-of-symbols :only list-of-symbols

Trying to understand clojure evaluation

2010-10-02 Thread swheeler
Hi I'm new to Clojure so thought that I would work through some basic examples and decided upon 99 problems (http://aperiodic.net/phil/scala/ s-99/). So far I have got as far as #11 and have become a bit confused as to why my initial solution does not work. My test for this problem is (deftest e

Trying to understand clojure evaluation

2010-10-02 Thread swheeler
Hi I'm new to Clojure so thought that I would work through some basic examples and decided upon the 99 problems (http://aperiodic.net/phil/ scala/s-99/) I have got as far as #11. My test for this is ;p11 (deftest encodemodified-should-return-list-with-counts-when-more-than- one (is (= '((3,"a

documentation request: please add examples for "use"

2010-10-02 Thread Albert Cardona
Hi, I'd like to understand how to properly use "use" with additional options, such as :only. The current documentation for use says: => (doc use) - clojure.core/use ([& args]) Like 'require, but also refers to each lib's namespace using clojure.core/refer. Use :use in

Re: relational data aggregation language

2010-10-02 Thread Saul Hazledine
On Oct 2, 2:55 am, Ross Gayler wrote: > I am looking at the possibility of finding/building a declarative data > aggregation language operating on a small relational representation. > Each query identifies a set of rows satisfying some relational > predicate and calculates some aggregate function

Re: Changing keys in a map

2010-10-02 Thread Baishampayan Ghose
>> Sean, Sean...I was just making fun of your signature. :) > > Phew! Just checking... > > (I'm on some lists where the response to similar questions has been > "You want me to do your homework?"...) The Clojure community is certainly not one of those. Regards, BG -- Baishampayan Ghose b.ghose