Re: Overused phrases in the Clojure community

2011-11-15 Thread Ben Smith-Mannschott
On Wed, Nov 16, 2011 at 02:16, thenwithexpandedwingshesteershisflight wrote: > Can we please get bored of saying "idiomatic" and "in particular" > please ? It's quite useful to be able to talk about the-way-of-expressing-this-concept-most-in-keeping-with-established-practice (idiomatic), particul

Re: Overused phrases in the Clojure community

2011-11-15 Thread Ben Smith-Mannschott
On Wed, Nov 16, 2011 at 02:16, thenwithexpandedwingshesteershisflight wrote: > Can we please get bored of saying "idiomatic" and "in particular" > please ? can you think of some more idiomatic way to say "idiomatic", in particular? :P // ben -- You received this message because you are subscri

[no subject]

2011-11-15 Thread Benjamin L. Russell
http://www.ultimateabguide.com/wp-content/themes/default/images/hello.php -- 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 patient

Re: classpath on seesaw????

2011-11-15 Thread Dave Ray
Thanks for the tip Gregg. It looks like I merged badly or something for the 1.2.0 release. The extra examples directory (src/seesaw/examples) isn't present in master, develop, or the 1.2.1 tag. kitchensink.clj is in there too, although I should probably delete it lest someone pick up bad habits. It

Re: classpath on seesaw????

2011-11-15 Thread Gregg Williams
Hello! As a beginning Seesaw user, I had the same trouble. Here is a solution that I just confirmed as working: $ cd seesaw/src $ lein deps $ lein run -m seesaw.examples.kitchensink (in the last line, note the omission of "...test. ...") Dave, thanks for all your work. One small problem: you've

Re: swank, clojure.repl and my fading sanity

2011-11-15 Thread Yaron
Sean, Phil, thanks! Although now I realize that if I'm going to use Emacs then I'm going to have to learn the commands. Right now I'm trying to use http://www.pchristensen.com/blog/articles/public-beta-open-for-ultimate-n00b-slimeemacs-cheat-sheet/. We'll see how that goes. Thanks!

Overused phrases in the Clojure community

2011-11-15 Thread thenwithexpandedwingshesteershisflight
Can we please get bored of saying "idiomatic" and "in particular" please ? -- 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 patient

Re: ClojureScript macro import

2011-11-15 Thread David Nolen
:use-macros is now supported. On Tue, Nov 15, 2011 at 5:18 PM, kovas boguta wrote: > Bump. > > Is this still the case? That its not possible to have user-created > macros targeting clojurescript without namespace prefixes? > > > On Tue, Aug 9, 2011 at 2:31 PM, Kevin Lynagh wrote: > > Okay, that'

Re: ClojureScript macro import

2011-11-15 Thread kovas boguta
Bump. Is this still the case? That its not possible to have user-created macros targeting clojurescript without namespace prefixes? On Tue, Aug 9, 2011 at 2:31 PM, Kevin Lynagh wrote: > Okay, that's the impression I got from poking around but I just wanted > to make sure I wasn't missing anythi

Re: Open source Clojure projects

2011-11-15 Thread Carin Meier
4Clojure.com is a great project. We have a quite a few issues that could use some help. Feel free to ping me if you have any questions about getting involved. https://github.com/4clojure/4clojure -- You received this message because you are subscribed to the Google Groups "Clojure" group. To

Re: Lunhy Bin challenge

2011-11-15 Thread Chris Gray
On Tue, 15 Nov 2011 00:59:38 -0800 (PST), Alex Miller wrote: > Anyone want to take a crack at the Luhny Bin challenge from Square in > Clojure? Crazy Bob is interested in seeing a Clojure solution. > > http://corner.squareup.com/2011/11/luhny-bin.html My solution is here: https://github.com/ch

Re: Forcing computation

