Re: Swank, ELPA and Emacs version do you use?

2010-03-21 Thread Cosmin Stejerean
should probably start with 23. -- Cosmin Stejerean http://offbytwo.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 - please be patient with your

Re: Why I have chosen not to employ clojure

2010-03-21 Thread Cosmin Stejerean
(not to mention neither lein or clojure-mavne-plugin were available at the time AFAIK). I still find this the quickest way to get Clojure working on a new machine.I would appreciate any feedback. http://github.com/offbytwo/cljenv -- Cosmin Stejerean http://offbytwo.com -- You received this message

Re: Why I have chosen not to employ clojure

2010-03-21 Thread Cosmin Stejerean
on all supported platforms. I don't have a Windows machine so I can't easily add Windows support. I'm assuming that what I'm doing with Bash should be possible to accomplish in Windows, perhaps using BATCH scripts. Patches/pull requests are welcome :) -- Cosmin Stejerean http://offbytwo.com -- You

Re: Why I have chosen not to employ clojure

2010-03-21 Thread Cosmin Stejerean
pretty far writing an application in Python with nothing more than good command line support and syntax highlighting in any text editor. Anything extra like completions, refactoring, etc, are just nice-to-haves. I don't see why an IDE is required for writing workable Clojure apps. -- Cosmin Stejerean

Re: ClojureCLR status?

2010-02-26 Thread Cosmin Stejerean
for checking in once in a while, perhaps on a separate development branch. -- Cosmin Stejerean http://offbytwo.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

Re: clojure-contrib on build.clojure.org

2010-02-26 Thread Cosmin Stejerean
-contrib I only see snapshots at http://build.clojure.org/snapshots/org/clojure/clojure-contrib/ The release jars are at http://build.clojure.org/releases/org/clojure/clojure-contrib/ -- Cosmin Stejerean http://offbytwo.com -- You received this message because you are subscribed to the Google

Re: Sweeping Networks with Clojure

2009-07-23 Thread Cosmin Stejerean
solution for this type of problem. -- Cosmin Stejerean http://offbytwo.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

Re: EY map reduce contest

2009-07-15 Thread Cosmin Stejerean
. -- Cosmin Stejerean http://offbytwo.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 - please

Re: Confusion on Clojure 1.0, compatible clojure-contrib, git-hub, svn, ...

2009-07-13 Thread Cosmin Stejerean
from SF with people running old code, and now that there are 2 repos around that are no longer maintained I suspect the confusion will only increase. -- Cosmin Stejerean http://offbytwo.com --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: Recursive function that does not terminate!

2009-06-24 Thread Cosmin Stejerean
. As I was writing that code I was wondering why it had to look so ugly. I completely forgot about next. -- Cosmin Stejerean http://offbytwo.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Clojure group. To post

Re: I must be blind. No matching method found?

2009-06-24 Thread Cosmin Stejerean
for class java.lang.StringBuilder (NO_SOURCE_FILE:0) -- Cosmin Stejerean http://offbytwo.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

Re: Small question: Best way to create a map with vector vals

2009-06-23 Thread Cosmin Stejerean
], :b [3 5], :c [1]}) (defn mystery-fn [coll] (reduce (fn [map [k v]] (assoc map k (conj (get map k []) v))) {} coll)) user= (mystery-fn [[:a 1] [:b 3] [:b 5] [:c 1]]) {:c [1], :b [3 5], :a [1]} -- Cosmin Stejerean http://offbytwo.com --~--~-~--~~~---~--~~ You

Re: Recursive function that does not terminate!

2009-06-23 Thread Cosmin Stejerean
] [1 2 3]) {:c 3, :b 2, :a 1} -- Cosmin Stejerean http://offbytwo.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

Re: accum

2009-06-17 Thread Cosmin Stejerean
button on http://github.com/richhickey/clojure/tree/master and http://github.com/richhickey/clojure-contrib/tree/master that allows you to download a snapshot in zip or tgz formats. -- Cosmin Stejerean http://offbytwo.com --~--~-~--~~~---~--~~ You received

Re: Status of Clojure on .NET?

2009-06-10 Thread Cosmin Stejerean
on the google group. I finally tracked a link to it down by going backwards through the archive and looking at all the threads from May 31st. http://groups.google.com/group/clojure/browse_thread/thread/f3a3cfca94debbac# -- Cosmin Stejerean http://offbytwo.com

Re: possible bug?

2009-05-21 Thread Cosmin Stejerean
On Thu, May 21, 2009 at 3:35 AM, Michael Wood esiot...@gmail.com wrote: On Thu, May 21, 2009 at 9:15 AM, Christophe Grand christo...@cgrand.net wrote: Cosmin Stejerean a écrit : On Wed, May 20, 2009 at 7:04 PM, George Jahad andr...@blackbirdsystems.net mailto:andr

