Re: Question about test.check, and knossos

2014-10-23 Thread Andy Chambers
On Thursday, October 23, 2014 10:04:52 AM UTC-4, Jan Stępień wrote: I've begun to work on such a tool not long ago. Thomas Arts, who gave a > talk at > our local FP user group meetup [mλ], inspired me to try out the approach > you're > describing in Clojure. After some experiments I got the libr

Re: Question about test.check, and knossos

2014-10-23 Thread Andy Chambers
On Thursday, October 23, 2014 11:21:44 PM UTC-4, Andy Chambers wrote: > > On Thursday, October 23, 2014 9:23:36 PM UTC-4, tcrayford wrote: >> >> Hi Andy, All, >> >> I wrote a tool like this: https://github.com/tcrayford/laundromat >> >> it's super hacky, and the api is definitely in beta. I asked s

filter but for non-sequences

2014-10-23 Thread Sam Raker
Is there anything simpler/more idiomatic than `(if (pred x) x)`? What I really want is something better than `(if (= (get a-map a-key) a-val) a-map)`/`(if (= (get-in a-map some-keys) a-val) a-map)`, but that might be too specific to have been 'cached' somewhere. -- You received this message be

Re: [ANN] fast-zip 0.5.0 now with ClojureScript support

2014-10-23 Thread Andrew Rosa
I think this will be awesome. If the data structures made a no-op, at least the testing code should help. Nice work Alexander! On Thursday, October 23, 2014 10:50:51 PM UTC-2, Alexander Hudek wrote: > > The implementation is API compatible but not compatible in terms of data > structures. I sup

Re: Question about test.check, and knossos

2014-10-23 Thread Andy Chambers
On Thursday, October 23, 2014 9:23:36 PM UTC-4, tcrayford wrote: > > Hi Andy, All, > > I wrote a tool like this: https://github.com/tcrayford/laundromat > > it's super hacky, and the api is definitely in beta. I asked some folk > about reviewing this api, got little feedback, and figured it wasn't

[ANN] Immutant 2.0.0-alpha2

2014-10-23 Thread Christian Romney
One small nit with the documentation (web guide): like hello and howdy, hola begins with an "h", albeit a silent one. -- 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 n

Re: Question about test.check, and knossos

2014-10-23 Thread tcrayford
Hi Andy, All, I wrote a tool like this: https://github.com/tcrayford/laundromat it's super hacky, and the api is definitely in beta. I asked some folk about reviewing this api, got little feedback, and figured it wasn't that much of a wanted thing after all. I still use it internally, but it's

Re: [ANN] fast-zip 0.5.0 now with ClojureScript support

2014-10-23 Thread Alexander Hudek
The implementation is API compatible but not compatible in terms of data structures. I suppose it could still be integrated on a major version change. In any case, I'm happy to donate the code if the core group wants. Would have to get sign off from the other authors too. On Tuesday, October 21

Re: Retrieving the namespace an expression in compiled in

2014-10-23 Thread Herwig Hochleitner
FWIW, I've made macros out of parse and emit in my data.xml rework, for this purpose. cheers 2014-10-24 0:32 GMT+02:00 Stephen Gilardi : > > On Oct 23, 2014, at 5:06 PM, James Reeves wrote: > > Or a macro: > > (defn endpoint [config] > (routes >(GET "/" [] (resource/url (this-ns) "index.h

Re: Retrieving the namespace an expression in compiled in

