Re: Tool authors: ClojureScript support in tools.namespace?

2015-07-25 Thread Dylan Butman
I use .repl constantly for namespace reloading. Clojurescript support would be a fantastic improvement for reloading cljs component systems. On Friday, July 24, 2015 at 5:14:04 PM UTC-4, Stuart Sierra wrote: > > Hello to anyone and everyone writing tools for working with Clojure and > ClojureScr

Re: [ANN] bidi 1.20.0 - with Schema suppport

2015-06-29 Thread Dylan Butman
Hey Malcolm, Just confirming my understand, the schema addition is to validate the bidi routes themselves, not path parameters matched within the routes, right? Is this something you're thinking one might do at component start, say https://github.com/juxt/modular/blob/master/modules/bidi/src/m

Re: Writing REST api the right way

2015-06-25 Thread Dylan Butman
Have you looked at yada http://yada.juxt.pro/user-guide.html ? It's an aleph compatible alternative to liberator that is swagger compatible with swagger out of the box. On Tuesday, June 23, 2015 at 5:33:50 AM UTC-4, Mike Grabowski wrote: > > Hey guys, > > I am so excited to join Clojure bandwago

Boot: How to run with the clojure version declared in the :dependencies?

2015-06-13 Thread Dylan Butman
Yes you need to duplicate the version in a properties file or env variable. It's important to differentiate between runtime and compiled dependencies vs the environment that actually does the compiling. There could be instances where different versions may be needed. -- You received this mess

Re: reader conditional indentation (clojure-mode)

2015-04-16 Thread Dylan Butman
Also, what would be necessary to get repl (cider, etc) working with cljc? On Thursday, April 16, 2015 at 10:41:28 AM UTC-4, Dylan Butman wrote: > > Does anyone know the required clojure-mode indentation configuration to > achieve indentation aligned with > http://dev.clojure.org/di

reader conditional indentation (clojure-mode)

2015-04-16 Thread Dylan Butman
Does anyone know the required clojure-mode indentation configuration to achieve indentation aligned with http://dev.clojure.org/display/design/Reader+Conditionals ? Specifically, I'd like the next line following either #?(... or #?@(... to be indented at the same level as the #. -- You recei

Re: Kwargs vs explicit parameter map for APIs?

2015-03-13 Thread Dylan Butman
= (kargs-test :some 1 :me 2) (kargs-test {:some 1 :me 2}) 3) (= (kargs-test) nil)) On Friday, March 13, 2015 at 1:46:08 PM UTC-4, Dylan Butman wrote: > > Late chime in...how about both? > > (defn kargs > ([] (kargs {})) > ([a b & {:as r}] >

Re: Kwargs vs explicit parameter map for APIs?

2015-03-13 Thread Dylan Butman
Late chime in...how about both? (defn kargs ([] (kargs {})) ([a b & {:as r}] (kargs (assoc r a b))) ([a] a)) On Thursday, May 1, 2014 at 12:21:03 AM UTC-4, Jim Crossley wrote: > > Oh, right. (f m) instead of (apply f [m]). Duh. > > > On Wed, Apr 30, 2014 at 11:15 PM, Colin Fleming > wr

Re: idiomatic use of Stuart Sierra's component

2015-03-02 Thread Dylan Butman
I would do the latter. I like the extend types to component/Lifecycle wherever possible. The goal is to have all components in your system only interact via protocols. This way, you have established interfaces between components, and if you want to swap an implementation, you just satisfy the p

Re: [ClojureScript] [ANN] thi.ng collection update (CLJ/CLJS)

2015-02-25 Thread Dylan Butman
I totally thought that map was a photo of 3d printed shapes, but it makes sense that you're using luxrender now. Is there a video of the animation online somewhere? On Wed Feb 25 2015 at 6:13:25 PM Karsten Schmidt wrote: > That's a good point, Bruce! To be honest, I don't know anymore, but it >

Re: [ANN] thi.ng collection update (CLJ/CLJS)

2015-02-25 Thread Dylan Butman
Hey Karsten, Really glad to see you've been continuing the awesome work here! I used toxiclibs extensively when I first starting programming in processing and it was hugely influential for me! I've been drifting away from computational design since then but I'm hoping to get some serious time t

[ANN] Bardo v0.1.0 - A clojure(script) library to assist with transitions between dimensions

2014-12-13 Thread Dylan Butman
TL:DR Bardo https://github.com/pleasetrythisathome/bardo is a clojure(script) library that provides semantics for defining interpolators between data structures as well as utilities for composing them with each other, easing curves, and other tra

Re: clojure.edn won't accept clojure.java.io/reader? How to work around this and why isn't this documented anywhere?

2014-12-08 Thread Dylan Butman
+10 for bringing this thread around. On Monday, December 8, 2014 9:42:33 PM UTC-5, Luc wrote: > > Dunno the answer but I know how many buddhist monks are needed, exactly > three: > > a) the first one readies itself for the bulb swap! by repeating a mantra > b) the second meditates to make the fi

