Re: ANN: Tom Faulhaber: "Lisp, Functional Programming, and the State of Flow" video available

2011-01-04 Thread Sean Corfield
On Mon, Jan 3, 2011 at 11:44 PM, Paul Mooser wrote: > Thanks for posting these for those of us that were not able to make it > to the conj! +1 I'm loving that I can watch these on my iPhone! -- Sean A Corfield -- (904) 302-SEAN Railo Technologies, Inc. -- http://getrailo.com/ An Architect's Vi

Re: Loading JNI

2011-01-04 Thread George Jahad
> At this point I have ugly looking Clojure code that looks as >Java-like as possible, so that I'm doing the exact same thing in the >exact same order as I do in a Java example, but I get exceptions when >I do it in Clojure. if they are short enough, post both the working java and broken clojure

Re: Knuth's literate programming "tangle" function in Clojure

2011-01-04 Thread Tim Daly
The new version of Clojure in Small Pieces is up at: http://daly.axiom-developer.org/clojure.pdf http://daly.axiom-developer.org/clojure.pamphlet http://daly.axiom-developer.org/clojure.sty This version of the literate document contains a complete, working system. The steps for building it are

Re: Funding 2011?

2011-01-04 Thread Jon Seltzer
Why not update the funding from simple donation to a purchase of clojure/core software like a refined version of the eclipse plugin or some other incentive based approach? I think I understand why rich might find 'donation' approach a bit uncomfortable. On Jan 4, 2:24 pm, Mark Engelberg wrote: >

Re: #clojure in 2010

2011-01-04 Thread Miki
If someone is interested in some other statistics, please let me know and I'll try to make it happen. -- 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 m

Re: map destructuring with defaults

2011-01-04 Thread Chas Emerick
The :as option in destructuring forms binds the original value being destructured -- no "entire" map is being formed in the background ahead of time. So, build that "entire" map as you require; e.g.: => (let [{:keys [a] :as b} (merge {:b 3} {:a 4})] b) {:a 4, :b 3} - Chas On Jan 4, 2011, at 7:

Re: Quick question about str/join....

2011-01-04 Thread John Szakmeister
On Tue, Jan 4, 2011 at 8:29 PM, MiltondSilva wrote: > Again from inspection it seems the way it's implemented in contrib, > the code makes one pass. With (apply str (interpose sep coll)) you > make two, one to interpose the other to convert (seq->str). Well, interpose does return a lazy sequence,

Re: Quick question about str/join....

2011-01-04 Thread MiltondSilva
Again from inspection it seems the way it's implemented in contrib, the code makes one pass. With (apply str (interpose sep coll)) you make two, one to interpose the other to convert (seq->str). On Jan 5, 1:08 am, John Szakmeister wrote: > On Tue, Jan 4, 2011 at 8:01 PM, MiltondSilva wrote: > >

Re: Quick question about str/join....

2011-01-04 Thread John Szakmeister
On Tue, Jan 4, 2011 at 8:22 PM, Stuart Halloway wrote: > Several people had hands in that code, and the final result is all about > perf. Do not treat string.clj as a reference for idiomatic code. :-) That's what I suspected. :-) Thanks Stuart! -John -- You received this message because you

Re: Quick question about str/join....

2011-01-04 Thread Stuart Halloway
Several people had hands in that code, and the final result is all about perf. Do not treat string.clj as a reference for idiomatic code. :-) Stu > On Tue, Jan 4, 2011 at 8:01 PM, MiltondSilva wrote: >> I believe it's for performance reasons. Strings in java are immutable, >> so they use the St

Re: Quick question about str/join....

2011-01-04 Thread John Szakmeister
On Tue, Jan 4, 2011 at 8:01 PM, MiltondSilva wrote: > I believe it's for performance reasons. Strings in java are immutable, > so they use the StringBuilder(mutable) to achieve better performance. But str use StringBuilder too. Maybe it was better to avoid the extra call overhead? -John > On

Re: Quick question about str/join....

2011-01-04 Thread MiltondSilva
I believe it's for performance reasons. Strings in java are immutable, so they use the StringBuilder(mutable) to achieve better performance. On Jan 5, 12:18 am, John Szakmeister wrote: > I was looking at a commit that updated a docstring for str/join, which > enticed me to take a look at the impl

