Hi,
Am 30.07.2010 um 04:53 schrieb Kyle Schaffrick:
Is there some reason the 2.2.0-SNAPSHOT's of vimclojure have vanished
from Clojars? I have the 2.2.0 vim pieces in my .vim directory and the
nailgun commands blow up when using the jar of nails from the 2.1.2
release :(
Would be hesitant
Dear all,
I am using deftype to write a pure data structure.
It would be neat to make it Seqable.
I looked a bit around on how to make that and did not manage to figure it out.
I can implement ISeq but it does not seem to be enough.
There seems to be an ASeq that my data structure should inherit
Hi Nicolas,
Please take a look at how headers lazy map is constructed in ahc-clj
http://github.com/neotyk/ahc-clj/blob/master/src/async/http/client/headers.clj
It is a map and is sequable as well.
HTH,
Hubert.
On Jul 30, 2010, at 12:04 PM, Nicolas Oury wrote:
Dear all,
I am using deftype
2010/7/30 Nicolas Oury nicolas.o...@gmail.com
Dear all,
I am using deftype to write a pure data structure.
It would be neat to make it Seqable.
If you want to make it seqable, it seems sufficient to implement
clojure.lang.Seqable, which has the method seq().
Having then your type directly
Hello,
We have a Clojure web application which uses Compojure. Today, the
server segfaulted all of a sudden and we are trying to find out the cause.
The stack trace is here - http://paste.lisp.org/display/112977
It seems the error happened really deep inside the JVM. Can anyone
provide some
Phil,
Just a personal opinion, but I'd urge you not to worry too much about
breaking changes just yet. The future value of doing the right thing
now outweighs the value of backwards compatibility in an application
as young as Lein.
To answer your direct question, I would not be affected by a
The next info would be useful:
# uname -a
# cat /etc/issue
# free -m
# df
--
DmitriKo
On Jul 30, 2:32 pm, Baishampayan Ghose b.gh...@ocricket.com wrote:
Hello,
We have a Clojure web application which uses Compojure. Today, the
server segfaulted all of a sudden and we are trying to find
Hi,
I am just starting to learn Clojure by writing a small library. I came
across a situation in which I have to parse a String for getting a Date. Now
the string can be in one of the three formats. So I wrote this functions to
parse it:
(def #^{:private true :tag SimpleDateFormat}
Hi,
2010/7/30 abhinav sarkar abhinav.sar...@gmail.com
Hi,
I am just starting to learn Clojure by writing a small library. I came
across a situation in which I have to parse a String for getting a Date. Now
the string can be in one of the three formats. So I wrote this functions to
parse it:
Hi,
in REPL when I try out various expressions,nil is printed.why so?
--
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
Probably because you're not evaluating 'expressions' (whose return value is
important) but rather 'statements' (who are all about side effects, and
whose return value is generally nil).
For example, println is a 'statement' = side effect of writing to *out*,
return value is nil.
Another example:
Hi All
I have a vector in the following format:
[
[M 3.4 5.6] [L 4.2 6.6] [L 4.9 7.9] [L 1.1
2.4][L 5.4 4.5]
]
I would like to create a vector that contains the max values of each
of the second and third values from this vector
in this case it would be: [5.4, 7.9]
The method to do this
Awsome!
Thanks much steve!
On Jul 30, 9:14 am, Steve Purcell st...@sanityinc.com wrote:
On 30 Jul 2010, at 15:03, Base wrote:
Hi All
I have a vector in the following format:
[
[M 3.4 5.6] [L 4.2 6.6] [L 4.9 7.9] [L 1.1
2.4][L 5.4 4.5]
]
I would like to create a vector
I did some Googling and came across this:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6366468
It implicates jar file corruption, possibly caused by modifying jar
files while the VM is running. Seems consistent with the
ZipFile/URLClassLoader entries in the stack trace.
j
On Fri, 30 Jul 2010 16:03:17 +0200, Base basselh...@gmail.com wrote:
Hi All
I have a vector in the following format:
[
[M 3.4 5.6] [L 4.2 6.6] [L 4.9 7.9] [L 1.1
2.4][L 5.4 4.5]
]
I would like to create a vector that contains the max values of each
of the second and third values from
Clojure 1.2 RC 1 is now available, along with a corresponding Clojure Contrib,
at:
http://clojure.org/downloads
There are very few changes since beta 1. These changes, as well as the longer
list of changes in 1.2, are described in the changes file at:
+1,
auto loading is simple and if performance becomes an issue, an explicit
list of hooks would solve this issue. I would however leave auto loading by
default. We have a couple of hundred jar dependencies so speed for us is
an issue but auto loading seems to me a decent default for beginners,
Clojure 1.2 has been pretty stable for quite a while now, and with the RC1
release this morning, today would be a great day to move your project to 1.2.
The Clojure/core team will be hanging out on IRC and monitoring this mailing
list closely until 5:00 Eastern (US) today, to help out with
Dave Jack wrote:
I did some Googling and came across this:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6366468
It implicates jar file corruption, possibly caused by modifying jar
files while the VM is running. Seems consistent with the
ZipFile/URLClassLoader entries in the stack trace.
I'm sure it's not intentional, but it makes sense. In the first case, the
comparison delegates to `r`'s equals() method, which would return false because
{:a 1} isn't a `my-record`. In the second case, the comparison delegates to
`{:a 1}`'s equals() method, which is a PersistentArrayMap, which
On Fri, Jul 30, 2010 at 8:05 AM, Stuart Halloway
stuart.hallo...@gmail.comwrote:
So what are you waiting for? :-)
Mostly, I'm waiting for performance reports on 1.1 vs 1.2. Last time I ran
some tests against the beta, 1.2 seemed a bit slower.
Also, can you provide a pointer in this thread
Changelist is
http://github.com/clojure/clojure/blob/1.2.x/changes.txt
Also, while microbenchmarks are often misleading, if you have some that seem to
show 1.2 issues I would be happy to run them and take a look.
Stu
On Fri, Jul 30, 2010 at 8:05 AM, Stuart Halloway
:dependencies [[org.clojure/clojure 1.2.0-RC]
[org.clojure/clojure 1.2.0-RC] did not work for me. Changing to
[org.clojure/clojure 1.2.0-RC1] works.
--
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to
My project.clj:
(defproject maho 0.1-SNAPSHOT
:dependencies [[org.clojure/clojure 1.2.0-RC1]
[org.clojure/clojure-contrib 1.2.0-RC1]
[ring0.2.5]
[clout 0.2.0]
[clj-record
On Fri, Jul 30, 2010 at 4:51 AM, Ryan Twitchell metatheo...@gmail.com wrote:
(= r s) ;; true
(= s r) ;; true
(= r {:a 1}) ;; false
(= {:a 1} r) ;; true
Is this intentional? (I hope not)
The three first are documented in (doc defrecord)
In addition, defrecord will define
None of these warnings appear to be from clojure -- they are from other libs,
mostly contrib.
Stu
My project.clj:
(defproject maho 0.1-SNAPSHOT
:dependencies [[org.clojure/clojure 1.2.0-RC1]
[org.clojure/clojure-contrib 1.2.0-RC1]
[ring
I like magic, life is so complicated these days :)))
Luc P.
Phil Hagelberg p...@hagelb.org wrote ..
On Fri, Jul 30, 2010 at 8:03 AM, lprefonta...@softaddicts.ca wrote:
+1,
auto loading is simple and if performance becomes an issue, an explicit
list of hooks would solve this issue. I
On Fri, Jul 30, 2010 at 8:03 AM, lprefonta...@softaddicts.ca wrote:
+1,
auto loading is simple and if performance becomes an issue, an explicit
list of hooks would solve this issue. I would however leave auto loading by
default. We have a couple of hundred jar dependencies so speed for us is
Hey folks,
Runa is an exciting, all-Clojure startup here in the bay area. We've been
using Clojure since 2008 and we're now revenue positive. It's a great time
to join us - if you're interested, please go to http://www.WorkAtRuna.com.
We're starting to build out a great team of prominent
On 30 July 2010 14:28, David Cabana drcab...@gmail.com wrote:
Just a personal opinion, but I'd urge you not to worry too much about
breaking changes just yet. The future value of doing the right thing
now outweighs the value of backwards compatibility in an application
as young as Lein.
This
Hi Joe, Laurent and Nikita,
Thanks for your help, the destructuring form of [[k v]] is much
cleaner, that's exactly what I was looking for.
Nikita, thanks for catching the typo and the misplaced paren, the code
is working smoothly now.
I have problem coded in Java, I plan to complete the Clojure
parse-or-nil can be avoided by calling parse with an additional
argument (ParsePosition. 0), in which case parse returns nil on
failure.
On Jul 30, 6:21 am, Laurent PETIT laurent.pe...@gmail.com wrote:
Hi,
2010/7/30 abhinav sarkar abhinav.sar...@gmail.com
Hi,
I am just starting to
Hi All -
I am sure that this is an easy one, but I am stuck.
I have a document that should have triplets of a letter (M or L)
flllowed by 2 numbers. But the file has a ton of errors and often I
find a number that would be
M123.5554
or 1234.435M
i.e. - the letter gets appended to the end of
Untested, but maybe this:
(def- parse-date [date-str]
(when-not (blank? date-str)
(let [date-str (trim date-str)]
(take 1
(filter identity
(map #(try (.parse % date-str) (catch ParseException e nil))
[full-date-format date-format-wo-tz
That's not a Clojure question, but if you ask it on StackOverflow you'll get
an answer in like 2 seconds. :) From your description it sounds like you
want /^[ML]{3}[0-9]{2}$/ but the description of your problem could be
interpreted in a few other ways, so that might not be what you want.
On
Daniel (and anyone else reading this)
I would like to correspond with you because I'm working on a project
for which your word graphing is a subset. I invented a
standardized electronic notecard (see http://infoml.org), with the
idea that writers and others could dump chunks of information (with
I'm converting my ~30Kloc project to 1.2 RC1 from a months-old
snapshot, and so far it's been smooth sailing. One thing I've
noticed, however, is that defrecord parse error exceptions seem to
be missing line numbers.
The example I ran into was
user (defrecord foo [bar] :as this )
; Evaluation
If you want a single regex that matches either M123.5554 or 1234.435M, you need
to use the OR form (a|b):
([ML]\d+\.\d+|\d+\.\d+[ML])
where:
[ML] matches M or L
\d+ matches 1 or more digits
\. matches a .
-Fred
--
Science answers questions; philosophy questions
I guess the line numbers aren't missing, just ... behaving weirdly.
If I make a file test.clj with just one line:
(defrecord foo [bar] :as this)
and start up a fresh, bare REPL:
user= (use 'test)
java.lang.IllegalArgumentException: Unsupported option(s) - :as
(test.clj:1)
user= (use 'test)
39 matches
Mail list logo