Embedded systems and transpiling Clojure to Nim

2015-04-30 Thread Alan Moore
All, I just ran across Nim (previously Nimrod) which is a garbage collected systems programming language that looks like a suitable target for transpiling Clojure. See: http://nim-lang.org/ My goal in looking at this is to have Clojure available in native code on real-time embedded systems wh

Re: Clojure Async/State Machine/Workflow Libraries?

2015-04-30 Thread Alan Moore
Timmy, Several BPM tools are derivatives of or are directly based upon business rule engines. They usually pile on a bunch of higher level abstractions, UIs and/or frameworks to make them business user friendly. I have not seen anything like this in Clojure. However, you might want to take a l

Re: Minimum Viable Database Component

2015-04-30 Thread Derek Troy-West
Hi Andy, We use component at SMX, and do follow an approach similar to the one you hint at but as Stuart suggests we tend to have protocols that are more application-centric. For instance, we use Cassandra extensively and our general interaction with that is captured by the protocol: (def

Re: flip in clojure

2015-04-30 Thread Robert Levy
from https://github.com/rplevy/mostly-useful (not updated in a while) (defn flip "given a function, create a flipped 2-argument function" [f] (fn [a b] (f b a))) (defmacro flop "create a version of a function with a modified arity as specified by a vector of zero-indexed positions, e.g

Re: flip in clojure

2015-04-30 Thread Jony Hudson
Another option is to use `as->` https://clojuredocs.org/clojure.core/as-%3E . It's more verbose ... I kind of like that aspect of it, but it may not be to everyone's taste. Jony On Friday, 1 May 2015 00:31:05 UTC+1, Vagmi Mudumbai wrote: > > Hi, > > I was introducing one of my colleagues to c

Re: [ANN][book] Clojure Reactive Programming

2015-04-30 Thread Leonardo Borges
Thanks Pieter, I hope you enjoy it! Cheers, Leo On Thursday, April 30, 2015 at 9:35:01 PM UTC+10, Pieter Vallen wrote: > > Thanks for writing the book. Just bought it (before the "marketing > discussion";-)) and really like what I've read so far! > > Cheers, > Pieter > > Op dinsdag 24 maart 201

Re: flip in clojure