map destructuring with defaults

2011-01-04 Thread Seth
Is there any way to get the entire map when destructuring plus the defaults? (let [{:keys [a] :or {a 4} :as b} {:b 3}] b) returns {:b 3} but i would like it to return {:b 3 :a 4} -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group,

Re: Having trouble with "reader.tasklist" class from Programming Clojure

2011-01-04 Thread Randy J. Ray
On 01/04/2011 01:17 PM, Stuart Halloway wrote: Things to try: (1) Is the directory that contains "reader" on your classpath? (2) Does it run with the provided script/repl.sh or script\repl.bat scripts? When I ran it, I was in the directory that contains "reader" (and "classes"), and "." was

Quick question about str/join....

2011-01-04 Thread John Szakmeister
I was looking at a commit that updated a docstring for str/join, which enticed me to take a look at the implementation. I was kind of surprised to see that it wasn't: (apply str (interpose sep coll)) I'm just curious about the developer was thinking. Here's a link to the code:

Re: java 7

2011-01-04 Thread Ken Wesson
On Tue, Jan 4, 2011 at 5:21 PM, Devrim Baris Acar wrote: > Hi list, > I wonder what would Clojure exploit from Java 7 . > Any ideas? If Java 7 ever actually arrives, that question could become interesting. But I'm not holding my breath. :) -- You received this message because you are subscribed

java 7

2011-01-04 Thread Devrim Baris Acar
Hi list, I wonder what would Clojure exploit from Java 7 . Any ideas? Devrim Baris Acar -- 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 - ple

Re: Funding 2011?

2011-01-04 Thread MiltondSilva
Why must many pay for some? I'm certain that of all the contributions you had, there are only an handful of people who don't understand what a donation is. So with that in mind what is the rational for this kind of action? I mean, you never said that if we donated you would implement our ideas rig

Re: Funding 2011?

2011-01-04 Thread Mark Engelberg
On Tue, Jan 4, 2011 at 1:23 PM, Luke VanderHart wrote: > For what it's worth, I am really glad of the position Rich is taking > on a roadmap and Clojure's future development. I would much rather > Clojure remained fresh, innovative and agile, and that it continues to > offer unexpected, delightful

Re: Knuth's literate programming "tangle" function in Clojure

2011-01-04 Thread Tim Daly
I looked at org-mode. Note that 'literate programming' involves writing literature for other people to read. The executable code is included as a 'reduction to practice' but the emphasis is on describing the ideas. Rich has some powerful ideas that he has reduced to running code. What we need to

Re: Funding 2011?

2011-01-04 Thread Luke VanderHart
For what it's worth, I am really glad of the position Rich is taking on a roadmap and Clojure's future development. I would much rather Clojure remained fresh, innovative and agile, and that it continues to offer unexpected, delightful new features and abilities. It can't really do that if Rich has

Re: Having trouble with "reader.tasklist" class from Programming Clojure

2011-01-04 Thread Stuart Halloway
Things to try: (1) Is the directory that contains "reader" on your classpath? (2) Does it run with the provided script/repl.sh or script\repl.bat scripts? Stu > Hello everyone. > > I am just starting out in Clojure by working through Programming Clojure. I > have run into a snag, though, on t

Re: c.c.sql 1.3.0-SNAPSHOT and lesser JDBC drivers

2011-01-04 Thread Shantanu Kumar
Sorry for the noise - please ignore the previous message. The test is now failing in 1.2.0 too rather spectacularly. MS-Excel ODBC seems to be a gross misfit for the JDBC-ODBC bridge driver, especially for "optional" features as per the JDBC spec. Shantanu On Jan 4, 11:38 am, Shantanu Kumar wrot

Re: Infinite recursion bug in clojure.lang.Keyword.intern()?

