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

2014-06-25 Thread Steve Tickle
In the upcoming IOS8, UIWebView has the same (JITed) performance as the Safari, the distinction has been removed due to using the new inter-app communication mechanism. This allows the remote application (Safari/JavascriptCore/UIWebView) to display a view into another process, thus bypassing the

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

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

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

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/…* http://clojuredocs.org/clojure_contrib/clojure.contrib.sql/update-values#example_953 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

[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

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

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

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,

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 make

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

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

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

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

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= -- You

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