Re: ANN: ClojureScript 0.0-1877 (Breaking change)

2013-09-26 Thread Ruslan Prokopchuk
I can't get core.async working with 0.0-1877+: nothing is executed in go block without any warnings and errors. When I use 0.0-1859 everything goes fine. (I've surely done lein cljsbuild clean) -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To

Re: Typedef-like functionality for Clojure records?

2013-09-26 Thread david sheldrick
I'm not sure about your actual questions, but you should note that `foo` is not actually a var which you can reference like `some-ns/foo`. Rather, it is a Class. Consider: user=> (defrecord Thing [a b]) user.Thing user=> user=> (def OtherThing Thing) #'user/OtherThing user=> user=> (Thing. "

Re: Typedef-like functionality for Clojure records?

2013-09-26 Thread Marshall Bockrath-Vandegrift
Vincent Chen writes: > - Use something else than records to model structs (suggestions welcome)? Maps. Records have concrete Java types, which allows them to implement interfaces and participate in protocols. Fields defined on a record type are backed by JVM object fields, which can increase p

Question about using extend-type and multiple implementations of the same protocol on nil.

2013-09-26 Thread Dustin Conrad
I am pretty new to Clojure, so what I am trying to do may make no sense. I am completely open to alternative ways to get similar functionality I have a Heap protocol and two records that implement that protocol: (defprotocol Heap (min [this] (insert [this x])) In heap1.clj (defrecord Heap1

Re: Question about using extend-type and multiple implementations of the same protocol on nil.

2013-09-26 Thread Jim
On 26/09/13 13:10, Dustin Conrad wrote: (defprotocol Heap (min [this] (insert [this x])) In heap1.clj (defrecord Heap1 [n] (min [this] (comment do stuff)) (insert [this x] (comment insert stuff))) In heap2.clj (defrecord Heap2 [n] (min [this] (comment do some different stuff)) (inse

Re: Question about using extend-type and multiple implementations of the same protocol on nil.

2013-09-26 Thread Jim
On 26/09/13 13:10, Dustin Conrad wrote: Now, in the tests for heap1.clj where I am not requiring the heap2 namespace (or even know about it), my tests are failing because (insert nil 1) now returns a heap2 record. how is that possible? How does a namespace x returns a concrete object from som

Re: Question about using extend-type and multiple implementations of the same protocol on nil.

2013-09-26 Thread Jim
protocol extensions are applied on a per-namespace basis. What you describe shouldn't happen...it sounds to me that your tests for heap1.clj somehow knows about the heap2.clj, otherwise it wouldn't be possible to return an object from that namespace. In fact, if you do a lein test someNS.heap

[ANN] es-nozzle 0.3.0 - elasticsearch document ingestion

2013-09-26 Thread Ralf Schmitt
{ es-nozzle is not a clojure library. But es-nozzle is implemented and extendable in clojure. That's why I'm posting it here, read on! } Hi all, on behalf of brainbot technologies AG I'm proud to release es-nozzle 0.3.0 as open source today. This is the first public release. es-nozzle is a scala

Re: [ANN] clara-rules 0.1.0 released -- rules as a control structure

2013-09-26 Thread Ryan Brush
Not yet, although I would like to make use of simple maps natural. I had been toying with the idea of typing into the :type metadata that could be attached to a map, allowing expressions like: (defrule test-rule [:example/person-map-type (= "Alice" (:first-name this))] => (println "Hello,

Re: Question about using extend-type and multiple implementations of the same protocol on nil.

2013-09-26 Thread Marshall Bockrath-Vandegrift
Dustin Conrad writes: > Now, in the tests for heap1.clj where I am not requiring the heap2 > namespace (or even know about it), my tests are failing because > (insert nil 1) now returns a heap2 record. Different namespaces aren’t isolated from one another. There is a single global “namespace of

Emacs font and theme for clojure

2013-09-26 Thread Murtaza Husain
Hi, I was just cycling through the different themes in emacs. I was wondering what font and theme combination others are using ? Any recommendations for mac pro retina ? I like the solarized-dark theme, however the default font doesnt seem very good with it. Thanks, Murtaza -- -- You re

Re: Nightcode questions

2013-09-26 Thread Zach Oakes
Hi, thanks for trying it out. In the future, you are welcome to post a question on reddit.com/r/Nightcode or email me directly, since these questions pertain specifically to Nightcode rather than Clojure per se. As for encoding, it currently defaults to your system encoding, but I just pushed a

Re: Emacs font and theme for clojure

2013-09-26 Thread Baishampayan Ghose
I use Source Code Pro[1] with tomorrow-theme[2]. ~BG [1] http://blogs.adobe.com/typblography/2012/09/source-code-pro.html [2] https://github.com/chriskempson/tomorrow-theme On Thu, Sep 26, 2013 at 8:21 PM, Murtaza Husain wrote: > Hi, > > I was just cycling through the different themes in emacs.

Re: Video: Generating Beautiful (and Correct) Documentation from Unit Tests Files

2013-09-26 Thread Matt Mitchell
Very nice! Does lein-midje-doc use the Midje fact(s) labels? - Matt On Wednesday, September 25, 2013 10:33:31 PM UTC-4, zcaudate wrote: > > I've put up a video of a new documentation plugin for leiningen > > Project Page: > https://github.com/zcaudate/lein-midje-doc > > Youtube Video: > http://ww

Re: Video: Generating Beautiful (and Correct) Documentation from Unit Tests Files

2013-09-26 Thread Ben Mabey
On 9/25/13 8:33 PM, zcaudate wrote: I've put up a video of a new documentation plugin for leiningen Project Page: https://github.com/zcaudate/lein-midje-doc Youtube Video: http://www.youtube.com/watch?v=8FjvhDPIUWE&feature=youtu.be Sample Generated Documentation: http://z.caudate.me/lein-midj

Re: Emacs font and theme for clojure

2013-09-26 Thread Murtaza Husain
Thanks BG. I installed both and they look beautiful. On Thursday, September 26, 2013 8:25:59 PM UTC+5:30, Baishampayan Ghose wrote: > > I use Source Code Pro[1] with tomorrow-theme[2]. ~BG > > [1] http://blogs.adobe.com/typblography/2012/09/source-code-pro.html > [2] https://github.com/ch

Re: Introspecting documentation information

2013-09-26 Thread juan.facorro
Maybe this bit of code serves your purpose or leads you in some useful direction. (ns doc-query (:use clojure.repl)) (defn seq-docs "Prints the docstrings of a seq of symbols." [s] (with-out-str (doseq [x s] (eval `(doc ~x) (defn ns-docs "Given a namespace object or its symbol ret

Re: Introspecting documentation information

2013-09-26 Thread juan.facorro
Maybe this bit of code serves your purpose or leads you in some useful direction. (ns doc-query (:use clojure.repl)) (defn seq-docs "Prints the docstrings of a seq of symbols." [s] (with-out-str (doseq [x s] (eval `(doc ~x) (defn ns-docs "Given a namespace object or its symbol ret

Adding tomorrow theme to prelude

2013-09-26 Thread Murtaza Husain
Hi, I want to use the tomorrow theme with prelude - https://github.com/chriskempson/tomorrow-theme How do I add it to use with prelude ? Is a prelude package availaible for it ? Thanks, Murtaza -- -- You received this message because you are subscribed to the Google Groups "Clojure" group.

[Video] Deep Walking Macros

2013-09-26 Thread Timothy Baldridge
Here's a short 30 min video I put up on YouTube this morning as a introduction to macros and specifically deep-walking macros. http://www.youtube.com/watch?v=HXfDK1OYpco Perhaps it will be useful to some. Timothy -- -- You received this message because you are subscribed to the Google Groups

[Video] Understanding list comprehension in Clojure

2013-09-26 Thread Jernau
Hi everyone, I recorded another screencast - this time with the aim of helping people understand list comprehension in Clojure . I hope that some Clojure newcomers (or those unfamiliar with list comprehension) find it useful. Cheers, James -- --

Re: Emacs font and theme for clojure

2013-09-26 Thread Joel Holdbrooks
I've been using the noctilux-theme with Oxygen Mono or Liberation Mono . On Thursday, September 26, 2013 7:51:44 AM UTC-7, Murtaza Husain wrote: > > H

Re: [ANN] ribol "v0.2.1" - comprehensive document on conditional restart systems

2013-09-26 Thread Dima Sabanin
Thanks for implementing this! I found myself in a situation when I needed to provide different exceptions types triggering different errors in the raise-on macro. I implemented this as a macro that's just nesting the raise-on blocks: https://gist.github.com/dsabanin/6717877 Is that something that

Re: Introspecting documentation information

2013-09-26 Thread Marek Kubica
Hey, Thanks for your answer. On Thu, 26 Sep 2013 10:34:20 -0700 (PDT) "juan.facorro" wrote: > Maybe this bit of code serves your purpose or leads you in some > useful direction. > (defn seq-docs > "Prints the docstrings of a seq of symbols." > [s] > (with-out-str (doseq [x s] (eval `(doc

Re: Emacs font and theme for clojure

2013-09-26 Thread martin madera
I am quite comfortable with arjen theme. Dne čtvrtek, 26. září 2013 20:15:27 UTC+2 Joel Holdbrooks napsal(a): > > I've been using the noctilux-theme > with > Oxygen Mono or Liberation > Mono

Re: [ANN] ribol "v0.2.1" - comprehensive document on conditional restart systems

2013-09-26 Thread Chris Zheng
Hi Dima, I think you can already add multiple types of exceptions with raise-on... I am sure it was there in my tests... :) will confirm today. It shouldn't be too hard to add a finally clause into the raise-on macro... Thanks for you suggestion i would caution again using too much of raise-on

Re: Video: Generating Beautiful (and Correct) Documentation from Unit Tests Files

2013-09-26 Thread Chris Zheng
Hi Ben! Thanks for the feedback! I have thought about how this feature may be implemented. I've got some ideas but a little short on time... With what you are saying, The autodoc feature has to be built into the library as well. To generate an index of functions, one can use a tag of some kind.

Re: Video: Generating Beautiful (and Correct) Documentation from Unit Tests Files

2013-09-26 Thread Chris Zheng
Thanks Matt! Yes it does! Please give it a go. I would love to see some examples of more generated readmes On 27/09/2013, at 1:39, Matt Mitchell wrote: > Very nice! Does lein-midje-doc use the Midje fact(s) labels? > > - Matt > > On Wednesday, September 25, 2013 10:33:31 PM UTC-4, zcaudate

adoption of clojurescript.test

2013-09-26 Thread Mimmo Cosenza
Hi all, while working on CLJS I always use someone else's CLJS libs (e.g. domina, dommy, shoreleave, hiccups, now enfocus, etc). Few of them have unit testing code and the ones that have it use different and tricky approaches. My personal opinion is that the clojurescript.test unit testing lib

Re: [ANN] clara-rules 0.1.0 released -- rules as a control structure

2013-09-26 Thread Chris Zheng
Hi Ryan! Thanks for your response. I would love to see maps and nested maps as part of the rules. I find that clara provides great syntax for defining inputs and outputs and I would love to use it as a rules engine just beneath my front end. However, most of my work is web based, data is javas

Re: [Video] Understanding list comprehension in Clojure

2013-09-26 Thread Magomimmo
Nice job, as usual! mimmo On Thursday, September 26, 2013 8:10:33 PM UTC+2, Jernau wrote: > > Hi everyone, > > I recorded another screencast - this time with the aim of helping people > understand > list comprehension in Clojure > . > > I hope that so

Re: room available at Clojure/conj (taken)

2013-09-26 Thread Rich Morin
I have found a roommate. -r -- http://www.cfcl.com/rdmRich Morin http://www.cfcl.com/rdm/resume r...@cfcl.com http://www.cfcl.com/rdm/weblog +1 650-873-7841 Software system design, development, and documentation -- -- You received this message because you are subscrib

Re: ANN How to Write a Useful Change Log

2013-09-26 Thread Colin Fleming
I'm a little late to the party here, but I just wanted to thank you guys for writing these posts - they're great. Thanks for emphasizing the social aspects of software development, this is all to often forgotten. On 13 September 2013 09:09, Michael Klishin wrote: > The ClojureWerkz team recently

Re: Typedef-like functionality for Clojure records?

2013-09-26 Thread Jason Wolfe
I'm not sure if this would meet your need (it doesn't help with your proximate defrecord issue), but if you're primarily interested in documentation and validation you could consider prismatic/schema [1] as a translation target, and just represent your data with maps. [1] https://github.com/Pri

Re: [ANN] ribol "v0.2.1" - comprehensive document on conditional restart systems

2013-09-26 Thread Lee Spector
I apologize for the naivety of this question, but whenever I see libraries/discussions of enhanced mechanisms for exceptions/conditions/errors/restarts/etc in Clojure I wonder if they could provide a couple of features that I dearly miss from Common Lisp, and this contribution makes me wonder

[ANN] Garden 1.0.0 released

2013-09-26 Thread Joel Holdbrooks
After nearly a month and a half of work, I'm extremely excited to finally announce the release of Garden 1.0.0 ! This new release contains several important bug fixes, new features, and of course breaking changes. Please be sure to see the ChangeLog

Re: [ANN] clara-rules 0.1.0 released -- rules as a control structure

2013-09-26 Thread Ryan Brush
Hey, I appreciate the thoughts. Funny how posting a project yields use cases you've never thought of. I went ahead and logged an issue to track arbitrary maps as facts here: https://github.com/rbrush/clara-rules/issues/6 I'm looking for ways to align with you needs, but I don't see an immediat

Re: abysmal multicore performance, especially on AMD processors

2013-09-26 Thread Andy Fingerhut
Adding to this thread from almost a year ago. I don't have conclusive proof with experiments to show right now, but I do have some experiments that have led me to what I think is a plausible cause of not just Clojure programs running more slowly when multi-threaded than when single-threaded, but a

Re: [Video] Understanding list comprehension in Clojure

2013-09-26 Thread Jernau
Thanks Mimmo. By the way, I've been working my way through your modern-cljs tutorials, and have been finding them both interesting and helpful. Thank you so much for spending the time to create such a useful resource. Cheers, James On Friday, Septemb