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
(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
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
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
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
-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
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
.
--
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
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
. 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
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
], :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
] [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
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
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
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
: 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
/
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
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
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
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
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
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
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
. 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
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
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
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
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
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
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
.
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
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
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
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
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
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
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
://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
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
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
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
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
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
: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
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
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
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
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
= (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
/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
, 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
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
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
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
, 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
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
.
--
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
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
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
,
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
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
/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
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
64 matches
Mail list logo