Re: Clojure on AWS Lambda?

2015-06-15 Thread Karsten Schmidt
Maybe Clojure itself isn't suitable, but Clojurescript w/ node as target and lein-npm[1] should be okay (not tested)... Alternatively, if you really need JVM features, you might be able to give Skummet[2] a try (and please report back!) [1] https://github.com/RyanMcG/lein-npm [2] http://clojure-an

Re: protocol names - community standards

2015-06-15 Thread James Reeves
Yes, reusing the names core namespace functions is not uncommon. There are only so many useful verbs, and namespaces exist so we can use the same function name for different tasks. Typically, your ns declaration will look something like: (ns foo.bar (:refer-clojure :exclude [get]) (:require '

Re: Record base implementation in ClojureScript

2015-06-15 Thread Damien Lepage
My apologies, I just realized that there is a clojurescript group. I will ask my question there. 2015-06-15 23:02 GMT-04:00 Damien Lepage : > Hello, > > I found the following technique in order to have a record inheriting a > base behavior, using extend: https://gist.github.com/david-mcneil/66198

Record base implementation in ClojureScript

2015-06-15 Thread Damien Lepage
Hello, I found the following technique in order to have a record inheriting a base behavior, using extend: https://gist.github.com/david-mcneil/661983 Unfortunately this can't work in ClojureScript at this point, due to the lack of extend. Is there any alternative or should I fall back to bare fu

protocol names - community standards

2015-06-15 Thread Dru Sellers
I am creating a protocol for my entity management and I was going to use the name 'find' but that is a well known core lib function as is 'get'. I was curious if it is common practice to still use those methods or if the collective group have settled on other names for the common 'crud' type method

Re: Clojure on AWS Lambda?

2015-06-15 Thread Jason Lewis
I'm actually really curious about this as well, I've been wanting to experiment with AWS Lambda but the slow start-up of the Clojure runtime on the JVM has made me apprehensive... is there some mitigation of this on the Lambda service? On Mon, Jun 15, 2015 at 4:07 PM Kyle Sexton wrote: > Curious

Re: Question regarding java array

2015-06-15 Thread Ritchie Cai
Aww ... with that it's around 3ms now. Thanks :) On Monday, June 15, 2015 at 7:34:36 PM UTC-5, Jason Wolfe wrote: > > Might also be something to do with this: > > https://github.com/Prismatic/hiphip#performance-know-your-options > > > > On Monday, June 15, 2015 at 3:27:59 PM UTC-7, Ritchie Cai wro

Re: Question regarding java array

2015-06-15 Thread Jason Wolfe
Might also be something to do with this: https://github.com/Prismatic/hiphip#performance-know-your-options On Monday, June 15, 2015 at 3:27:59 PM UTC-7, Ritchie Cai wrote: > > My java was 1.8.0_05-b13. Upgraded it. Now it's around 9ms, close enough. > > Thanks a lot. > > On Monday, June 15, 20

Re: [ANN] thi,ng/geom 0.0.856 (new dataviz module)

2015-06-15 Thread Karsten Schmidt
All the pieces for some common 3D visualization modes (bar, line, pie, terrain, isosurface) are already existing just need to be migrated, wrapped & rewritten from their existing versions. Basic building blocks for others are all provided by the geom-types module. The geom-svg module already suppor

Re: [ANN] ClojureCL - OpenCL 2.0 Clojure library (GPGPU and high performance parallel computing)

2015-06-15 Thread Karsten Schmidt
Thanks for clarifying this, Dragan! I'm v.interested in OCL2.0, but alas have to wait on OSX :( I also didn't know about Jogamp JOCL being stale - I knew the previous maintainer left, but there seems to be some activity (would be a shame too, if not...). To be honest, I don't think the JNA route is

Re: Question regarding java array

2015-06-15 Thread Ritchie Cai
My java was 1.8.0_05-b13. Upgraded it. Now it's around 9ms, close enough. Thanks a lot. On Monday, June 15, 2015 at 4:59:57 PM UTC-5, Steven Yi wrote: > > I typed the array-max code and test in a REPL launched with "lein > repl" in a terminal. I did do that in the root of one of my projects >

[ANN] thi.ng/color 0.3.0

2015-06-15 Thread Karsten Schmidt
New update to this pure CLJ/CLJS library featuring: - support/conversion for color spaces: RGB, HSV, HSL, HCY, HCV, CIE1931, CMYK - parsing/formatting of CSS colors (hex3, hex6, rgb(), rgba(), hsl(), hsla()) - color ops: - RYB rotation - brightness/saturation adjustments (analogues) - comple

Re: Question regarding java array

2015-06-15 Thread Steven Yi
I typed the array-max code and test in a REPL launched with "lein repl" in a terminal. I did do that in the root of one of my projects that had settings on to use 1.7.0 and to warn on reflection and unchecked math. When I launched just now I have these versions reported to the terminal: REPL-y 0.3

ANN: Fink-Nottle 0.1.0 (async SQS + SNS client)

2015-06-15 Thread Moe Aboulkheir
https://github.com/nervous-systems/fink-nottle Fink-Nottle is a non-blocking client for Amazon's SQS (queuing) and SNS (push notification) services. There's a blog post here covering the SQS portion of its functionality: https://nervous.io/clojure/aws/async/sqs/messaging/2015/06/15/fink-nottle

Re: Question regarding java array

2015-06-15 Thread Ritchie Cai
Ha, you are right. That really make things a lot faster now. All three different implementations now pretty much runs about the same speed, no one is significantly faster or slower. Really appreciate your help. However, what really puzzles me at this point is that array-max call speed. On all

Clojure on AWS Lambda?

2015-06-15 Thread Kyle Sexton
Curious if anyone is doing anything on AWS Lambda now that it supports running Lambda functions in Java, https://aws.amazon.com/blogs/aws/aws-lambda-update-run-java-code-in-response-to-events/ ? Kyle Sexton -- You received this message because you are subscribed to the Google Groups "Clojure

Suggesting destructuring with :merge

2015-06-15 Thread henrik42
Hi all, I have a function *(defn foo [a b & {:keys [c d] :or {c "C" d "D"} :as opt-args}] [a b opt-args])* I want to let users call *(foo 1 2 :e "E")* and get *[1 2 {:e "E", :c "C", :d "D"}]*. But *:or* only affects the binding of *c* and *d* - not *opt

Re: `rational?` `decimal?` Am I misunderstanding these? (also `float?`)

2015-06-15 Thread Andy Fingerhut
If your definition of a mathematical decimal number is 'one that when written in decimal has a decimal point in it', do you want the answer 'true' or 'false' for the floating point number 1.0? I don't see how that definition of decimal number makes a lot of sense, or why you would want a function

Re: `rational?` `decimal?` Am I misunderstanding these? (also `float?`)

2015-06-15 Thread John Gabriele
Thanks for the clarifications, all. Had not thought about exact vs. inexact results. Also, I see that --- if I simply want to know if a number is a (mathematical) decimal number, I can just do `(or (float? x) (decimal? x))`. -- John On Friday, June 12, 2015 at 12:08:56 PM UTC-4, Gary Verhaeg

Re: [ANN] thi,ng/geom 0.0.856 (new dataviz module)

2015-06-15 Thread Dragan Djuric
I am glad to see that data visualization libraries get some love from the Clojure community. The major thing that is still missing (from my perspective) are 3D visualizations (not OpenGL 3D, but any xyz axis 3D). Is there any hope you'd add that, an if yes - what are your plans? On Sunday, June

Re: [ANN] clj-kafka 0.3.1

2015-06-15 Thread Omri Hurvitz
I see it now. I am concerned though that this will create a new zk connection every time I use it. On Friday, June 12, 2015 at 1:46:46 PM UTC-4, Ragnar Dahlén wrote: > > Hi Omri, > > There's clj-kafka.zk/set-offset! for exactly that purpose: > https://pingles.github.io/clj-kafka/clj-kafka.zk.ht

Re: [new] GNU emacs settings for clojure ?

2015-06-15 Thread Bozhidar Batsov
The "official" example config might be useful as well https://github.com/clojure-emacs/example-config On 15 June 2015 at 12:32, Josh Kamau wrote: > You could also try emacs-live if you are an emacs beginner. > https://github.com/overtone/emacs-live > > On Mon, Jun 15, 2015 at 9:32 AM, Jason Lew

Re: [new] GNU emacs settings for clojure ?

2015-06-15 Thread Josh Kamau
You could also try emacs-live if you are an emacs beginner. https://github.com/overtone/emacs-live On Mon, Jun 15, 2015 at 9:32 AM, Jason Lewis wrote: > M-x package-install cider should give you a better time. > > One is never "stuck" with emacs; one is privileged to enjoy it. > > On Sun, Jun 1

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

2015-06-15 Thread Tassilo Horn
Juho Teperi writes: Hi! >> :dependencies `[[org.clojure/clojure >>~(System/getenv "BOOT_CLOJURE_VERSION")] >> ...] > > >> Apparently, that returns nil and so does System/getProperty for >> "BOOT_CLOJURE_VERSION" or "boot.clojure.version". >> > > Boot

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

2015-06-15 Thread Juho Teperi
Hi, On Monday, June 15, 2015 at 11:05:52 AM UTC+3, Tassilo Horn wrote: > > Juho Teperi > writes: > > > I have tried to describe how to set Clojure version with Boot > > here: https://github.com/boot-clj/boot/wiki/Setting-Clojure-version > > Yes, I'm using that now, i.e., I set BOOT_CLOJURE_VERS

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

2015-06-15 Thread Tassilo Horn
Juho Teperi writes: > I have tried to describe how to set Clojure version with Boot > here: https://github.com/boot-clj/boot/wiki/Setting-Clojure-version Yes, I'm using that now, i.e., I set BOOT_CLOJURE_VERSION in boot.properties. Is there a way to access that from my build.boot so that I can