Re: What is a real example of the Observer pattern?

2015-05-07 Thread Juvenn Woo
Hi Larry, As far as I know, the core part of Om is implemented in Observer Pattern, see: https://github.com/omcljs/om/blob/master/src/om/core.cljs#L1164 which observes app state, and triggers DOM renders as that changes. Best, -- Juvenn Woo Sent with Sparrow

Re: ClojureCLR and nrepl ?

2015-05-07 Thread Bozhidar Batsov
Btw, even if there were working nREPL for CLR you'll still have issues with fireplace as both of its modes (using embedded tooling code using nREPL middleware) rely on JVM libs. Same goes for CIDER, of course. Outside of basic evaluation pretty much nothing will work. On 7 May 2015 at 05:33,

Re: Clojure needs a web framework with more momentum

2015-05-07 Thread Tj Gabbour
First of all, I apologize to the group for any unfriendliness in my response. (Which may be poisonous to this group’s culture, I don’t know. Unfortunately, many old frustrations of mine were triggered, when I felt my question was given an uncharitable interpretation.) The term “pull

Re: ANN: clojure-objc 1.7.0-beta2

2015-05-07 Thread Gal Dolber
I have 2 apps in production, but they are enterprise apps so they are not in the AppStore. There are many apps built with j2objc in the AppStore already, and internally this is just that, it generates objc code and it doesn't violate any Apple terms. Inbox by Google and Google Sheets are built

Re: What is best practice regarding transducers

2015-05-07 Thread Rangel Spasov
I used transducers here https://github.com/raspasov/neversleep/blob/master/src/neversleep_db/node_keeper.clj Look at all the functions ending in -xf, they return transducers that are being attached to core.async channels. On Wednesday, May 6, 2015 at 8:15:42 AM UTC-7, larry google groups

[ANN] Spiral 0.1.1, a core.async API for Ring, now with Immutant 2.0 Support!

2015-05-07 Thread David Greenberg
Ring is a great foundation for building HTTP servers in Clojure. However, Ring fails to solve many problems that high-performance and transactional HTTP servers must solve: - What does the server do when it can't handle the request rate? - How can the server dedicate more or fewer

Re: ANN: clojure-objc 1.7.0-beta2

2015-05-07 Thread Gal Dolber
Thanks! Yes, thats the project from Google that translates java to objc On Thu, May 7, 2015 at 3:23 PM Rangel Spasov raspa...@gmail.com wrote: This is very cool! I saw some references to https://github.com/google/j2objc - is that what the project uses to do the Java - ObjC? On Wednesday,

Re: ANN: clojure-objc 1.7.0-beta2

2015-05-07 Thread Rangel Spasov
Have you built or released on the App Store any apps using this? I'm just wondering if you'd classify it as feature complete and ready to use or it's more in the experimental phase. On Thursday, May 7, 2015 at 11:32:20 AM UTC-7, Gal Dolber wrote: Thanks! Yes, thats the project from Google

Re: ANN: clojure-objc 1.7.0-beta2

2015-05-07 Thread Rangel Spasov
This is very cool! I saw some references to https://github.com/google/j2objc - is that what the project uses to do the Java - ObjC? On Wednesday, May 6, 2015 at 8:13:10 PM UTC-7, Gal Dolber wrote: Clojure-objc, the Clojure compiler that targets objc runtimes. clojure-objc

Re: What is best practice regarding transducers

2015-05-07 Thread Rangel Spasov
I used it here https://github.com/raspasov/neversleep/blob/master/src/neversleep_db/node_keeper.clj Look at all the functions ending in -xf, they return transducers that are being attached to core.async channels. On Wednesday, May 6, 2015 at 8:15:42 AM UTC-7, larry google groups wrote: I

What is the use-case for create-ns?