possible bug?

2009-05-20 Thread Cosmin Stejerean
: No namespace: user found (NO_SOURCE_FILE:0) user= (ns-publics s2) {s2 #'user/s2, s1 #'user/s1} -- Cosmin Stejerean http://offbytwo.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Clojure group. To post to this group

Re: possible bug?

2009-05-20 Thread Cosmin Stejerean
/ to this: (def s1 (Symbol/create (.intern (first (.split user/n1 /) will fix your problem. That makes a lot of sense and I guess I should have paid attention to the function definition for Symbol/create. Thanks! -- Cosmin Stejerean http://offbytwo.com

Chicago Clojure May meeting at Sully's House on May 20th (tomorrow)

2009-05-19 Thread Cosmin Stejerean
for food and drinks during the meeting. -- Cosmin Stejerean http://offbytwo.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 To unsubscribe

Re: Chicago Clojure May meeting at Sully's House on May 20th (tomorrow)

2009-05-19 Thread Cosmin Stejerean
On Tue, May 19, 2009 at 12:58 PM, Michel S. michel.syl...@gmail.com wrote: On May 19, 12:45 pm, Cosmin Stejerean cstejer...@gmail.com wrote: The second Chicago Clojure meetup will focus on a in-depth introduction to Clojure concepts and syntax, presented by Frederick Polgardy. You

Re: Git with Google Code

2009-04-29 Thread Cosmin Stejerean
what I always use to check out Clojure. I'm curious, how frequently is that updated from SVN? (Meaning, what is the longest amount of time a commit can exist in SVN but not in your mirror?) I've never had a problem, but I'd like to know for future reference. -- Cosmin Stejerean http://offbytwo.com

Re: Recursively delete files

2009-04-22 Thread Cosmin Stejerean
of functionality reminds me of the os module in Python. I propose a similarly sounding namespace under contrib. -- Cosmin Stejerean http://offbytwo.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Clojure group. To post

Re: The Path to 1.0

2009-04-17 Thread Cosmin Stejerean
of (only!) fixes from the trunk for the release branch, and occasionally produce point releases (1.0.x) from that branch. This is actually something that I am interested in doing (porting fixes from trunk to 1.0) so I would love to help with that process once we get to 1.0 -- Cosmin Stejerean

Re: Contribs with dependencies

2009-04-16 Thread Cosmin Stejerean
open the question of how to decide which third party libraries are OK to include as a dependency. That seems to require a more formal process similar to the PEP's in Python. Maybe it's too early for something like that though. -- Cosmin Stejerean http://offbytwo.com

Re: How to compile in AquaMacs without slime? classpath problem for classes

2009-04-13 Thread Cosmin Stejerean
. Especially if it responded automatically such that when you dropped new jars you could kill slime and restart and you would be good (although emacs insta-starts on my mac so it isn't a big deal). None of that is hard to do, this is emacs after all. -- Cosmin Stejerean http://offbytwo.com

Re: Got a Clojure user group?

2009-04-11 Thread Cosmin Stejerean
On Thu, Apr 9, 2009 at 2:00 PM, Rich Hickey richhic...@gmail.com wrote: Got a Clojure user group, meetup etc? Reply to this message and let me know, I'll add them to the Clojure site. Chicago http://onclojure.com/chicago/ -- Cosmin Stejerean http://offbytwo.com

Re: Generic functions again

2009-03-25 Thread Cosmin Stejerean
the time in Python when I want to verify that what I remember is in fact correct. -- Cosmin Stejerean http://offbytwo.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send

Re: file io

2009-03-24 Thread Cosmin Stejerean
everything. This is particularly useful when reading data from a binary file where you have to read the data in chunks (and you obviously can't rely on readline). Given that I don't see the need for also having a read-all function. -- Cosmin Stejerean http://offbytwo.com

Re: STM and useful concurrency

2009-03-23 Thread Cosmin Stejerean
and unnecessarily complex, and Clojure provides a higher level way of dealing with concurrency that makes it easier and safer to work with most of the time. -- Cosmin Stejerean http://offbytwo.com --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: STM and useful concurrency

2009-03-23 Thread Cosmin Stejerean
be useful, I'd like to understand why. I can imagine how in certain situations a profile mode where Clojure keeps track of transaction retries, and maybe even the reason why they happened might be useful. -- Cosmin Stejerean http://offbytwo.com

Chicago Clojure meetup

2009-03-23 Thread Cosmin Stejerean
If you're in or around Chicago I'd like to invite you to come out for the first meeting of the Chicago Clojure User Group on April 15th. Full details are at http://onclojure.com/chicago/ -- Cosmin Stejerean http://offbytwo.com --~--~-~--~~~---~--~~ You received

Re: swank-clojure: swank-clojure-init-files not used

2009-03-15 Thread Cosmin Stejerean
. As a workaround you can try adding ~/.clojure to the classpath, Clojure will automatically load user.clj if found on the classpath. -- Cosmin Stejerean http://offbytwo.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Static type guy trying to convert

2009-03-11 Thread Cosmin Stejerean
that there is some subset of language designers that really would prefer to use a statically typed language but end up not implementing it because of the difficulty, but I'm not willing to just accept that they are the vast majority. -- Cosmin Stejerean http://offbytwo.com

Re: On the importance of recognizing and using maps

2009-03-11 Thread Cosmin Stejerean
to treat an object like a dictionary for interop, or places where I wanted to use a dictionary but with the nicer syntax for attribute access on objects ( a.foo instead of a['foo'] saves 3 keystrokes). -- Cosmin Stejerean http://offbytwo.com --~--~-~--~~~---~--~~ You

Re: Static type guy trying to convert

2009-03-11 Thread Cosmin Stejerean
On Wed, Mar 11, 2009 at 1:03 PM, Jon Harrop j...@ffconsultancy.com wrote: On Wednesday 11 March 2009 15:30:01 Cosmin Stejerean wrote: Actually it happens a lot in real code and in many non-trivial programs in static typed languages you end up with a proliferation of types that are simply

Re: On the importance of recognizing and using maps

2009-03-11 Thread Cosmin Stejerean
in Python by composing instances that provide data with classes that provide behavior at runtime. http://gist.github.com/77848 -- Cosmin Stejerean http://offbytwo.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Proposal: remove auto-load of user.clj

2009-03-09 Thread Cosmin Stejerean
explain the benefits of the current approach? -- Cosmin Stejerean http://offbytwo.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

Re: How do I setup Clojure REPL to automattically use some libraries?

2009-03-06 Thread Cosmin Stejerean
such as the repl-utils and the stacktrace libraries whenever it first loads. Thanks for your in advance. IIRC Clojure will automatically load user.clj if found in CLASSPATH, so I think it would be a good place to put any kind of customizations. -- Cosmin Stejerean http://offbytwo.com

Re: Monad tutorial, part 1

2009-03-05 Thread Cosmin Stejerean
://onclojure.com/2009/03/05/a-monad-tutorial-for-clojure- programmers-part-1/ Feel free to post comments! Here's a shorter URL if you'd like, the longer link got broken up for me http://bit.ly/E81zf -- Cosmin Stejerean http://offbytwo.com

Re: Chrono date library

2009-03-05 Thread Cosmin Stejerean
couldn't locate test-chrono.clj in the repo. -- Cosmin Stejerean http://offbytwo.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

Re: Mathy operations on non-numerics (was Adding strings)

2009-02-26 Thread Cosmin Stejerean
in the default case. What do others think about this? I would much rather have a fast-math library that redefined common operators for numeric types only, and had the default +, , be multimethods. -- Cosmin Stejerean http://offbytwo.com --~--~-~--~~~---~--~~ You received

Re: Privacy problems with clojure-contrib mirrors

2009-02-24 Thread Cosmin Stejerean
On Tue, Feb 24, 2009 at 11:21 AM, Konrad Hinsen konrad.hin...@laposte.netwrote: On Feb 24, 2009, at 17:55, Cosmin Stejerean wrote: But more importantly you can't expect that people go ahead and change all (any really) of the existing git or mercurial clones of the repository. You can

Re: alternate syntax

2009-02-23 Thread Cosmin Stejerean
the code is fed to the current Clojure reader. This sounds to me like a better fit for an editor plugin (that would add parentheses as you type based on indentation, and optionally hide them as well when editing the source). -- Cosmin Stejerean http://offbytwo.com

Re: *features*-var

2009-02-23 Thread Cosmin Stejerean
to ensure that the code is run against a compatible version of Clojure. For now I assume that means SVN revision numbers until we get to 1.0 -- Cosmin Stejerean http://offbytwo.com --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: :use feature requests

2009-02-23 Thread Cosmin Stejerean
:as zf)) +1 I think :as should be mutually exclusive with :only (and friends). -- Cosmin Stejerean http://offbytwo.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email

Re: alternate syntax

2009-02-23 Thread Cosmin Stejerean
I've seen at least one). -- Cosmin Stejerean http://offbytwo.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 To unsubscribe from

Re: :use feature requests

2009-02-23 Thread Cosmin Stejerean
foo.bar :only [eggs, spam] :use foo.bar :as fb -- Cosmin Stejerean http://offbytwo.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

Re: Alternatives to contains?

2009-01-29 Thread Cosmin Stejerean
the name would ideally express that, like: contains-key? has-key? maps? I would prefer has-key? for checking if a key is in a map and contains? for checking if an element is in a collection. -- Cosmin Stejerean http://offbytwo.com --~--~-~--~~~---~--~~ You

Re: Alternatives to contains?

2009-01-29 Thread Cosmin Stejerean
On Thu, Jan 29, 2009 at 3:56 PM, Dan Larkin d...@danlarkin.org wrote: On Jan 29, 2009, at 2:55 PM, Cosmin Stejerean wrote: On Thu, Jan 29, 2009 at 1:06 PM, Paul Mooser taron...@gmail.com wrote: I know this has been discussed on the list before to some extent, but does clojure by default

Re: New functions and possible bugs

2009-01-28 Thread Cosmin Stejerean
= (apply list [1 2 1]) (1 2 1) user= (apply vector '(1 2 1)) [1 2 1] But I don't see how this would ever apply to sets or maps so I don't see why empty sets and maps should be an exception. -- Cosmin Stejerean http://offbytwo.com --~--~-~--~~~---~--~~ You received

Re: dispatch macros that are new to me

2009-01-27 Thread Cosmin Stejerean
/script You can't have your #! line point to another file with a #! line in it. (Well, you can but it won't do what you want). -- Cosmin Stejerean http://offbytwo.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Support for disabling forms (reader macro similar to CL's #-(and))

2009-01-26 Thread Cosmin Stejerean
, the issues are: #; is bad for editors #- would be incompatible with CL's #-, and couldn't be upgraded to compatibility without breakage. I'm not sure the latter is a big deal, as #-test ... in CL is just an alternative for #+(not test) ... Is ## an option? -- Cosmin Stejerean http

Re: immigrate function for namespaces

2009-01-26 Thread Cosmin Stejerean
understand the difference between this and use (or :use in ns)? -- Cosmin Stejerean http://offbytwo.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure

Re: Proposal: smarter set operations that take size into account for speed

2009-01-23 Thread Cosmin Stejerean
discussed here. This gives people a chance to use them and identify any problems, etc before being considered for a move into clojure core. -- Cosmin Stejerean http://offbytwo.com --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: doall vs. dorun

2009-01-20 Thread Cosmin Stejerean
instead to clearly indicate your intent. -- Cosmin Stejerean http://offbytwo.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 To unsubscribe

Re: Can't get clojure or clojure.contrib via SVN over https

2009-01-14 Thread Cosmin Stejerean
, like http://*github*.com/kevinoneill/* clojure* -- Cosmin Stejerean http://offbytwo.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

Re: Very noob file reading and printing question

2009-01-06 Thread Cosmin Stejerean
the line format and save it for a legacy app) Well, if you just want to print to standard out you could use print or println. Apparently there's also with-out-file which I'm assuming temporarily binds *out* so all output goes to a file. That might be the simplest way to do what you need. -- Cosmin

Re: quote on side effects

2009-01-05 Thread Cosmin Stejerean
. -- Cosmin Stejerean http://offbytwo.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 To unsubscribe from this group, send email to clojure

Re: Circular Require Change?

2008-12-19 Thread Cosmin Stejerean
On Fri, Dec 19, 2008 at 10:30 AM, Kevin Martin martink...@gmail.com wrote: Thanks Rich! I'll keep an eye on the defect(shame there isn't a watch feature on google code). Other than this little minor annoyance, the new AOT changes are working great. Thanks for all the work, I'm really

Re: python style triple-double-quotes

2008-12-13 Thread Cosmin Stejerean
on including something similar in Clojure. -- Cosmin Stejerean http://www.offbytwo.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 To unsubscribe

Re: Learning Clojure

2008-12-10 Thread Cosmin Stejerean
, Refs, Agents, and Atoms. Speaking of these, your article mentions and describes only Var, Ref and Agent in your Reference Types section. The text is also a bit out of date already, e.g. I don't mention AOT or Atoms. Sounds like a known bug. -- Cosmin Stejerean http://www.offbytwo.com

Re: quit

2008-12-02 Thread Cosmin Stejerean
the interactive console. quit Use quit() or Ctrl-D (i.e. EOF) to exit quit() -- Cosmin Stejerean http://www.offbytwo.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email

Re: i'm having a lot of trouble dealing with events.

2008-11-20 Thread Cosmin Stejerean
/java_interop#toc34 -- Cosmin Stejerean http://www.offbytwo.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 To unsubscribe from this group

Re: Back on max again...

2008-11-04 Thread Cosmin Stejerean
On Tue, Nov 4, 2008 at 6:45 AM, Rich Hickey [EMAIL PROTECTED] wrote: On Nov 4, 2:56 am, Christian Vest Hansen [EMAIL PROTECTED] wrote: On Tue, Nov 4, 2008 at 6:23 AM, Mark H. [EMAIL PROTECTED] wrote: On Nov 3, 6:48 pm, Cosmin Stejerean [EMAIL PROTECTED] wrote: I think clearly