Re: Keyboard Input in Applets

2010-06-14 Thread Meikel Brandmeyer
Hi, On Jun 14, 8:55 am, rob levy wrote: > (ns ... >     ... >     (:gen-class >      :extends javax.swing.JApplet >   ???   :implements java.awt.event.KeyListener)) :implements [java.awt.event.KeyListener] Note: vector. > (defn -init [#^JApplet applet] >   ??? addKeyListener ) You probably w

Re: noob questions - Hello world + learning

2010-06-14 Thread nickikt
Hello, I have a some comments (on comments and more :)) First this (comment . ) There are diffrent kind ofs comments. If you just want to note something you can do ; but mabey you want to have a example how to use something in your Code then use (comment ). With "defn" you creat a new f

Re: can not install clojure-test-mode using elpa (package.el)

2010-06-14 Thread B Smith-Mannschott
On Mon, Jun 14, 2010 at 07:16, B Smith-Mannschott wrote: > On Sun, Jun 13, 2010 at 23:26, Phil Hagelberg wrote: >> There are some bugs in package.el that I have fixed in my personal fork but >> have not yet made it upstream yet. Try clearing out .emacs.d/elpa and trying >> again with the version

Re: Colon (:) in comments?

2010-06-14 Thread j-g-faustus
OK. Thanks for the help to both of you. Regards, jf On 13 Jun, 21:27, Meikel Brandmeyer wrote: > Hi, > > Am 13.06.2010 um 19:50 schrieb Heinz N. Gies: > > > comment just is a function that says 'don't evaluate the stuff in here, it > > still needs to be correct clojure code you can either use:

newbie: simple histogram problem

2010-06-14 Thread Todd
I'm attempting to write a simple histogram function: (defn create-histogram [f] (let [words (read-lines f) histo {}] (doall (map (fn [w] (assoc histo w (+1 (get histo w 0 words)) histo)) (create-histogram "./testwords") The input, 'f', is expected

Re: Bug in Clojure. Trouble with App Engine.

2010-06-14 Thread zahardzhan
Thanks. Now it's work fine with array of arguments. On Jun 14, 12:34 am, Meikel Brandmeyer wrote: > Hi, > > Am 12.06.2010 um 06:08 schrieb zahardzhan: > > > When i eval code from Google App Engine SDK clojure throws very > > strange  class cast exception. I put this code into Java class, then > >

Re: newbie: simple histogram problem

2010-06-14 Thread Steve Purcell
On 14 Jun 2010, at 01:14, Todd wrote: > I'm attempting to write a simple histogram function: > > > (defn create-histogram [f] > (let >[words (read-lines f) > histo {}] >(doall > (map >(fn [w] (assoc histo w (+1 (get histo w 0 >words)) >histo)) > > (crea

Re: newbie: simple histogram problem

2010-06-14 Thread Steve Purcell
On 14 Jun 2010, at 12:37, Steve Purcell wrote: > On 14 Jun 2010, at 01:14, Todd wrote: > >> I'm attempting to write a simple histogram function: >> >> >> (defn create-histogram [f] >> (let >> [words (read-lines f) >>histo {}] >> (doall >> (map >> (fn [w] (assoc histo w (+1 (ge

Re: Commercially-supported, polished Clojure development environment

2010-06-14 Thread Laurent PETIT
Hi Chas, I'm interested in being able to consult the detail of the answers (not just the summary view), 'cause I guess there could be interesting stuff in the "free form" parts of it (and the summary page just presents a few of these answers). 2010/6/9 Chas Emerick : > Following the results from

Re: Commercially-supported, polished Clojure development environment

2010-06-14 Thread Antony Blakey
On 14/06/2010, at 9:25 PM, Laurent PETIT wrote: > Hi Chas, > > I'm interested in being able to consult the detail of the answers (not > just the summary view), 'cause I guess there could be interesting > stuff in the "free form" parts of it (and the summary page just > presents a few of these an

Unexpected conj behavior

2010-06-14 Thread Sean Devlin
Okay, I was doing some quick experiments with conj today, and I stumbled across the following behavior. The first step works great. user=> (conj {} [:a 1]) {:a 1} Then I hit some different casting errors: user=> (conj {} (seq [:a 1])) # user=> (conj {} '(:a 1)) # This behavior becomes a pain w

Requesting Feedback on new Relational Mapping lib for Clojure

2010-06-14 Thread Brenton
Hello group. I have been working on a relational mapping library for Clojure named Carte. http://github.com/brentonashworth/carte The current version is what I would consider to be a working prototype and I would love to get feedback from the community before I do much more work on this. The pro

Re: Why does clojure-http stores cookies in a ref instead of an atom

2010-06-14 Thread Peter Schuller
> I'm a clojure newbie trying to understand when to use atoms versus refs. > In clojure-http.resourcefully, if you use the with-cookies macro stores the > cookies in a thread local ref.  Why a ref and not an atom?  My impression is > that refs are for when you need to coordinate changes to more tha

Akamai Purchases Velocitude < Job Opening

2010-06-14 Thread Straszheim, Jeff
This may be of interest to some of you. Recently Akamai has purchased the mobile services company Velocitude and is seeking software engineers in the Cambridge MA area with experience with functional programming. I don't have a direct link to the job requirements description, but if you go to

ClojureCheck 2.0

2010-06-14 Thread Meikel Brandmeyer
Dear fellow Clojurians, I just released ClojureCheck 2.0 into the wild. It is a clojure.test extension that allows to generate input data of a desired structure to test code with random input. It is similar to fact[1] or Haskell's QuickCheck[2]. I wrote a short introductory blog post with a exa

Re: ClojureCheck 2.0

2010-06-14 Thread Quzanti
Useful, but not that sort of thing I'd ever think to look for unless I had read about it. Is there a wiki page somewhere that lists all this little libraries with a one line description? Would be great to just read a list of ideas and check a few out that hadn't thought about before. On Jun 14,

Re: Mac Emacs users: which version do you prefer (Aquamacs, Carbon Emacs, other?)

2010-06-14 Thread Phil Hagelberg
On Sun, Jun 13, 2010 at 8:22 AM, Rob Lachlan wrote: > Probably, but I'm at a loss to figure out exactly what it might be.  I > cleaned emacs off, along with the .emacs.d directory, reinstalled, and > the problem reappeared. I'm not touching it right now since, as I > mentioned, I managed too boots

Re: Why does clojure-http stores cookies in a ref instead of an atom

2010-06-14 Thread Phil Hagelberg
On Fri, Jun 11, 2010 at 8:45 AM, Steve Molitor wrote: > I'm a clojure newbie trying to understand when to use atoms versus refs. > In clojure-http.resourcefully, if you use the with-cookies macro stores the > cookies in a thread local ref.  Why a ref and not an atom?  My impression is > that refs

Re: Unexpected conj behavior

2010-06-14 Thread Stuart Sierra
On Jun 14, 11:06 am, Sean Devlin wrote: > ;Bad > user=> (into {} (partition 2 [:a 1 :b 2 :c 3 :d 4])) This can, of course, be (into {} (map vec (partition 2 [:a 1 :b 2 :c 3 :d 4]))) I think the requirement is that the argument to APersistentMap.conj should implement Associative, which vectors d

Re: Keyboard Input in Applets

2010-06-14 Thread rob levy
Meikel, Thank you! This gives me some ideas I'm going try. I read your blog posts too, great stuff. The new book by Vanderhart & Sierra serves as good documentation of proxy as well. I have not yet come across a good "Java for Clojure Programmers" guide that really explores all the hairy probl

ANN: clojure-maven-plugin 1.3.3

2010-06-14 Thread Mark Derricutt
Hey all, Pushed out a new release of the maven plugin earlier in the week - clojure-maven-plugin 1.3.3 changes: * Changes to clojure:swank * Now generates a temporary .clj file to execute when running swank. * Now uses test dependencies rather than compile dependencies * Changes to na