Re: Alternate set literal syntax?

2012-03-24 Thread Cedric Greevey
On Sat, Mar 24, 2012 at 1:28 AM, Sean Corfield seancorfi...@gmail.com wrote: On Fri, Mar 23, 2012 at 8:44 PM, Cedric Greevey cgree...@gmail.com wrote: #{foo bar baz} is somewhat ugly. It occurs to me that one could modify the reader to additionally accept {{foo bar baz}} My concern is that

Clojure cheatsheet with tooltips (alpha)

2012-03-24 Thread Andy Fingerhut
There are still some problems with this, but it is ready for experimental use, at least. Alex, please don't put this on clojure.org -- it ain't ready yet. http://homepage.mac.com/jafingerhut/files/cheatsheet-clj-1.3.0-v1.4-tooltips/cheatsheet-full.html I found and used TipTip for tooltips [1],

Re: New(er) Clojure cheatsheet hot off the presses

2012-03-24 Thread David Martin
I agree that title attribute is the way to go. You shouldn't use the alt attribute for tooltips though, as this violates accessibility standards. Alt should either contain a literal description of the image, or be left empty. On Mar 23, 2012 1:11 PM, Cedric Greevey cgree...@gmail.com wrote: On

Re: why do we need a (require…)?

2012-03-24 Thread Brandon Bloom
This is not a good idea, for many reasons, the simplest of which is: it makes loading a side effect of calling a function in a module. Since loading can have arbitrary effects, it shouldn't be implicit. This isn't warranted by the meager benefits it might provide. -- Rich Hickey

Re: ClojureScript source maps

2012-03-24 Thread Brandon Bloom
The first step would be just to get the compiler to emit an optional source map. That's definitely the first step! After that, there's going to need to be some way to serve those source maps via HTTP upon request from the browser. However, there's a first step to the first step: Getting

Re: SuperDevMode and SourceMaps for ClojureScript debugging

2012-03-24 Thread Brandon Bloom
Any suggestions on how to get started on tackling that? Let's join discussions on this... over here: https://groups.google.com/d/topic/clojure/BUW6-1DqSsI/discussion -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send

Re: [OT] Any other italian Clojure users?

2012-03-24 Thread Mimmo Cosenza
I'm italian living in milan. Setting up a local clojure user group could be very interesting. I would not say I'm still a programmer. I did a lot of lisp/prolog programming in the 80's, c++/objective-c at the beginning of the 90's, and java from the very beginning of the language (1995). After

Re: Clojure cheatsheet with tooltips (alpha)

2012-03-24 Thread mnicky
The tooltips themselves seem pretty nice, but on smaller windows, they are sometimes placed behind the edges and thus not visible: http://i.imgur.com/YA4gF.png On Saturday, March 24, 2012 11:15:20 AM UTC+1, Andy Fingerhut wrote: There are still some problems with this, but it is ready for

Re: Alternate set literal syntax?

2012-03-24 Thread Softaddicts
I would suggest that we introduced some klingon characters in the language, we could then satisfy all these alien desires to change a syntax that has been established 4 years ago. We have a product driving an hospital here, your esthetic considerations do not fit in my deployment plan. This is

Re: 'contains?' on 'sorted-set-by' based on the comparator only? (possible bug?)

2012-03-24 Thread mnicky
Thanks for the explanations! So is there a way to build a set or map that has sorting property independent from the element lookup? On Friday, March 16, 2012 2:03:15 AM UTC+1, Alan Malloy wrote: And this is exactly as it should be. The sorted set has no way to compare items other than by

{ANN}Clojure-Control 0.3.2 is out

2012-03-24 Thread dennis zhuang
Hi,all I am pleased to announce that clojure-control 0.3.2 is out.Clojure-control is a clojure DSL for system admin and deployment with many remote machines via ssh.Please see https://github.com/killme2008/clojure-control Main highlights in 0.3.2: 1.You can include other clusters in

Re: 'contains?' on 'sorted-set-by' based on the comparator only? (possible bug?)

2012-03-24 Thread Philip Potter
There's java.util.LinkedHashSet: http://docs.oracle.com/javase/6/docs/api/java/util/LinkedHashSet.html Its iterator will preserve insertion order, but it will ignore duplicates when inserted. It has a number of disadvantages: * only available on clj-jvm * not a persistent data structure, with

GSOC Idea: Interactive documentation with autodoc

2012-03-24 Thread Zack Maril
Goal of project: Extend (or fork) autodoc such that it can create and run interactive documentation for any project. Example for the take function: *take*function Usage: (take n coll) Returns a lazy sequence of the first n items in coll, or all items if there are fewer than n. *Example: *

