Re: [ANN] vectorz-clj 0.6.0

2013-02-26 Thread Mikera
On Monday, 25 February 2013 18:17:50 UTC+8, Mikera wrote: Hi All, Pleased to announce the latest release of vectorz-clj, a high performance vector and matrix math implementation for Clojure. GitHub site: https://github.com/mikera/vectorz-clj Clojars:

Re: Clojure Performance For Expensive Algorithms

2013-02-26 Thread Marko Topolnik
This is a great analysis, thanks for the link; shame it's so old. On Sunday, February 24, 2013 10:45:33 PM UTC+1, Ben Mabey wrote: Yeah, I wish the Benchmarks allowed for idiomatic submissions and finely tuned submissions. That would allow you to get some sort of an idea how performant

Re: [ANN] clj-toml 0.2.0

2013-02-26 Thread Luca Antiga
Thanks Armando, I'm glad to hear this. Kern is impressive (and well documented too). Please feel free to send suggestions if you find something awkward or inefficient. Luca On Monday, February 25, 2013 10:50:13 PM UTC+1, Armando Blancas wrote: Glad to see Kern being useful. Your parser uses

Re: ClojureScript browser REPL goes bonkers after it evals

2013-02-26 Thread David Nolen
Feel free to open a ticket in JIRA. More details would be helpful and a patch would be nice. Thanks! On Monday, February 25, 2013, Bobby Wang wrote: Update: this seems to only happen if I start the CLJS REPL inside a CLJ REPL. If I start straight from the command line (ie. lein trampoline

Securing Clojure + Clojurescript Web App

2013-02-26 Thread Ari
Hi, I'd appreciate suggestions on how I can/should secure my clojure/clojurescript single page web app that relies heavily on shoreleave-remote. With other frameworks, upon authentication I've created a roles cookie that the clientside uses to determine access rights to views, while on the

Re: Securing Clojure + Clojurescript Web App

2013-02-26 Thread Akhil Wali
Checkout cemrick/friend https://github.com/cemerick/friend. It handles authentication as ring middleware. On Tue, Feb 26, 2013 at 9:54 PM, Ari ari.brandeis.k...@gmail.com wrote: Hi, I'd appreciate suggestions on how I can/should secure my clojure/clojurescript single page web app that

Re: Securing Clojure + Clojurescript Web App

2013-02-26 Thread Akhil Wali
Here's a good screencasthttp://www.clojurewebdevelopment.com/videos/friend-interactive-formto give you a quick tutorial. On Tue, Feb 26, 2013 at 10:57 PM, Akhil Wali akhil.wali...@gmail.comwrote: Checkout cemrick/friend https://github.com/cemerick/friend. It handles authentication as ring

Re: Clojure Performance For Expensive Algorithms

2013-02-26 Thread Ben Mabey
As Issac pointed out, here are some very recent graphs (including Clojure): http://benchmarksgame.alioth.debian.org/u32/code-used-time-used-shapes.php On 2/26/13 2:35 AM, Marko Topolnik wrote: This is a great analysis, thanks for the link; shame it's so old. On Sunday, February 24, 2013

Re: Securing Clojure + Clojurescript Web App

2013-02-26 Thread Paul deGrandis
Friend + Shoreleave's CSRF protection gets you most of the way there. The rest is up to you (iptables, ssh lock down, etc). Paul On Tuesday, February 26, 2013 9:30:18 AM UTC-8, Akhil Wali wrote: Here's a good screencasthttp://www.clojurewebdevelopment.com/videos/friend-interactive-formto

ANN Elastisch 1.1.0-beta1 is released

2013-02-26 Thread Michael Klishin
Elastisch [1] is is a small but feature complete and well documented Clojure client for ElasticSearch. 1.1.0-beta1 is a development release that introduces several new features, most importantly a [mostly complete] native client that has the same API Elastisch's REST one does. Release notes:

Re: Support for pmap?

2013-02-26 Thread Alan Shaw
Could parallel.js and web workers help? On Feb 25, 2013 6:12 PM, David Nolen dnolen.li...@gmail.com wrote: Not sure how we could given JS is single threaded. On Monday, February 25, 2013, MC Andre wrote: Does ClojureScript support pmap? -- -- You received this message because you are

Re: Support for pmap?

2013-02-26 Thread David Nolen
Maybe one day. Far as I know the current overhead is significant. On Tue, Feb 26, 2013 at 2:05 PM, Alan Shaw noden...@gmail.com wrote: Could parallel.js and web workers help? On Feb 25, 2013 6:12 PM, David Nolen dnolen.li...@gmail.com wrote: Not sure how we could given JS is single

Creating web app/site without routing [experiment]

2013-02-26 Thread Yakovlev Roman
Hello Recently i was experimenting with Clojure and web stack and created kind of non-standart web app. It doesn't use routing there are no any urls there. This app is mostly One page apps. Instead of routes i used id's and classes. Let me explain: I used Noir and fetch libs and logic of

Re: Securing Clojure + Clojurescript Web App

2013-02-26 Thread Chas Emerick
On Feb 26, 2013, at 11:24 AM, Ari wrote: Hi, I'd appreciate suggestions on how I can/should secure my clojure/clojurescript single page web app that relies heavily on shoreleave-remote. With other frameworks, upon authentication I've created a roles cookie that the clientside uses to

Re: Clojure Performance For Expensive Algorithms

2013-02-26 Thread Marko Topolnik
I see; didn't notice that one. Again, only the fastest entries are shown. It appears that the same is the case with Marceau's graphs; he just didn't state that explicitly. Things don't look very rosy for Clojure: it turns out to be about as verbose as Java and significantly slower (this

Re: Clojure Performance For Expensive Algorithms

2013-02-26 Thread Andy Fingerhut
I've got a github repo with submissions for the Benchmarks Game web site for Java and Clojure, with several different Clojure programs for most problems: https://github.com/jafingerhut/clojure-benchmarks If people would like to submit what they consider idiomatic Clojure programs for any

Re: Clojure Performance For Expensive Algorithms

2013-02-26 Thread Jules
Clojure code should in principle be possible to execute very fast when using the same data structures. Clojure is much better behaved than languages like Ruby and Javascript from a compiler perspective. See for example the Stalin scheme compiler. It runs well written Scheme at almost C speed

how can I ensure a dosync is finished?

2013-02-26 Thread larry google groups
I would like to connect to MongoDb with the following code, but I am worried about the side-effecting code that comes right after the dosync: (def which-database-to-use (ref false)) (def which-collection-to-use (ref false)) (defn connect-to-server [] (mg/connect!)) (defn set-database-to-use

Re: Clojure Performance For Expensive Algorithms

2013-02-26 Thread David Nolen
On Tue, Feb 26, 2013 at 3:50 PM, Marko Topolnik marko.topol...@gmail.comwrote: Things don't look very rosy for Clojure: it turns out to be about as verbose as Java and significantly slower (this confirms my experience; slightly slower than *regular* Java code, significantly slower than highly

Re: Clojure Performance For Expensive Algorithms

2013-02-26 Thread Softaddicts
I you attempt to mimic Java or C in some narrow linear compute bound algorithm, I agree that the resulting code is quite ugly, not idiomatic on top of having performance issues. Lucky for us not all the problems are bounded like this. I have been following this thread from the beginning and I

Re: how can I ensure a dosync is finished?

2013-02-26 Thread vemv
Looks like refs are not particularly the best tool for the job in this case - those values aren't going to change a lot right? And they could be expressed as a single hashmap - removing the needs for transactionality. Answering to your question, it is impossible to reach the (when...) without

Re: Securing Clojure + Clojurescript Web App

2013-02-26 Thread Ari
On Tuesday, February 26, 2013 3:16:23 PM UTC-5, Chas Emerick wrote: What do you mean by sidesteps the auth? If you're using shoreleave-remote-ring, then the handler produced by its wrap-rpc middleware is subject to whatever access controls you define via Friend. - Chas Friend, as I

wrapping multimethods?

2013-02-26 Thread George Oliver
hi, I'm interested in what techniques are useful for adding functionality to multimethods without modifying the defmethod itself. A while back I asked a similar question [1] and there are good answers there, but recently I've been looking at simple concepts like Ring middleware and wrapping

Re: Why is this so difficult?

2013-02-26 Thread Brent Millare
On another note, I wonder if a leiningen2 wizard installer for windows would be in high-demand (does one already exist?). Anyone familiar with writing windows wizards? -- -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send

Re: Clojure Performance For Expensive Algorithms

2013-02-26 Thread Isaac Gouy
On Tuesday, February 26, 2013 12:50:17 PM UTC-8, Marko Topolnik wrote: Again, only the fastest entries are shown. True, except for the special-case included to show that programs can be made slower (and sometimes more concise) -- the shortest C++ programs. If idiomatic Clojure was

lack of :import causes Invalid method Code length

2013-02-26 Thread AtKaaZ
from here: https://groups.google.com/d/msg/clojuredev-users/2RhOiM8b308/XESMfS48upgJ the line is basically this: *:open #(ccw.repl.REPLView/connect (format nrepl://%s:%s host port) * and without this* :import* clause* [ccw.repl REPLView] * it will do the following (but with that import works just