2011-01-04 Thread Eric Tschetter
Great! No clue what I was looking at then. --Eric On Tue, Jan 4, 2011 at 5:53 AM, Rich Hickey wrote: > > On Jan 3, 2011, at 5:43 PM, Eric Tschetter wrote: > >> I started getting StackOverflow exceptions today around >> clojure.lang.Keyword (I'm running clojure 1.2.0, but the code doesn't >> se

Re: Loading JNI

2011-01-04 Thread ax2groin
Thanks for the suggestions. I'll look at the JNA soon to see if that fits. But I already have working examples of Java code which uses the JNI wrapper classes (generated by swig - by someone else). I'm not making direct JNI calls myself, but trying to instantiate the Java classes that are a part of

#clojure in 2010

2011-01-04 Thread Miki
Greetings, I ran some statistics on #clojure logs from 2010, you can view the results at http://clojurewise.blogspot.com/2011/01/clojure-in-2010.html The code used to generate the statistics (if they can be called that) can be found at https://bitbucket.org/tebeka/clj2010/src/tip/src/clj2010.clj

Re: Knuth's literate programming "tangle" function in Clojure

2011-01-04 Thread Tim Daly
I thought it was also but it appears to be used in place of string, which I thought was odd. I'll look again. Thanks for the answers. On 1/4/2011 11:38 AM, Robert McIntyre wrote: the #"" is a reader macro for regexes. hope that helps, --Robert McIntyre On Tue, Jan 4, 2011 at 11:18 AM, Tim Dal

Re: Funding 2011?

2011-01-04 Thread Rich Hickey
On Jan 4, 2011, at 11:10 AM, Daniel Werner wrote: Hi Rich, On 4 January 2011 06:31, Rich Hickey wrote: I was going to continue the funding effort, but have decided against it for the reasons given here: Regarding the "entitlement [...] as to what I do with my time", I believe I know of o

Re: Knuth's literate programming "tangle" function in Clojure

2011-01-04 Thread Robert McIntyre
the #"" is a reader macro for regexes. hope that helps, --Robert McIntyre On Tue, Jan 4, 2011 at 11:18 AM, Tim Daly wrote: >  The latest version of clojure.pamphlet can build Clojure > directly from the book. It dynamically builds the source > tree from the book, runs tests, creates the pdf, and

Re: Knuth's literate programming "tangle" function in Clojure

2011-01-04 Thread Jeff Valk
On Tuesday, January 04, 2011 at 10:18 am, Tim Daly wrote: > I've run into a syntax for strings that I don't understand. > The string #"some string" is used in the test files. The > documentation on the reader does not list this as a possible > input case. What does it mean? It's reader syntax for

Re: Knuth's literate programming "tangle" function in Clojure

2011-01-04 Thread Tim Daly
The latest version of clojure.pamphlet can build Clojure directly from the book. It dynamically builds the source tree from the book, runs tests, creates the pdf, and starts the REPL. At least in theory. I am stuck with running a couple tests. The only real change I've made to the sources is to

Re: Funding 2011?

2011-01-04 Thread Daniel Werner
Hi Rich, On 4 January 2011 06:31, Rich Hickey wrote: > I was going to continue the funding effort, but have decided against it for > the reasons given here: Regarding the "entitlement [...] as to what I do with my time", I believe I know of one of the discussions that lead you to this conclusion

Re: Has Clojure Fixed the Social Problem that LISP is Too Powerful?

2011-01-04 Thread André Thieme
Am 03.01.2011 21:45, schrieb pavelludiq: On Jan 3, 11:24 am, Jozef Wagner wrote: Some of my arguments are: - Clojure has no custom reader macros, makes it easier to read others code - Protocols and the way clojure handles data helps to explicitly formulate specifications and designs - Fresh sy

Re: Knuth's literate programming "tangle" function in Clojure

2011-01-04 Thread Hubert Iwaniuk
I would say start here: http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-clojure.html Cheers, Hubert On Tue, Jan 4, 2011 at 4:12 PM, Robert McIntyre wrote: > Just discovered org-mode myself --- does anyone know of guide to using > it with clojure for a total newbie? > > sincerely, >

Re: Funding 2011?

2011-01-04 Thread Laurent PETIT
2011/1/4 Rich Hickey > > On Nov 28, 2010, at 9:07 PM, Jeremy Dunck wrote: > > In Dec 2009, Rich asked the community to step up and support core >> development -- and the community came through. >> >> I'm interested in clojure, but not using it professionally yet. I was >> wondering if funding f

Re: Funding 2011?

2011-01-04 Thread Mike Meyer
On Tue, 4 Jan 2011 09:31:13 -0500 Rich Hickey wrote: > On Nov 28, 2010, at 9:07 PM, Jeremy Dunck wrote: > > In Dec 2009, Rich asked the community to step up and support core > > development -- and the community came through. > > I'm interested in clojure, but not using it professionally yet. I wa

Re: Knuth's literate programming "tangle" function in Clojure

2011-01-04 Thread Robert McIntyre
Just discovered org-mode myself --- does anyone know of guide to using it with clojure for a total newbie? sincerely, --Robert McIntyre On Tue, Jan 4, 2011 at 9:57 AM, Hubert Iwaniuk wrote: > Hi Seth, > > Yes I did play with org-mode + babel for clojure. > It works great :-) > Just make sure you