2015-05-07 Thread piastkrakow
I am curious about something that Michael Drogalis did here: (defn- load-support [support-file] (let [support-ns (create-ns 'support-ns) support-text (slurp (.getPath support-file))] (binding [*ns* support-ns] (eval '(clojure.core/refer 'clojure.core)) (eval '(refer

Re: JDK8

2015-05-07 Thread Sean Corfield
On May 7, 2015, at 1:24 PM, Pierre-Yves Ritschard p...@spootnik.org wrote: There hasn't been a JDK version thread in a while and a few projects we rely on will soon require a JDK8. Are people running large apps on JDK8 and if so, which one ? I'd be intent on trying to stick with OpenJDK if at

Re: A Petition for Supporting our On-going Research

2015-05-07 Thread Gregg Reynolds
On May 7, 2015 3:38 PM, Timur timurha...@gmail.com wrote: Dear Clojure Community, We are doing a research for supporting human-centric ad-hoc processes in organizations. Who is we? To analyze these processes better, we are trying to collect as many such processes as possible. As the

Re: JDK8

2015-05-07 Thread tcrayford
Java 7 is EOL as of last week, so pretty much everybody who runs stuff in production should be upgrading to Java 8 unless they have a support contract that lets them do otherwise. There won't be (as far as I know) more security updates/etc on the Java 7 line any more. Yeller's

Re: [ANN] Instaparse 1.4.0

2015-05-07 Thread thomas van der veen
Thank you for this release of this fantastic library. I haven't had time yet to update my project that uses it but one day I will ;) Thank you again, Thomas On Wednesday, 6 May 2015 09:56:47 UTC+1, Mark Engelberg wrote: Instaparse 1.4.0 is now deployed to clojars and available to use in

clojure.java.jdbc bug?

2015-05-07 Thread Alain Picard
Dear fellow clojurians, The following behaviour seems (to me) rather odd. This succeeds: gocatch.job.job (clojure.java.jdbc/query *database* [select * from Job where id = ? (long 90)]) ({:tip 200, :vehicle-type TAXI, :passenger-id 43a4a489e18e09cade321fc6d5b7817f63293e58,

Re: clojure.java.jdbc bug?

2015-05-07 Thread Sean Corfield
On May 7, 2015, at 8:46 PM, Alain Picard al...@gocatch.com wrote: I was aware of that Jira installation, so perhaps I didn't make myself clear, but I'm not keen on having to go create yet another account in order to be able to report a bug. That seems unfriendly, to me. Well, all Clojure

Re: clojure.java.jdbc bug?

2015-05-07 Thread Andy Fingerhut
You can find a link to the JIRA bug tracker for most or all Clojure contrib libraries on their corresponding github pages, and Google is pretty good at finding those. Here is java.jdbc's: http://dev.clojure.org/jira/browse/JDBC Andy On Thu, May 7, 2015 at 6:44 PM, Alain Picard al...@gocatch.com

Re: clojure.java.jdbc bug?

2015-05-07 Thread Sean Corfield
Different database drivers handle different data types in different ways. You’ve extended the protocol to convert Clojure’s BigInt to a string which may work for you, but won’t necessarily work for everyone. That’s why the protocols are provided. See the documentation about them, here:

Re: clojure.java.jdbc bug?

2015-05-07 Thread Alain Picard
On Friday, 8 May 2015 13:38:02 UTC+10, Andy Fingerhut wrote: You can find a link to the JIRA bug tracker for most or all Clojure contrib libraries on their corresponding github pages, and Google is pretty good at finding those. Here is java.jdbc's:

[ANN] Bocko 0.2.0

2015-05-07 Thread Mike Fikes
I created a tiny library that makes it easy to plot points in a low-res graphics mode: https://github.com/mfikes/bocko The motivation was to help encourage interest in my own kids (10 and 12-yo) to learn tidbits of Clojure, and it seems to be working. :) I remember that, with the BASIC

Why (defn- ...) but (def ^:private? ...)

2015-05-07 Thread Stig Brautaset
Is it because the def form can also be ^:dynamic? At any rate, I did an attempt at my first macro to create a (def- ...) form, but it doesn't seem to work. Can you not attach metadata in a macro? (defmacro def- Why (defn- private-fn ...) but (def ^:private var ...)? [sym body] `(def

Re: Clojure needs a web framework with more momentum

2015-05-07 Thread Surgo
One way to think about documentation is this: you've just written this great and useful library! You surely want it to be useful and people to actually use it, right? (See earlier in the thread about Pedestal.) Well, the only way you'll reach that goal is by having solid documentation that can

Re: JDK8

2015-05-07 Thread Michael Blume
Not quite sure what you're asking -- I think Clojure itself is intended to be fully supported on JDK 8, and I regularly build it/build my projects with JDK 8 (though I think I'm using the Oracle version) On Thu, May 7, 2015 at 1:25 PM Pierre-Yves Ritschard p...@spootnik.org wrote: Hi, There

A Petition for Supporting our On-going Research

2015-05-07 Thread Timur
Dear Clojure Community, We are doing a research for supporting human-centric ad-hoc processes in organizations. To analyze these processes better, we are trying to collect as many such processes as possible. As the Clojure community has appeared us as a research-friendly one, we have

Re: JDK8

2015-05-07 Thread Alex Miller
There are no issues I'm aware of with running Clojure on JDK 8. I use it frequently and I know many people are running it in production with Clojure. I know of one potential issue with JDK 9 - use of sun.* packages for ctrl-c signal handling in the REPL, which will no longer be available

JDK8

2015-05-07 Thread Pierre-Yves Ritschard
Hi, There hasn't been a JDK version thread in a while and a few projects we rely on will soon require a JDK8. Are people running large apps on JDK8 and if so, which one ? I'd be intent on trying to stick with OpenJDK if at all possible. Cheers, -- You received this message because you are

Re: Why (defn- ...) but (def ^:private? ...)

2015-05-07 Thread Herwig Hochleitner
2015-05-07 16:12 GMT+02:00 Stig Brautaset sbrauta...@gmail.com: Is it because the def form can also be ^:dynamic? Hm, cognitect turned it down, because basically if you go down this road, why stop with def- ? and before you know, you've got a core namespace full of def*- At any rate, I did an

Re: [ANN] Bocko 0.2.0

2015-05-07 Thread Fluid Dynamics
On Thursday, May 7, 2015 at 9:14:30 AM UTC-4, Mike Fikes wrote: I created a tiny library that makes it easy to plot points in a low-res graphics mode: https://github.com/mfikes/bocko The motivation was to help encourage interest in my own kids (10 and 12-yo) to learn tidbits of

Re: Clojure needs a web framework with more momentum

2015-05-07 Thread larry google groups
I assume most people here would agree with this: Nothing is merely a pull request; it is someone's valuable time spent in contemplation and action. At the same time, I assume most people who would use Clojure will also know something about Git, and I think this applies even to fairly new

Re: [ANN] Clojure Applied: From Practice to Practitioner

2015-05-07 Thread kinleyd
Just picked up my copy today. Thank you and looking forward to working my way through it. Kinley On Tuesday, April 28, 2015 at 12:13:52 AM UTC+6, Alex Miller wrote: The second beta of Clojure Applied is now available. This version adds Chapter 8 (Clojure Testing) as well as a foreword by

Re: Why (defn- ...) but (def ^:private? ...)

2015-05-07 Thread Colin Yates
Have you tried with-meta? On 7 May 2015 15:13, Stig Brautaset sbrauta...@gmail.com wrote: Is it because the def form can also be ^:dynamic? At any rate, I did an attempt at my first macro to create a (def- ...) form, but it doesn't seem to work. Can you not attach metadata in a macro?

Re: Why (defn- ...) but (def ^:private? ...)

2015-05-07 Thread adrian . medina
Reader macros are evaluated at read time, not macroexpansion time. Read time happens during reading - the process in which the characters in a file are read into the Lisp forms Clojure supports. Therefore ^:private is not syntax which can be manipulated in a macro, because by the point the

Re: What is a real example of the Observer pattern?

2015-05-07 Thread Raoul Duke
Observer is often used in Java iOS-Objective-C Android-Java. As with any eventing kind of thing it is a very double-edged tool. -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that