Re: Render Rails templates in Clojure?

2016-03-26 Thread Igor Bondarenko
We're using haml, but converting templates to erb is also an option if it will enable us to share them with Clojure more easily. On Friday, March 25, 2016 at 5:27:36 PM UTC+2, James Reeves wrote: > > You don't mention the templating language you're using in Rails. Are you > just using erb? > > -

Re: How manage this state problem The Clojure Way?

2016-03-26 Thread hiskennyness
Follow-up question: how do I test that I am collision-proof? Perhaps: 1. Kick off two threads (call them 1st and 2nd) 100ms apart 2. Have them update the same ref 3. Have 1st do the initial reset! to the ref then sleep for 200ms 4. 2nd just charges ahead 5. Check that each took ful

more minimal clojurescript intro/app

2016-03-26 Thread Lee Spector
Hi all, I have a pure Clojure program and I would like to make it run in the browser on client machines. It has no dependencies other than Clojure, it does no Java interop, and it has no GUI. There's no database, no user interaction (except for starting the program), and no networking. It just

Re: [ANN] Quil 2.4.0 and improved live editor

2016-03-26 Thread Ashish Negi
Have never used Quil.. but always amazed by the drawings.. Just wanted to thanks for the amazing work.. Do we have examples of where people are using Quil ? -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure

Re: clojure.math.combinatorics/combinations throws exception on n=1

2016-03-26 Thread Matthias Grabmair
Yes, that's helpful. I think my use-case was probably closer to the selections-concepts as I was calling permutations right after. If the combinations function is order preserving then of course sets don't need to be covered. Thanks for the help! I guess if nobody has run into distinct-issues w

Re: [ANN] Quil 2.4.0 and improved live editor

2016-03-26 Thread Nikita Beloglazov
> FYI: The quil.info site has a broken link. The "Quil Intro" links to: > http://nbeloglazov.com/2014/05/29/quil-intro.html > But that's 404. > Alan Thanks for reporting, Alan. I was doing some work on nbeloglazov.com and accidentally broke it. It should be working now. > Do we have examples o

Re: Interest in a Full Featured Clojure Blog Engine

2016-03-26 Thread Adei Josol
Another is Cryogen , which is on Leiningen instead of Boot. On Thursday, 24 March 2016 20:29:18 UTC, uns...@gmail.com wrote: > > I ran across this today: Perun > > On Thursday, 18 July 2013 08:24:06 UTC-6, frye wrot

Re: more minimal clojurescript intro/app

2016-03-26 Thread Alan Thompson
Have you seen this tutorial? https://github.com/magomimmo/modern-cljs Alan On Sat, Mar 26, 2016 at 8:06 AM, Lee Spector wrote: > Hi all, > > I have a pure Clojure program and I would like to make it run in the > browser on client machines. It has no dependencies other than Clojure, it > does n

Re: more minimal clojurescript intro/app

2016-03-26 Thread Pedro Santos
I've done somehting like that: https://medium.com/@donbonifacio/running-clojure-code-on-javascript-e1f37071e69e#.mmasgmo7q On Saturday, 26 March 2016, Alan Thompson wrote: > Have you seen this tutorial? https://github.com/magomimmo/modern-cljs > Alan > > On Sat, Mar 26, 2016 at 8:06 AM, Lee Sp

Re: Render Rails templates in Clojure?

2016-03-26 Thread Blake Miller
Pure ruby haml rendering ought to work in jruby, and you could call it from clojure... you would just need to inject values into the jruby scope, taking the place of a rails controller. That seems a bit kludgey, but perhaps if you have tons of templates it might be worth it to avoid rewriting t

Re: How manage this state problem The Clojure Way?

2016-03-26 Thread James Reeves
Have you considered modelling this as a functional problem first? So perhaps start out with an immutable data structure to model your cells: (def cells {:x [:const 1] :y [:const 2] :z [:derive [:x :y] (fn [x y] (+ x y))]} Then you could use a function to calculate the val

Re: more minimal clojurescript intro/app

2016-03-26 Thread Colin Fleming
In terms of learning a minimum about how ClojureScript itself works, I'd recommend starting from the Quick Start . It uses no external tooling so there's no house of cards effect which can be discouraging for new users. You'll end up with a