Re: [RFC] Roundtripping namespaced xml documents for data.xml

2014-05-25 Thread Herwig Hochleitner
2014-05-23 19:01 GMT+02:00 Paul Gearon gea...@gmail.com: I still argue for using keywords here. The existing API uses them, and they're a natural fit. The fact that they have established meaning (for denoting literal xml names + their prefix in a given serialization) in the API is exactly

[ANN] monarch 0.2.0 - Simple database migrations for Clojure.

2014-05-25 Thread Michael Cramm
I realize that there are other database migration frameworks already availablefor clojure projects, but I always seem to run into issues pretty fast in trying to use them. This is also the first plugin I've developed and made publicly available, so I'd love some feedback! I've been using

Remote function calls / simple distributed computation

2014-05-25 Thread David James
What are the ways to do remote function calls with Clojure? Here is a *low-level list* I have so far: * Java Remote Method Invocation API: http://docs.oracle.com/javase/7/docs/technotes/guides/rmi/index.html * nREPL: https://github.com/clojure/tools.nrepl There are *higher-level tools*, too, such

dynamic java obj construction from classname string

2014-05-25 Thread Gregg Reynolds
Hi, I'm trying to construct a Java obj from a from a classname string. I've managed to import the thing using a macro: (defmacro import-by-name [name] `(import [~name])) (let [klass-name foo.bar.Baz the-ns (import-by-name klass-name) the-obj (new foo.bar.Baz arg)] ...)

Re: dynamic java obj construction from classname string

2014-05-25 Thread Shantanu Kumar
On Sunday, 25 May 2014 22:45:27 UTC+5:30, Gregg Reynolds wrote: Hi, I'm trying to construct a Java obj from a from a classname string. I've managed to import the thing using a macro: (defmacro import-by-name [name] `(import [~name])) (let [klass-name foo.bar.Baz the-ns

non-literate, excellent documentation style

2014-05-25 Thread daly
Giving my LP horse a rest I'd like to call your attention to backbone.js and the way they arrange documentation. It is less of a story form or why explanation and more on the details which are not apparent in the code. I don't know what tool was used to create it.

Re: non-literate, excellent documentation style

2014-05-25 Thread Marek Srank
Based on the name of the css file I'd say they use http://jashkenas.github.io/docco/ ;) Marek On Sunday, May 25, 2014 9:45:19 PM UTC+2, da...@axiom-developer.org wrote: Giving my LP horse a rest I'd like to call your attention to backbone.js and the way they arrange documentation. It is

Re: non-literate, excellent documentation style

2014-05-25 Thread Angel Java Lopez
Yes, it is based on docco http://jashkenas.github.io/docco/ Check https://github.com/jashkenas/backbone/blob/master/package.json the doc scripts is doc: docco backbone.js docco examples/todos/todos.js examples/backbone.localstorage.js, On Sun, May 25, 2014 at 4:51 PM, Marek Srank

Re: non-literate, excellent documentation style

2014-05-25 Thread Daniel Kersten
There are also Clojure tools to generate documentation like this: https://github.com/gdeer81/marginalia On 25 May 2014 20:55, Angel Java Lopez ajlopez2...@gmail.com wrote: Yes, it is based on docco http://jashkenas.github.io/docco/ Check

Macro and metadata

2014-05-25 Thread Angel Java Lopez
I see that macro are defined with associated metadata :macro true in its associated var. Evaluate: (meta (var defn)) and you see the :macro true in metadata Why? In other lisp, macro are the result of evaluate (mlambda ... ) or something alike, that is, macro are values that are evaluated in

Re: dynamic java obj construction from classname string

2014-05-25 Thread Gregg Reynolds
On Sun, May 25, 2014 at 2:00 PM, Shantanu Kumar kumar.shant...@gmail.com wrote: On Sunday, 25 May 2014 22:45:27 UTC+5:30, Gregg Reynolds wrote: Hi, I'm trying to construct a Java obj from a from a classname string. I've managed to import the thing using a macro: (defmacro import-by-name

Re: Macro and metadata

2014-05-25 Thread James Reeves
A macro is a function that's evaluated at compile time rather than at runtime. Clearly the compiler needs some mechanism to distinguish between the two, correct? Clojure already has metadata and functions, so using a metadata flag on the var introduces no new types. It also has the advantage of

Re: non-literate, excellent documentation style

2014-05-25 Thread Mark Engelberg
Unfortunately, marginalia has a lot of unresolved issues, bugs and limitations, but it was a good first step in this direction for the Clojure community. On Sun, May 25, 2014 at 2:34 PM, Daniel Kersten dkers...@gmail.com wrote: There are also Clojure tools to generate documentation like this:

Re: [ANN] monarch 0.2.0 - Simple database migrations for Clojure.

2014-05-25 Thread Atamert Ölçgen
Is there a reason why DATABASE_URL isn't in the project config? I guess a more relevant question would be to ask if there's something like a local config file for leiningen projects? Something that is per-project but ideally ignored by the VCS. Something that you can use to override what's inside

Re: Remote function calls / simple distributed computation

2014-05-25 Thread Atamert Ölçgen
I realize it's not exactly what you are looking for, but perhaps a pmap-like implementation can easily be built using a distributed message queue. The tricky part would be to ensure the functions to be distributed can be safely serialized/deserialized. (Not doing I/O or using other shared

[ASK] How to unify methodological prototyping with implementation in reality (aka in cascalog)?

2014-05-25 Thread Hesen Peng
Hi everybody, I have been doing some random machine learning doodling and have always been haunted with this problem. When I just wanna set out and try if my methodology would work, I would program in Clojure aiming at a small dataset available within one single host memory (or even just

Re: [ASK] How to unify methodological prototyping with implementation in reality (aka in cascalog)?

2014-05-25 Thread Atamert Ölçgen
If I'm not mistaken, PigPen allows you to execute queries locally, without a hadoop cluster etc. Does that solve your problem? https://github.com/Netflix/PigPen/wiki/Design-and-Features#testing-local-execution-and-debugging On Mon, May 26, 2014 at 3:26 AM, Hesen Peng hesen.p...@gmail.com