Re: newbie question regarding maps

2012-09-25 Thread George Oliver
On Monday, September 24, 2012 3:04:42 AM UTC-7, Mond Ray wrote: > > > As you can see the REPL gives me an error stating that the keys must be > Integers. Is that right? Or is my call process faulty? > > I think the problem is that wish-lists is a vector, so you need a key for the vector first

Re: Clojure : a good start for non-programmers?

2012-09-25 Thread Mark Engelberg
The challenge of learning Clojure as a first language is that: 1. Some of the best learning resources for Lisp-like languages are books that use the Scheme dialect of Lisp. If you know what you're doing, you can translate all those ideas to Clojure, but the correspondence might not be so obvious t

Re: clojure.lang.Keyword.hashCode is a hotspot in my app

2012-09-25 Thread Ben Smith-Mannschott
On Tue, Sep 25, 2012 at 1:53 AM, James Hess wrote: > Hi experienced clojure gurus, > According to VisualVM 24% of my time is spent in > clojure.lang.Keyword.hashCode. I'm sure I am doing something wrong (i.e. I'm > not blaming clojure's implementation). Is this an indication that I'm using > keyw

Re: Clojure : a good start for non-programmers?

2012-09-25 Thread Wes Freeman
Yes (definitely not brainfuck), but I would recommend not starting with something with ugly syntax like C, C++, Perl, or PHP (and many others, I'm sure) these days. Something friendlier and dynamic like Clojure is an excellent idea. Two alternatives I'd give a non-programmer are Python and Ruby. C

Re: Clojure : a good start for non-programmers?

2012-09-25 Thread Dennis Haupt
basically anything except brainfuck is a good idea :) Am 26.09.2012 06:45, schrieb Leonardo Borges: > Hi Gregorius! > > I think Clojure is a great way to start to learn to program! Clojure > is a flavour of lisp and so is Scheme - which has been used for > decades to teach programming to MIT unde

Re: Clojure : a good start for non-programmers?

2012-09-25 Thread Leonardo Borges
Hi Gregorius! I think Clojure is a great way to start to learn to program! Clojure is a flavour of lisp and so is Scheme - which has been used for decades to teach programming to MIT undergrads. In terms of resources on learning functional programming I think The Little Lisper is a terrific book:

ANN: Clj-DBCP 0.8.0 (JDBC connection pooling) and Clj-Liquibase 0.4.0 (DB migration)

2012-09-25 Thread Shantanu Kumar
Hi, I am happy to announce the release of two database libraries: 1. Clj-DBCP 0.8.0 for JDBC connection pooling: https://github.com/kumarshantanu/clj-dbcp 2. Clj-Liquibase 0.4.0 for database migration: https://github.com/kumarshantanu/clj-liquibase Both libraries have been significantly enhan

odd behavior with non-greedy quantifiers in ClojureScript regular expressions

