Re: Cursive IntelliJ working on multiple Leiningen projects & require - refer :as not working

2013-11-05 Thread Colin Fleming
Right, I had a chance to take a look at this - the classpath for the REPL unfortunately doesn't include the source directories of dependent modules. I'll fix that in the next build. There is a workaround. In Settings->Compiler->Clojure Compiler, enable "Copy Clojure source files to output path". I

Re: data structure creation time in cljs

2013-11-05 Thread David Nolen
Yes no benchmarking with anything other than advanced please - lots of optimizations kick in only for :advanced, especially around various forms of function invocation, :simple + :static-fns true will also give reasonable results however it'll mess with REPL interactivity. David On Tue, Nov 5, 2

Re: data structure creation time in cljs

2013-11-05 Thread kovas boguta
On Tue, Nov 5, 2013 at 11:05 PM, David Nolen wrote: > Also what optimization settings are you using? I guess I should try something other than the browser repl. Will retry with advanced optimizations. -- -- You received this message because you are subscribed to the Google Groups "Clojure" gr

Re: data structure creation time in cljs

2013-11-05 Thread David Nolen
This is really cool, would love to have something like this combined with graphs like the old ClojureScript benchmarks where we tracked based on git commit for the major JS engines. David On Tue, Nov 5, 2013 at 11:04 PM, kovas boguta wrote: > FYI, > > http://wagjo.github.io/benchmark-cljs/ > >

Re: data structure creation time in cljs

2013-11-05 Thread David Nolen
If anything is an order of magnitude slower than Clojure it should be considered a bug and be filed as such. We're shooting for w/in 2.5X for all operations. `vector` is slow and can easily be dramatically improved. I suspect there's something up with record creation and it should be looked into.

Re: data structure creation time in cljs

2013-11-05 Thread kovas boguta
FYI, http://wagjo.github.io/benchmark-cljs/ has some interesting cljs perf comparisons for various datastructures, for those who haven't seen it. On Tue, Nov 5, 2013 at 10:38 PM, kovas boguta wrote: > I'm trying to optimize zippers for clojurescript. My benchmark is > implementing the combina

data structure creation time in cljs

2013-11-05 Thread kovas boguta
I'm trying to optimize zippers for clojurescript. My benchmark is implementing the combinator systems from https://www.wolframscience.com/nksonline/page-102 which heavily stress both navigating and modifying the tree. A major hotspot seems to be data structure creation time, which can be between

Re: recommended: "Java: The Good Parts"

2013-11-05 Thread JJ
For another option, the http://docs.oracle.com/javase/tutorial/ was good enough for me in getting familiar enough with Java for Clojure. (you don't need most of the stuff there and depending on your experience you can get through the important parts in a week). Of course, I come from C and Ruby

Re: abysmal multicore performance, especially on AMD processors

2013-11-05 Thread Wm. Josiah Erikson
Neat, thanks for that. I skimmed it and don't know enough about Java to be able to tell quickly how easily we can use this to our advantage, but perhaps somebody else on the list will know. The disruptor project from LMAX has wrestled with these sort of issues at length and achieved astounding leve

Re: recommended: "Java: The Good Parts"

2013-11-05 Thread Dave Della Costa
Rich, thanks for the recommendation--will definitely be checking this book out, it's just what I need. Thanks, DD (2013/11/05 13:03), Rich Morin wrote: > When I first started looking into Clojure, I was dismayed to find that > it is deeply entangled with Java (which I had successfully avoided for

Re: Cursive IntelliJ working on multiple Leiningen projects & require - refer :as not working

2013-11-05 Thread Colin Fleming
Hmm, there may be some problem with the classpath there - I'll take a look. On 5 November 2013 23:53, Niels van Klaveren wrote: > The namepace resolution issue vanished after upgrading Cursive and > re-opening the project after deleting the IntelliJ artifacts in it. > Checkouts namespacing is re

Clojure Positions in NYC at ActionX

2013-11-05 Thread Edwin Watkeys
Hey guys, I'm the CTO of ActionX, where we've built much of our infrastructure in Clojure*. We're hiring. If you're in the NYC area and would like to work as part of an interestingly-eclectic group of programmers, please take a look at the position description below and get in touch if you're i

