Seeking feedback on custom core.async utility functions

2016-05-20 Thread JvJ
I recently wrote two utility functions for core.async, and I'm wondering if there could be some improvemets, or if I'm reinventing the wheel and there's something else out there that would accomplish the same thing. Source code is available here:

Re: reader conditional not handling defmacro?

2016-05-20 Thread Dan Burton
What about something like ;; obj.cljc (ns obj) (def obj #?(:clj Object :cljs js/Object)) (defmacro get-obj [] `obj) ;; obj-test.cljc (ns obj-test (:require [obj :refer-macros [get-obj]])) (def gotten-obj (obj/get-obj)) Load obj-test in clj, and obj-test/gotten-obj is Object. Load it in

Re: reader conditional not handling defmacro?

2016-05-20 Thread hiskennyness
Thanks, Sean. (My follow-up fix request went out just as your fix came in.) -kt On Friday, May 20, 2016 at 2:16:47 PM UTC-4, hiskennyness wrote: > > > > On Friday, May 20, 2016 at 1:34:43 PM UTC-4, hiskennyness wrote: >> >> My next problem with .cljc (which is going very very well overall!) has

Re: reader conditional not handling defmacro?

2016-05-20 Thread hiskennyness
On Friday, May 20, 2016 at 1:34:43 PM UTC-4, hiskennyness wrote: > > My next problem with .cljc (which is going very very well overall!) has to > do with macros. > snip > > ps. I will try the old trick of having a helper defn with-defobserver and > with-whatever to see if this is purely a

Re: reader conditional not handling defmacro?

2016-05-20 Thread Sean Corfield
This is because the macros are expanded by Clojure so inside a macro, it always looks like :clj. Take a look at how Expectations gets around this: https://github.com/jaycfields/expectations/blob/master/src/cljc/expectations/platform.cljc#L9-L21 I’d love to hear if there’s an “official”

reader conditional not handling defmacro?

2016-05-20 Thread hiskennyness
My next problem with .cljc (which is going very very well overall!) has to do with macros. Should I mention that I am building under Figwheel? This toolchain stuff has this old Lisper's head spinning. Without a conditional, code using this macro compiles fine (the key bit being where I offer

Re: clj-time/do-at not workin as expected

2016-05-20 Thread JvJ
Actually, I've been using async channels the whole time. I just wanted to use scheduling rather than timeouts if possible. So, I'd like to be able to say "wait until this time" instead of "wait for an amount of time". On Friday, 20 May 2016 01:29:20 UTC-7, Colin Yates wrote: > > Have you

Re: atoms not working same in cljs as in clj?

2016-05-20 Thread Kenneth Tilton
On Fri, May 20, 2016 at 12:50 PM, Kevin Downey wrote: > This is a difference in the type function. The clojurescript type > function ignores metadata. Thanks! That was my second guess, but I looked and did not see that documented on the differences page. I already had an

Re: atoms not working same in cljs as in clj?

2016-05-20 Thread Kevin Downey
This is a difference in the type function. The clojurescript type function ignores metadata. So the clojurescript type function is like the clojure class function, and clojurescript doesn't have a class function. On 05/20/2016 09:22 AM, hiskennyness wrote: > I see here >

atoms not working same in cljs as in clj?

2016-05-20 Thread hiskennyness
I see here https://github.com/clojure/clojurescript/wiki/Differences-from-Clojure that "Atoms work as in Clojure.", but I think I see a difference: 1. I am using a custom type hierarchy in a namespace tiltontec.modeller.cell_types: (defonce ia-types (-> (make-hierarchy)

Re: [ANN] New Clojure Podcast: defn

2016-05-20 Thread Mond Ray
Thanks Ashish - that's really good feedback. We will improve the notes along the lines that you request. On Friday, 20 May 2016 12:02:05 UTC+2, Ashish Negi wrote: > > The notes has : > ``` > Credits: > > *Music:* Thanks to the very talented *ptzery* for the permitting us to > use his music on

Re: [ANN] New Clojure Podcast: defn

2016-05-20 Thread Mond Ray
That's great feedback. We can (and will) definitely improve the notes along the lines you suggest. On Friday, 20 May 2016 12:19:17 UTC+2, Alan Forrester wrote: > > On 20 May 2016, at 10:32, Vijay Kiran > wrote: > > > On Friday, May 20, 2016 at 9:29:29 AM UTC+2, Ashish

Re: [ANN] New Clojure Podcast: defn

2016-05-20 Thread 'Alan Forrester' via Clojure
On 20 May 2016, at 10:32, Vijay Kiran wrote: > On Friday, May 20, 2016 at 9:29:29 AM UTC+2, Ashish Negi wrote: >> One suggestion : >> >> Please provide a short description for every podcast episode. This helps >> immensely. > > Hi Ashish, > > Thanks for tuning in, we

Re: [ANN] New Clojure Podcast: defn

2016-05-20 Thread Ashish Negi
The notes has : ``` Credits: *Music:* Thanks to the very talented *ptzery* for the permitting us to use his music on the opening and closing of the podcast. This track is Melon Hamburger. You can hear more on his SoundCloud . *Audio:* Thanks to the audio wizard

Re: [ANN] New Clojure Podcast: defn

2016-05-20 Thread Vijay Kiran
Hi Ashish, Thanks for tuning in, we post the show notes on https://defn.audio I'm not sure where you want to see the description (SoundCloud?) ./Vijay On Friday, May 20, 2016 at 9:29:29 AM UTC+2, Ashish Negi wrote: > > One suggestion : > > Please provide a short description for every podcast

Re: clj-time/do-at not workin as expected

2016-05-20 Thread Colin Yates
Have you considered using async channels? JvJ writes: > Chime seems great, but I'm looking for something cross-platform (java/js). -- 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

Re: clj-time/do-at not workin as expected

2016-05-20 Thread JvJ
Chime seems great, but I'm looking for something cross-platform (java/js). -- 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

Re: [ANN] ClojureCL now supports Linux, Windows and OS X (GPGPU and high performance parallel computing)

2016-05-20 Thread Dragan Djuric
OpenCL in Action even contains a chapter on (home-made) FFT. That might be a first step if you've never done this. On Friday, May 20, 2016 at 8:32:27 AM UTC+2, Terje Dahl wrote: > > YESS! > Just what I wanted to try. Now to figure out how to use this to do lots > of FFT (on audio) in

Re: [ANN] New Clojure Podcast: defn

2016-05-20 Thread Ashish Negi
One suggestion : Please provide a short description for every podcast episode. This helps immensely. On Thursday, 19 May 2016 11:13:44 UTC+5:30, Vijay Kiran wrote: > > Hello Everyone, > > Just wanted to let you know that we started a new podcast about Clojure: > https://defn.audio > > We

Re: [ANN] ClojureCL now supports Linux, Windows and OS X (GPGPU and high performance parallel computing)

2016-05-20 Thread Terje Dahl
YESS! Just what I wanted to try. Now to figure out how to use this to do lots of FFT (on audio) in parallel. On Wednesday, May 18, 2016 at 1:37:50 AM UTC+2, Dragan Djuric wrote: > > http://clojurecl.uncomplicate.org > > >

Re: clj-time/do-at not workin as expected

2016-05-20 Thread craig worrall
Chime? -- 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 group, send email