2014-10-23 Thread Stephen Gilardi
> On Oct 23, 2014, at 5:06 PM, James Reeves wrote: > > Or a macro: > > (defn endpoint [config] > (routes >(GET "/" [] (resource/url (this-ns) "index.html" Perhaps a macro 'ns-path’: (defn endpoint [config] (routes (GET "/" [] (resource/url (ns-path "index.html”) —Steve --

Retrieving the namespace an expression in compiled in

2014-10-23 Thread James Reeves
I have some code that looks like this: (ns foo.bar.endpoint.example (:require [compojure.core :refer [routes GET]] [duct.util.resource :as resource])) (defn endpoint [config] (routes (GET "/" [] (resource/url "foo/bar/endpoint/example/index.html" In this case the reso

Re: [ANN] thi.ng/crypto - GPG/OpenPGP keypair generation, file/stream encryption helpers

2014-10-23 Thread Karsten Schmidt
W00t! Thanks for the heads up! That looks far more fully featured indeed... bookmarked! Btw. I did search GH for "clojure gpg" and nothing turned up, should have searched for PGP instead... oh well! :) On 23 October 2014 18:18, Andrey Antukh wrote: > Hi Karsten > > There it already exist that: h

Re: State of Clojure/ClojureScript 2014 survey results

2014-10-23 Thread Alex Miller
Thanks, I do hope to follow up with some analysis, just thought it was more important to release the data sooner rather than later. Alex On Thursday, October 23, 2014 12:30:47 PM UTC-5, Fergal Byrne wrote: > > Great stuff Alex. I'd recommend taking a look at this talk > https://www.youtube.com/

Re: State of Clojure/ClojureScript 2014 survey results

2014-10-23 Thread Fergal Byrne
Great stuff Alex. I'd recommend taking a look at this talk https://www.youtube.com/watch?v=3MvKLOecT1I which does a great analysis job on a similar survey for Erlang. On Thu, Oct 23, 2014 at 4:58 PM, Alex Miller wrote: > I've published links to the State of Clojure and ClojureScript 2014 survey

Re: [ANN] thi.ng/crypto - GPG/OpenPGP keypair generation, file/stream encryption helpers

2014-10-23 Thread Andrey Antukh
Hi Karsten There it already exist that: https://github.com/greglook/clj-pgp And not directly related to pgp but reladed with bouncycastle and encryption api: https://github.com/niwibe/buddy Would be awesome to colaborate! Greetings. Andrey 2014-10-23 18:26 GMT+02:00 Karsten Schmidt : > Hi all,

[ANN] Immutant 2.0.0-alpha2

2014-10-23 Thread Toby Crawley
We released Immutant 2.0.0-alpha2 today, which includes support for distributed transactions, a simplified messaging API, and other changes. For full details, see http://immutant.org/news/2014/10/23/announcing-2-alpha2/. With 2.0.0, Immutant has evolved from "an application server for Clojure" to

[ANN] thi.ng/crypto - GPG/OpenPGP keypair generation, file/stream encryption helpers

2014-10-23 Thread Karsten Schmidt
Hi all, just a quick heads up for those who might want to integrate some encryption features into their projects and not struggle with a complex Java API to do so. This small library provides some utility functions atop of Bouncycastle's OpenPGP provider: http://thi.ng/crypto Example: (require '

State of Clojure/ClojureScript 2014 survey results

2014-10-23 Thread Alex Miller
I've published links to the State of Clojure and ClojureScript 2014 survey results here: http://blog.cognitect.com/blog/2014/10/20/results-of-2014-state-of-clojure-and-clojurescript-survey That page links to some reports with graphs where you can also export the raw data. I also have links to brok

Re: Invalidating a session for a given user

2014-10-23 Thread James Reeves
Surely the same principle applies? Initiate the memory session with an atom, then write a function to remove sessions from the atom that match specific criteria. I should add that the memory session store is really only intended for use in development environments. - James On 23 October 2014 14:

[ANN] Supernal, A Clojure based take on Capistrano/Fabric remote automation

2014-10-23 Thread ronen
Supernal is an automation tool similar to Capistrano/Fabric implemented in pure Clojure utilizing a Clojure based DSL. This project aims to offer: - A clear roles to host matching model which can be extended easily. - Can be used both as a library and as a standalone tool.

Re: Question about test.check, and knossos

2014-10-23 Thread Jan Stępień
Hi Andy, Lately I've been exploring the world introduced to me by watching the John > Hughes' quickcheck video from > clojure west. Awesome stuff! > > Eventually I found the "testing for fun and profit"[1] paper which left me > wanting to test my apps using > a model based system like the paper

Re: Invalidating a session for a given user

2014-10-23 Thread Sven Richter
Yea, I thought about this too, however, I am not using a database right now, but just the in memory session store. Best Regards, Sven Am Donnerstag, 23. Oktober 2014 15:54:41 UTC+2 schrieb James Reeves: > > If you're using a database to store your sessions, you can just remove the > entry that'

Re: Invalidating a session for a given user

2014-10-23 Thread James Reeves
If you're using a database to store your sessions, you can just remove the entry that's associated with a particular user. - James On 23 October 2014 14:45, Sven Richter wrote: > Hi, > > I wonder if it's possible to invalidate a ring session for a given > arbitrary user (not the logged in one)?

Invalidating a session for a given user

2014-10-23 Thread Sven Richter
Hi, I wonder if it's possible to invalidate a ring session for a given arbitrary user (not the logged in one)? Sometimes, when applying administrative tasks regarding user management in a web application it might be useful to have the user to relog. Another posiibility might be to be able to u

Re: {ANN} defun: A beautiful macro to define clojure functions with pattern match.

2014-10-23 Thread Max Gonzih
Are there any updates on clojurescript support? On Friday, September 26, 2014 1:00:04 PM UTC+2, dennis wrote: > > I will add supporting for clojurescript this weekend.Thanks for your > suggestion. > > 2014-09-26 1:09 GMT+08:00 Ivan L >: > >> Is this clojurescript ready? This looks amazing, I wou

Re: Modelling in Clojure

2014-10-23 Thread James Reeves
On 21 October 2014 01:23, Daniel wrote: > To their a wrench in the works, "keywords are functions that look > themselves up in a map". Therefore, a traditional map is just as much api > as data I'm not sure why you think one follows from the other. - James -- You received this message becau