Re: perform action after events stop for some period

2014-12-04 Thread Dylan Butman
Thank you for calling my attention to this possibility! > > e > > On Wed, Dec 3, 2014 at 2:49 PM, Dylan Butman > wrote: > >> Erik that's pretty! But be careful about go-loops and closed channels. >> This will recur infinitely if events-ch is closed (it will contin

Re: perform action after events stop for some period

2014-12-03 Thread Dylan Butman
Erik that's pretty! But be careful about go-loops and closed channels. This will recur infinitely if events-ch is closed (it will continuously return nil) (defn invoke-after-uninterrupted-delay ([period events-ch f] (invoke-after-uninterrupted-delay period events-ch f [])) ([period

Re: perform action after events stop for some period

2014-12-03 Thread Dylan Butman
Erik that's pretty! But be careful about go-loops and closed channels. This will recur infinitely if events-ch is closed (it will continuously return nil) (defn invoke-after-uninterrupted-delay ([period events-ch f] (invoke-after-uninterrupted-delay period events-ch f [])) ([period ev

Re: Cursive Reloaded Workflow

2014-12-01 Thread Dylan Butman
2 December 2014 at 11:47, Laurent PETIT >> > wrote: >>> >>>> FWIW, please note that it's now possible to script Counterclockwise in >>>> such a way. >>>> >>>> The following link shows how to add a new keybinding for calling &

Cursive Reloaded Workflow

2014-12-01 Thread Dylan Butman
I've been playing around with Cursive lately (it seems awesome if I can ever get comfortable with the keybindings!). I emacs/cider, I have a custom keybinding that injects user/reset to trigger something like https://github.com/stuartsierra/reloaded/blob/master/src/leiningen/new/reloaded/templa

Re: CCW bug [SEVERE]

2014-10-31 Thread Dylan Butman
Is it hard to actually send the log? Are you purposefully uncooperative to people trying to help? > On Oct 31, 2014, at 11:51 PM, Fluid Dynamics wrote: > >> On Friday, October 31, 2014 11:44:49 PM UTC-4, Luc wrote: >> I'll repeat myself : >> >> '...guessing which error is >> relevant or no

Re: Starting a project the right way - tips?

2014-10-29 Thread Dylan Butman
+1 for using https://github.com/stuartsierra/component for managing runtime state. makes subbing stub components for testing really easy, and also allows you to test more granular parts of your system. also for datomic https://github.com/rkneufeld/conformity is a nice utility for managing datom

Re: CCW bug [SEVERE]

2014-10-28 Thread Dylan Butman
This still sounds like a case of "I haven't learned how to use git yet, and although that means I can't possibly understand how it might improve my workflow, I don't want to take the time to learn a fundamental piece of software that's used by the vast majority of the programming community." O

Re: CCW bug [SEVERE]

