Re: [ANN] Primitive Operator

2017-07-03 Thread Phillip Lord
Yes, but it doesn't supoort ints for all the operators, as far as I can tell. You are right, though, perhaps I should look at this also. Phil Max Penet writes: > This seems quite similar to https://github.com/ztellman/primitive-math. Did > you know about it? > > On Monday,

Re: [ANN] Primitive Operator

2017-07-03 Thread Phillip Lord
Nicola Mometto writes: > Hi Phillip, > > I've had a very quick look at the code and I've spotted a few issues, > here's my feedback: > > 1- all your functions will cause input args and return value to be > boxed. There's a few ways to avoid it, none of which are particularly

Re: [ANN] Primitive Operator

2017-07-03 Thread Phillip Lord
Nicola Mometto writes: > Hi Phillip, > > I've had a very quick look at the code and I've spotted a few issues, > here's my feedback: > > 1- all your functions will cause input args and return value to be > boxed. There's a few ways to avoid it, none of which are particularly

Re: [ANN] Primitive Operator

2017-07-03 Thread Tomasz Sulej
this article may be helpful: http://insideclojure.org/2014/12/15/warn-on-boxed/ On 3 July 2017 at 13:36, Tomasz Sulej wrote: > When you decide to work with longs and doubles you can achieve the same in > pure clojure > Just add primitive type hints and (set! *unchecked-math*

Re: [ANN] Primitive Operator

2017-07-03 Thread Max Penet
This seems quite similar to https://github.com/ztellman/primitive-math. Did you know about it? On Monday, July 3, 2017 at 11:44:40 AM UTC+2, Phillip Lord wrote: > > > > This is the first alpha release of my new library! Comments welcome. > > Clojure has an extensive system for dealing with

Re: [ANN] Primitive Operator

2017-07-03 Thread Nicola Mometto
Hi Phillip, I've had a very quick look at the code and I've spotted a few issues, here's my feedback: 1- all your functions will cause input args and return value to be boxed. There's a few ways to avoid it, none of which are particularly pretty. If your library is not worried about