Re: Frustrations in being moderated

2012-03-23 Thread Mark Rathwell
>> I'm sure that some level of moderation is necessary to keep the list clean, >> but does it have to be so draconian? > > Hmm, I didn't even know the list was moderated (beyond first post > moderation which I'd assume was the norm on Google Groups). Perhaps > Clojure/core can comment on what the a

Clojure meetups near Zürich

2012-03-23 Thread Thomas G. Kristensen
Hi all, I've recently moved to Wollerau near Zürich in Switzerland. There was a thread (about a year old) from Clojurians in the area, but it does not seem there are any regular meetups. Are there any interested Clojurians in the area? Short description of myself: I'm Danish, working for a Danish

Clojure meetups near Zürich, Italy, Europe

2012-03-23 Thread Marco Abis
Hi Thomas, Marco, all, a few weeks back I sent an email to every contact I could find for all the European user groups listed here http://dev.clojure.org/display/community/Clojure+User+Groups to let them know about EuroClojure in May. I'd love to have an informal "meet the user group" ki

Re: Clojure meetups near Zürich, Italy, Europe

2012-03-23 Thread Meikel Brandmeyer (kotarak)
Hi Marco, would you add me to the mix? I want to build up a users group for Frankfurt am Main (Germany). However, at the moment it has only one semi-active member, myself. Nevertheless I'd like to take part in the meet the group event - should it happen - to exchange experiences a bit for start

Re: Frustrations in being moderated

2012-03-23 Thread Stuart Sierra
The "policy" is entirely controlled by Google Groups. I think it's time-based. -S -- 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

Re: [OT] Any other italian Clojure users?

2012-03-23 Thread Giorgio Valoti
Il giorno 22/mar/2012, alle ore 10:21, Marco Dalla Stella ha scritto: > Hi, > > I just want to know if there are any other italian Clojure users in > the ml, maybe for open an Italian Clojure User Group and organize some > meetings... Here’s one (or at least I’m trying :) ). > > Thanks, > --

Re: Use metadata instead of :require-macros for requiring macros from ClojureScript?

2012-03-23 Thread Evan Mezeske
> > In the Clojure case you extract the chunk with >tangle mydoc "Clojure code" >file > and in the ClojureScript case you extract it with >tangle mydoc "ClojureScript code" >file > This adds an cumbersome step to the build process, adds an external dependency, and is exactly the kind of t

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

2012-03-23 Thread Rostislav Svoboda
Hi Andy > If anyone has suggestions for what you would like to see added to the > cheatsheet It'd be great to have a tooltip appearing at every function I go over with my mouse. Typically I click on a function just to realize "Oh, this is not the one I need" so I have to go back. And this back &

Re: Use metadata instead of :require-macros for requiring macros from ClojureScript?

2012-03-23 Thread David Nolen
This needs a design page on Confluence. Anything under discussion should probably address the new :refer. David On Thu, Mar 22, 2012 at 10:37 PM, Evan Mezeske wrote: > Oops, I accidentally posted this before I finished typing it. I guess > most of what I was trying to convey made it through. >

Re: Frustrations in being moderated

2012-03-23 Thread Stuart Halloway
> The "policy" is entirely controlled by Google Groups. I think it's time-based. > -S It can also be overridden per user, once you find your way through the confusing groups API. Evan, you should be unmoderated now. Stu Stuart Halloway Clojure/core http://clojure.com -- You received this me

Re: ClojureScript: how to get rid of "no longer a property access" warning

2012-03-23 Thread Stuart Sierra
It is done. "And there was much rejoicing." -S -- 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 with your first post. To

[beginner] library for java code generation

2012-03-23 Thread Alex Shabanov
Hi all, Is there any easy-to-use library for generating java code? I ended up writing simple function that takes strings and characters and prints them in formatted form (e.g. with tabs and newlines after braces). I really like compojure approach to build html page - is there any similar libraries

Re: Frustrations in being moderated

2012-03-23 Thread Softaddicts
And maybe in the wrong thread ? :))) > > Whoops, submitted that a bit too soon. > > I guess only couple of things to add: > > (1) The cost of obtaining the primitive array and returning it to the > cache is likely no worse than operations on an ArrayList, so those > should be very cheap. > >

Re: removing a hash-map from a set using hash-map's field.

