Minimum Viable Database Component

2015-04-29 Thread Andy Chambers
Hi All, I'm trying to follow the "component" architecture for an app I'm working on and wondered if I was missing something. In the "Just enough structure" talk, one of the examples Stuart presents is a DB component that contains just a small selection of DB related functions (i.e. insert, and

[ANN] Ubergraph 0.1.0

2015-04-29 Thread Mark Engelberg
https://github.com/Engelberg/ubergraph Ubergraph is a versatile, general-purpose graph data structure for Clojure. It is designed to complement and extend Loom, a popular Clojure collection of graph protocols and algorithms. Ubergraph implements all of Loom's protocols and draws them together in

Re: complex numbers in clojure

2015-04-29 Thread Christopher Small
Yes, it would be nice to have this available for cljs as well. With the new reader literals though, this doesn't preclude having a native java implementation that gets loaded in the :clj case, and some other implementation that gets loaded in the :cljs case. On Wednesday, April 29, 2015 at 2:06

Re: complex numbers in clojure

2015-04-29 Thread Christopher Small
Let me first say I would definitely like to see complex arithmetic support in Clojure. Major hole for scientific computing in my opinion. And with the momentum that Clojure has in ML / data science, I think it's one that needs patching. As to you specific point Nik: > For me, having complex nu

Re: complex numbers in clojure

2015-04-29 Thread Alan Shaw
Ideally math APIs would be cross-platform #ClojureScript -- 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 posts from new members are moderated - please be patient with your first

Re: wondering the reasons to choose defrecord vs reify in stuartsierra/component

2015-04-29 Thread JUAN ANTONIO RUZ
Hi Stuart, > > Components are records in order to support the dependency-injection > features of `component/start-system`, which work via `assoc`. That was the only reason that I could imagine but I wanted to double checked here :) I'm always inclined to think in performance reasons that I don't k

Re: [ANN][book] Clojure Reactive Programming

2015-04-29 Thread Roberto Guerra
Started reading the book this week. I'm enjoying it a lot. Thank you for writing it. -- 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 posts from new members are moderated - pleas

Re: wondering the reasons to choose defrecord vs reify in stuartsierra/component

2015-04-29 Thread Stuart Sierra
Hi Juan, Components are records in order to support the dependency-injection features of `component/start-system`, which work via `assoc`. There are potentially many other ways to do dependency injection, but I found `assoc` to be practical. If you want to create a component that has a Lifecyc

Re: wondering the reasons to choose defrecord vs reify in stuartsierra/component

2015-04-29 Thread JUAN ANTONIO RUZ
Hi James I got this question after watching the David Nolen's video called "The Functional Final Frontier ". Around minute 11th he talked about "Local state is poison

Re: wondering the reasons to choose defrecord vs reify in stuartsierra/component

2015-04-29 Thread James Reeves
Often because components contain some form of data. For instance, a component that handles database connection may have a database connection instance. Reify produces objects that are essentially opaque, which is fine if you just want their behaviour, as in the case of Om, but not so good if you a

Re: How do we use a container class with a proxy?

2015-04-29 Thread Elric Erkose
Thank you for your reply. -- 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 posts from new members are moderated - please be patient with your first post. To unsubscribe from this

wondering the reasons to choose defrecord vs reify in stuartsierra/component

2015-04-29 Thread Juan A. Ruz @tangrammer
Hi guys, I'm just wondering the pros/contras that justify to choose defrecord vs reify as component fn constructor. in the component README we can read "To create a component, define a Clojure record that implements the Lifecycle protocol." Yes I know that "defrecord creates an immutable pers

Re: complex numbers in clojure

2015-04-29 Thread Nik
For me, having complex numbers not work seamlessly with other numbers and core arithmetic ops is not viable. Doing arithmetic ops with any kind of number is a real (pardon the pun) use case. If complex numbers are not likely to be supported fully, then maybe it makes sense to have complex numb

Re: complex numbers in clojure

2015-04-29 Thread Plínio Balduino
Hi Before we try to guess what Rich will or won't think or want, are you interested in a proof of concept? So we could evaluate performance and complexity issues before the subject is definitively buried. What do you think about it? Plínio On Wed, Apr 29, 2015 at 12:56 AM, Mikera wrote: > You

Re: ClassNotFoundException using try inside core.async go block

2015-04-29 Thread Chap Lovejoy
Thanks for checking into it. Using current master seems to fix it for me as well. I'll use a local copy until the next release. Thanks again! chap On Tuesday, April 28, 2015 at 8:44:59 PM UTC-4, Alex Miller wrote: > > I think this is a bug in the fairly old tools.analyzer version used in the >

Re: How do we use a container class with a proxy?

2015-04-29 Thread Colin Fleming
Hi Elric, Since Clojure is untyped, you can just totally ignore the type parameter: (proxy [FooInitializer] [] (method [...])) Methods which accept or return F in the Java class will accept or return Object in Java, which is what happens under the hood anyway - type erasure means the type para

Re: Clojure community organisation

2015-04-29 Thread Hildeberto Mendonça
This is a awesome idea! In my opinion, this organization would attract the maximum number of people if its mission is centred on Knowledge Management: 1. Wiki-based Clojure documentation, such as clojuredocs.org, containing the "official" documentation, but constantly improved by the commun

Re: [ClojureScript] Re: [reagent] Re: [ANN] SF Reagent Meetup TODAY 6:30pm @Loyal3 @Meerkat

2015-04-29 Thread Marc Fawzi
Our video production person is having to work on other more urgent stuff at the moment. We're not his hottest customer but hopeful he will get to it sometime soon... Sorry about that. Sent from my iPhone > On Apr 28, 2015, at 10:02 PM, simon lomax wrote: > >> On Friday, 17 April 2015 16:25:34