thanks sean for your reply about how to use priority-map in my project...
However, I am curious as to how to find out as to what is the latest version
for a given library.. for example data.finger-tree that is available..
Sunil.
On Thu, Sep 29, 2011 at 5:46 AM, Sean Corfield wrote:
> No builds
answering my own question ...
aah .. I can just go to the sonatype repository and findout .. thanks
Sunil.
On Thu, Sep 29, 2011 at 5:46 AM, Sean Corfield wrote:
> No builds have yet been released to Maven.
>
> You can, however, use the snapshot from Sonatype. Add the following to
> project.clj:
On Thu, Sep 29, 2011 at 12:11 AM, Sunil S Nandihalli
wrote:
> answering my own question ...
> aah .. I can just go to the sonatype repository and findout .. thanks
If something isn't listed on Maven Central here
http://search.maven.org/#search%7Cga%7C1%7Corg.clojure then you'll
have to dig around
On Thu, Sep 29, 2011 at 2:39 AM, Sean Corfield wrote:
> I'll shake the tree to encourage releases to Maven for the rest of the
> contrib libraries. I could/should make a release of
> data.priority-map... I helped Mark get his three contrib libraries
> migrated and setup and the only reason I haven
Hi!
Is there any way to define function with pattern matching in function
signature as it is in haskell?
Bye!
--
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 memb
Hi,
core.match might be what you're looking for.
(defn append [a b]
(match [a b]
[[] _] b
[[x & as] _] (append as (cons x b)))
(defn or [b1 b2]
(match [b1 b2]
[true _] true
[_ true] true
:else false))
https://github.com/clojure/core.match
T
Hi,
I'd like to check the interest in the community for a comprehensive
Clojure library/framework/whathaveyou that helps produce Java/Python/
Ruby/... a.k.a. "Blub" (http://www.paulgraham.com/avg.html) code, i.e.
instead of writing a Clojure program that e.g. produces web pages,
writing a Clojure
Additionally to core.match there is also matchure [1] which comes with
a defn-match that can be used like this:
(defn-match choose
([_ 0] 1)
([0 _] 0)
([?n ?k] (+ (choose (dec n) (dec k)) (choose (dec n) k
This makes defining functions fairly close to what you're used from Haskell.
[1]
That would be great!
Thanks in advance,
boris
2011/9/29 Dennis :
> I am not sure to what extent there will be recording. However, I can
> send you my slides after the presentation.
>
> -- Dennis
>
> On Wed, Sep 28, 2011 at 12:47 AM, Boris Mühmer
> wrote:
>> Will there be any slides or maybe e
And if you'd actually like a little bit of sugar so that it's really at the
level of the function definition - patch welcome! :)
David
On Thu, Sep 29, 2011 at 6:46 AM, Ambrose Bonnaire-Sergeant <
abonnaireserge...@gmail.com> wrote:
> Hi,
>
> core.match might be what you're looking for.
>
> (defn
matchure does some funny things to deal with code size, including generating
internals fns which will break recur. core.match avoided this problem until
quite recently. We've now added backtracking to control code size for
certain kinds of pattern matches. However this also conflicts w/ recur,
you'
Hi All,
I am just learning clojure and I've written a function to split a list (see
docstring for details). I was wondering if any of you experienced hands
could take a look at it and comment. I've never used lisp or a functional
language before so I was wondering if I was doing it right or if t
ClojureScript?
David
On Thu, Sep 29, 2011 at 6:39 AM, Hank wrote:
> Hi,
>
> I'd like to check the interest in the community for a comprehensive
> Clojure library/framework/whathaveyou that helps produce Java/Python/
> Ruby/... a.k.a. "Blub" (http://www.paulgraham.com/avg.html) code, i.e.
> inst
First of all, you should switch from
((fn [ls wip ans] ...) ls [] nil)
to
(loop [ls ls wip [] ans nil] ...)
Read about it here:
http://clojure.org/special_forms
Using higher-order functions, you could do:
(defn split-zero [coll]
(if (seq coll)
(let [divided (partition-by zero? coll)]
You probably want something like
(defn split-zero [ls]
(filter #(not= (first %) 0) (partition-by zero? ls)))
--
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 me
On Thu, Sep 29, 2011 at 4:16 PM, Ambrose Bonnaire-Sergeant
wrote:
> (defn append [a b]
> (match [a b]
> [[] _] b
> [[x & as] _] (append as (cons x b)))
> (defn or [b1 b2]
> (match [b1 b2]
> [true _] true
> [_ true] true
> :else false))
Does the
append is missing a closing paren.
It should work.
Ambrose
On Thu, Sep 29, 2011 at 8:21 PM, Baishampayan Ghose wrote:
> On Thu, Sep 29, 2011 at 4:16 PM, Ambrose Bonnaire-Sergeant
> wrote:
> > (defn append [a b]
> > (match [a b]
> > [[] _] b
> > [[x & as] _] (append as (cons x b)))
On Thu, Sep 29, 2011 at 5:57 PM, Ambrose Bonnaire-Sergeant
wrote:
> append is missing a closing paren.
> It should work.
Where does `match` come from? I couldn't find it anywhere.
Regards,
BG
--
Baishampayan Ghose
b.ghose at gmail.com
--
You received this message because you are subscribed t
It's part of core.match.
clojure.core.match.core/match
https://github.com/clojure/core.match
Thanks,
Ambrose
On Thu, Sep 29, 2011 at 8:28 PM, Baishampayan Ghose wrote:
> On Thu, Sep 29, 2011 at 5:57 PM, Ambrose Bonnaire-Sergeant
> wrote:
> > append is missing a closing paren.
> > It should wo
On Thu, Sep 29, 2011 at 6:00 PM, Ambrose Bonnaire-Sergeant
wrote:
> It's part of core.match.
> clojure.core.match.core/match
> https://github.com/clojure/core.match
Sorry Ambrose, I was so stupid, I was looking at core.logic :-)
Regards,
BG
--
Baishampayan Ghose
b.ghose at gmail.com
--
You r
In this exchange I've written core.logic when I meant core.match about 4
times xD
Ambrose
On Thu, Sep 29, 2011 at 8:33 PM, Baishampayan Ghose wrote:
> On Thu, Sep 29, 2011 at 6:00 PM, Ambrose Bonnaire-Sergeant
> wrote:
> > It's part of core.match.
> > clojure.core.match.core/match
> > https://g
In core.logic you do have matche, which is conceptually similar.
David
On Thu, Sep 29, 2011 at 8:33 AM, Baishampayan Ghose wrote:
> On Thu, Sep 29, 2011 at 6:00 PM, Ambrose Bonnaire-Sergeant
> wrote:
> > It's part of core.match.
> > clojure.core.match.core/match
> > https://github.com/clojure/c
On Thu, Sep 29, 2011 at 6:06 PM, David Nolen wrote:
> In core.logic you do have matche, which is conceptually similar.
Right, I knew about `matche` and that added to all the confusion.
Regards,
BG
--
Baishampayan Ghose
b.ghose at gmail.com
--
You received this message because you are subscri
Thank you, both!
I guessed there would be a neater solution (I wasn't aware of
partition-by)
Pete
--
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 mode
Mauve has more RAM? :)
On Sep 29, 9:46 pm, David Nolen wrote:
> ClojureScript?
>
> David
>
--
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 -
Thanks to everyone for the helpful replies. I've been using futures in this
manner for a long time now and they work fine, but I wanted to make sure
this is the specified behavior.
--J.
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to thi
Looks good, Dennis.
Similarly, I'll be giving a talk at Java One on Clojure; I'll do my
best to warm up the crowd for you. :-)
Session ID: 25060
Session Title: Real-Time Hot Code Deployment with Clojure
Venue / Room: Parc 55 - Embarcadero
Date and Time: 10/4/11, 13:30 - 14:30
Abstract
Thanks. That's helps me think about when/how to use lazy-seq
On Sep 28, 2:00 pm, Nathan Sorenson wrote:
> If you were feeling so inclined, you could structure this as a lazy sequence
> (like 'partition' does)
>
> (defn lazy-break
> [coll]
> (letfn [(break-paired [pairs]
> (lazy-s
Nice. Also this makes me think that my clojure intuitions are getting
better.
On Sep 28, 3:07 pm, Alan Malloy wrote:
> I wrote a generalized version of this called partition-between, which
> you can see
> athttps://github.com/flatland/useful/blob/develop/src/useful/seq.clj#L181
> if you're inte
I'm in a bit of a bind-- I've written some really nice Clojure code for
dealing with Genomic sequences that works as well or better than the
reference implementation we currently use where I work. However, the the
hierarchy has recently changed and my new boss is requiring me to have all
code in Ja
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
compile to java class, decompile to java source. works in theory,
until someone actually looks at the source ;)
btw, your new boss is ... not the type of boss that would keep me from
looking for a new job.
Am 29.09.2011 20:09, schrieb Dennis Crenshaw
Is the location of the meetup anywhere close to the conference?
On Wednesday, September 28, 2011, Sean Corfield
wrote:
> The Bay Area Clojure User Group is scheduled to meet on Thursday
> October 6th. Any out of town Clojurians who would be around for that
> meetup and might be persuaded to come
Oups, you just have been dilberted in a non creative dimension :)
I would go for the bytecode decompilation option, most probably your new boss
will not even notice according to the Dilbert workplace rules.
He most probably pushes is desk away when his mouse hits the border of his
mouse pad
hopp
On Thu, Sep 29, 2011 at 11:35 AM, Felix Filozov wrote:
> Is the location of the meetup anywhere close to the conference?
The group alternates between San Francisco and Mountain View but we're
considering meeting every month in San Francisco and running the
Mountain View meetings less frequently i
I've fleshed out and documented the Clojure DSL for Storm. There were
quite a few people interested in this, and I figured the Clojure
community at large would want to know about it.
Here are the docs: https://github.com/nathanmarz/storm/wiki/Clojure-DSL
And here is an example that uses it:
https
Clojure has native interoperability with JVM & CLR. This mean that you
can have part of your code written in Clojure, part in Java/Jython/
JRuby if your target the JVM or C# if you target CLR. Of course you'll
not be able to mess everything like first half of a method in Clojure,
second half in jav
Hi there, possibly the flatten documentation is wrong as (flatten nil)
for me is returning
the empty list rather than nil. (1.3.0). Is there a better place to
post this?
(clojure.core/flatten nil)
=> ()
from docstring:
"Takes any nested combination of sequential things (lists, vectors,
etc.
Best would be to act as professionnal:
- try to convince your new boss of the benefits of using clojure from
a business point of view.
- if this fail, either go back to writing java or quit.
But do not try to abuse your boss and company by developping in
clojure behind the scene and deliver some c
There isn't an easy solution right now but I think it's worth the
effort producing something there. You might want to join the
discussion over here: http://groups.google.com/group/clojure/t/5da63583815b6102
--
You received this message because you are subscribed to the Google
Groups "Clojure" gro
Have you actually looked at the ClojureScript compiler? In what way is
its design unsuitable for what you're proposing?
David
On Sep 29, 9:11 am, Hank wrote:
> Mauve has more RAM? :)
>
> On Sep 29, 9:46 pm, David Nolen wrote:
>
>
>
>
>
>
>
> > ClojureScript?
>
> > David
--
You received this m
On Sep 30, 8:35 am, Nicolas wrote:
> Clojure has native interoperability with JVM & CLR.
Right, this is machine interop. What about people interop? How can a
Clojure programmer "interoperate" with a Ruby programmer? Can I chuck
some Clojure code into Google translate (http://google.com/translate)
Hank,
it ain't Clojure so this might be irrelevant to you, but some
interesting cross-platform languages are: (a) www.haxe.org which is
mature, and (b) Shen http://preview.tinyurl.com/6hnjpb2 which is still
young.
sincerely.
--
You received this message because you are subscribed to the Google
On Thu, Sep 29, 2011 at 7:54 PM, Hank wrote:
> On Sep 30, 8:35 am, Nicolas wrote:
> > Clojure has native interoperability with JVM & CLR.
>
> Right, this is machine interop. What about people interop? How can a
> Clojure programmer "interoperate" with a Ruby programmer? Can I chuck
> some Clojur
Thanks for all the answers, everyone.
I did the original post and then immediately came down with some kind of
nasty cold. So I just got back to it today, but have not had a chance to try
the suggestions.
I'll probably discover that my setup difficulties had a lot to do with
feeling crummy and
No. Maintanable and idiomatic code weren't its goals, efficient maybe.
If it did in fact produce maintainable and idiomatic code that would
be an accidental byproduct. Does it?
The ClojureScript compiler was also, from what I understand, designed
to produce small programs, i.e. "one web page's wor
Just replying to my own post here:
Something like Linj (https://github.com/xach/linj /
http://www.doiserbia.nb.rs/img/doi/1820-0214/2008/1820-02140802019L.pdf)
and the corresponding Jnil go into the right direction.
--
You received this message because you are subscribed to the Google
Groups "Cl
Thanks, but from what I can see, they enable machine interop, not
people interop. Instead of cross-platform, can you do cross-community?
On Sep 30, 10:00 am, Raoul Duke wrote:
> Hank,
>
> it ain't Clojure so this might be irrelevant to you, but some
> interesting cross-platform languages are: (a)
On Thu, Sep 29, 2011 at 3:39 AM, Hank wrote:
> I'd like to check the interest in the community for a comprehensive
> Clojure library/framework/whathaveyou that helps produce Java/Python/
> Ruby/... a.k.a. "Blub" (http://www.paulgraham.com/avg.html) code, i.e.
> instead of writing a Clojure program
It may be easier to convince him by explaining how much time it is
going to cost to do conversion. Abstract computer science terminology
isn't always that convincing to managers, but explaining how much time
will be wasted is.
On Sep 29, 6:56 pm, Nicolas wrote:
> Best would be to act as professi
Ok, I followed the simple instructions, but ran into a minor problem.
It seems that the Aquamacs version of slime conflicts with the clojure
setup, and should be disabled. This version of slime (as delivered by the
Aquamacs folks) is installed in /Library/Application Support/Aquamacs
Emacs/SLIM
> I think the major obstacle is likely to be the difference in idioms.
> Any substantial idiomatic piece of Clojure is going to be almost
> impossible to automatically translate to _idiomatic_ code in another
> high-level language that uses different idioms.
That could very well turn out to be the
On Thu, Sep 29, 2011 at 10:48 PM, Hank wrote:
> A good source for this is the O'Reilly book "Functional Programming in
> Java". There you can see how idioms from one language can be applied
> to another.
Oh yes, I know about that book but the question is: how idiomatic is
that code in Java? You c
Addendum: Just as an example, for this here ...
> Would it even be idiomatic Java to always have classes full of only
> static methods?
... the Java-ists have an idiom ("design pattern") called singleton.
They're not static methods but once-instance classes.
--
You received this message because
Last I checked matchjure generates fns which break recur (there is an issue
open for it). Trading recursion for matching seems like a bad deal, I
recommend using match instead.
On Sep 29, 2011 4:32 AM, "Christian Pohlmann"
wrote:
> Additionally to core.match there is also matchure [1] which comes
On Thu, Sep 29, 2011 at 11:24 PM, Hank wrote:
>> Would it even be idiomatic Java to always have classes full of only
>> static methods?
> ... the Java-ists have an idiom ("design pattern") called singleton.
> They're not static methods but once-instance classes.
Doesn't that kind of prove my poin
On Sep 30, 2:58 pm, Sean Corfield wrote:
> On Thu, Sep 29, 2011 at 11:24 PM, Hank wrote:
> >> Would it even be idiomatic Java to always have classes full of only
> >> static methods?
> > ... the Java-ists have an idiom ("design pattern") called singleton.
> > They're not static methods but once-i
56 matches
Mail list logo