2012-03-23 Thread Jay Fields
Disclaimer, I'm only looking at how I would want to write it. You may need to do something else if you have specific performance requirements. clojure.set is probably your friend. user=> (def xrel #{{:id 1, :foo "bar"} {:id 2, :foo "car"} {:id 3, :foo "dog"}}) #'user/xrel user=> (use 'clojure.set

Re: [beginner] library for java code generation

2012-03-23 Thread Tassilo Horn
Hi Alex, I've done similar things in the past, also by throwing together plain strings and using `format` as a kind of templating thingy. I don't even think it's a too bad approach. With respect to the side-effects: you can omit all of them (glancing at your code) by giving up the indentation.

Re: revisiting community funding?

2012-03-23 Thread cej38
I am willing to contribute, and have in the past, but I think that instead of just contributing some cash and hoping things that we want will be worked on, I would propose that we structure it some. In fact, I come up with a few projects that could be of use to the whole community, or at least a l

Re: [beginner] library for java code generation

2012-03-23 Thread Herwig Hochleitner
Take a look at https://github.com/stathissideris/javamatic -- 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 with your firs

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

2012-03-23 Thread Andy Fingerhut
I definitely like the tooltip idea. I like it so much that I've already played with it a bit, looking at several web pages with instructions for how to do it, but my knowledge of good ways to do this is zero except for the results of those Google searches. Has anyone implemented tooltips on a

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

2012-03-23 Thread László Török
Hi, I think Twitter's Bootstrap toolkit is sg to consider. http://twitter.github.com/bootstrap/javascript.html#tooltips also http://twitter.github.com/bootstrap/javascript.html#popovers I already used them, they're easy and fun to implement. :) I think if the content already appers somewhere o

Re: [beginner] library for java code generation

2012-03-23 Thread Ben Smith-Mannschott
On Fri, Mar 23, 2012 at 14:22, Alex Shabanov wrote: > Hi all, > > Is there any easy-to-use library for generating java code? > I ended up writing simple function that takes strings and characters > and prints them in formatted form (e.g. with tabs and newlines after > braces). > I really like comp

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

2012-03-23 Thread Jordan Berg
It would be straightforward in clojurescript as well. Google provides a bunch of different tooltips in the closure library: http://closure-library.googlecode.com/svn/docs/class_goog_ui_Tooltip.html http://closure-library.googlecode.com/svn/docs/class_goog_ui_AdvancedTooltip.html http://closure-

Re: Any other italian Clojure users?

2012-03-23 Thread Alessio Stalla
On Mar 23, 9:01 am, Giorgio Valoti wrote: > Il giorno 22/mar/2012, alle ore 10:21, Marco Dalla Stella ha scritto: > > > Hi, > > > I just want to know if there are any other italian Clojure users in > > the ml, maybe for open an Italian Clojure User Group and organize some > > meetings... > > Here’

Re: [OT] Any other italian Clojure users?

2012-03-23 Thread Simone Mosciatti
im italian but now im living in USA... I will come back in july... Im from Siena Il giorno giovedì 22 marzo 2012 04:21:02 UTC-5, Marco Dalla Stella ha scritto: > > Hi, > > I just want to know if there are any other italian Clojure users in > the ml, maybe for open an Italian Clojure User Group an

Re: newbie struggling with Clooj and jars

2012-03-23 Thread TI Explorer vet
On Thursday, March 22, 2012 11:06:27 PM UTC-3, Moritz Ulrich wrote: > > The whole thing works in leiningen because it loads all necessary > dependencies for you. > > I highly recommend to use leiningen for all dependency management, > don't copy jars around. A quick look at the readme of Clooj reve

Re: removing a hash-map from a set using hash-map's field.

2012-03-23 Thread Leandro Oliveira
Thank you for all replies. The reason that I was using set instead of map was to use the functions from closure.set. I like them. But now I agree that map is a better approach. (select (fn [{:keys [id]}] (not= id 1)) xrel) is O(n). Right? Can I say that if you need remove an item you should use

Has anyone solved the zebra/einstein puzzle using core.logic?

2012-03-23 Thread Jim - FooBar();
Hi everyone, I 've been trying for the past couple of days to formulate the zebra puzzle in clojure as an exercise to get my head round core.logic...I can't seem to do it properly and so i was wondering if anyone can provide a well commented solution so i can study it thorougly. I know David

