Re: XOR two arrays into a third on Clojure

2016-03-12 Thread Mikera
I have a useful library for image manipulation in Clojure, you may find it useful: https://github.com/mikera/imagez New ideas / PRs gratefully received! On Sunday, 13 March 2016 04:14:34 UTC+8, James Elliott wrote: > > Interesting! This is the first time I have had to drop out of Clojure for >

Re: is there an implementation of GraphQL in Clojure?

2016-03-12 Thread lawrenceopenroadmedia
Thank for all responses. We have multiple MongoDB and MySQL instances and I'm trying to figure out how to create a unified API that the frontenders can query. The frontend team has decided we will definitely use React/GraphQL/Relay and I'm trying to figure out the best way to support that. O

Re: Prismatic Schema - Self-reference in schema definitions

2016-03-12 Thread JvJ
Thanks for the tip here. abstract-map-schema works really well. One thing that I would add to it if I could would be a dispatch function rather than just keywords, but I don't need that at the moment. On Sunday, 6 March 2016 18:41:53 UTC-8, Jason Wolfe wrote: > > If I'm understanding correctly,

Re: Clojure as first language

2016-03-12 Thread Lee Spector
> On Mar 11, 2016, at 9:43 PM, Paul Gowder wrote: > > 2. The other big beginner barrier I feel is the tooling. In lots of ways, > leiningen is amazing (particularly the automatic grabbing of dependencies), > but the forced project structure is really painful. It feels like a massive > barri

Re: XOR two arrays into a third on Clojure

2016-03-12 Thread James Elliott
Interesting! This is the first time I have had to drop out of Clojure for performance reasons. It is not too surprising, given that I am doing low-level byte bashing in a tight loop to send pixels to a display over USB at sixty frames per second. But it is surprising that nothing like this has

changes in logging in 1.8?

2016-03-12 Thread Daniel
Something in profiles.clj causing the application to be evaluated? -- 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 yo

Re: Which GUI toolkit would you like to see wrapped in an idiomatic Clojure library?

2016-03-12 Thread Jason Zwolak
+1 JavaFX. I know this is an old thread... but in case anyone comes across it (like I did just now) and wants to see where things are, they should know that JavaFX has come a long way and seems to be Oracle's replacement for Swing. Now JavaFX is no longer only in JavaFXscript... in fact, I beli

Re: Feedback on idiomatic API design

2016-03-12 Thread Timothy Baldridge
"Idiomatic" is always a hard word to define, and I think some of the points made here are good, but let me also provide a few guidelines I try to abide by when writing an API: Start with data, preferably hash maps. At some point your API will be consumed by someone else's program. Macros make it h

Re: Feedback on idiomatic API design

2016-03-12 Thread Johan Haleby
Thanks a lot for your support and insights. I'm going to rewrite it to use "with-open" as we speak. On Sat, Mar 12, 2016 at 2:37 PM, Marc Limotte wrote: > Look at the source for the clojure.core with-open macro. In the repl: > `(source with-open)`. > > I think Gary is right. with-open does exa

Re: Feedback on idiomatic API design

2016-03-12 Thread Marc Limotte
Look at the source for the clojure.core with-open macro. In the repl: `(source with-open)`. I think Gary is right. with-open does exactly what you need, I should have thought of that, and you should probably use it. But if you want to get your version working, trying to understand what the with