2014-10-28 Thread Dylan Butman
>From your attitude and lack of respect for the very knowledgeable, experienced, and respectful people here trying to help improve and understand the short comings in your current workflow, I'd say you might be walking to work in the near future. Parking's free that way. On Monday, October 27,

Re: ANN: State of Clojure 2014 Survey - please contribute!!

2014-10-17 Thread Dylan Butman
I'd just like to say that I'm very impressed that this conversation is happening. It shows a great level of awareness within the community and makes me really optimistic about clojure as a inclusive language for the future. On Wednesday, October 15, 2014 10:59:08 PM UTC-4, Mars0i wrote: > > Aft

Re: best way to edit EDN value in cljs

2014-10-11 Thread Dylan Butman
you can do some pretty powerful things using update-in and merge-with, especially if combined with protocols or multimethods that determine behavior. Can you give a more specific example of what you're trying to do? deep-merge and deep-merge-with are also useful here. There are a lot of nearly

Re: [ANN] Silk, an isomorphic routing library for Clojure and ClojureScript

2014-10-10 Thread Dylan Butman
I’ve been using silk in conduction with compojure. Most middleware aren’t compojure specific, but I’ve just found it easier to stick with base level compojure routes and then pass uris to silk for pattern matching. This is mostly because there is such a wealth of documentation and examples to

Re: [ANN] Clojure instaREPL for web

2014-10-08 Thread Dylan Butman
Very nice! looks like there are some css issues with output display for example, (map inc [1 2 3 4]) doesn't output on a single line, and seems to shift a little bit from time to time. With a little more polishing this could be fantastic teaching tool for intro to clojure workshops and tutorial

Re: [ANN] Silk, an isomorphic routing library for Clojure and ClojureScript

2014-10-07 Thread Dylan Butman
Sorry i don't have time to really explain any of this... but here's some code I pulled out of a recent project. maybe it'll be helpful to you. unfortunately I can't share the whole project. https://gist.github.com/pleasetrythisathome/7adbdc9c8b7ab689df45 -- You received this message because yo

Re: Pause a go loop

2014-09-12 Thread Dylan Butman
How about this? https://gist.github.com/pleasetrythisathome/4f03ba9f729300beea40 On Friday, September 12, 2014 12:51:39 PM UTC-4, Jeremy Vuillermet wrote: > > thx, I'll look more into in but it doesn't seem they are able to pause and > resume scheduled functions > > On Thursday, September 11, 20

Clojure(script) Job Opportunity in NYC

2014-08-27 Thread Dylan Butman
We're looking for a full-time clojure(script) dev to join our team in NYC. Here's the posting. Shoot be an email at dy...@ib5k.com if you're interested. Posting: We are IB5k ( http://ib5k.com ), a software dev shop based in SOHO, and we are looking for a promising developer to become a co

Re: [ClojureScript] DevArt Co(de)Factory open source release

2014-08-21 Thread Dylan Butman
This is really awesome Karsten! I first got obsessed with programming writing particle systems in processing with toxiclibs. Thanks for all your work! Will definitely be digging deep into this one. -- You received this message because you are subscribed to the Google Groups "Clojure" group. T

[ANN] lein-templater - automagically generate templates from your existing projects

2014-08-19 Thread Dylan Butman
I've been writing a lot of templates lately for various web stacks and whatnot, and I got really tired of having to copy my files into a template every time they changes. I figured it wouldn't be too hard to generate them programmatically, and after a few more days than expected, here you have i

Re: [ANN] lein-plz 0.1.1 - Add dependencies quickly

2014-08-19 Thread Dylan Butman
st 18, 2014 8:49:36 PM UTC-7, Dylan Butman wrote: >> >> It'd be great if you could chain lein take like that to take advantage of >> having already spun up the jvm. >> >> I've been thinking a lot lately about scaffolding for clojure projects, >> and w

Re: [ANN] lein-plz 0.1.1 - Add dependencies quickly