Re: Has anyone solved the zebra/einstein puzzle using core.logic?

2012-03-23 Thread Daniel Gagnon
> > > p.s: If someone thinks that the zebra puzzle is too complicated as a first > example please don't hesitate to say so...I recently purchased "the > reasoned schemer" (hasn't arrived yet) which hopefully explains things at a > good pace. > > It's actually pretty simple. Take a look at the Prolo

Re: Has anyone solved the zebra/einstein puzzle using core.logic?

2012-03-23 Thread Jim - FooBar();
aaa ok i see...so i'm supposed to pivot around house and NOT around person as i was trying to...thanks for the link - very much appreciated! Jim On 23/03/12 17:43, Daniel Gagnon wrote: p.s: If someone thinks that the zebra puzzle is too complicated as a first example please don't he

Re: Frustrations in being moderated

2012-03-23 Thread Evan Mezeske
Thanks a bunch! -Evan On Friday, March 23, 2012 6:22:12 AM UTC-7, stuart@gmail.com wrote: > > The "policy" is entirely controlled by Google Groups. I think it's > time-based. > -S > > > It can also be overridden per user, once you find your way through the > confusing groups API. > > Evan,

Re: removing a hash-map from a set using hash-map's field.

2012-03-23 Thread Andy Fingerhut
Sets are good when you have a collection of things, the precise order isn't important to you, and you want to avoid duplicates. I used one in some code recently where I wanted to maintain a collection of people who were co-authors in a Clojure patch, and the input file I started with could ment

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

2012-03-23 Thread Cedric Greevey
On Fri, Mar 23, 2012 at 10:58 AM, Andy Fingerhut wrote: > I definitely like the tooltip idea.  I like it so much that I've already > played with it a bit, looking at several web pages with instructions for how > to do it, but my knowledge of good ways to do this is zero except for the > results

Re: library for java code generation

2012-03-23 Thread Alex Shabanov
On Mar 23, 5:44 pm, Herwig Hochleitner wrote: > Take a look athttps://github.com/stathissideris/javamatic hmm, interesting. I also found quite intriguing library - http://code.google.com/p/cl-dcf/ - "a framework for building DSL compilers", though its written in common lisp. -- You received

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

2012-03-23 Thread Andy Fingerhut
Thanks for the suggestions, folks. Cedric, have you tried your method before? I'm not sure, but I think it was the thing that I tried that led me to add (b) to my list of preference. I like anything that makes the development job easier, but not if it violates that preference. Thanks, Andy On

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

2012-03-23 Thread Cedric Greevey
On Fri, Mar 23, 2012 at 3:57 PM, Andy Fingerhut wrote: > Thanks for the suggestions, folks. > > Cedric, have you tried your method before?  I'm not sure, but I think it was > the thing that I tried that led me to add (b) to my list of preference.  I > like anything that makes the development job e

Re: newbie struggling with Clooj and jars

2012-03-23 Thread Lee Spector
To use leiningen in conjunction with clooj: 1. Edit project.clj to reflect your dependencies (using clooj or whatever other editor). 2. Run "lein deps" from the command line within the project's directory. 3. Quit/restart clooj, since it builds its classpath on launch. Works for me at least.

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

2012-03-23 Thread Andy Fingerhut
I'm not putting the Declaration of Independence in the tooltips, but the Clojure doc strings, with the same text width as they appear in the original, which is nearly 80 characters wide. Those are easily wide enough to go partially out of the browser window unless the browser takes pains not to do

Re: newbie struggling with Clooj and jars

2012-03-23 Thread Arthur Edelstein
Hi vet, In clooj + lein, there are three steps to adding a jar to a project. 1. Edit the project.clj file to include the artifact in the project's dependencies 2. Go to the command line and type "lein deps" 3. Go back to clooj and choose the menu item REPL > Restart Restarting the REPL loads all

Re: Use metadata instead of :require-macros for requiring macros from ClojureScript?

2012-03-23 Thread Evan Mezeske
On Friday, March 23, 2012 5:26:16 AM UTC-7, David Nolen wrote: > > This needs a design page on Confluence. Anything under discussion should > probably address the new :refer. > > David > I'd be happy to consolidate this topic into a wiki page if I had the privileges needed to create one. Or may