Re: revisiting community funding?

2012-03-24 Thread Phil Hagelberg
Sean Corfield seancorfi...@gmail.com writes: I can't think of a single large open source project that doesn't require a contributor agreement in place. Don't be silly; there are hundreds of projects larger, older, and more successful than Clojure that don't require such busywork. On the other

Re: ClojureScript source maps

2012-03-24 Thread David Nolen
On Fri, Mar 23, 2012 at 10:51 PM, Brandon Bloom snprbo...@gmail.com wrote: The first step would be just to get the compiler to emit an optional source map. That's definitely the first step! After that, there's going to need to be some way to serve those source maps via HTTP upon request

Re: Clojure cheatsheet with tooltips (alpha)

2012-03-24 Thread Rostislav Svoboda
Hi Andy On 24 March 2012 11:15, Andy Fingerhut andy.finger...@gmail.com wrote: There are still some problems with this, but it is ready for experimental use, at least.  Alex, please don't put this on clojure.org -- it ain't ready yet.

Clojure Toolbox

2012-03-24 Thread Rostislav Svoboda
A nice list of tools and libraries I stumbled upon. Enjoy! http://www.clojure-toolbox.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 are moderated -

eval seq of forms in another ns

2012-03-24 Thread Renat Yuldashev
How to evaluate each form from the vector of forms inside of the different namespace? I want to have a seq of the evaluation results as a result. Smth. like this: (eval-with-ns 'user ['(+ 1 2 3) '(- 5 4) '(defn f [] [])]) = (6 3 #'user/f) I know about with-ns, but don't know how to use it to

Re: Clojure cheatsheet with tooltips (alpha)

2012-03-24 Thread Peter Buckley
The tooltips work well on my BlackBerry, thanks! -Original Message- From: Rostislav Svoboda rostislav.svob...@gmail.com Sender: clojure@googlegroups.com Date: Sat, 24 Mar 2012 13:18:57 To: clojure@googlegroups.com Reply-To: clojure@googlegroups.com Subject: Re: Clojure cheatsheet with

Re: Alternate set literal syntax?

2012-03-24 Thread Alexander Yakushev
Your point is clear and valid but isn't it a bit harsh to write the response in a tone like this? After all we are asking and answering questions here, it's not like something is going to change after one request. BTW it is nice to hear Clojure being reliable enough in people's eyes to be

Re: Alternate set literal syntax?

2012-03-24 Thread Softaddicts
Hey, we all have our rough edges :) I'm 50, there's less life in front of me than behind. Debating about the sex of angels looks to me a bad way of using the not so many hours left in our lives on significant problems before the final exit. It's not the first time requests similar to this one

Re: Alternate set literal syntax?

2012-03-24 Thread Softaddicts
Forgot to add these: http://dev.clojure.org/display/community/Clojure+Success+Stories http://www.quora.com/Whos-using-Clojure-in-production Your point is clear and valid but isn't it a bit harsh to write the response in a tone like this? After all we are asking and answering questions

Re: eval seq of forms in another ns

2012-03-24 Thread N8Dawgrr
If I remember rightly I solved this by binding *ns* before the eval, e.g. (binding [*ns* some-namespace] (eval form)) On Saturday, March 24, 2012 5:12:29 PM UTC, Renat Yuldashev wrote: How to evaluate each form from the vector of forms inside of the different namespace? I want to have a

Re: ClojureScript source maps

2012-03-24 Thread Brandon Bloom
We could also decide to handle multi-mapping ourselves - that is write the code that can produce a merged source map. It seems likely (already done?) for browsers to support the X-SourceMap header and //@ comments for the target use case of CoffeeScript - Javascript - Minified Javascript

Re: Alternate set literal syntax?

2012-03-24 Thread Scott Jaderholm
On Sat, Mar 24, 2012 at 1:44 AM, Cedric Greevey cgree...@gmail.com wrote: On Sat, Mar 24, 2012 at 1:28 AM, Sean Corfield seancorfi...@gmail.com wrote: On Fri, Mar 23, 2012 at 8:44 PM, Cedric Greevey cgree...@gmail.com wrote: #{foo bar baz} is somewhat ugly. It occurs to me that one could modify

Re: labrepl in eclipse 3.6

2012-03-24 Thread vertigho
I had the same experience, and it was caused by the absence of a schema definition in the pom.xml file that is included with the labrepl files downloaded from git. Assuming you're problem is being caused by what caused mine, you'll see the warning icon (yellow triangle with '!') on your labrepl

Re: Alternate set literal syntax?