introducing CloServe, a view first web framework in Clojure

2013-11-05 Thread jiawei . zhao
Hi Folks, Inspired by the Lift framework, I have started a project to bring similar view first web framework to Clojure. Currently it has implemented some features like surround, embed, ajax form, comet, rest. The code is available at: https://github.com/zhaojw/closerve Live demo: http://clo

macro definition slight problem

2013-11-05 Thread Jim - FooBar();
Hi all, I was under the impression that I fully understood what name-with-attributes does but I'm having a slight problem. I'm trying to define macros like the following: (defmacro defworkflow "Defines a top-level Workflow with the specified name optionally doc-string and attr-map on the var

[ANN] Pedestal 0.2.2 Released

2013-11-05 Thread Ryan Neufeld
Hey folks! I wanted to let you all know that we’ve just released Pedestal 0.2.2, the final bug fix release in the 0.2.x stream before we publish 0.3.0. We’ve got some exciting changes in the works, you’ll be able to find out more after we reveal them at the Conj next week. Hope to see you there

The 2013 State of Clojure & ClojureScript survey is now open

2013-11-05 Thread Chas Emerick
As in years past, I am running a 'State of Clojure' survey, which this year also includes a full section on ClojureScript: http://cemerick.com/2013/11/05/2013-state-of-clojure-clojurescript-survey/ Your participation is most welcome. And, please do what you can to spread the above link around

Re: Testing with Angular.js, Clojurescript and Purnam - Code and Part 1

2013-11-05 Thread Mark Mandel
This is actually really relevant to me - I'm *just* about to start writing angular tests with purnam.test.angular. Thanks! Mark On Tue, Nov 5, 2013 at 9:56 PM, Chris Zheng wrote: > I'm sorry ;-) > > but I've written that many clojure macros for this library that i think > the post is still re

Re: Testing with Angular.js, Clojurescript and Purnam - Code and Part 1

2013-11-05 Thread Chris Zheng
I'm sorry ;-) but I've written that many clojure macros for this library that i think the post is still relevant =) On 05/11/2013, at 9:39 PM, Josh Kamau wrote: > zcaudate, > You realize you have posted on a clojure mailing list?? > > > On Tue, Nov 5, 2013 at 1:31 PM, zcaudate wrote: > Co

Re: Cursive IntelliJ working on multiple Leiningen projects & require - refer :as not working

2013-11-05 Thread Niels van Klaveren
The namepace resolution issue vanished after upgrading Cursive and re-opening the project after deleting the IntelliJ artifacts in it. Checkouts namespacing is recognized as well, and checkouts src directories are nicely marked as such. However, when loading the file in the REPL I get a "Could n

Re: Testing with Angular.js, Clojurescript and Purnam - Code and Part 1

2013-11-05 Thread Josh Kamau
zcaudate, You realize you have posted on a clojure mailing list?? On Tue, Nov 5, 2013 at 1:31 PM, zcaudate wrote: > Code: https://github.com/zcaudate/purnam-angular-example > Demo: http://docs.caudate.me/purnam-angular-example/ > Article: http://z.caudate.me/purnam-angular-js-testing-part-1-se

Testing with Angular.js, Clojurescript and Purnam - Code and Part 1

2013-11-05 Thread zcaudate
Code: https://github.com/zcaudate/purnam-angular-example Demo: http://docs.caudate.me/purnam-angular-example/ Article: http://z.caudate.me/purnam-angular-js-testing-part-1-services/ Even with the karma test runner, testing in angularjs is painful. It's

Re: [ANN] Jig

2013-11-05 Thread Malcolm Sparks
Hi Tim, The tests in JUXT accounting are using clojure.core.test. I'm fairly sure Midje's :autotest feature does something dynamic to determine the tests to run and that may not work with Jig's classloading approach. For example, if something uses (System/getProperty "java.class.path") it will

Re: [ANN] Jig

2013-11-05 Thread Malcolm Sparks
Hi Tim, Thanks for the great feedback, it's really useful. I've tried to keep the config so that it works out-of-the-box for examples, but is possible to point at other configurations without mutating the Jig repo itself. But I see there's more refinements needed. If you look in jig/src/user.c