Re: Knuth's literate programming "tangle" function in Clojure

2011-01-04 Thread Hubert Iwaniuk
Hi Seth, Yes I did play with org-mode + babel for clojure. It works great :-) Just make sure you are using latest and greatest of org-mode. Cheers, Hubert. On Tue, Jan 4, 2011 at 3:34 PM, Seth wrote: > have you guys checked out org-mode + babel for emacs? This would be an > excellent place to

Re: Funding 2011?

2011-01-04 Thread Baishampayan Ghose
> I was going to continue the funding effort, but have decided against it for > the reasons given here: > > http://clojure.org/funding > > Many thanks to those who participated, I donated in 2010 and was going to donate for 2011 in a week's time. I never had any sense of entitlement -- for a lot o

Re: Knuth's literate programming "tangle" function in Clojure

2011-01-04 Thread Seth
have you guys checked out org-mode + babel for emacs? This would be an excellent place to start to do literate programming. Interesting ideas ... maybe i will try this in my own code ... -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this

Re: Funding 2011?

2011-01-04 Thread Rich Hickey
On Nov 28, 2010, at 9:07 PM, Jeremy Dunck wrote: In Dec 2009, Rich asked the community to step up and support core development -- and the community came through. I'm interested in clojure, but not using it professionally yet. I was wondering if funding for 2011 has already been worked out, or

Re: Infinite recursion bug in clojure.lang.Keyword.intern()?

2011-01-04 Thread Rich Hickey
On Jan 3, 2011, at 5:43 PM, Eric Tschetter wrote: I started getting StackOverflow exceptions today around clojure.lang.Keyword (I'm running clojure 1.2.0, but the code doesn't seem to be different in github master). It is different in master, this was already fixed. https://github.com/clojur

Re: Insertion - The clojure way [HTDP]

2011-01-04 Thread Eli Barzilay
> In other words, this kind of stack-consuming implementation would be a > perfectly practical, useful implementation in Racket Even more than that -- in some cases the simple non-TCO version can be faster than the usual TCO + reverse-the-accumulator thing. Here's a random example: Welcome to Ra

Having trouble with "reader.tasklist" class from Programming Clojure

2011-01-04 Thread Randy J. Ray
Hello everyone. I am just starting out in Clojure by working through Programming Clojure. I have run into a snag, though, on the reader/tasklist.clj example in chapter 3. I am getting the following error consistently: user=> (compile 'reader.tasklist) java.lang.ClassNotFoundException: reader.

Re: Has Clojure Fixed the Social Problem that LISP is Too Powerful?

2011-01-04 Thread Shantanu Kumar
On Jan 3, 2:24 pm, Jozef Wagner wrote: > Our team works on big EU projects, where there are many technical partners > from different countries cooperating. Most of our work is about choosing a > good technology and then about customizing and integrating it into our > system. Usually SOA, Enterpr

Re: Clojure Newbie trying to represent electrical circuit

2011-01-04 Thread Saul Hazledine
Hello Michael, On Jan 3, 7:40 pm, MS <5lvqbw...@sneakemail.com> wrote: > Hi, I'm new to clojure (though I've messed around in scheme a little) > and I'm trying to represent an electrical circuit with "pins" and > "nets" (ie in graph terminology vertices and edges). > > I'd like to represent the ne