On Tuesday, March 19, 2013 4:22:59 PM UTC-7, John SJ Anderson wrote:
I had this same issue when working through the tutorial. The text
makes it sound like you should replace the entire contents of the test
file, but that's not the case -- you just need to replace the (deftest
...) form.
You may want to use the code from https://gist.github.com/Chouser/456326 to
study how the history in refs works. See the accompanying discussion at
http://clojure-log.n01se.net/date/2010-06-28.html. I've been using
variants of that stress test to explain the ref history behavior since then
Hi Nelson, thanks for making lein-pedantic. It has been useful to us. Happy
to see it built in to Leiningen!
-S
On Wednesday, May 29, 2013 9:25:22 PM UTC-4, Nelson Morris wrote:
Good news everybody! As of leiningen 2.2.0 using `lein deps :tree` will
perform version checks and version range
The 'parse-args' function needs to be inside of the 'core.clj' file, not
the 'core_test.clj' file - is that the case? (The reason it is failing is
the first usage of 'parse-args' is before it has been defined).
On Fri, May 31, 2013 at 1:31 AM, Adam Getchell adam.getch...@gmail.comwrote:
On
I'd like to point out a similar library I wrote for Clojure called
spyscope: https://github.com/dgrnbrg/spyscope
With spyscope, you can write a handful of characters and get the stack
frame, form, and its value pretty-printed and logged to a queue for future
querying.
On Thursday, May 30,
(def graph
{a {:dependencies [b d]}
b {:dependencies [c e]}
c {:dependencies [d e]}
d {:dependencies []}
e {:dependencies []}})
(defn resolve-dep
[graph name]
(let [resolved (atom [])
resolved-set (atom #{})
f (fn f [name]
(doseq [x (:dependencies
You can express the algorithm using reduce with the set as an accumulator.
Also, consider:
https://github.com/clojure/clojure/blob/master/src/clj/clojure/core.clj#L4969
and
related hierarchy functions.
On Fri, May 31, 2013 at 12:33 PM, Alice dofflt...@gmail.com wrote:
(def graph
{a
Simplecs is a Component-Entity-System game engine used to write games in a
modular fashion. It was inspired by a blog post by Chris
Grangerhttp://www.chris-granger.com/2012/12/11/anatomy-of-a-knockout/ (also
see Gambit https://github.com/ibdknox/gambit).
You can find it here
If you're curious to see alternatives, I wrote a basic dependency graph
library based on Clojure's hierarchy implementation.
It's part of tools.namespace:
https://github.com/clojure/tools.namespace/blob/tools.namespace-0.2.3/src/main/clojure/clojure/tools/namespace/dependency.clj
Or also
I stopped using it for a week and discovered I won't stay sane for long without
it. Big (inc) to you.
On Friday, May 31, 2013 at 7:55 AM, Stuart Sierra wrote:
Hi Nelson, thanks for making lein-pedantic. It has been useful to us. Happy
to see it built in to Leiningen!
-S
On Wednesday,
Very cool, will have to try it out!
That said, I think we should start talking about how to make the traditional
debugging cycle accessible in Clojure.
On Friday, May 31, 2013 at 8:27 AM, dgrnbrg wrote:
I'd like to point out a similar library I wrote for Clojure called spyscope:
Sometimes its just so frustrating when you know you are close but just
cannot get that last little bit ... so I am appealing again for more newbie
support
I have a map for some names:
user= (def entity-names {:project Project :model Model})
Which I then reference in a set of maps:
user= def
Hi,
The initial release of core.rrb-vector, a Clojure Contrib library
enabling logarithmic-time concatenation and slicing of Clojure
vectors, should be available from Maven Central within 24 hours.
The functionality provided is enabled by RRB-Trees, a vector-like data
structure capable of
Apologies for my lack of knowledge. My understanding was that a finger tree
implementation has been in development for some time and was to provide the
same benefits. Can you explain the differences between RRB trees and finger
trees? Any hope of getting this project into core?
--
--
You
Hello,
I'm trying to create a very simple interaction between a client and server
program using the server-socket library which used to be part of
clojure-contrib and is now maintained by technomancy
https://github.com/technomancy/server-socket/blob/master/src/server/socket.clj
I created a
Another +1 for those features.
On Wednesday, May 29, 2013 6:25:22 PM UTC-7, Nelson Morris wrote:
Good news everybody! As of leiningen 2.2.0 using `lein deps :tree` will
perform version checks and version range detection. Therefore, I have
deprecated lein-pedantic. I appreciate all of the
What happens if you send a newline after that Hello? ie. Hello\n since
you're using read-line
On Sat, Jun 1, 2013 at 3:44 AM, Andrew Spano werdnaon...@gmail.com wrote:
Hello,
I'm trying to create a very simple interaction between a client and server
program using the server-socket library
It works! Wow, that was a simple solution! Thanks for the help :D :D.
On Friday, May 31, 2013 9:04:42 PM UTC-4, atkaaz wrote:
What happens if you send a newline after that Hello? ie. Hello\n since
you're using read-line
On Sat, Jun 1, 2013 at 3:44 AM, Andrew Spano
Hi Ray,
Perhaps this?
user (let [desired-entity-names (set (map entity-names [:model :project]))]
(select #(desired-entity-names (:entity %))
query-parts))
#{{:entity Model, :main-query select * from model where ...}
{:entity Project, :main-query select * from
There seems to be enough desire to spend some more time on them. Issues
filed at https://github.com/technomancy/leiningen/issues/1197 and
https://github.com/technomancy/leiningen/issues/1198. I'll see about
getting them into a future release.
-
Nelson Morris
On Fri, May 31, 2013 at 7:54 PM,
Hello All,
What is wrong with the following usage? (I have this code in a file, and
I'm calling clojure file)
(ns com.me.HelloWorld (:gen-class))
(println (com.me.HelloWorld.))
I get a java.lang.ClassNotFoundException.
-ramesh
--
--
You received this message because you are subscribed to
Hi Dmitry,
One thing I've seen quite frequently in Clojure numerical code is some ugly
code for manipulating Java arrays with areduce / aset / aget etc. It's one
of the few areas where it's genuinely easier to write code in Java at the
moment.
So it would be awesome if the Clojure NDArray
22 matches
Mail list logo