2012-03-24 Thread Jeremy Heiler
On Sat, Mar 24, 2012 at 6:38 PM, Scott Jaderholm jaderh...@gmail.com wrote: On Sat, Mar 24, 2012 at 1:44 AM, Cedric Greevey cgree...@gmail.com wrote: As for the aesthetics, what I like about {{...}} is that the delimiters are symmetrical, unlike #{...}, and it would allow one to reserve use of

What is wrong with ClojureQL?

2012-03-24 Thread Daniel Jomphe
Since Korma appeared, it seems ClojureQL isn't mentioned anywhere anymore. Are there solid reasons why Korma took all the attention to itself? Are there situations in which ClojureQL would be more recommended than Korma? In case nobody remembers CQL : http://clojureql.org/ -- You received

Re: ClojureScript source maps

2012-03-24 Thread Sean Allen
On Sun, Jul 24, 2011 at 1:19 PM, John concavel...@gmail.com wrote: Is there any interest in having ClojureScript generate source maps? http://code.google.com/p/closure-compiler/wiki/SourceMaps There are a couple of ways to accomplish this. Lots of interest from me. -- You received this

Re: New(er) Clojure cheatsheet hot off the presses

2012-03-24 Thread Cedric Greevey
On Fri, Mar 23, 2012 at 4:43 PM, David Martin davidhmar...@gmail.com wrote: I agree that title attribute is the way to go. You shouldn't use the alt attribute for tooltips though, as this violates accessibility standards. Alt should either contain a literal description of the image, or be left

Re: 'contains?' on 'sorted-set-by' based on the comparator only? (possible bug?)

2012-03-24 Thread Cedric Greevey
In increasing order of difficulty... Option 1: Extend your comparator to sort first on the key you're actually interested in, then if that key isn't different on the others more-or-less arbitrarily. Option 2: Keep the data unsorted in a hash-set. Sort when you need sorted data, e.g. for user

Re: What is wrong with ClojureQL?

2012-03-24 Thread Chris Granger
you can find discussion of this in a few places, but here's a decent one: https://news.ycombinator.com/item?id=3420691 Cheers, Chris. On Mar 24, 7:54 pm, Daniel Jomphe danieljom...@gmail.com wrote: Since Korma appeared, it seems ClojureQL isn't mentioned anywhere anymore. Are there solid

Re: Alternate set literal syntax?

2012-03-24 Thread Cedric Greevey
On Sat, Mar 24, 2012 at 3:46 PM, Softaddicts lprefonta...@softaddicts.ca wrote: Hey, we all have our rough edges :) I'm 50, there's less life in front of me than behind. Debating about the sex of angels looks to me a bad way of using the not so many hours left in our lives on significant

Re: Alternate set literal syntax?

2012-03-24 Thread Cedric Greevey
On Sat, Mar 24, 2012 at 6:38 PM, Scott Jaderholm jaderh...@gmail.com wrote: Sorry to break it to you, but # is used in many places other than lambdas, so even if you remove it from #{} you still have foo#, #^foo, #^{foo bar}, #'foo, #foo, #_foo, #foo{1 2}, #foo[1 2], and others I've probably

Re: Alternate set literal syntax?

2012-03-24 Thread ChrisR
I don't mind the #{} syntax, however I feel that if alternate syntax were to be introduced (for whatever datatype) it should be the unicode parenthesis since they 1. Look nice, 2. No addition of extra characters (I value succinctness), 3. They work in most common existing structured editing

core.logic now runs under ClojureScript

2012-03-24 Thread David Nolen
There's a lot of work left to do but I was able to successfully solve the zebra puzzle with core.logic running under JavaScript via V8 in ~170ms. There's tons of performance optimization yet to do, but to give some perspective Peter Norvig's version for CL that compiled Prolog took ~17.4 seconds

Re: 'contains?' on 'sorted-set-by' based on the comparator only? (possible bug?)

2012-03-24 Thread Cedric Greevey
On Sat, Mar 24, 2012 at 9:39 PM, Cedric Greevey cgree...@gmail.com wrote: In increasing order of difficulty... Option 1: Extend your comparator to sort first on the key you're actually interested in, then if that key isn't different on the others more-or-less arbitrarily. Or use this:

Re: Clojure Toolbox

2012-03-24 Thread dennis zhuang
Another link http://cnlojure.org/open.html 2012/3/24 Rostislav Svoboda rostislav.svob...@gmail.com A nice list of tools and libraries I stumbled upon. Enjoy! http://www.clojure-toolbox.com/ -- You received this message because you are subscribed to the Google Groups Clojure group. To