Re: complex numbers in clojure

2015-04-27 Thread endbegin
I have been thinking along the lines of mikera and Maik - and it seems like there is no further progress here? I would like to take a crack at creating a complex number type, but implemented as a library to Clojure. I am not sure where to start, and if anyone here has suggestions, I'd be happy t

Re: complex numbers in clojure

2015-04-27 Thread endbegin
gt; post to numerical-clojure; people over there have a lot of experience about > numerical optimizations in Clojure. > > On Monday, 27 April 2015, endbegin > > wrote: > >> I have been thinking along the lines of mikera and Maik - and it seems >> like there is no fu

Re: complex numbers in clojure

2015-04-27 Thread endbegin
be very low on their priority list (just a guess > -- I have no inside knowledge there). > > Andy > > On Mon, Apr 27, 2015 at 8:39 AM, endbegin > > wrote: > >> I have been thinking along the lines of mikera and Maik - and it seems >> like there is no further progres

IllegalArgumentException when running core.async example

2014-07-08 Thread endbegin
Hi I was trying to teach myself core.async and tried the rock, paper, scissors example found here: http://tech.puredanger.com/2013/07/10/rps-core-async/ See a gist here: https://gist.github.com/endbegin/b10be6d7a3ba5f6c29db Really, the main difference is in the :require statement at the top

Re: IllegalArgumentException when running core.async example

2014-07-08 Thread endbegin
> > Just tried it with Clojure 1.6.0. Still no luck! > -- 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 p

Re: IllegalArgumentException when running core.async example

2014-07-09 Thread endbegin
Thanks!! That did it. -- 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 grou

Re: can Clojure 1.3 code always be made as fast as Java for numeric computations?

2012-03-28 Thread endbegin
On Tuesday, March 27, 2012 2:51:41 PM UTC-4, Jay Fields wrote: > > I recently ran into some code** that was in Java, and ran in single > digit microseconds (not millis). I converted it to clojure, and got it > running at about the same speed... though it did take me a day to > figure out all the tw

extracting the execution time of a function ...

2011-12-27 Thread endbegin
Hi, I am new to learning clojure, and I am hoping there is a solution to something that is not obvious to me ... I have a function that I want to run multiple times, measure the time it takes to execute each function, and put those numbers in a vector. I would like to process that vector further b

Re: extracting the execution time of a function ...

2011-12-27 Thread endbegin
Thanks Cedric. I did something along the lines of what you suggested (created a function instead of a macro). Here's what I did to get time in seconds: (defn run-myfunc [] (let [starttime (System/nanoTime)] (myfunc) (/ (- (System/nanoTime) starttime) 1e9))) and then to produce timings

Re: How to add a new type of collection?

2012-01-24 Thread endbegin
I know this isn't exactly what the OP is looking for, but the Incanter project has done something for dense matrices that might work. The Matrix type has been imported (which is a java class), and a whole bunch of functions have been implemented on that class. See here https://github.com/liebke/