Re: Leiningen setup for modifying a library the project is depending on

2014-10-27 Thread Mars0i
I've used the checkouts method, and found it to be a useful solution when I was actively modifying the library. When I'm not modifying the library very often, I've had fewer glitches by simply using 'lein install' from the library project directory. That installs the latest version of the libr

Re: Demoralising experience trying to install on Win 7

2014-10-27 Thread Mikera
My personal experience with using Clojure on Windows has been pretty good - but that's largely because I've sidestepped Leiningen and instead used Eclipse with the fantastic Counterclockwise plugin. I like having a proper integrated IDE, the CCW REPL is great (much better than the standard Cloj

unexpected behavior catching exceptions within a go block

2014-10-27 Thread Wei Hsu
This gist illustrates a problem I'm having where the channel is closed after running into an exception, even if I put a try/catch block around the block that generates the exception: https://gist.github.com/yayitswei/d80d51ee29dc5e2c1117 How do you handle exceptions when processing items asynch

Re: multimethod, record, type, and protocol pitfalls?

2014-10-27 Thread Jason Wolfe
Not sure if this is exactly what you're looking for, but there might be some relevant info here: https://github.com/Prismatic/eng-practices/blob/master/clojure/20130926-data-representation.md Comments/suggestions/questions welcome. -Jason On Sunday, October 26, 2014 8:48:29 AM UTC-7, Daniel

Re: multimethod, record, type, and protocol pitfalls?

2014-10-27 Thread larry google groups
> ​First of all, let me state that I'm a complete Clojure noob. > Still, I thought that Clojure's multimethods were a completely > valid OOP approach. > ​ Q ​uoting Alan Kay: When I have made that point (about Alan Kay's vision) to certain OOP evangelists, I have been told that Alan Kay's vis

Re: Demoralising experience trying to install on Win 7

2014-10-27 Thread Fluid Dynamics
On Monday, October 27, 2014 7:07:52 PM UTC-4, blake wrote: > > I think it's a recent thing, FWIW:​ I've installed Clojure with lein.bat > on several Windows (and Linux) machines with no difficulty. It's been truly > wonderful, especially after wrestling with Ruby (and other Open Source) > instal

Re: Demoralising experience trying to install on Win 7

2014-10-27 Thread blake
I think it's a recent thing, FWIW:​ I've installed Clojure with lein.bat on several Windows (and Linux) machines with no difficulty. It's been truly wonderful, especially after wrestling with Ruby (and other Open Source) installations for years. I'm sure there's room for improvement; I'm just addi

Re: Demoralising experience trying to install on Win 7

2014-10-27 Thread Andy Fingerhut
I hope I am not pre-announcing things before they've been tested to work, or misinterpreting work that is going on now, but it appears that Leiningen folks are fixing Windows-specific issues as this conversation is taking place (perhaps due to this conversation taking place). https://github.com/te

Re: tools.analyzer.jvm clojure.lang.Var$Unbound cannot be cast to clojure.lang.DynamicClassLoader

2014-10-27 Thread Nicola Mometto
Version 0.6.2 introduced a bug in analyze+eval, I just released 0.6.3 which also includes a significant preformance improvement. Nicola Mometto writes: > Hi Nick, > I looked into it, I'm not sure if this should be considered a clojure > bug, a lein bug or a t.a.jvm one (I'd expect Compiler/LOADE

Re: Demoralising experience trying to install on Win 7

2014-10-27 Thread Sean Corfield
On Oct 25, 2014, at 8:20 AM, Geoff Caplan wrote: > I've worked on Open Source projects myself and realise the realities. But > this is a big project, and ignoring the needs of new Windows users is surely > hurting it significantly? If this was prioritised, I suspect someone could be > found to

Re: Cannot understand why I get this output.

2014-10-27 Thread Roelof Wobben
Thanks all persons for the help and patience with me. Roelof Op maandag 27 oktober 2014 22:23:50 UTC+1 schreef James Reeves: > Right. It's similar to writing: > > (def x 5) > > (= #{x} #{5}) > > You'd expect that to be true, right? > > > When Clojure comes across an unquoted symbol (like x or

Re: Cannot understand why I get this output.

2014-10-27 Thread James Reeves
Right. It's similar to writing: (def x 5) (= #{x} #{5}) You'd expect that to be true, right? When Clojure comes across an unquoted symbol (like x or octavia), it tries to evaluate it, replacing it with the value it represents. In a similar way, unquoted lists (anything in parentheses) are als

Re: Cannot understand why I get this output.

2014-10-27 Thread Roelof Wobben
Np, So if I understand it right. I see the first one in repl. Because midje has #{octavia} and in another function is stated : (def octavia {:name "Octavia E. Butler" :birth-year 1947 :death-year 2006}) clojure makes from the first {octavia} the second {:name "Octa

Re: Cannot understand why I get this output.

2014-10-27 Thread James Reeves
Sorry, I misplaced a couple of brackets: (= {:title "Wild Seed", :authors #{{:name "Octavia E. Butler", :birth-year 1947, :death-year 2006}}} {:title "Wild Seed", :authors #{octavia}}) That should work. - James On 27 October 2014 20:20, Roelof Wobben wrote: > nope, there is somewhere a err

Re: Clojure and concurrency

2014-10-27 Thread Øyvind Teig
Gary, thank you! kl. 22:41:02 UTC+1 søndag 26. oktober 2014 skrev Gary Verhaegen følgende: > > Transactions themselves are not queued (besides the obvious queueing > of threads when you have more threads than cores). What gets > adaptively queued is the historical values of refs involved in > t

Re: CCW bug [SEVERE]

2014-10-27 Thread Colin Fleming
IntelliJ definitely does this, and since it also saves automatically (on losing focus, or on events like running something, or on 5 secs of inactivity) you get a very fine-grained history. I love this feature, I don't miss manual file saving at all. It basically works like a lightweight automatic V

[ANN] Dynohub 1.1.0 - DynamoDB Clojure Client

2014-10-27 Thread jongwon.choi
You can try it via Github(https://github.com/ozjongwon/dynohub) or Clojars(https://clojars.org/com.ozjongwon/dynohub) Besides several bug fixes, an important major feature is supporting filter expression (aws-java-sdk 1.9.0+ required) : (dl/query :employee-table {:site-id [:eq "4w"]} :

Re: Clojure and concurrency

2014-10-27 Thread Øyvind Teig
Loan, thank you! kl. 21:03:59 UTC+1 søndag 26. oktober 2014 skrev Leon Grapenthin følgende: > > > > On Sunday, October 26, 2014 11:37:43 AM UTC+1, Øyvind Teig wrote: >> >> I have been reading myself up on Clojure concurrency, starting at [1]. In >> [2] I read that >> >> The Clojure STM uses multi

Re: multimethod, record, type, and protocol pitfalls?

2014-10-27 Thread Raoul Duke
> Sure. But since Alan Kay is the guy who invented the term "object oriented", > I guess his definition should be, at least, considered. > It seems that nowadays that only Java is properly "object oriented". This is > far from true. i suspect you read my note as trying to pick a side. -- You re

Re: Cannot understand why I get this output.

2014-10-27 Thread Roelof Wobben
nope, there is somewhere a error in the example. When I copie it as you made it then I see this error message : RuntimeException Unmatched delimiter: } clojure.lang.Util.runtimeException (Util.java:219) when I add a extra ) I see this message : RuntimeException Map literal must contain an

Re: multimethod, record, type, and protocol pitfalls?

2014-10-27 Thread Rogerio Senna
On Mon, Oct 27, 2014 at 4:13 PM, Raoul Duke wrote: > > Notice that he intentionally left "inheritance" out from that definition. > > there are more connotations of "object oriented" than there are quills > on a porcupine. > ​Sure. But since Alan Kay is the guy who invented the term "object orien

Re: [ANN] Clojure 1.7.0-alpha3 now available

2014-10-27 Thread Reid McKenzie
Oops. Linked an old benchmark version. https://www.refheap.com/92391 Reid On 10/27/2014 03:13 PM, Reid McKenzie wrote: For grins I slapped together this benchmark , which tries to compare calls with callsite static arity to application both for fully unrolled a

Re: [ANN] Clojure 1.7.0-alpha3 now available

2014-10-27 Thread Reid McKenzie
For grins I slapped together this benchmark , which tries to compare calls with callsite static arity to application both for fully unrolled and partially unrolled functions. The results I see indicate that in both cases the cost of |apply| is almost equal for all

Re: Cannot understand why I get this output.

2014-10-27 Thread James Reeves
On 27 October 2014 19:37, Roelof Wobben wrote: > of course I can. > > If I look at answers other people gives then this is the solution : > > (defn old-book->new-book [book] > (assoc book :authors (set (book :authors))) > ) > > and then according to the explanation I would see this output ; > >

Re: Cannot understand why I get this output.

2014-10-27 Thread Roelof Wobben
of course I can. If I look at answers other people gives then this is the solution : (defn old-book->new-book [book] (assoc book :authors (set (book :authors))) ) and then according to the explanation I would see this output ; (old-book->new-book {:title "Wild Seed", :authors [octavia]});=

Re: Cannot understand why I get this output.

2014-10-27 Thread James Reeves
On 27 October 2014 19:16, Roelof Wobben wrote: > Wierd, also on 1.5.1 I see the same output as 1.6.0. > > So there is a error in the page or the test are not checking it properly . > Could you explain what you think is an error? Your messages are a little cryptic. - James -- You received thi

Re: Cannot understand why I get this output.

2014-10-27 Thread Roelof Wobben
Wierd, also on 1.5.1 I see the same output as 1.6.0. So there is a error in the page or the test are not checking it properly . Pity, this is a way I like to learn. Roelof Op maandag 27 oktober 2014 18:03:29 UTC+1 schreef Roelof Wobben: > Thanks. > > I did a peek at the answer and it seems

Re: CCW bug [SEVERE]

2014-10-27 Thread Fluid Dynamics
On Monday, October 27, 2014 11:45:47 AM UTC-4, tbc++ wrote: > > Whenever someone has suggested something (using git, submitting a bug > report), you've replied (paraphrase) "meh, I can't be bothered". > The former suggestion, especially, seems excessively heavyweight for the particular circumsta

Re: multimethod, record, type, and protocol pitfalls?

2014-10-27 Thread Raoul Duke
> Notice that he intentionally left "inheritance" out from that definition. there are more connotations of "object oriented" than there are quills on a porcupine. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to cl

Re: multimethod, record, type, and protocol pitfalls?

2014-10-27 Thread Rogerio Senna
On Mon, Oct 27, 2014 at 2:21 PM, larry google groups < lawrencecloj...@gmail.com> wrote: ​ > The differences between OOP and multimethods should be stressed. > > I just wrote about this on my blog, and those who mostly worked with OOP > kept wondering, how do you get inheritance of functionality?

Re: [ANN] Clojure 1.7.0-alpha3 now available

2014-10-27 Thread Timothy Baldridge
Both apply and variadic functions have some overhead. This helps address both. On Mon, Oct 27, 2014 at 11:50 AM, Alex Miller wrote: > On Monday, October 27, 2014 9:36:02 AM UTC-5, Phillip Lord wrote: >> >> >> And the performance boost is just to avoid the list creation in the >> variadic argumen

Re: CCW bug [SEVERE]

2014-10-27 Thread Alex Miller
On Monday, October 27, 2014 10:21:35 AM UTC-5, Fluid Dynamics wrote: > > >> > I'm not going through the ritual of check-in and check-back-out every > single time I'd normally hit control-S. Too much friction, too much > work-that-isn't-development. > Doesn't Eclipse already have a local file

Re: [ANN] Clojure 1.7.0-alpha3 now available

2014-10-27 Thread Alex Miller
On Monday, October 27, 2014 9:36:02 AM UTC-5, Phillip Lord wrote: > > > And the performance boost is just to avoid the list creation in the > variadic argument? > Yes. There's some perf timings in the ticket. -- You received this message because you are subscribed to the Google Groups "Clojure

Re: Cannot understand why I get this output.

2014-10-27 Thread Roelof Wobben
Thanks. I did a peek at the answer and it seems that this one do make it work. (defn old-book->new-book [book] (let [authors (get book :authors)] (assoc book :authors (set authors Roelof Edit 1 : I think I found it. The course is in 1.5.1 and im not trying it in 1.6.0 Op maandag

Re: Testing and infrastructure management for large Clojure app - how are you doing it?

2014-10-27 Thread Craig Brozefsky
On our non-trivial application, we have broken our testing into the following sets: * Unit Tests -- written by devs, run as part of our integration builder and when doing dev * Integration Tests -- automated, hitting our external APIs, written in clojure, maintained by the devs mostly, run as part

Re: testing platform , midje or specjl ?

2014-10-27 Thread Gary Verhaegen
For example-based testing, i really like expectations. I think it pushes in the right direction (simple, functional), and has good enough tool support (lein-autoexpect, and a pretty trivial way of running tests in both Eclipse and Maven, which is great for the mostly Java environment I work in). O

multimethod, record, type, and protocol pitfalls?

2014-10-27 Thread Gary Verhaegen
It has not been a pain point for me so far, but there is one more thing that may be somewhat surprising: multimethods and protocols introduce non-locality into the code. This means that, with code that uses multimethods or protocols, sometimes requiring a namespace and not using any symbol from it

Re: multimethod, record, type, and protocol pitfalls?

2014-10-27 Thread larry google groups
The differences between OOP and multimethods should be stressed. I just wrote about this on my blog, and those who mostly worked with OOP kept wondering, how do you get inheritance of functionality? Actually, they did not ask this clearly, so it took me awhile to understand their question, an

Re: multimethod, record, type, and protocol pitfalls?

2014-10-27 Thread Daniel Higginbotham
These responses are all super helpful, thank you! I'd love to hear more pitfalls/pain points if anyone else wants to share. Thanks! Daniel On Monday, October 27, 2014 6:59:43 AM UTC-4, Gary Verhaegen wrote: > > As recently mentioned on another thread, this also means that you cannot > have two

Re: CCW bug [SEVERE]

2014-10-27 Thread Phillip Lord
Fluid Dynamics writes: >> Really, you expect me to create an account and publish every little >> > bit of code I play around with on github? >> >> Publication of code for VCS isn't really necessary. RCS which was >> released in 1982 didn't require it (actually, didn't support it). With >> the

Re: tools.analyzer.jvm clojure.lang.Var$Unbound cannot be cast to clojure.lang.DynamicClassLoader

2014-10-27 Thread Nicola Mometto
Hi Nick, I looked into it, I'm not sure if this should be considered a clojure bug, a lein bug or a t.a.jvm one (I'd expect Compiler/LOADER to always be bound during compilation) but in the meantime I've pushed a workaround that should fix this and a 0.6.2 version is on its way to Maven Central.

Cannot understand why I get this output.

2014-10-27 Thread Gary Verhaegen
On Monday, 27 October 2014, Roelof Wobben > wrote: > > I expected the outcome : *octavia* > but I see the output : [{:death-year 2006, :name " > Octavia E. Butler", :birth-year 1947}] > > Roelof > I see. You will not get octavia as an outcome. The presentation in iloveponies seems to be slightly m

Re: Cannot understand why I get this output.

2014-10-27 Thread Ashton Kemerling
I think you're confused on the terminal output. Try typing [octavia] in the repl, and compare the output you get to the above code.  Clojure prints out the raw values of any computation, not variable names. On Mon, Oct 27, 2014 at 9:45 AM, Roelof Wobben wrote: > Op maandag 27 oktober 2014 16:

Re: Cannot understand why I get this output.

2014-10-27 Thread Roelof Wobben
Thanks, I already understand what happens now. Im now trying to find a way to convert this :authors [octavia] to :authors #{octavia} Somehow I have to use set I think but I have to figure out how . Roelof Op maandag 27 oktober 2014 16:48:10 UTC+1 schreef Ashton Kemerling: > I thin

Re: CCW bug [SEVERE]

2014-10-27 Thread Timothy Baldridge
Whenever someone has suggested something (using git, submitting a bug report), you've replied (paraphrase) "meh, I can't be bothered". Okay, that's fine, is it also okay if we reply to your bug report with "meh, we can't be bothered"? I'm sure many people here are willing to help with your problem

Re: Cannot understand why I get this output.

2014-10-27 Thread Roelof Wobben
Op maandag 27 oktober 2014 16:37:49 UTC+1 schreef James Reeves: > > On 27 October 2014 13:45, Roelof Wobben > > wrote: > >> Hello, >> >> I have this "facts". >> >> (def octavia {:name "Octavia E. Butler" >> :birth-year 1947 >> :death-year 2006}) >> >> > So you've as

Re: Cannot understand why I get this output.

2014-10-27 Thread James Reeves
On 27 October 2014 13:45, Roelof Wobben wrote: > Hello, > > I have this "facts". > > (def octavia {:name "Octavia E. Butler" > :birth-year 1947 > :death-year 2006}) > > So you've assigned the var "octavia" to the data structure: {:death-year 2006, :name "Octavia E. Bu

Re: CCW bug [SEVERE]

2014-10-27 Thread Yohan Pereira
On Mon, Oct 27, 2014 at 8:51 PM, Fluid Dynamics wrote: > Objection: relevance? The OP specifically suggested github, git != github http://en.wikipedia.org/wiki/Git_(software) http://en.wikipedia.org/wiki/GitHub -- You received this message because you are subscribed to the Google Groups "Cloju

Re: Cannot understand why I get this output.

2014-10-27 Thread Ashton Kemerling
The hash map you posted has the value of [octavia] under the key :authors, and that's what printed out. The repl doesnt inline the variable name, instead it prints out the literal value. On Mon, Oct 27, 2014 at 9:22 AM, Roelof Wobben wrote: > Op maandag 27 oktober 2014 16:07:15 UTC+1 schreef G

Re: Cannot understand why I get this output.

2014-10-27 Thread Roelof Wobben
Op maandag 27 oktober 2014 16:07:15 UTC+1 schreef Gary Verhaegen: > > On Monday, 27 October 2014, Roelof Wobben > wrote: > >> Now Im complete confused. I never succeed in reading the value of authors >> so I can do the set command. >> >> Roelof >> > > And now you're kind of confusing me. What

Re: CCW bug [SEVERE]

2014-10-27 Thread Fluid Dynamics
On Monday, October 27, 2014 5:05:55 AM UTC-4, Phillip Lord wrote: > > Fluid Dynamics > writes: > > > On Saturday, October 25, 2014 10:42:24 PM UTC-4, tbc++ wrote: > >> > >> "What if my file had been corrupted, or truncated and only the first 42 > >> bytes of the new version written thus far, or

Re: filter but for non-sequences

2014-10-27 Thread Fluid Dynamics
On Monday, October 27, 2014 3:00:40 AM UTC-4, Marcus Magnusson wrote: > > I don't see how the macro version would offer any performance benefits - > in both cases, x is evaluated once and pred is called once. Am I missing > something? > Nah. Someone upthread suggested a macro, for some reason. I

Re: Cannot understand why I get this output.

2014-10-27 Thread Gary Verhaegen
On Monday, 27 October 2014, Roelof Wobben wrote: > Now Im complete confused. I never succeed in reading the value of authors > so I can do the set command. > > Roelof > And now you're kind of confusing me. What makes you think you do not read the value of authors? What did you expect instead of

tools.analyzer.jvm clojure.lang.Var$Unbound cannot be cast to clojure.lang.DynamicClassLoader

2014-10-27 Thread Nick Zbinden
Hallo, Im trying to use tools.analyzer to analyse some clojure code and compile it. I have used '(ana/analyze+eval form)' and it has worked nicely. Now I always called my compile function either directly inside of the code, or I would call it like this 'lein run test.clj'. Now I tried to use '

Re: Cannot understand why I get this output.

2014-10-27 Thread Roelof Wobben
Now Im complete confused. I never succeed in reading the value of authors so I can do the set command. Roelof Op maandag 27 oktober 2014 15:50:05 UTC+1 schreef Gary Verhaegen: > You do read it. You just don't turn it into a set. To turn a vector into a > set, you can use the set function: (s

Re: Cannot understand why I get this output.

2014-10-27 Thread Gary Verhaegen
You do read it. You just don't turn it into a set. To turn a vector into a set, you can use the set function: (set [octavia]). On Monday, 27 October 2014, Roelof Wobben wrote: > correct, > > What I try to achieve is to read the vector called authors and convert it > into a set later. > So I thou

Re: Cannot understand why I get this output.

2014-10-27 Thread Roelof Wobben
correct, What I try to achieve is to read the vector called authors and convert it into a set later. So I thought i could read the contents of author with what I have put into my orginal question but apperently I made a thinking error. So back to the drawing table. :( Roelof Op maandag 2

Re: [ANN] Clojure 1.7.0-alpha3 now available

2014-10-27 Thread Phillip Lord
And the performance boost is just to avoid the list creation in the variadic argument? Alex Miller writes: > Most Clojure core functions unroll to 3 or 4, really just depends how much > of the tail you think is worth picking up. I don't think we have any hard > and fast rule on it. > > On M

Re: Cannot understand why I get this output.

2014-10-27 Thread Colin Yates
I am unsure of your question then - what you pasted is correct. On the linked page it shows a slightly different output: (old-book->new-book {:title "Wild Seed", :authors [octavia]}) ;=> {:title "Wild Seed", :authors #{octavia}} The "#{}" syntax is a literal set, that is all. It isn't renderin

[ANN] cats 0.2.0 - category theory abstractions for Clojure(Script)

2014-10-27 Thread alejandro
Hello everybody, I wanted to announce the 0.2.0 release of cats, a library with category theory abstractions for Clojure(Script) heavily inspired by Haskell. This release packs a lot of punch: - Major API redesign. - Split of monad definitions from the data types. - New monads: Reader, Writer

Testing and infrastructure management for large Clojure app - how are you doing it?

2014-10-27 Thread David Mitchell
Hi group, Apologies for the somewhat cryptic subject line - I'll try to explain... Apologies also for the length of the post, but I'm sure others will hit the same problem if they haven't already done so, and hopefully this discussion will help them find a way out of a sticky situation. We've

Re: Cannot understand why I get this output.

2014-10-27 Thread Roelof Wobben
Nope, the exercise I stated this : (old-book->new-book {:title "Wild Seed", :authors [octavia]}) See exercise 22 on this page : http://iloveponies.github.io/120-hour-epic-sax-marathon/structured-data.html#exercise-22 Roelof Op maandag 27 oktober 2014 14:52:23 UTC+1 schreef Colin Yates: >

Re: [ANN] Clojure 1.7.0-alpha3 now available

2014-10-27 Thread Alex Miller
Most Clojure core functions unroll to 3 or 4, really just depends how much of the tail you think is worth picking up. I don't think we have any hard and fast rule on it. On Monday, October 27, 2014 2:23:15 AM UTC-5, Phillip Lord wrote: > > > I am curious, with path CLJ-1430 why stop at 3 argume

Re: Starting a project the right way - tips?

2014-10-27 Thread Ashton Kemerling
I ham-fistedly kill and reset the DB before every test using clojure.test fixtures. Passing the conn never occurred to me, and I kind of wish I did it that way. Currently I have any reading database functions accept the db (which makes testing using “with” very fast and easy), and any writin

Re: Cannot understand why I get this output.

2014-10-27 Thread Colin Yates
(get book :authors) is saying "return the value of the ":authors" key in the "book" map. You provided {:title... :authors [octavia]} as the "book" map, the value of "authors" being a vector with a single element. That single element being "{:name "Octavia E. Butler" :birth-year 19

Re: Starting a project the right way - tips?

2014-10-27 Thread Sven Richter
Hi Ashton, After some discussion in the datomic and clojure irc channel I decided to go the route to pass in the datomic connection or datomic value to every function. This way it is really easy to do integration tests of these functions by setting up an in memory datomic database for every sin

Cannot understand why I get this output.

2014-10-27 Thread Roelof Wobben
Hello, I have this "facts". (def octavia {:name "Octavia E. Butler" :birth-year 1947 :death-year 2006}) (def wild-seed {:title "Wild Seed", :authors [octavia]}) So I thought when I do this : (defn old-book->new-book [book] (get book :authors)) (old-book-

Re: Starting a project the right way - tips?

2014-10-27 Thread Colin Yates
Thanks all. Just managed to wire in clojurescript.test into my lein build - woot :). On Monday, October 27, 2014 1:38:02 PM UTC, James Reeves wrote: > > I've gotten on well with using Component > for managing the high-level > I/O dependencies of my ap

Re: Starting a project the right way - tips?

2014-10-27 Thread James Reeves
I've gotten on well with using Component for managing the high-level I/O dependencies of my application. There's also Ring-Defaults , which provides sensible and customisable default middleware settings. -

[ANN] Monroe 0.2.0 - nrepl client for Emacs

2014-10-27 Thread Sanel Zukan
Hi, I'm happy to announce the release of Monroe 0.2.0, a new nREPL client for Emacs. This release comes with a bunch of fixes and some new features, like support for interrupting remote evaluations, reading from stdin, getting exception details and more. Release changes and download link are on

Re: Starting a project the right way - tips?

2014-10-27 Thread Ashton Kemerling
Consider how your database will be setup and handled. My project uses Datomic (also a SPA), but it was a little painful learning how to get the tests to run cleanly with the database being setup and torn down between runs. Also, consider using Secretary on the frontend early. I’m using Om and

Re: Starting a project the right way - tips?

2014-10-27 Thread Joshua Ballanco
Just in case you hadn’t already come across it in your Google-ing, I thought you should know about http://clojure-doc.org . This site is more than just API documentation, it also contains a number of useful guides covering various topics in Clojure. It’s not exactly a collection of prescriptions

Re: midje test : Can I only run 1 test

2014-10-27 Thread Brian Marick
On Oct 22, 2014, at 9:59 AM, Tobias Kortkamp wrote: > Yes, you can tag your facts, and then only run the facts with a specific tag. > See https://github.com/marick/Midje/wiki/Lein-midje under the :filter section. See also: https://github.com/marick/Midje/wiki/Using-metadata-to-filter-facts --

Starting a project the right way - tips?

2014-10-27 Thread Colin Yates
About to embark on a new project and interested in "wish I knew this"/"wish I had used this" type sentiments. An extension of this splendid article: http://blog.mattgauger.com/blog/2014/09/15/clojure-code-quality-tools/. Any others? For context, this is going to be a non-trivial SPA using cloju

Re: multimethod, record, type, and protocol pitfalls?

2014-10-27 Thread Gary Verhaegen
As recently mentioned on another thread, this also means that you cannot have two different protocols with the same method names in the same namespace. This may be surprising, especially from an OO background, where it is very natural to have two types with the same operations. On Monday, 27 Octob

Re: multimethod, record, type, and protocol pitfalls?

2014-10-27 Thread Sven Richter
Hi Daniel, When running through tutorials and blog posts it did not occur to me that the functions of a defprotocol are namespaced to where they are defined. Meaning, calling these functions I have to use their original namespace. It is obvious when one reads the official documentation, but one

Re: Leiningen setup for modifying a library the project is depending on

2014-10-27 Thread Sean Johnson
You also should have a look at lein-git-deps - https://github.com/tobyhede/lein-git-deps It's not quite as seamless to drop in as lein "checkouts", especially if you are working alone. But if you're on a team, it has the benefit of being explicitly baked into your project.clj so you know all te

Re: CCW bug [SEVERE]

2014-10-27 Thread Phillip Lord
Fluid Dynamics writes: > On Saturday, October 25, 2014 10:42:24 PM UTC-4, tbc++ wrote: >> >> "What if my file had been corrupted, or truncated and only the first 42 >> bytes of the new version written thus far, or something like that at the >> moment when the hang started?" >> >> So there's thi

Re: Expanding The Use Of Transducers To Atoms?

2014-10-27 Thread László Török
IMHO, for what you describe, i.e. "I'd like to view an atom's changes in state as a lazy sequence." there is no need to change the IAtom or add-watch function. Watchers are called for their side-effects, so if you want to consume their output as a "lazy sequence", you have to do that transformatio

after updating clojure a repl error message

2014-10-27 Thread Roelof Wobben
Hello, I updated my clojure from 1.5.1 to 1.6.0 and after I start lein repl I see this output : ERROR: Unhandled REPL handler exception processing message {:id cd35f8f4-8560-401e-8c70-466e00016c78, :op ack, :port 48024}

RE: [ANN] Clojure 1.7.0-alpha3 now available

2014-10-27 Thread Phillip Lord
I am curious, with path CLJ-1430 why stop at 3 arguments? Why not unroll to 20? I ask for a practical reason. In my own library, I have unrolled several functions which get called a lot. Moving from all variadic to non-variadic up to 5 args has produced a given a 2x increase in my code under e

Re: filter but for non-sequences

2014-10-27 Thread Marcus Magnusson
I don't see how the macro version would offer any performance benefits - in both cases, x is evaluated once and pred is called once. Am I missing something? Den fredagen den 24:e oktober 2014 kl. 15:47:50 UTC+2 skrev Fluid Dynamics: > > (defn if-its [pred x] > (if (pred x) x)) > > => (if-its e