On Mon, Nov 15, 2010 at 5:31 PM, Ken Wesson wrote:
> Eh. I'd heard first and rest had replaced next. No?
rest and next do different things:
rest - Returns a possibly empty seq of the items after the first.
Calls seq on its argument.
next - Returns a seq of the items after the first. Calls seq o
On Mon, Nov 15, 2010 at 10:26 AM, Alan wrote:
> The one that bugs me is complement - such a long name for a commonly-
> useful function. I often wind up defining ! as an alias for
> complement, but maybe others will think that is poor style.
Possibly because bang functions indicate "Here be drago
Thanx Stuart. That gives me the guidance I was looking for.
On Fri, Nov 12, 2010 at 7:10 AM, Stuart Sierra
wrote:
> I think it depends. If it's a build/deployment-related issue, probably
> the alpha releases. If it looks like a bug, try the latest Clojure
> source from github and report the Git c
On Wed, Nov 10, 2010 at 11:37 AM, Gary Poster wrote:
> In my opinion, its promise is that it reverses anything that supports the
> minimal seq interface. Its implementation can be pluggable via protocols
Hmm, don't protocols have some overhead? Switching an implementation
from a direct, possibl
On Wed, Nov 10, 2010 at 9:35 AM, Daniel Bell wrote:
>
> I'm a newb to both SQL and Clojure, and after reading this post
> (
> http://groups.google.com/group/clojure/browse_thread/thread/718fa1b725389639/4c4d7ed1492e082b?lnk=gst&q=sql+parameterized#4c4d7ed1492e082b
> ) I was curious as to exactly
On Mon, Nov 8, 2010 at 5:45 AM, Stuart Sierra
wrote:
> Not sure I understand the question. If you're designing a library,
> you probably want to test on both.
I meant more from the point of view of providing feedback to the
Clojure team. If someone is comfortable developing against a fairly
blee
Thanx Stuart!
As a general point of protocol, would the Clojure team prefer folks
test against the Alpha builds or the (master) SNAPSHOT builds?
Sean
On Sun, Nov 7, 2010 at 6:50 AM, Stuart Sierra
wrote:
> http://build.clojure.org/releases/org/clojure/contrib/
--
You received this message beca
Thanx!
Confirmed that my code now runs perfectly on 1.3.0 (master) SNAPSHOT.
On Sat, Nov 6, 2010 at 6:33 AM, Stuart Halloway
wrote:
> This is fixed now.
>
> Stu
>
>> Just FYI, using clojure 1.3.0-master-SNAPSHOT and contrib/standalone
>> 1.3.0-SNAPSHOT, I get the following error when I (:use
>>
On Sat, Nov 6, 2010 at 5:59 AM, iko...@gmail.com wrote:
> You'll learn Python quickly enough anyhow. Python is not very hard.
I generally pick up new programming languages pretty quickly. I
started my (working) life as a compiler writer and spent three years
prior doing research into functional l
On Fri, Nov 5, 2010 at 5:53 PM, Stuart Halloway
wrote:
> Clojure 1.3 Alpha 2 is now available at
>
> http://clojure.org/downloads
Thanx.
Will contrib get a 1.3.0-alpha3 build?
--
Sean A Corfield -- (904) 302-SEAN
Railo Technologies, Inc. -- http://getrailo.com/
An Architect's View -- http://cor
On Fri, Nov 5, 2010 at 2:33 PM, Mike Meyer
wrote:
> This affect only works if the languages are sufficiently different to
> have different "obvious" solutions for a large number of problems.
> This is why people recommend learning a LISP even if you'll never use
> it - it will expand the way you l
On Fri, Nov 5, 2010 at 12:41 PM, Michael Ossareh wrote:
> I've regularly found that the multi-disciplinarian programmer is far more
> adept at solving issues in a creative manner than the "I've a skilled hammer
> and I'll wield it in the direction of any nail"-mono-linguistic programmer.
> Perhaps
On Wed, Nov 3, 2010 at 8:51 PM, Mike Meyer
wrote:
>> Solution: don't have monolingual programmers on your team :)
> What, we shouldn't hire Americans? :-)
Normally that joke is aimed at Brits like me :)
> That only helps if everyone actually knows all the languages involved
Well, smart people p
On Wed, Nov 3, 2010 at 3:31 PM, Mike Meyer
wrote:
> We're facing that now, and with a mono-lingual system, you know
> everyone can contribute to any part of the project. If different parts
> are in different languages, then people working in one area won't
> necessarily be able to help with other
Another possibility is to have something online, based on
registration, that let's people write a little bit about themselves
and offers tags or some such so attendees can find interesting /
similar (or different!) people to meet. I've used such networking apps
at a couple of conferences but I don'
On Wed, Nov 3, 2010 at 10:59 AM, wrote:
> This was/is one of the original selling points and philosophies of Rails - a
> monolingual system should mean less context switching, less glue code for
> things to talk to each other, fewer bugs and mistakes stemming from
> uniformity of language, and
On Wed, Nov 3, 2010 at 8:51 AM, Luke VanderHart
wrote:
> I have nothing but respect for Rails, and I look forward to the day
> when Clojure has a comparable system.
I sort of have to ask "why?" - what's wrong with using Rails on JRuby
for the front end and Clojure for the model?
Why are folks so
On Tue, Nov 2, 2010 at 7:26 PM, wrote:
> Doing the reverse is non sense (choosing a framework based on some hyped
> reviews and then use for every need).
...
> We cannot rewrite the whole universe in Clojure in one year. That's a fact.
> It's improving but will take some time to cover a number of
On Tue, Nov 2, 2010 at 7:35 PM, box wrote:
> sorry, i wrote too soon.
>
> (Math/abs (- Long/MIN_VALUE 1))
> java.lang.IllegalArgumentException: No matching method found: abs
> (NO_SOURCE_FILE:0)
On 1.3.0:
user=> (Math/abs (- Long/MIN_VALUE 1))
ArithmeticException integer overflow
clojure.lang.Nu
On Tue, Nov 2, 2010 at 3:22 PM, box wrote:
> Math/abs doesn't always return positive numbers. example:
Have you tried this on 1.3.0-master-SNAPSHOT?
user=> (def min-int -2147483648)
#'user/min-int
user=> (Math/abs min-int)
2147483648
user=> (def min-int+1 (+ 1 min-int))
#'user/min-int+1
user=> m
This Q came up on the Leiningen list but I wanted to share my answer
on the larger Clojure group to get feedback from a bigger pool...
On Mon, Nov 1, 2010 at 8:40 PM, Shantanu Kumar wrote:
> There are some resource files (e.g. dbconfig.properties) I need to
> include in code so that they are on t
On Sat, Oct 30, 2010 at 7:38 PM, Alex Miller wrote:
> Some recent changes I've already made:
> - switched all of the old richhickey github references to clojure
Yay!
> I'm particularly interested in:
> - new user groups or suggestions for the community page
I'm curious - is there any rationale
Just FYI, using clojure 1.3.0-master-SNAPSHOT and contrib/standalone
1.3.0-SNAPSHOT, I get the following error when I (:use
[clojure.contrib.sql]):
Exception in thread "main" java.lang.RuntimeException:
java.lang.NoSuchMethodError:
clojure.lang.Symbol.create(Ljava/lang/String;Ljava/lang/String;)Lc
On Fri, Oct 29, 2010 at 4:26 PM, Terrance Davis
wrote:
> Nice pics. I am incredibly jealous of everyone that had the chance to
> attend.
Me too! Although a friend of mine attended and got me a T shirt! (thanx Roger!)
Hopefully next year's conj will get on the schedule early enough that
I can avo
On Tue, Oct 19, 2010 at 10:53 PM, Chas Emerick wrote:
> I suggested in the channel sometime last month that a "Lodge your CA
> here" table should be set up at the Conj. Anyone know if that's a go
> or not? IMO, no one should leave on Saturday without being settled in
> this department.
I won't
On Tue, Oct 19, 2010 at 6:37 PM, Brent Millare wrote:
> Just wondering what are the plans for clojure.java.*
>
> It used to be in http://richhickey.github.com/clojure/
>
> but now that we are using http://clojure.github.com/clojure
> clojure.java.* is no longer listed.
Looks like a bunch of names
On Tue, Oct 19, 2010 at 4:01 PM, Mike Meyer
wrote:
> On Tue, 19 Oct 2010 15:51:17 -0700 (PDT)
> Mibu wrote:
>> The greatest impediment for me is having to sign a contract to
>> participate in an open source project. I understand Rich Hickey and
>> most of you guys live in the litigious US and hav
Using the latest 1.3.0-master-SNAPSHOT:
user=> (time (let [a (int 3) b (int 5)] (dotimes [_ 100] (== a b
"Elapsed time: 3.355 msecs"
nil
user=> (time (let [a (int 3) b (int 5)] (dotimes [_ 100] (= a b
"Elapsed time: 3.884 msecs"
nil
Yay!
On Mon, Oct 18, 2010 at 2:40 PM, Jürgen Hö
On Wed, Oct 6, 2010 at 12:50 PM, David Sletten wrote:
> I have also incorporated some suggestions made in the comments at the site
> (thanks Sean, matti, and tebeka) without asking permission. Presumably these
> readers added their thoughts for the purpose of improving the examples.
I consider
On Thu, Oct 7, 2010 at 7:42 PM, Jarl Haggerty wrote:
> 1. How do I get leiningen to use 1.3 when I type lein repl, right now
> I have to compile a jar and execute it if I want to use the 1.3
> library.
Specify these dependencies:
:dependencies
[[org.clojure/clojure "1.3.0-master-SNAPSHOT"
2010/10/7 Cédric Pineau :
> As for Flash, I've never met such thing in my everyday java world, but it's
> a nice idea.
It's pretty standard in web frameworks. I see it in nearly every MVC
framework in CFML and Grails / Rails do it too - as well as several
Java web frameworks.
--
Sean A Corfield -
FWIW, I was seeing this on Snow Leopard with Java 6 too earlier today
(my desktop is 10.6, my laptop is 10.5).
On Tue, Oct 5, 2010 at 9:13 PM, Adrian Cuthbertson
wrote:
>> Just fixed this with some help from Hugo Duncan; best guess is it's a
>> weird Mac encoding issue. Should be clear now though
On Tue, Oct 5, 2010 at 8:42 PM, Sean Corfield wrote:
>> I've heard Mac people say good
>> things about http://emacsformacosx.com
OK, so I installed that and it doesn't have ELPA so I did the
copy'n'paste install per the site.
How do I install / use your upd
On Tue, Oct 5, 2010 at 8:45 PM, Sean Corfield wrote:
> OK but that really doesn't explain what I need to do... I think some
> critical step is missing...?
Here's my exact steps:
I renamed my existing lein script to lein-stable. I deleted my local
leiningen maven repo folde
On Tue, Oct 5, 2010 at 8:24 PM, Phil Hagelberg wrote:
> lein install is not part of the process; not sure where that's coming
> from. It's necessary to distinguish between bin/lein from within the
> checkout and older versions of lein that you may have installed
> previously (referred to in the do
On Tue, Oct 5, 2010 at 8:26 PM, Phil Hagelberg wrote:
> That sounds like the bug that I fixed; if you upgrade to
> http://github.com/technomancy/package.el it should take care of it.
Yeah, I looked at that but had no idea at all how to "upgrade to" it
(remember: not familiar with the innards of E
On Tue, Oct 5, 2010 at 6:31 PM, Phil Hagelberg wrote:
> If you're running from a checkout a simple "git pull" should suffice. The
> SNAPSHOT versions are really intended to be used that way. I'll clarify in
> the readme.
Cool. FWIW, I did a git clone, lein deps, lein install and it didn't
work un
On Tue, Oct 5, 2010 at 12:51 PM, Phil Hagelberg wrote:
> Do M-x package-list-packages and mark slime-repl with i, then press x.
I installed clojure-mode this way and now when I try to install either
clojure-test or swank-clojure, Emacs complains that clojure-mode-1.7.1
already exists. I don't kno
On Tue, Oct 5, 2010 at 12:46 PM, Phil Hagelberg wrote:
> I just checked in a fix that uses read-line instead; now type hints
> will be propagated.
Thanx Phil. When will the updated snapshot be available? (and lein
self-install will pick that up since I'm on 1.4.0-SNAPSHOT, right?)
--
Sean A Corf
On Tue, Oct 5, 2010 at 10:27 AM, Jason Wolfe wrote:
> Yeah, swank is for use with emacs (or other tools?). Swank+SLIME
> +Emacs is great for writing Clojure, and I would highly recommend it
I installed Aquamacs and got swank etc working but it would be a lot
of muscle memory to retrain since I n
On Tue, Oct 5, 2010 at 9:52 AM, Sean Corfield wrote:
> but when I try lein swank I get exceptions:
>
> Exception in thread "main" java.lang.IllegalArgumentException: Unable
> to resolve classname: ARef, compiling:(inspector.clj:184)
...
> (I'm on lein 1.4.0-SNA
On Mon, Oct 4, 2010 at 11:59 PM, Jason Wolfe wrote:
> user=> (meta ^:foo [])
> nil
Yup, confirmed, that's what I see in lein repl.
> user> (meta ^:foo [])
> {:tag :foo}
If I put it in a file (meta.clj) and lein run meta.clj I get:
{:foo true}
(which I assume is because I'm on Clojure 1.3.0-ma
Thanx Jason. That could well be it. I'll try it in a file (tomorrow)
and report back.
On Mon, Oct 4, 2010 at 11:50 PM, Jason Wolfe wrote:
> Are you using "lein repl"? If so, I suspect that may be your issue;
> at least on some systems, it seems to currently lose type hints:
>
> http://groups.goo
On Mon, Oct 4, 2010 at 5:27 PM, ataggart wrote:
> Not sure, but I suspect 'lein deps' doesn't kill your local maven
> cache, so you might not actually be getting the latest jar off the
> server. cake has a 'cake deps force' precisely to deal with this
> issue.
I nuked my maven repo and ran lein
Further digging seems to indicate aset etc work for int-array types -
but not float-array types?
(let [^ints xii (int-array [1 2 3 4 5])] (amap xii i ret (* (aget xii
i) (aget xii i
(without the hint, it also works but emits various reflection warnings)
On Sun, Oct 3, 2010 at 9:41 PM, Sean
0)
at clojure.lang.Reflector.invokeInstanceMethod(Reflector.java:28)
at leiningen.repl$copy_out_loop.invoke(repl.clj:56)
at leiningen.repl$connect_to_server$fn__823.invoke(repl.clj:74)
at clojure.lang.AFn.run(AFn.java:24)
... 1 more
On Sun, Oct 3, 2010 at 11:32 PM,
On Sun, Oct 3, 2010 at 11:26 PM, ataggart wrote:
> I don't see what you're seeing for the type-hinted version:
...
> Perhaps you need to update your 1.3 install.
Just ran lein deps on the snapshot to get the latest versions and
still see the warnings:
(set! *warn-on-reflection* true)
; true
(def
I'm trying out various examples in The Joy Of Clojure and I'm in
Chapter 12 Performance looking at type hinting.
The authors give this example:
(set! *warn-on-reflection* true)
; true
(defn asum-sq [xs]
(let [dbl (amap xs i ret
(* (aget xs i)
(aget xs i)))]
(a
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
On Thu, Sep 30, 2010 at 11:54 PM, David Sletten wrote:
> 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?"...)
--
Sean A Corfield -- (904) 302-SEAN
Railo Technolo
Excellent! Thanx for this!
On Fri, Oct 1, 2010 at 2:20 PM, Stuart Sierra
wrote:
> Fixes to the build provided by Andreas Brenk, who has just mailed a
> CA.
>
> You can now have a dependency on all modules in clojure-contrib with
> the following dependency targets:
>
> Dependency on single, large
On Thu, Sep 30, 2010 at 12:52 AM, David Sletten wrote:
> Huh?! How many solutions do you want? You're starting to annoy me Sean.
Sorry dude. I think it's really insightful to see lots of different
solutions to small point problems like this when you're learning a
language - particularly when the
On Thu, Sep 30, 2010 at 2:44 PM, Timothy Washington wrote:
> Just in case anyone comes across this, I did get around it. In fig. 2 I was
> trying to run (use-fixtures) twice. One with a :once, and one with :each.
I just tried that and it worked fine for me:
(ns utest)
(use 'clojure.test)
(defn f
On Thu, Sep 30, 2010 at 12:30 AM, Mark Engelberg
wrote:
> Except that if you use .toUpperCase, you have to remember to type hint
> the input. Any time you call a Java method without type hinting, you
> take a significant performance hit. The wrapper function takes care
> of that for you.
Good t
On Thu, Sep 30, 2010 at 12:18 AM, Meikel Brandmeyer wrote:
> (defn to-string-keys
> [m]
> (zipmap (map (comp clojure.string/upper-case name) (keys m)) (vals
> m)))
That's very similar to one of my attempts and... I don't know... I
just don't like it as much. Splitting the map into two streams a
On Thu, Sep 30, 2010 at 12:24 AM, Baishampayan Ghose wrote:
> This also helps in avoiding the contrib dependency.
Good point. Thanx BG.
--
Sean A Corfield -- (904) 302-SEAN
Railo Technologies, Inc. -- http://getrailo.com/
An Architect's View -- http://corfield.org/
"If you're not annoying someb
On Wed, Sep 29, 2010 at 11:53 PM, Baishampayan Ghose wrote:
> (into {} (for [[k v] { :stuff 42 :like 13 :this 7 }]
> [(.toUpperCase (name k)) v]))
(defn- to-struct [r] (into {} (for [[k v] r] [(.toUpperCase (name k)) v]))
That is certainly nicer than most of my attempts, thank you!
An
I have a need to convert maps in the following ways:
Given a map with keyword keys, I need a map with uppercase string keys
- and vice versa.
{ :stuff 42 :like 13 :this 7 } <=> { "STUFF" 42 "LIKE" 13 "THIS" 7 }
I've come up with various functions to do this but so far they all
feel a bit clunky.
On Wed, Sep 29, 2010 at 9:01 PM, HiHeelHottie wrote:
> Thanks for the response. What if you are appending over different
> lines of code? Would it be slightly more efficient to use one
> StringBuilder or not worth the bother.
I'm trying to think what your code would look like that you'd have
mu
On Fri, Sep 24, 2010 at 8:13 AM, Stuart Sierra
wrote:
> The version string in the Clojure build was set incorrectly. It has
> now been restored to "1.3.0-master-SNAPSHOT"
Yup, confirmed. Thanx Stuart.
> If you depend on "-SNAPSHOT" versions, then Maven / Leiningen will
> always give you the lat
On Fri, Sep 24, 2010 at 9:26 AM, Miki wrote:
> The clojure-contrib on Google code still points to the "old"
> richkickey github project. The download jars are for the 1.1 release.
>
> For me, this is one of the top hits in Google - it'll probably confuse
> new users.
On a similar note, I noticed
Thanx Mark. I'll try again today.
On Fri, Sep 24, 2010 at 11:07 PM, Mark Derricutt wrote:
> Looking at the repository now the poms don't seem to include the variable
> reference anymore so if you're still getting that it might be cached
> somewhere?
--
You received this message because you are
FWIW, I pulled both clojure and contrib about an hour ago and still
had the ${clojure.contrib.version} problem in the installed pom files,
even for individual modules (so I just ran a sed script on them to fix
them - which fixes 'complete' / 'parent' too :)
I'm afraid I don't know enough Maven to
I just pulled the latest clojure and contrib and was able to build
them with one little glitch which I suspect is due to something I did
wrong...
Building Clojure seems to install 1.3.0-SNAPSHOT but by default
Contrib seems to expect 1.3.0-master-SNAPSHOT ?
A little bit of experimentation and I r
BTW, to feed changes back to the core/contrib team, what's the
preferred approach? i.e., is the information on these pages
up-to-date:
http://clojure.org/contributing
http://clojure.org/patches
On Thu, Sep 23, 2010 at 5:34 PM, Sean Corfield wrote:
> Thanx. I saw your message but didn
Thanx. I saw your message but didn't look at the patch in detail.
I notice you have 1.3.0-master-SNAPSHOT but when I built Clojure and
mvn install'd it, it created 1.3.0-SNAPSHOT instead...?
On Thu, Sep 23, 2010 at 5:21 PM, Andy Fingerhut
wrote:
> Yep, I got the same thing yesterday.
>
> See my
As of yesterday, I built Clojure and Contrib from source successfully
and was able to run some Clojure programs. That was on my laptop.
Today I tried to do the same thing on my desktop and I'm hitting a
failure in mvn install during the test for monads.clj (if I'm reading
the output of Maven correc
On Thu, Sep 23, 2010 at 10:23 AM, Stuart Halloway
wrote:
> Clojure 1.3 Alpha 1 is now available at
Thank you!
> For maven/leiningen users, your settings to get the beta from
> build.clojure.org/releases are:
> :dependencies [[org.clojure/clojure "1.3.0-alpha1"]
Are there plans to also make al
On Thu, Sep 23, 2010 at 1:40 AM, Andy Fingerhut
wrote:
> OK, one more quick hack I've found -- again, a hack, not a long term
> solution. If you want to create a Leiningen project that uses the latest
> clojure and contrib, read on. I couldn't figure out what to use in
> project.clj unless I ren
On Wed, Sep 22, 2010 at 2:01 PM, Stuart Sierra
wrote:
> The Clojure build doesn't fully support Maven. You need to run this:
>
> ant -lib /path/to/maven-ant-tasks.jar ci-build
OK, good to know. Manually pushing the JAR into the local repo worked
and I was then able to build Clojure contrib ma
12:36 PM, Sean Corfield wrote:
> On Tue, Sep 21, 2010 at 9:58 PM, Sean Corfield wrote:
>> * If I build contrib master against Clojure 1.2.0 (which works), how
>> do I specify the dependencies in lein?
>
> This got answered (by Justin) in another thread so now I'm do
On Tue, Sep 21, 2010 at 9:58 PM, Sean Corfield wrote:
> * If I build contrib master against Clojure 1.2.0 (which works), how
> do I specify the dependencies in lein?
This got answered (by Justin) in another thread so now I'm down to
just this question:
> * How do I successfully
ture-proof that is.
>
> Justin
>
> On Sep 22, 2:02 am, Sean Corfield wrote:
>> On Fri, Aug 20, 2010 at 7:22 AM, Stuart Sierra
>>
>> wrote:
>> > For example, to use the clojure.contrib.macro-utils namespace in your
>> > projects, add a dependency o
On Fri, Aug 20, 2010 at 7:22 AM, Stuart Sierra
wrote:
> For example, to use the clojure.contrib.macro-utils namespace in your
> projects, add a dependency on group "org.clojure.contrib", artifact
> "macro-utils", version "1.3.0-SNAPSHOT".
Having built contrib against clojure 1.2.0 (see my note in
Inspired by Rich asking folks to try 1.3 / master at the Bay Area
meetup last night...
On Thu, Sep 2, 2010 at 2:24 PM, Stuart Sierra
wrote:
> You'll need to adjust the version numbers for the Clojure
> dependencies. These are configured in clojure-contrib/modules/parent/
> pom.xml at the line:
>
The Bay Area Clojure User Group had its 25th meeting last night:
http://www.meetup.com/The-Bay-Area-Clojure-User-Group/
It was a great meeting - with Rich talking about the new primitives
stuff in master / 1.3 and explaining design decisions behind the
language! Awesome stuff!
Big thanx to Amit
On Mon, Sep 20, 2010 at 11:09 AM, Emeka wrote:
> Try this, http://gist.github.com/193550 . Adjust it to your taste.
So I'd say (file-repl "console.txt") and everything typed in and
printed out would be written to that file for the REPL session?
That would be a bit like the .jline-clojure.main.h
That also sounds pretty useful for development. I may try that as an exercise...
This weekend has been a journey through The Joy of Clojure. I read
about 100 pages on Friday evening (easy going), 150 pages on Saturday
(harder going - more complex topics). Today I read another 50 pages,
skipped cha
On Sun, Sep 19, 2010 at 10:24 AM, Stephen C. Gilardi wrote:
> The clojure repl is very customizable. It's possible to add this feature in a
> custom repl to experiment with the idea:
Awesome. I'll see if I can generalize that to keep a longer history
and a nice easy way to view / retrieve past e
OK, this feels like a really dumb question...
I'm playing around in the REPL, I type in a function, I use it and
continue to work on other stuff... I can't remember what the function
looked like and I want to display the source of it again...
I know I can go back through the REPL history but mayb
On Sat, Sep 18, 2010 at 1:12 PM, Eric Lavigne wrote:
> It has been built into a library, so you won't need to implement it.
>
> http://github.com/alienscience/cache-dot-clj
Thanx! I saw this mentioned in another thread recently but didn't make
the connection with the strategy-based caches.
--
Se
On Sat, Sep 18, 2010 at 11:00 AM, Wilson MacGyver wrote:
> Check out http://kotka.de/blog/2010/03/The_Rule_of_Three.html for a very
> flexible implementation of memoiz
Very nice. A good illustration of a lot of Clojure features too,
especially with the detailed follow-up:
http://kotka.de/blog/20
Working in the web dev world, I'm fairly used to systems offering ways
to cache data for a period of time to improve performance - to reduce
database traffic, to reduce complex data manipulation. The pattern is
pretty much always:
if ( thing not in cache ) {
do expensive calculation / data loa
On Thu, Sep 9, 2010 at 5:25 AM, Andrew Gwozdziewycz wrote:
>>> Interesting. I don't see any real difference between macros and C
>>> preprocessor stuff and C++ templates at a conceptual level. I think
> Of course the real difference is that in Lisp macros you are working
> directly on the AST, whe
On Wed, Sep 8, 2010 at 7:28 AM, CuppoJava wrote:
> I found the easiest way to introduce macros is just to introduce them
> as small syntactic sugaring. For example, getting rid of the explicit
> (fn [] ...) for macros like (with-open file ...).
Interesting. I don't see any real difference between
On Wed, Sep 8, 2010 at 10:56 PM, Adrian Cuthbertson
wrote:
> - A personal antipathy towards "bloat" and anything that "just gets
> downloaded" without my fully understanding what it is and why it's
> there.
Yes, this is my main objection to maven and why I've resolutely stuck
with ant and managin
On Wed, Sep 8, 2010 at 1:18 AM, Mark Engelberg wrote:
> I don't know that I'd be flattered by that comparison :)
LOL. Point well taken :)
> If you ever read an article presenting some new algorithm, data
> structure, etc. in an academic journal, the published article will
> certainly contain som
I think Leiningen does a great job of hiding maven. I initially wanted
to avoid Leiningen because of maven and when I was putting together
cfmljure (as a way to introduce Clojure to CFML developers :) I
initially documented the download ZIP, unzip, copy JARs approach but
then I reconsidered and upd
On Wed, Sep 8, 2010 at 2:05 PM, Phil Hagelberg wrote:
> I'm pleased to announce the release of Leiningen 1.3.1.
Thanx Phil!
> * repl task may be used outside the context of a project.
Very useful!
> * Regexes may be used to specify namespaces in :aot list.
Also very useful!
--
Sean A Corfiel
On Tue, Sep 7, 2010 at 11:10 PM, Mark Engelberg
wrote:
> What pre-conditions need to be met by the inputs?
> What invariants are maintained by the function?
> What are the performance guarantees of the function?
And this can't be expressed in a single sentence?
> Many times there are dozens of f
On Tue, Sep 7, 2010 at 8:36 AM, Abraham wrote:
> still i am not getting , i meant to say that , i want to use
> clojure.contrib. libraries , how to make it work with my system . from
> where this lib has to copied and which directory to copy...
> may be lib is clj's files
One word: Leiningen :)
-
On Tue, Sep 7, 2010 at 1:25 AM, Mark Engelberg wrote:
> Docstrings seem designed for fairly terse comments about the nature of
> the function. It's great for providing little hints about how the
> function works to jog one's memory by typing (doc ...) in the REPL, or
> for searching with find-doc
On Sat, Sep 4, 2010 at 10:26 AM, Shantanu Kumar
wrote:
> 2. Enlive, Hiccup, Gulliver, Clj-StringTemplate, Cfmljure etc for web
> template stuff
Since cfmljure got a mention...
Would folks be interested in a ready-to-run Jetty-based download that
ran CFML and Clojure out-of-the-box?
It would be
On Thu, Sep 2, 2010 at 9:33 AM, Sean Allen wrote:
> @stuartholloway
@stuarthalloway
Note the 'a'. With an 'o' it's a British soccer coach :)
--
Sean A Corfield -- (904) 302-SEAN
Railo Technologies, Inc. -- http://getrailo.com/
An Architect's View -- http://corfield.org/
"If you're not annoying
2010/9/3 Christian Guimarães :
> Interested? Add your twitter account bellow.
>
> Cheers.
>
> @csgui (Christian Guimaraes)
@seancorfield (Sean Corfield - caveat: I do more CFML than anything
else with some Scala)
--
Sean A Corfield -- (904) 302-SEAN
Railo Technologie
Dang! Wish I could be there but it clashes with a previous commitment
in Albuquerque (a cat show - seriously!).
Do you have a sense of what level the talks are going to be at? Would
a Clojure n00b get a lot of value out of it or are most of the talks
going to be advanced? (I'd expect the latter s
On Thu, Sep 2, 2010 at 6:29 PM, HB wrote:
> Usually we create some domain entities, map them with Hibernate/
> iBatis.
> I don't know how a Clojure application would be build without objects.
I wonder if watching this talk by Rich Hickey will help?
http://www.infoq.com/presentations/Are-We-There
On Wed, Sep 1, 2010 at 5:41 AM, Remco van 't Veer wrote:
> If you want something old school like CFML you might consider using
> plain JSP and taglibs. These are modeled after CFML and available on
> every web container by default.
FWIW, I've created a small CFML/Clojure bridge so now I can deve
On Wed, Sep 1, 2010 at 9:46 PM, John Fingerhut wrote:
> You can see a brief summary of results comparing
> run time, memory, and code size against "Java 6 -server" here:
> http://shootout.alioth.debian.org/u32/benchmark.php?test=all&lang=clojure&lang2=java
Very interesting. Clojure is faster than
On Wed, Sep 1, 2010 at 8:56 PM, Wilson MacGyver wrote:
> http://en.wikibooks.org/wiki/Clojure_Programming/Tutorials_and_Tips#Invoking_Clojure_from_Java
Awesome! Thank you! I have this working. Just need to tidy up
classpath issues to allow the .clj scripts to be wherever I want. And
then I need t
1801 - 1900 of 1941 matches
Mail list logo