[ANN] Initial release of dynamic-object: a library to bring Clojure data (and metadata) to Java

2014-06-25 Thread Ryan Schmitt
I've published the first releases of dynamic-object to Maven. dynamic-object (https://github.com/rschmitt/dynamic-object) is an effort to bring the flexibility and power of Clojure data and the Edn data language to Java developers in the most direct way possible. This library is intended to ser

Re: Style-question: self-named attribute getters?

2014-06-25 Thread Ryan Schmitt
The question of how to specify the "shape" of your data is an important one, and I think one of the contributions of Clojure is the way it isolates that problem, instead of complecting it with object-oriented design or static type checking. You might look at Prismatic Schema, a library that off

core.match question: guarding against nil in map patterns

2014-06-25 Thread rrs
Does the following snippet show the intended behavior? user=> (def not-nil? (complement nil?)) > #'user/not-nil? > user=> (defn f [x] (match [x] [{:a (ma :guard not-nil?)}] ma :else > :no-match)) > #'user/f > user=> (f {:a 1}) > 1 > user=> (f {:b 1}) > nil > user=> (f {:a nil}) > :no-match > user

Re: Style-question: self-named attribute getters?

2014-06-25 Thread Mark P
Thanks Ryan, Mike and James for your comments and info. Ryan I will follow up the links you posted. In the meantime, a request for some clarification... I have read / watched clojure stuff along these lines... ie that data hiding (in an immutable data context) is bad. I thought my approach wa

Re: Style-question: self-named attribute getters?

2014-06-25 Thread James Reeves
OOP places a strong emphasis on information hiding, particularly by wrapping data structures in APIs. Developers with a strong background in OOP tend to try to replicate this style of programming in Clojure. However, idiomatic Clojure emphasises exactly the opposite of this. In Clojure, a bare dat

Re: Style-question: self-named attribute getters?

2014-06-25 Thread Ryan Schmitt
In object-oriented programming, encapsulation is always and everywhere regarded as a highly significant design virtue, but the Clojure people have a bit of a different assessment, particularly when it comes to information. In one talk, Rich Hickey pointed out that encapsulation is for hiding im

Style-question: self-named attribute getters?

2014-06-25 Thread Mike Fikes
I'm curious about this stuff too. (I'm very new to Clojure.) I wouldn't be surprised if the general sentiment is: “Don't.” The argument goes along these lines: By encapsulating, you have introduced a tiny new little API that clients need to learn the semantics of. Additionally, that API is like

Style-question: self-named attribute getters?

2014-06-25 Thread Mark P
I've only recently started real clojure development, so very much still learning what styles work and what don't. I have a question about naming attribute getters... Suppose I want to model "fruit" entities. I will use a hash-map to represent the data for each such entity, and will defn a "ma

Re: Clojure on iOS devices - Swift as a host?

2014-06-25 Thread Mike Fikes
That's cool! What I haven't been able to figure out is if we actually get FTL with JavaScriptCore on iOS 8, or better yet, if we can somehow gain access to a JSContext from the WKWebView. More detail: I'm using ClojureScript to develop what are otherwise native iOS apps. (Meaning using UIKit,

Call for participation: International Lisp Conference in Montreal 15-17 August 2014

2014-06-25 Thread Marc Feeley
ILC 2014 - International Lisp Conference "Lisp on the Move" August 15-17 2014, Université de Montréal, Montréal, Canada Sponsored by the Association of Lisp Users In cooperation with: ACM SIGPLAN http://ilc2014.iro.umontreal.ca/ Latest News: * Registration is now o

Instaparse: Dynamic Grammar With Declarations

2014-06-25 Thread Stefan Kamphausen
Hi, first of all, please excuse this cross-post. I tried to get an answer on the instaparse list first, but it does not seem to reach so many instaparse users. Unfortunately I do not know the correct name for the problem I face, hence the rather vague subject. I am trying to parse a file f

[ANN] friendui 0.3.0

2014-06-25 Thread Sven Richter
Hi, I just wanted to announce friendui 0.3.0. https://github.com/sveri/friend-ui/ I did a major rework and removed the dependency to datomic. Instead one can implement a storage protocal with whatever storage one prefers. Feedback is welcome. Best Regards, Sven -- You received this message be

Clojure: Clojure.contrib.sql: How do I update ALL the rows of a database table?

2014-06-25 Thread June
*clojuredocs.org/clojure_contrib/clojure.contrib.sql/…* How do I set the where clause to 1=1? -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this gr

Re: [ANN] Jig

2014-06-25 Thread Joachim De Beule
Just a small follow up, in the mean time I did manage to get the code running as daemon using Tanuki's service wrapper by setting the wrapper.working.dir to the main project's root. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this gr

Re: How aliased "require" is different?

2014-06-25 Thread Ivan Kozik
I'm sending a corrected version of the wrapper, because the original doesn't show errors returned by (refresh), and these are actually critical. The corrected version: :init (do (require '[clojure.tools.namespace.repl :refer [refresh]]) (defn r [] (let [result (refresh)]

Re: [ANN] Jig

2014-06-25 Thread Joachim De Beule
Hi Malcolm, me again :-) I've been using (and loving) jig now for quite some time and have reached the point where I want to start using my code in a production environment. There are several things that need to get fixed though, most importantly: 1) Testing. Have you by any chance thought more