2012-09-25 Thread David Goss-Grubbs
I'm just starting with ClojureScript and I've noticed a couple odd behaviors with regular expressions, which I assume are bugs. The first has to do with non-greedy (reluctant) quantifiers. The following regexes work fine: ClojureScript:cljs.user> (re-matches #"a?b?" "a") "a" ClojureScript:cljs.

Transactional memory design rationale

2012-09-25 Thread Warren
Hi, I have two questions about the reasons behind the design of Clojure's software transactional memory (STM): (1) Why is snapshot isolation the default rather than linearizability? For those who don't know, the difference between the two guarantees is that snapshot isolation requires all read

Does Clojure support efficient coroutines?

2012-09-25 Thread Warren
Hi, It seems the JVM doesn't provide any support for coroutines, generators, light-weight threads, or non-reusable continuations. I can't find any mention of coroutines in the docs, so I'm guessing Clojure doesn't have them due to the lack of JVM support. Is that correct? Warren -- You recei

Re: Would you please help in migrating this code from Bishop to Liberator?

2012-09-25 Thread James Henderson
For anyone stumbling upon this question - it was answered on the Liberator Github repository, at https://github.com/clojure-liberator/liberator/issues/6 James On Wednesday, 19 September 2012 14:05:08 UTC+1, Hussein B. wrote: > > Hi, > > I want to migrate this code written in Bishop REST framewo

how do we go about promoting new clojure libraries?

2012-09-25 Thread zcaudate
is there some sort of categorised list/wiki that we can add to for new libraries? -- 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

Clojure : a good start for non-programmers?

2012-09-25 Thread Gregorius R.
Hello Clojurists! I'm a person in middle age (you know, too old to rock'n'roll, to young to die) and would like to programm but starting with functional programming. Regarding this i have some questions: is clojure a good start to learn programming? which (prerfer free online) is a good tut to

newbie question regarding maps

2012-09-25 Thread Mond Ray
I am playing around with maps and using wish lists as a learning tool. I have a list of items in wish lists like this: user=> items [{:name "Item 1", :cost 20.0} {:name "Item 2", :cost 40.0}] user=> wiggle-items [{:name "Wiggle 1", :cost 20.0} {:name "Wiggle 2", :cost 40.0} [:name "Item 3" :cos

50% Discount on the Clojure eXchange NYC - October 1st // Feat. Stuart Sierra and Uncle Bob Martin if you book by September 27th!

2012-09-25 Thread Theo
New Yorkers! Skills Matter is organising its first, annual Clojure eXchange in New York. Join Stuart Sierra, Russ Miles, Paul DeGrandis, Chas Emerick and Uncle Bob Martin for an intensive and highly interactive day on all things Clojure. If you would like to join us at the Ace Hotel THIS MONDA

Re: Clojure Programming is a great book

2012-09-25 Thread Manuel Rotter
> Anyway, is there a dedicated mailing list to discuss this book? > See the homepage: http://www.clojurebook.com/ -- Blog: http://programmablelife.blogspot.com -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clo

clojure.lang.Keyword.hashCode is a hotspot in my app

2012-09-25 Thread James Hess
Hi experienced clojure gurus, According to VisualVM 24% of my time is spent in clojure.lang.Keyword.hashCode. I'm sure I am doing something wrong (i.e. I'm not blaming clojure's implementation). Is this an indication that I'm using keywords too much or something like that? Have other people ran i

Setting up Dev Environment

2012-09-25 Thread desmond
Getting your machine set up to write Clojure is humorously easy. First, the good stuff: $ brew install clojure $ brew install leiningen Then, you'll want to get the VimClojure plugin. This enables syntax highlighting, file type recognition, etc. Assuming you're using Pathogen: $ cd ~/.vim/b

Re: Behavior of (eval) in different namespaces

2012-09-25 Thread Alex Dowad
> > I have to assume you have a def of "a" lying around from previous > experimentation. This isn't valid otherwise. > > --Aaron > Whew... this seemed too crazy to be true, but it makes sense now. False alarm! Thanks! Alex -- You received this message because you are subscribed to the Goo

Re: Behavior of (eval) in different namespaces

2012-09-25 Thread Aaron Cohen
On Tue, Sep 25, 2012 at 4:58 PM, Alex Dowad wrote: > Does anyone know what's going on here? > > user=> (let [a 1] (eval 'a)) > 1 I have to assume you have a def of "a" lying around from previous experimentation. This isn't valid otherwise. --Aaron -- You received this message because you are s

Re: Behavior of (eval) in different namespaces

2012-09-25 Thread Timo Mihaljov
On 25.09.2012 23:58, Alex Dowad wrote: > Does anyone know what's going on here? > > user=> (let [a 1] (eval 'a)) > 1 > user=> (ns another-ns) > nil > another-ns=> (let [a 1] (eval 'a)) > CompilerException java.lang.RuntimeException: Unable to resolve symbol: > a in this context, compiling:(NO_SOUR

Behavior of (eval) in different namespaces

2012-09-25 Thread Alex Dowad
Does anyone know what's going on here? user=> (let [a 1] (eval 'a)) 1 user=> (ns another-ns) nil another-ns=> (let [a 1] (eval 'a)) CompilerException java.lang.RuntimeException: Unable to resolve symbol: a in this context, compiling:(NO_SOURCE_PATH:41) If let-bound locals were treated as symbol

[ANN] Immutant 0.4.0 released

2012-09-25 Thread Jim Crossley
Trying to stick to a bi-monthly release cycle, we announced version 0.4.0 today: http://bit.ly/immutant040 In a nutshell, Immutant is an application server for Clojure. It's an integrated platform built on JBoss AS7 that aims to reduce the inherent accidental complexity in real world applicatio

Re: ANN: 25 September London Clojure Dojo at Thoughtworks

2012-09-25 Thread Bruce Durling
There are still places left for the September Clojure Dojo (tonight!) and the London Clojurians talk on Cascalog and Hadoop at Skills Matter (next Tuesday!). Details below. cheers, Bruce On Wed, Sep 12, 2012 at 3:35 PM, Bruce Durling wrote: > Roll up! Roll up! > > After being hosted by Forward i