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

2016-05-19 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 > > > https://www.reddit.com/r/Clojure/comments/4jtqhm/clojurecl_gpu_programm

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

2016-05-19 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 t

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

2016-05-19 Thread Fluid Dynamics
On Thursday, May 19, 2016 at 11:39:40 PM UTC-4, JvJ wrote: > > Ooooh, now I get it. Is there something equivalent do the kind of delayed > operation I'm expecting? > Well, there's always (future (Thread/sleep x) (f args)) ... -- You received this message because you are subscribed to the Googl

Re: [question] lein repl exceptions

2016-05-19 Thread Mark Engelberg
Specifically, you want (clojure.repl/pst) This function can also take as an input a number of how deep a stacktrace you want back. I use this when the reported stacktrace is not long enough. On Thu, May 19, 2016 at 8:13 PM, Mars0i wrote: > Try (pst) . > > -- > You received this message because

Re: [question] lein repl exceptions

2016-05-19 Thread Elric Erkose
Beautiful. Thanks. -- 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,

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

2016-05-19 Thread JvJ
Ooooh, now I get it. Is there something equivalent do the kind of delayed operation I'm expecting? On Thursday, 19 May 2016 20:22:31 UTC-7, Sean Corfield wrote: > > The docstring could be clearer… > > > > The do-at macro (which uses the do-at* function), evaluates the expression > in the cont

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

2016-05-19 Thread Sean Corfield
The docstring could be clearer… The do-at macro (which uses the do-at* function), evaluates the expression in the context of the time being what you specified. Mostly useful for testing I suspect: boot.user=> (t/do-at (-> 1 t/minutes t/from-now) (println "Hi!" (t/now))) Hi! #object[org.j

[question] lein repl exceptions

2016-05-19 Thread Mars0i
Try (pst) . -- 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 em

clj-time/do-at not workin as expected

2016-05-19 Thread JvJ
Whenever I call do-at or do-at*, the result expression is executed immediately instead of at the specified time. specs.core> (tm/do-at* (-> 30 tm/seconds tm/from-now) (fn [] (println "SUP"))) SUP ;; => nil In the above example, "SUP" is printed instantaneously, even before the return value o

Re: Why is there no core/system-time in Clojure if it is in ClojureScript?

2016-05-19 Thread Daniel
Perhaps it shouldn't even be available in Clojurescript. http://i.imgur.com/A0TyNGN.png On Thursday, May 19, 2016 at 3:14:27 PM UTC-5, Alex Miller wrote: > > I think the biggest question mark is what it would return... could be: > > - System/currentTimeMillis (long) > - System/nanoTime (long) >

Re: [ANN] New Clojure Podcast: defn

2016-05-19 Thread Mark Derricutt
On 19 May 2016, at 17:43, Vijay Kiran wrote: > Just wanted to let you know that we started a new podcast about Clojure:  > [https://defn.audio](https://defn.audio) +2 - enjoyed the first episode. Congrats. -- Mark Derricutt http://www.theoryinpractice.net http://www.chaliceofblood.net http://p

[question] lein repl exceptions

2016-05-19 Thread Elric Erkose
For some time I've noticed that certain exception are not printing a stacktrace when they occur in 'lein repl'. They just print a oneliner like: ArityException Wrong number of args (3) passed to: my_ns/my_fn/fn--1648 clojure.lang.AFn.throwArity (AFn.java:429) Is there a way to force them t

Re: Why is there no core/system-time in Clojure if it is in ClojureScript?

2016-05-19 Thread Erik Assum
If it already exists in cljs, wouldn't a relatively obvious answer be "whatever the cljs implementation returns", if what we want is to avoid reader conditionals? Erik. -- i farta > Den 19. mai 2016 kl. 22.14 skrev Alex Miller : > > I think the biggest question mark is what it would return..

Re: Why is there no core/system-time in Clojure if it is in ClojureScript?

2016-05-19 Thread Alex Miller
I think the biggest question mark is what it would return... could be: - System/currentTimeMillis (long) - System/nanoTime (long) - (java.util.Date.) - (java.time.Instant/now) - JDK 1.8+ only and even some other less obvious options - Calendar, Joda instant, etc I do not see an unambiguous answ

Why is there no core/system-time in Clojure if it is in ClojureScript?

2016-05-19 Thread JvJ
I know it's a minor concern. This can be accomplished by a simple reader conditional and System/currentTimeMillis in cljc, but is there any reason that core/system-time is not in standard clojure? I feel like basic utility functions should be as cross-platform as possible to minimize reliance

[JOB] Senior Developer at Nova in Stockholm, Sweden

2016-05-19 Thread Brave Clojure Jobs
"Nova is a top-talent network, which is undergoing a transformation into a product organisation. We're starting to build web and mobile applications that facilitate personal and professional development; helping high achievers connect and collaborate with each other across the globe. We're buil

Listening to changes of/in namespaces

2016-05-19 Thread Terje Dahl
Stuart Halloway asks: Clojure namespace change watcher [..]? Any ideas/suggestions on how one might listen for changes to namespaces in the runtime itself? (Similar to add-watch for atoms.) I am working on a solution for dumping

Re: Handle error many lazy sequence

2016-05-19 Thread Fluid Dynamics
On Thursday, May 19, 2016 at 7:50:57 AM UTC-4, khairul isan wrote: > > Hello all, > > I have problem on handle many lazy sequence, > > (try >(for [x [1 2 3 "b"]] > (for [n [1 2 3 4]] > (+ x n))) >(catch Throwable e > (pr-str e))) > > When i handle but error not in catch.

Handle error many lazy sequence

2016-05-19 Thread khairul isan
Hello all, I have problem on handle many lazy sequence, (try (for [x [1 2 3 "b"]] (for [n [1 2 3 4]] (+ x n))) (catch Throwable e (pr-str e))) When i handle but error not in catch. Any solution ? Thanks -- You received this message because you are subscribed to the Go