Re: ANN: Clojure-Miniprofiler, a web application profiling tool

2015-02-08 Thread Sven Richter
Hi Tom, I am not arguing about the performance impact here, however, it's nice to know there hardly is one. My only concern is that the code reader has to mentally parse away the trace calls, which puts a small burden on him and which might be less if it was in some kind of a macro, fn or metad

Re: OO Programmer trying to move to Clojure: Namespace Organization

2015-02-08 Thread Atamert Ölçgen
Hi Dru, I find it easier to organize things when I follow TDD. It's easier for me to spot something is in the wrong place (module or maybe as a responsibility of a function) by looking at the tests. (This is true for any language I work with.) http://butunclebob.com/ArticleS.UncleBob.TheThreeRule

Re: OO Programmer trying to move to Clojure: Encapsulation

2015-02-08 Thread Jony Hudson
To put take a different angle on it: you might soon get to *like* that it's usual to pass in everything as a parameter explicitly. It has the advantage that it's easy to reason about what a function does just by looking at the function. In the example above, when reading AccountRepository.Save y

Re: OO Programmer trying to move to Clojure: Namespace Organization

2015-02-08 Thread Timothy Baldridge
When I first came to Clojure (from C# of all things), I had questions like this too. But over time I've become convinced that it was something I worried to much about. The guiding rule for code organization should be this: does it slow you down from the complexity? Are there so many files, that you

Clojure User Group Rhein Neckar Meetup 11.02.2015

2015-02-08 Thread Andreas Klein
Liebe Clojurianer, wir möchten unser nächstes User Group Meeting für Heidelberg, Mannheim und die Umgebung ankündigen. Das nächste Treffen findet am Mittwoch den 11.02.2015 ab 19:00 Uhr im Dezernat 16, Kultur- und Kreativwirtschaftszentrum, Emil-Maier-Strasse 16, Heidelberg

Re: OO Programmer trying to move to Clojure: Encapsulation

2015-02-08 Thread Colin Yates
+1 This separation of behaviour and state is a key part of Clojure's philosophy. That isn't to say that stateful components are bad as such (Stuart Sierra's https://github.com/stuartsierra/component is an obvious analog here) only that they aren't a given as they are in OO languages. As Jony says,

Re: OO Programmer trying to move to Clojure: Encapsulation

2015-02-08 Thread Colin Yates
I missed the salient point about data transformations which is that of abstractions. In OO (Java at least) almost everything was a special case, in Clojure it is the polar opposite; almost nothing is a special case. It is astonishing how many domains can be sufficiently modeled as a sequence o

How to profile a clojure program?

2015-02-08 Thread Giovanni Gherdovich
Hello, I am trying to use a java profiler (jvisualvm) to see why my clojure program is so slow. But I now realize that the profiler has no notion of my clojure program; I have clojure functions foo and bar, and would like to know how much they contribute to the overall execution time. jvisualvm i

Combining reloaded workflow in web dev with dynamic var approach

2015-02-08 Thread Sven Richter
Hi, This is something that I am struggling for some time and I still don't know how to solve it. For dynamic reloading in web development there is this common pattern: (def app (app-handler [home-routes user-routes base-routes] :middleware (load-middleware) :ring

Re: ANN: Clojure-Miniprofiler, a web application profiling tool

2015-02-08 Thread tcrayford
Hi Sven, Right, but you want to push miniprofiler further down the app than that. For example, with datomic I have a yeller.datomic.instrumented namespace that exports the same vars as datomic.api, but wraps them in miniprofiler tracing. From the point of view of my application code, the only t

Lisp interpreter

2015-02-08 Thread eliassonaand via Clojure
I've implemented a Lisp interpreter as a way of understanding the eval/apply procedure in Lisp. Here is the link to the code: https://github.com/eliassona/mylisp. For me it was a great learning exercise into the foundation of computer science according to SICP. It was very interesting to see h

Re: ANN: Clojure-Miniprofiler, a web application profiling tool

2015-02-08 Thread Sven Richter
That sounds really nice, exactly the way one wants it too I think :-) Am Sonntag, 8. Februar 2015 20:37:43 UTC+1 schrieb tcrayford: > > Hi Sven, > > Right, but you want to push miniprofiler further down the app than that. > For example, with datomic I have a yeller.datomic.instrumented namespace

Re: How to profile a clojure program?

2015-02-08 Thread Di Xu
You can try timbre https://github.com/ptaoussanis/timbre 2015-02-09 2:23 GMT+08:00 Giovanni Gherdovich : > Hello, > > I am trying to use a java profiler (jvisualvm) > to see why my clojure program is so slow. > But I now realize that the profiler has no notion of my clojure program; > I have cloj

New Member Initiation

2015-02-08 Thread Shubham Jain
Hey Guys, I do apologize if i am wasting your time but am doing so only so that i can use my time to help you guys with all the hard work you are doing. To introduce myself, My name is Shubham Jain, an undergrad from the university BITS Pilani India. I really want to contribute to the helping wit

[ANN] Frege compiler plugin for Leiningen (Clojure's build tool)

2015-02-08 Thread Sean Corfield
(cross-posted to both the Frege and Clojure mailing lists so excuse the more explanatory nature!) I'm pleased to announce release 3.22.324 of lein-fregec, the Frege plugin for Leiningen: https://github.com/seancorfield/lein-fregec "Clojure is a dynamic programming language - a dialect

Re: OO Programmer trying to move to Clojure: Namespace Organization

2015-02-08 Thread David James
I often group functions that operate on similar data structures together in a namespace. This isn't always clear-cut, because some functions may "fit" in more than one namespace. I sometimes use a (soft) convention to group functions by the first argument. Yes, this means that my Clojure project

Re: OO Programmer trying to move to Clojure: Namespace Organization

2015-02-08 Thread Sean Corfield
On Feb 8, 2015, at 6:42 PM, David James wrote: > I often group functions that operate on similar data structures together in a > namespace. This isn't always clear-cut, because some functions may "fit" in > more than one namespace. I sometimes use a (soft) convention to group > functions by the