Definitely +1 for Cascalog -- I maintain Cascalog, along with Nathan Marz.
Here's the wiki:
https://github.com/nathanmarz/cascalog/wiki
Head on over to the
cascalog-userhttps://groups.google.com/forum/?fromgroups#!forum/cascalog-user
mailing
list with any questions. Looking forward to seeing you
I am happy to announce version 0.1.3 of nrepl.el, an Emacs client for nREPL.
https://github.com/kingtim/nrepl.el
v0.1.3 is available now on Marmalade, and should also be available on Melpa.
See the github Readme for installation and usage instructions.
Please give it a try!
Notable additions
Dear all,
What is the meaning of :while in a for?
I understand :when, and also that :while jumps more element when the
condition is not met,
but where does it jump to exactly?
Best regards,
Nicolas.
--
You received this message because you are subscribed to the Google
Groups Clojure group.
To
Dear all,
Can anyone redirect me to some 'real code' using reducers? I say
'real-code' cos I don't consider (r/fold + [1 2 3 4 5]) to be a
realistic example of usage...also, apart from Rich's blogs, I'm having a
hard time finding resources explaining the role of the
combining/reducing fns.
On 21/08/12 11:28, nicolas.o...@gmail.com wrote:
Dear all,
What is the meaning of :while in a for?
I understand :when, and also that :while jumps more element when the
condition is not met,
but where does it jump to exactly?
Best regards,
Nicolas.
You may find this helpful...
Both `:when` and `:while` tests if an element should be used when building
the resulting sequence. If the `:when` part evaluates to false (or nil) the
element is skipped and the list comprehension continues with the next
element in the source sequence. `:while` on the other hand ends the list
nicolas.o...@gmail.com nicolas.o...@gmail.com writes:
Hi Nicolas,
What is the meaning of :while in a for?
I understand :when, and also that :while jumps more element when the
condition is not met,
Yes. With :when every combination is checked, whereas with :while, the
remaining combinations
Jonas jonas.enl...@gmail.com writes:
`:while` on the other hand ends the list comprehension when the test
evaluates to false (or nil) and returns the sequence generated thus
far.
No, it's perfectly possible to have a comprehension with a :while that
generates more elements after :while
On Tuesday, August 21, 2012 2:22:39 PM UTC+3, Tassilo Horn wrote:
Jonas jonas@gmail.com javascript: writes:
`:while` on the other hand ends the list comprehension when the test
evaluates to false (or nil) and returns the sequence generated thus
far.
No, it's perfectly possible
No, it's perfectly possible to have a comprehension with a :while that
generates more elements after :while evaluated to false. :while skips
some bindings, but it doesn't need to skip all of them. See my original
reply to Nicolas.
Wow - I never knew that. That isn't at all obvious from
David Powell djpow...@djpowell.net writes:
No, it's perfectly possible to have a comprehension with a :while that
generates more elements after :while evaluated to false. :while skips
some bindings, but it doesn't need to skip all of them. See my original
reply to Nicolas.
Wow - I never
Jonas jonas.enl...@gmail.com writes:
Hi Jonas,
`:while` on the other hand ends the list comprehension when the
test evaluates to false (or nil) and returns the sequence generated
thus far.
No, it's perfectly possible to have a comprehension with a :while
that generates more elements
Even though this thread is almost over, I'll quickly chime in and hopefully
add some clarity.
I've only stumbled over for's :while because of this; I like it. It's the
only modifier in a for, that can actually stop evaluation of its source
sequence. It's akin to take-while.
Behold the generation
I want a macro that generates two defn's.
(defn vote-suspend [this] (deref (.state this)))
(defn vote-resume [this state] (reset! (.state this) state))
I have written this:
(defmacro suspendable [prefix]
`(do (defn ~(symbol (str prefix suspend)) [~'this] (deref (.state
~'this)))
(defn
What speaks against two defns in a do. It works as if you write two defns
in normal code. Actually I find this very useful to do because you don't
have additionally complexity for returning multiple sexps
Am 21.08.2012 16:42 schrieb Maris maris.orbid...@gmail.com:
I want a macro that generates
Hello,
What's wrong with having 2 fns inside the top level do ?
In Clojure, top level dos are split so that their children forms are
evaluated in sequence, as if you would have written them without the do.
HTH,
--
Laurent
2012/8/21 Maris maris.orbid...@gmail.com
I want a macro that
Nothing is wrong with do block.I just thought maybe there is some
trick
Fair enough.
On Tuesday, 21 August 2012 15:55:04 UTC+1, lpetit wrote:
Hello,
What's wrong with having 2 fns inside the top level do ?
In Clojure, top level dos are split so that their children forms are
Actually no, reducers are applicable to all sorts of collections, not
necessarily tree-based. When used with reduce rather than fold, they
perform all their operations in sequence, but with the substantial
benefit of avoiding any intermediate allocations. For example, in
(reduce + 0 (map inc
I understand now.
The documentation could be clearer on that.
Your triangular example is very clear.
--
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
On Sat Jul 28 08:05 2012, Rich Hickey wrote:
You can now get official Clojure stickers here:
http://clojure.org/swag
I'll be adding T-shirts etc soon.
Thanks! Is there any news on when other items will be available? A
Clojure polo shirt could be fun to wear at conferences coming up in
i assume you are coming from a java background?
if so, every time you wrote this:
Result result = null;
for (Stuff s:stuffList) {
if (result ==null) result = ...
result.cuddleWith(s);
}
return result
a reducer would have been a functional alternative to this
Am 21.08.2012 13:04, schrieb Jim -
Yes I do have an OOP background but I don't see how that helps me...I've
not written Java in almost 3 years! and also I don't see how the for
loop can be parallelized...
In particular, I'm not sure how to replace the traditional '(apply
max-key #(...) (:children tree))' approach with the
Hi Michal,
well yes, they are applicable to all sorts of collections but only
vectors and maps can be 'r/fold'-ed isn't it? r/fold on a seq will
degrade to reduce won't it? reduced allocation, as you say, is very
important but I'm trying to go the full way and use r/fold as well. I
wouldn't
I wanted to share a new tutorial resource that combines two excellent
projects: Relevance's labrepl with tryclojure's web-based REPL. Here is a
first, very rough cut of try-labrepl:
http://bit.ly/O1Q8B8
Just run lein cljsbuild once and then lein run to get the app running
locally on port
Hi everyone,
I get this very strange error even though I'm using clojure 1.5 alpha3
and java version 1.7.0_02 on Java HotSpot(TM) 64-Bit Server VM !
ClassNotFoundException jsr166y.ForkJoinTask
java.net.URLClassLoader$1.run (URLClassLoader.java:366)
java.net.URLClassLoader$1.run
Has clojure 1.5 apha3 been aot-compiled against java 6?
Jim
On 21/08/12 19:40, Jim - FooBar(); wrote:
Hi everyone,
I get this very strange error even though I'm using clojure 1.5 alpha3
and java version 1.7.0_02 on Java HotSpot(TM) 64-Bit Server VM !
ClassNotFoundException
I built clojure 1.5 snapshot from source and installed it in
~/.m2/repositories/org/clojure/ via 'mvn install' but now lein2 reverts
to 1.3 after amending my project.clj!!! How can I make leiningen aware
of the newly installed snaphot version?
Jim
On 21/08/12 19:49, Jim - FooBar(); wrote:
Whats the project.clj look like?
On Tue, Aug 21, 2012 at 2:25 PM, Jim - FooBar(); jimpil1...@gmail.com wrote:
I built clojure 1.5 snapshot from source and installed it in
~/.m2/repositories/org/clojure/ via 'mvn install' but now lein2 reverts to
1.3 after amending my project.clj!!! How can I
(defproject Clondie24 0.1.0-SNAPSHOT
:description Blondie24 Extreme-Makeover!
:url https://github.com/jimpil/Clondie24;
:license {:name Eclipse Public License
:url http://www.eclipse.org/legal/epl-v10.html}
:dependencies [
[org.clojure/clojure 1.5.0-alpha3]
Great, thanks -- I hadn't looked too closely at Cascalog yet only because I
don't currently have the rest of the Hadoop infrastructure. But adding that
in isn't out of the question, so I'll definitely look at it more closely.
And I may have underestimated the utility of Cascalog without Hadoop...
Tim King king...@gmail.com writes:
Hi Tim,
I am happy to announce version 0.1.3 of nrepl.el, an Emacs client for
nREPL.
https://github.com/kingtim/nrepl.el
Please give it a try!
I just gave it a try (normally using clojure-jack-in, that is, swank).
One really cool thing is its fast
Thanks for the pointer. Datomic is definitely on my short list on the
persistence side of things. My workflow is unfortunately fairly varied;
some longer-term batch jobs, and some very-soft-realtime jobs (seconds, not
milliseconds).
With a larger dataset (multi-terabyte, maybe) something
On Tue, Aug 21, 2012 at 10:04 PM, Tassilo Horn t...@gnu.org wrote:
- The completion only completes if there's exactly one match. If
there are multiple candidates, it simply echos them in the echo
area. Why not doing the usual emacs completion stuff with a
*Completions* buffer
Thanks, I wasn't aware of those tools in the Python world. At first
glance, things like pyutilib.workflow look interesting: I like that they're
they're explicitly separating the definitions of functions from the wiring
of inputs and outputs. I wonder if, in the clojure world (and wider JVM
This took me a while to debug cause I expected [org.clojure/clojure
1.5.0-master-SNAPSHOT] to cause a failure since I didn't have it.
Turns out, version ranges will ignore not finding the dependency if it
is outside of the range.
In this case, seesaw has a dependency on j18n. j18n has a
Few Things:
1) intro
This doesn't work:
*To learn about a function, you can examine its docstring. Print the
docstring for println using the form*
*(doc println)*
*
*
Unable to resolve symbol: doc in this context
[Thrown class java.lang.RuntimeException]
(and other similar functions)
2)
Jim - FooBar(); jimpil1...@gmail.com writes:
I thought I did not need the jsr166y.jar under java 7...what is
happening?
Has clojure 1.5 apha3 been aot-compiled against java 6?
It certainly looks that way. The compile-if macro [1] in
clojure.core.reducers conditionally defines several vars at
One more thing, Where is the Toggle REPL link? I didn't see any. Using
Firefox 14, Ubuntu 12.04. Tested it on Chrome as well, didn't see anything.
Am I missing something?
On Wed, Aug 22, 2012 at 2:11 AM, Mayank Jain firesof...@gmail.com wrote:
Few Things:
1) intro
This doesn't work:
*To
In terms of the labrepl content, I have purposely made very few edits at
this point. Depending on the Clojure version, different forms are sometimes
available by default at the REPL, so it's possible you'll need to do
something like (require '[clojure.repl :as r]) and then use that alias to
wow! I would have never found that on my own! my temporary solution was
to cheat (renaming the jar) but your suggestion works as well...Thanks a
lot Nelson... :-)
Jim
On 21/08/12 21:35, Nelson Morris wrote:
This took me a while to debug cause I expected [org.clojure/clojure
hmmm... I see. anyway I sorted my problem my building the latest clojure
snpashot from source on my machine with Java 7 and then installing it
~/.m2/repositories/...
Jim
On 21/08/12 21:41, Sung Pae wrote:
Jim - FooBar(); jimpil1...@gmail.com writes:
I thought I did not need the
BTW you can give it a go using Amazon EMR, that way you can check it
without investing in the infra before hand
Ronen
On Tuesday, August 21, 2012 11:02:18 PM UTC+3, matt hoffman wrote:
Great, thanks -- I hadn't looked too closely at Cascalog yet only because
I don't currently have the rest
Tassilo Horn t...@gnu.org writes:
Tim King king...@gmail.com writes:
I am happy to announce version 0.1.3 of nrepl.el, an Emacs client for
nREPL.
Thrilled to see this release go out. Thanks, Tim!
Some things that are show-stoppers for me:
- If it's installed, it hooks into clojure-mode
On Tue, Aug 21, 2012 at 12:04:29PM +0100, Jim - FooBar(); wrote:
Dear all,
Can anyone redirect me to some 'real code' using reducers? I say
'real-code' cos I don't consider (r/fold + [1 2 3 4 5]) to be a
realistic example of usage...also, apart from Rich's blogs, I'm
having a hard time
I've been playing with reducers recently, and I discovered what might be
a bug. The core of the problem can be seen here:
https://github.com/jballanc/scrabbler/blob/master/src/scrabbler/bruteforce.clj
In particular, if I attempt to replace the `r/reduce` call on line #23,
with a call to
I don't see there's a way to eliminate out most parenthesis like this
either. Maybe you can try to spit them out to somewhere and then read them
back again...but you probably don't want to do this. ;-)
在 2012年8月21日星期二UTC+8下午11时00分31秒,Maris写道:
Nothing is wrong with do block.I just thought
Hey guys,
This is an interesting thread, as I was playing around with Clojurescript.
But I also had a hard time setting up a browser-connected repl. I wanted to
do this from a raw leiningen2 project. I finally got it working and thought
I would put this up as a reference to anyone wanting to do
Hi Josh,
I had a quick look at your code...
If you say that running with reducers cuts runtime to 1/4 the original,
I'll believe you...However, even though our code is very similar, I
don't get any benefit from reducers...Like you, I've got recursion
inside a 'letfn' that uses (r/reduce
On Tuesday, August 21, 2012 10:49:45 PM UTC-4, Jim foo.bar wrote:
If you say that running with reducers cuts runtime to 1/4 the original,
I'll believe you...However, even though our code is very similar, I
Maybe you two have a different number of cores?
One test might be for you to test
I think you have to add the -server JVM flag to get your JVM to actually
engage all cores. (Is that right?)
On Tue, Aug 21, 2012 at 8:52 PM, Jeff Heon jfh...@gmail.com wrote:
On Tuesday, August 21, 2012 10:49:45 PM UTC-4, Jim foo.bar wrote:
If you say that running with reducers cuts runtime
I think you have to add the -server JVM flag to get your JVM to actually
engage all cores. (Is that right?)
-server should be the default in 64bit JVMs.
Regards,
BG
--
Baishampayan Ghose
b.ghose at gmail.com
--
You received this message because you are subscribed to the Google
Groups
As I mentioned in an earlier thread, I'm bringing my maintainership of
swank-clojure to an end. I'm putting my efforts into nrepl.el, and there
is also ritz for people who need advanced debugging:
https://github.com/kingtim/nrepl.el
https://github.com/pallet/ritz
I've blogged about
52 matches
Mail list logo