2015-04-30 Thread Sean Corfield
I wonder how many code bases out there have their own variant of `flip`? Here’s ours: (defn flip "Like partial except you supply everything but the first argument." ([f b] (fn [a] (f a b))) ([f b c] (fn [a] (f a b c))) ([f b c d & more] (fn [a] (apply f a b c d more Sean On Apr

Re: flip in clojure

2015-04-30 Thread Ben Wolfson
->> and -> actually play nice with each other in this direction: (-> 4 range (->> (map inc)) last) results in 4, because we end up with (-> (range 4) (->> (map inc)) last) --> (-> (->> (range 4) (map inc)) last) --> (last (->> (range 4) (map inc))) --> (last (map inc (range 4)))

flip in clojure

2015-04-30 Thread Vagmi Mudumbai
Hi, I was introducing one of my colleagues to clojure[1] and we were trying to parse the reddit json as an exercise. (require '(clj-http.client :as client)) (require '(clojure.data.json :as json)) (def ^:const REDDIT-URL "http://reddit.com/r/clojure.json?limit=100";) (def ^:const headers {:heade

Re: Clojure community organisation

2015-04-30 Thread Daniel Solano Gómez
On Wed Apr 29 11:10 2015, Hildeberto Mendonça wrote: > 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 >

Re: Newbie

2015-04-30 Thread Jeff Heon
I quite like these two resources for total beginners. (Starts up assuming you know nothing about Lisp.) aphyr.com/tags/Clojure-from-the-ground-up (Quite humorous) http://www.braveclojure.com/ -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post t

[ANN] clasew 0.1.18

2015-04-30 Thread Frank Castellucci
https://github.com/FrankC01/clasew *clasew *- Clojure AppleScriptEngine Wrapper *Intent* - classes provides an idiomatic Clojure wrapper for Java ScriptManager: specifically apple.AppleScriptManager, as well as providing scriptable applications HOF DSLs. Realizing that the audience for such c

Re: [ANN] Ubergraph 0.1.0

2015-04-30 Thread Mark Engelberg
I've worked with many DAGs represented as trees just using Clojure's maps and vectors in a straightforward manner, and like you say, that's often enough to get the job done. I think where Loom and Ubergraph really start to pay off is when you need to associate attributes to the various nodes and e

Re: [ANN] Ubergraph 0.1.0

2015-04-30 Thread kovas boguta
I want an API that is optimized around tree traversal and replacement. Clojure.walk and zippers can be pretty great, as of course the associative aspect of maps and vectors. Going from a tree of maps and vectors to a graph representation makes things harder and less direct. Theres some challenges

Re: [ANN] Ubergraph 0.1.0

2015-04-30 Thread Mark Engelberg
Ubergraph can certainly represent DAGs, since DAGs are just a special case of directed graphs. There is also the function ubergraph.alg/dag? to test whether a graph is a DAG. There are included algorithms, such as topological sorting, which only work on a DAG, and other functions, such as shortes

Re: Newbie

2015-04-30 Thread Gary Schiltz
If you like videos, the ClojureTV YouTube channel is a good place to start. Dimitri Sotnokov has a free, concise introduction to the language that you can download from the publisher's page for his book Web Development with Clojure

Re: Clojure Async/State Machine/Workflow Libraries?

2015-04-30 Thread Vjeran Marcinko
If you're looking for something similar to some BPM (BPMN, BPEL...) engines in Clojure land, I *think* there is nothing similar here. I'm actually researching that area occasionally, and thinking wishfully about implementing one in Clojure someday. When core.async appeared first, since it also

Re: Minimum Viable Database Component

2015-04-30 Thread Stuart Sierra
Hi Andy, That was just an example I made up for the slides, and not a very good one. Usually, the functions/protocols you implement for your components are specific to your application. –S On Thursday, April 30, 2015 at 4:54:38 AM UTC+1, Andy Chambers wrote: > > Hi All, > > I'm trying to foll

Newbie

2015-04-30 Thread Pitou Khmer
Dear all experts here, Could you share me the presentation that describing about Clojure for newbie developer to make more easy to understand? Thanks, Pitou -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to c

Re: [ANN] Ubergraph 0.1.0

2015-04-30 Thread kovas boguta
Very cool! On a related note: I would be interested in a similar library focused on DAG's. Any thoughts there? On Wed, Apr 29, 2015 at 10:00 PM, Mark Engelberg wrote: > https://github.com/Engelberg/ubergraph > > Ubergraph is a versatile, general-purpose graph data structure for > Clojure.

Clojure Async/State Machine/Workflow Libraries?

2015-04-30 Thread Tim Visher
Hey All, Anyone have any tips on clojure 'workflow' libraries? https://github.com/relaynetwork/impresario is very close, but lacks some basic features like exception transitions, etc. Basically, I'm looking for a library that allows me to create a workflow that will happen asynchronously, rec

Re: [ANN][book] Clojure Reactive Programming

2015-04-30 Thread Pieter Vallen
Thanks for writing the book. Just bought it (before the "marketing discussion";-)) and really like what I've read so far! Cheers, Pieter Op dinsdag 24 maart 2015 15:26:02 UTC+1 schreef Leonardo Borges: > > Hi all, > > Some of you may know that I have been working on a book for the better > part

ring.middleware.reload and figwheel

2015-04-30 Thread Daniel Kersten
Hi, I've got a clojure(script) project where I use figwheel to live-reload cljs and this works great, but I'm now trying to set up live reloading of the server-side clojure too. Since I don't want to run multiple jvm/lein instances, I'm using figwheels :ring-handler feature to add my server ring h

Re: complex numbers in clojure

2015-04-30 Thread Alan Forrester
On 28 April 2015 at 05:22, Mikera wrote: > Complex numbers are tricky because: > - They need to be fast in order to be useful for numerical computing. The > "obvious" implementations that you might create with boxed values, > vectors/maps, multimethods and protocols are likely to be unacceptable f

Re: Minimum Viable Database Component

2015-04-30 Thread Jeroen van Dijk
Hi Andy, I'm not aware of such a project, but I can confirm that it is an approach that we apply internally at AdGoji and has been working well for us. For instance, we have (simple) components that mock Kafka and Redis in a way that make them feature compatible to these services in the context o

Re: Minimum Viable Database Component

2015-04-30 Thread Malcolm Sparks
I think it can be a dangerous road trying to create abstractions over data sources. It can be a lot of work maintaining a stub/mock implementation to work alongside a database, and sometimes it's not that much more work (or less work) to install Postgres, SQLite, or whatever you're using, locall