2011-11-15 Thread Sam Aaron
If you're only interested in the side effects of the computation and not the result say: (map #(println %) [1 2 3 4]) you can use dorun rather than doall as it doesn't retain the head (therefore requiring less memory). (dorun (map #(println %) [1 2 3 4])) Also, if you see yourself mapping ove

Big thanks to my donators !

2011-11-15 Thread Laurent PETIT
I was really glad to be able to made it to the conj, and if I was able to do so, it's because of these incredible communities, made of pure awesomeness, which are the Clojure & CCW communities! So once again, thank you to all of you who helped make this possible! I also wanted to say I'm really

Re: Forcing computation

2011-11-15 Thread Robert Marianski
On Tue, Nov 15, 2011 at 04:52:04PM +, labwor...@gmail.com wrote: > I understand that lazy sequences are very useful but sometimes, I want to > compute everything, go away, and have it there when I come back. > How do I do that with a map? > (def x (map fn coll)) doall http://clojuredocs.org/c

Re: Clojure-in-CommonLisp?

2011-11-15 Thread Roy Lowrance
What not create a C implementation in which the hosted language is dynamic link libraries? Roy On Tue, Nov 15, 2011 at 4:53 AM, Konrad Hinsen < googlegro...@khinsen.fastmail.net> wrote: > On 15 Nov, 2011, at 6:51 , Cyrus Harmon wrote: > > > I've been wanting this for some time. Obviously the jav

Re: Latest Bagwell paper for a new implementation of Clojure vectors ?

2011-11-15 Thread Karl Krukow
On 15/11/2011, at 19.13, Justin Balthrop wrote: > It wouldn't change the performance profile of existing programs because > currently there isn't a way to concat two vectors and get a new vector. I > don't envision changing the behavior of clojure.core/concat, that should > still return a seq.

Re: Clojure-in-CommonLisp?

2011-11-15 Thread Justin Balthrop
Another option for JNA is: https://github.com/chouser/clojure-jna On Nov 15, 2011, at 9:34 AM, Aaron Cohen wrote: > FYI: https://github.com/bagucode/clj-native uses bytecode generation to > create the glue classes on the fly. > > On Tue, Nov 15, 2011 at 12:21 PM, Marshall T. Vandegrift > w

Re: Latest Bagwell paper for a new implementation of Clojure vectors ?

2011-11-15 Thread Justin Balthrop
It wouldn't change the performance profile of existing programs because currently there isn't a way to concat two vectors and get a new vector. I don't envision changing the behavior of clojure.core/concat, that should still return a seq. It seems better to create a new function like 'joinvec' t

Re: swank, clojure.repl and my fading sanity

2011-11-15 Thread Phil Hagelberg
On Mon, Nov 14, 2011 at 11:06 PM, Sean Corfield wrote: > Add the following to your ~/.lein/user.clj: > > ;; ~/.lein/user.clj > (if (>= (.compareTo (clojure-version) "1.3.0") 0) >  (do (use 'clojure.repl) >      (use 'clojure.java.javadoc))) This will work, but most of the functionality of clojure

Re: Clojure-in-CommonLisp?

2011-11-15 Thread Aaron Cohen
FYI: https://github.com/bagucode/clj-native uses bytecode generation to create the glue classes on the fly. On Tue, Nov 15, 2011 at 12:21 PM, Marshall T. Vandegrift wrote: > Integrating the JVM with C via JNA [1] is pretty straightforward. I've > been doing all my JNA glue in Java so far because

Announce: ClojLisp -- Clojure-in-CommonLisp

2011-11-15 Thread daly
I have created a 0th iteration of the clojure in common lisp effort. git clone git://github.com/daly/clojlisp.git will create a directory called clojlisp containing: README -- how to get started from scratch clojlisp.pamphlet -- the literate program clojlisp.pdf -- a pdf generated

Re: Clojure-in-CommonLisp?

2011-11-15 Thread Cyrus Harmon
Right, but what I have in mind is clojure-sitting-on-top-of-SBCL so that one can (with a suitable reimplementation thereof) use clojure's persistent data structures, protocols, deftype, etc... on top of a (somewhat more traditional?) native code-generating backend like SBCL's. There's a lot of m

Re: Clojure-in-CommonLisp?

2011-11-15 Thread Marshall T. Vandegrift
Konrad Hinsen writes: > That may be a minority, but an implementation based on Common Lisp > could also open the way to an integration with the world of C, via a > Common Lisp implementation with a decent C interface. Integrating the JVM with C via JNA [1] is pretty straightforward. I've been d

Re: Clojure-in-CommonLisp?

2011-11-15 Thread Nate Young
There's also ABCL, the Common Lisp implementation that maintains the inalienable right to arm bears, written in Java and supporting interop between both Java and Lisp. http://common-lisp.net/project/armedbear/doc/abcl-user.html On 11/15/2011 09:13 AM, Dennis Crenshaw wrote: > I haven't dealt with

Re: Latest Bagwell paper for a new implementation of Clojure vectors ?

2011-11-15 Thread Karl Krukow
On Tuesday, November 15, 2011, Justin Balthrop wrote: > My understanding from the talk was that RRB-Trees have performance > identical to PersistentVector as long as you don't concat or split > them. So why not just replace the PersistentVector implementation with > an RRB-Tree? I guess that cou

Re: Forcing computation

2011-11-15 Thread David Nolen
(def x (doall (map fn coll))) On Tue, Nov 15, 2011 at 11:52 AM, wrote: > I understand that lazy sequences are very useful but sometimes, I want to > compute everything, go away, and have it there when I come back. > How do I do that with a map? > (def x (map fn coll)) > > -- > You received this

Re: Forcing computation

2011-11-15 Thread Chas Emerick
`doall` will force the realization of any provided lazy sequence, e.g.: (doall (map fn coll)) - Chas On Nov 15, 2011, at 11:52 AM, labwor...@gmail.com wrote: > I understand that lazy sequences are very useful but sometimes, I want to > compute everything, go away, and have it there when I come

Re: Forcing computation

2011-11-15 Thread Ulises
> I understand that lazy sequences are very useful but sometimes, I want to > compute everything, go away, and have it there when I come back. > How do I do that with a map? > (def x (map fn coll)) you could do (last x) and drop that value. U -- You received this message because you are subscri

Forcing computation

2011-11-15 Thread labwork07
I understand that lazy sequences are very useful but sometimes, I want to compute everything, go away, and have it there when I come back. How do I do that with a map? (def x (map fn coll)) -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to

Re: Re: Re: java logging properties and lein

2011-11-15 Thread labwork07
Okay, thanks. I think the library I interface with is using java.util.logging. I might need to reset the logging configuration. I recall something like that in the past like LogManager.reset(); On , Mark Rathwell wrote: > You still need to load the properties and tell the logger to use them

Re: Re: Re: java logging properties and lein

2011-11-15 Thread labwork07
Okay, thanks. I think the library I interface with is using java.util.logging. I might need to reset the logging configuration. I recall something like that in the past like LogManager.reset(); On , Mark Rathwell wrote: > You still need to load the properties and tell the logger to use them

Re: Clojure-in-CommonLisp?

2011-11-15 Thread David Nolen
On Tue, Nov 15, 2011 at 4:53 AM, Konrad Hinsen < googlegro...@khinsen.fastmail.net> wrote: > On 15 Nov, 2011, at 6:51 , Cyrus Harmon wrote: > > > I've been wanting this for some time. Obviously the java interop stuff > poses challenges, but the clojure data types, protocols, immutable objects, > c

Re: Clojure-in-CommonLisp?

2011-11-15 Thread Konrad Hinsen
On 15 Nov, 2011, at 15:46 , Doug South wrote: > I know a little CL and even less of Clojure, but wouldn't Clojure in CL be > fairly trivial? Just a DSL in CL? All of Clojure's persistent data structures would have to be implemented in CL. Plus multimethods, protocols, and deftype, which are a b

Re: Clojure-in-CommonLisp?

2011-11-15 Thread Doug South
With my limited theoretical understanding of Clojure, I would expect the language to interop with the platform it was implemented on. Therefore I would expect Clojure in CL to interop with CL and not the JVM. I know a little CL and even less of Clojure, but wouldn't Clojure in CL be fairly tri

Re: Latest Bagwell paper for a new implementation of Clojure vectors ?

2011-11-15 Thread Justin Balthrop
> This would be awesome. From his talk it sounds like it shouldn't replace > PersistentVector at all, in fact you should be able to share structure with > PersistentVector right? My understanding from the talk was that RRB-Trees have performance identical to PersistentVector as long as you don't c

Introducing Riviera Clojure Group

2011-11-15 Thread Anwar Rizal
Hi all, Allow me to introduce our recent clojure user group: Riviera Clojure Group. The group is intended for you who live around French Riviera and are interested in working off-line together in a group. We plan to have a regular monthly meeting where we'll have presentations, code kata, or dojo

Re: Clojure-in-CommonLisp?

2011-11-15 Thread Konrad Hinsen
On 15 Nov, 2011, at 6:51 , Cyrus Harmon wrote: > I've been wanting this for some time. Obviously the java interop stuff poses > challenges, but the clojure data types, protocols, immutable objects, clojure > syntax, etc... would make for a nice dialect of lisp to be used alongside > other CL co

Re: Clojure-in-CommonLisp?

2011-11-15 Thread Dennis Crenshaw
I haven't dealt with CL in quite a while, but there is this (which I was involved with in my undergrad at CofC): http://clforjava.org/ CLforJava may be helpful since it is, "a totally new version of the Common Lisp language that runs on the Java Virtual Machine and is intertwined with the Java la

Re: Lunhy Bin challenge

2011-11-15 Thread Wilson MacGyver
I've looked at this a bit this afternoon in both clojure and groovy. I couldn't come up with an interesting way to solve the problem. In both cases I end up take the numbers into a list/vector of digits, and solving it that way. It works, but boring. :) I figure I'll ponder on it some more. On

Re: Lunhy Bin challenge

2011-11-15 Thread Meikel Brandmeyer (kotarak)
Hi, here is one: http://paste.pocoo.org/show/508130/ I haven't tested it very thouroughly, though. Sincerely Meikel -- 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 n

Lunhy Bin challenge

2011-11-15 Thread Alex Miller
Anyone want to take a crack at the Luhny Bin challenge from Square in Clojure? Crazy Bob is interested in seeing a Clojure solution. http://corner.squareup.com/2011/11/luhny-bin.html -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this gr