I'd like to add my thanks to Rich Hickey for Clojure as well.
I started doing C/C++ multi-threaded programming back in '97 and have
done some Java, Ruby, and Perl as well. Some time ago my opinion of
Lisp(s) changed and I vowed to learn one someday but just didn't have
the time or drive. Just a
>
> After a sustained period of API stability and minimal bugs reports,
> I'm happy to announce the release of Clojure 1.0!
>
> http://clojure.googlecode.com/files/clojure_1.0.0.zip
>
>
Congratulations!
I made a promise to myself long ago to really learn a Lisp. I've dabbled on
and off but now Cl
Phil,
I love the starter kit and I'm trying an experiment of dropping my old
crufty .emacs in favor of the the starter kit. A few notes of things that
might be useful to add to the tutorial (coming from someone starting from
scratch):
* I needed to do a "M-x load-file /clojure-mode.el" before be
On Fri, May 29, 2009 at 10:12 AM, Phil Hagelberg wrote:
>
> Robert Stehwien writes:
>
> > * I needed to do a "M-x load-file /clojure-mode.el" before being
> able to
> > call "clojure-install"
> >
> > * I needed to add the following to my ~
q clojure-src-root "/Users/res/src")
(eval-after-load 'clojure-mode '(clojure-slime-config))
--Robert
On Fri, May 29, 2009 at 6:07 PM, Phil Hagelberg wrote:
>
> Robert Stehwien writes:
>
> > Yes, Mac OSX 10.5. Run into the same problem on my two macbook pros
&g
>
> > I started from scratch and got the starter kit anew. Now on startup I
> get the
> > following warning in *Messages* (repeated on each startup):
> > --
> > Installing nxml
> > An error has occurred while loading `/Users/res/.emacs.d/init.el':
> > error: Package 'nxml' not available fo
I'm toying around with a file utility library as part of a vow to do all my
"scripting" in clojure so I can learn the language - this is actually my
first attempt at writing anything "real" with clojure. I considered using
memoize to cache file listing but wanted to be able to selectively clear th
Thanks Sean and Meikel.
I tightened up the function a bit as a single function with multiple
arglist:
--
(defn clear-cached-files3
([]
(dosync (alter file-seq-cache empty)))
([& ks]
(dosync (dorun (for [key ks] (alter file-seq-cache dissoc key
@file-seq-cache))
--
>
>
> (dosync (dorun (for [key ks] (alter file-seq-cache dissoc key
>>
>
> You might want to write (dorun (for ...)) as (doseq ...). Since you don't
> use the resulting sequence using for to generate sequence and then using to
> dorun to force it and immediately throw it away is very ugly.
Here is another question on when you would use a multi-method. I want the
mv function to accept a java.io.File or a String for either of the two
parameters and here are the options I came up with:
-(defmulti mv (fn [from to] [(class from) (class to)]))
(defmethod mv [String String] [from to]
On Thu, Oct 8, 2009 at 9:45 AM, Tom Faulhaber wrote:
>
> Check out clojure.contrib.duck-streams/reader and clojure.contrib.duck-
> streams/writer (http://richhickey.github.com/clojure-contrib/duck-
> streams-api.html).
>
> They'll give you a java.io.BufferedReader or a java.io.PrintWriter
> which
Oct 8, 2009 at 8:35 AM, John Harrop wrote:
> On Thu, Oct 8, 2009 at 10:25 AM, Robert Stehwien wrote:
>
>> (defn mv2 [from to]
>> (let [f (if (= (class from) File) from (File. from))
>> t (if (= (class to) File) from (File. to))]
>> (println "transform
Folcon,
Here is a link to a port (not mine) of the scrolling tank in slick to
clojure:
http://github.com/phtrivier/clj-slick-tank
--Robert
On Sat, Oct 10, 2009 at 10:40 AM, Folcon wrote:
>
> I appear to have solved the problem. Actually my main development is
> using clojure box which is a win
#^{:author "Robert Stehwien",
:doc "Clojure regular expression utilities"}
(:require [clojure.contrib.java-utils :as ju])
)
-
This ns has the error below (only difference is removal of line with
:require):
-
(ns com.arcanearcade.clojure.utils.regex-utils
>
> Metadata goes before the symbol, not after it. So:
>
> > (ns com.arcanearcade.clojure.utils.regex-utils
> > #^{:author "Robert Stehwien",
> > :doc "Clojure regular expression utilities"}
> > (:require [clojure.contrib.java-utils
On Sun, Oct 11, 2009 at 8:49 AM, John Harrop wrote:
> It's attempting to attach the metadata to the next following expression. In
> this case all it finds is a close paren.
> => (list #^{:foo 'bar} 'sym)
> (sym)
> => (list #^{:foo 'bar})
> #
>
> I'm not sure how to attach metadata to a namespace,
While doing some scripting and as a learning I put together some file and
regex utilities. Reading though parts of clojure-contrib was a great eye
opener. Still needs some cleanup, doc, and maybe a few more functions. I
could wrap all the java.io.File functions but most are just a thin wrapper;
> While doing some scripting and as a learning I put together some file and
> regex utilities. Reading though parts of clojure-contrib was a great eye
> opener. Still needs some cleanup, doc, and maybe a few more functions. I
> could wrap all the java.io.File functions but most are just a thin w
John,
Excellent "library" I'm pulling this into my utilities functions ... with
proper attribution of course and as long as you don't mind. It is just too
useful to me to not keep around.
--Robert
On Sat, Oct 10, 2009 at 1:54 AM, John Harrop wrote:
> Here is a quickie "library" for abstracti
On Tue, Oct 13, 2009 at 10:38 AM, B Smith-Mannschott
wrote:
>
> On Tue, Oct 13, 2009 at 08:36,
> safsafhwef90hwe09fhewq09hf09weqhgf09qwejhf90
> wrote:
> >
> > If you have to work Remote, why limit yourself to us only? There are
> > developers outside the states you know...
>
> Yes, but if you're
John,
I'm going to grab this one too :)
You make some great stuff!
On Sun, Oct 11, 2009 at 2:35 AM, John Harrop wrote:
> I've implemented a Clojure persistent, immutable priority queue data
> structure (built on a heap, in turn built on a Clojure vector). The
> namespace below exports the heap
On Fri, Oct 16, 2009 at 1:59 PM, Wilson MacGyver wrote:
>
> two more coming.
>
> one is clojure in action, published by manning, written by Amit Rathore
> the other is definitive guide to clojure by Luke VanderHart
> http://www.apress.com/book/view/1430272317
There are two manning books coming o
I'm using the clojure-maven-plugin v1.1 (latest shapshots of clojure and
clojure-contrib) to run a test for an agent that looks like this:
--
(ns com.arcanearcade.clojure.utils.test-timer-agent
(:require [com.arcanearcade.clojure.utils.timer-agent :as ta])
(:use clojure.test))
(deftes
On Fri, Oct 16, 2009 at 11:00 PM, John Harrop wrote:
> On Sat, Oct 17, 2009 at 12:51 AM, Robert Stehwien wrote:
>
>> I'm using the clojure-maven-plugin v1.1 (latest shapshots of clojure and
>> clojure-contrib) to run a test for an agent
>>
>
> ...
>
>
&
>
>
>
>> two more coming.
>>
>> one is clojure in action, published by manning, written by Amit Rathore
>> the other is definitive guide to clojure by Luke VanderHart
>> http://www.apress.com/book/view/1430272317
>
>
> There are two manning books coming out I believe. One by Amit and the
> other b
Hadn't seen it posted here yet:
http://sicpinclojure.com/
--~--~-~--~~~---~--~~
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
On Sat, Oct 24, 2009 at 9:10 PM, John Harrop wrote:
> On Sat, Oct 24, 2009 at 10:19 PM, Robert Stehwien wrote:
>
>> Hadn't seen it posted here yet:
>> http://sicpinclojure.com/
>>
>
> Are they looking for help writing Clojure versions of the Scheme code
>
27 matches
Mail list logo