2014-08-19 Thread Dylan Butman
I'm going to tie a bow on it today and I'll get back to you > On Aug 19, 2014, at 1:07 AM, john walker wrote: > > Is there a link to your work? I'm very interested in this. > >> On Monday, August 18, 2014 8:49:36 PM UTC-7, Dylan Butman wrote: >> It'

Re: [ANN] lein-plz 0.1.1 - Add dependencies quickly

2014-08-18 Thread Dylan Butman
some calls to lein. > > The right answer is probably here. I'll look through it and figure something > out. https://github.com/technomancy/leiningen/wiki/Faster > >> On Monday, August 18, 2014 9:24:00 AM UTC-7, Dylan Butman wrote: >> It looks like it walks the file and

Re: [ANN] lein-plz 0.1.1 - Add dependencies quickly

2014-08-18 Thread Dylan Butman
It looks like it walks the file and injects new lines. Are you planning on adding a "remove" task? Also, it'd be great if you define groups of dependencies by giving multiple dependencies the same key. For example, I want something like { om#{"om frontend"}

Re: Success Stories w/US Government Projects

2014-08-09 Thread Dylan Butman
We've had a software product in congress for a while now. The version there isn't clojure, but we've had a number of talks about integrating our newer versions that do contain heavy amounts of clojure. We recently did a complete rewrite of cosponsor.gov (which we had previously written in ruby/

Re: [ANN] Silk, an isomorphic routing library for Clojure and ClojureScript

2014-08-07 Thread Dylan Butman
I agree with Joel that I've found that secretary works very well with Om, especially with a few abstractions built over it to built the corresponding state. The opposite direction is tricky though, and the biggest problem I've run into is that matching order is based on runtime route declaration

Re: subtle om + core.async problems

2014-07-28 Thread Dylan Butman
That looks great Dan! here's a slightly different version that takes a supplied channel and kills the go on either component unmount or the supplied channel being closed (defmixin go-block-aware (init-state [] {:chans {:mounted (async/chan)}}) (will-unmount [owner]

Re: [ANN] core.async (and more) video tutorials

2014-06-05 Thread Dylan Butman
> > Thanks for doing these Tim! Very good stuff. > > Would like to echo the above requests for source code. Can you put what > you're working from on github for all the videos? I found myself wanting to > use some of your pipeline stuff today and I'd rather not watch 20 minutes > of video again

Re: [ANN] core.async (and more) video tutorials

2014-06-05 Thread Dylan Butman
Thanks for doing these Tim! Very good stuff. Would like to echo the above results for code. Can you put what you're working from on github for all the videos? I found myself wanting to use some of your pipeline stuff today and I'd rather not watch 20 minutes of video again to type it out -

Re: Re-evaluating recuring go blocks

2014-05-19 Thread Dylan Butman
The new channel will replace the old, and that channel > will be GC'd along with all the GOs that are waiting on it. > > Now, this is all a bit different if you use the (thread) macro. In that case > threads are not GC'd (since the OS is holding on to them) so you'

Re: Re-evaluating recuring go blocks

2014-05-19 Thread Dylan Butman
Great! I've used alts! before with control channels which is definitely useful as well. Timothy, can you elaborate a little? I'm still a little unclear when channels are garbage collected. It it an issue to leave channels open after you've stopped using them? I always feel a little strange co

Re-evaluating recuring go blocks

2014-05-18 Thread Dylan Butman
When working with channels and go blocks with nRepl, I often want to do something like this. (def events (event-generator)) (go-loop [] (when-let [event (http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure"

Re: [ANN] Quil 2.0.0 released

2014-05-18 Thread Dylan Butman
Great news! Thanks Nikita! On Sunday, May 18, 2014 6:59:00 AM UTC-4, Nikita Beloglazov wrote: > > Happy to announce release of Quil 2.0.0! > > To use Quil 2.0.0 update project.clj to following: > > :dependencies [... >[quil "2.0.0"]] > > > Major change is that Quil now uses latest