Re: Use metadata instead of :require-macros for requiring macros from ClojureScript?

2012-03-23 Thread David Nolen
That's the thread. Please send in your CA and you can get access to Confluence & JIRA :) David On Fri, Mar 23, 2012 at 5:45 PM, Evan Mezeske wrote: > On Friday, March 23, 2012 5:26:16 AM UTC-7, David Nolen wrote: >> >> This needs a design page on Confluence. Anything under discussion should >>

Re: newbie struggling with Clooj and jars

2012-03-23 Thread Phil Hagelberg
Arthur Edelstein writes: > In clooj + lein, there are three steps to adding a jar to a project. > 1. Edit the project.clj file to include the artifact in the project's > dependencies > 2. Go to the command line and type "lein deps" > 3. Go back to clooj and choose the menu item REPL > Restart Ha

Re: revisiting community funding?

2012-03-23 Thread nchurch
I like BernardH's idea of doing it anonymously; if nobody from Core minds, we could set up an anonymous survey to see how much interest there is. cej38, your suggestions are very soundpersonally, I would love to see curated, distilled APIs for common things a Clojure programmer needs to do fro

why do we need a (require…)?

2012-03-23 Thread Frank Siebenlist
I can see the need for refer and alias, but why can the compiler not infer from the use of a fully qualified name that a namespace (or class) that is not loaded yet, has to be "required"? Or did I miss anything? -FrankS. -- You received this message because you are subscribed to the Google

Re: GSoC: Browser-based Clojure(Script) editor

2012-03-23 Thread Zack Maril
I think you would probably have the most meaningful success if you focused on making things that let people teach themselves Clojurescript. Making the editor intuitive for beginners would be a major win. Allowing them to visualize data structures and algorithms that they have written in Clojure

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

2012-03-23 Thread Cedric Greevey
On Fri, Mar 23, 2012 at 4:49 PM, Andy Fingerhut wrote: > I'm not putting the Declaration of Independence in the tooltips, but the > Clojure doc strings, with the same text width as they appear in the original, > which is nearly 80 characters wide. I'd suggest not using the full docstring, but som

Re: revisiting community funding?

2012-03-23 Thread Cedric Greevey
On Fri, Mar 23, 2012 at 7:35 PM, nchurch wrote: > I like BernardH's idea of doing it anonymously; if nobody from Core > minds, we could set up an anonymous survey to see how much interest > there is. > > cej38, your suggestions are very soundpersonally, I would love to > see curated, distilled

Alternate set literal syntax?

2012-03-23 Thread Cedric Greevey
#{foo bar baz} is somewhat ugly. It occurs to me that one could modify the reader to additionally accept {{foo bar baz}} without breaking anything. It's not possible for it to be a valid map literal, because the outer {...} pair has only one object inside it and a map literal requires an even num

Re: Alternate set literal syntax?

2012-03-23 Thread Ambrose Bonnaire-Sergeant
I'm a fan of #{foo bar baz}. Ambrose On Sat, Mar 24, 2012 at 11:44 AM, Cedric Greevey wrote: > #{foo bar baz} is somewhat ugly. It occurs to me that one could modify > the reader to additionally accept > > {{foo bar baz}} > > without breaking anything. It's not possible for it to be a valid map

Re: Alternate set literal syntax?

2012-03-23 Thread Alex Baranosky
Even if #{...} was ugly (which I don't feel one way or the other on), having two special syntaxes for the same thing is even uglier than having one ugly set literal notation :) On Sat, Mar 24, 2012 at 12:19 AM, Ambrose Bonnaire-Sergeant < abonnaireserge...@gmail.com> wrote: > I'm a fan of #{foo b

Re: revisiting community funding?

2012-03-23 Thread Sean Corfield
On Fri, Mar 23, 2012 at 8:09 PM, Cedric Greevey wrote: > That said, one of the less efficient things about the Clojure > development process is the whole CA thing. A lot of FOSS projects seem > to get by fine without erecting such a barrier to participation. I can't think of a single large open s

Re: Alternate set literal syntax?

2012-03-23 Thread Sean Corfield
On Fri, Mar 23, 2012 at 8:44 PM, Cedric Greevey 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 {{1 2 3 4}5} is currently legal - a map with a map as a key and 5 as the value. That means tha