Re: ANN: ClojureScript release 0.0-1513

2012-10-23 Thread Shantanu Kumar
> It was a regression to reify caused by > CLJS-369,http://dev.clojure.org/jira/browse/CLJS-405 > > It's fixed in master. If you can confirm this works for you too that would > be great. Yes, it works for me. Thanks! Shantanu -- You received this message because you are subscribed to the Googl

Re: tutorials or screencasts on debuggers in clojure?

2012-10-23 Thread Roberto Mannai
There is a ticket in CDS: https://github.com/clojuredocs/cds/issues/27#issuecomment-9583049 On Wednesday, October 24, 2012, Warren Lynn wrote: > +1. I just got the basic ritz-nrepl set up in the hope to try out the > debugger. But I don't even know where to start. How to set a breakpoint, > for e

[ANN] congomongo 0.2.2 and 0.3.1 released

2012-10-23 Thread Sean Corfield
Today has been a busy day in the world of CongoMongo with four(!) releases... The 0.2.x branch is now in maintenance, supporting Clojure 1.2.x. Release 0.3.0 onward only support Clojure 1.3.0 and later. Only 0.2.1 and 0.3.0 were planned. MongoDB then announced a critical bug fix in the Java drive

Re: ANN: Spyscope, a trace/println-oriented debugging tool for Clojure

2012-10-23 Thread Mads Olsen
Super! Very pragmatic, short, practical. I suggest removing fib or putting it in test. Also suggest renaming ast. -- 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 me

Re: Some Friend documentation and regarding documentation in general

2012-10-23 Thread David Della Costa
Patrik, Pierre, have you folks checked out the mock app that Chas created in the test directory? It's not going to give you everything you're looking for but make it can help. There is an implementation of the OpenID workflow in there, including a credential-fn example: https://github.com/cemeri

Re: tutorials or screencasts on debuggers in clojure?

2012-10-23 Thread Warren Lynn
+1. I just got the basic ritz-nrepl set up in the hope to try out the debugger. But I don't even know where to start. How to set a breakpoint, for example? I could not find it anywhere on the web or from Emacs "apropos". I figured it must be so obvious to others and I must be so stupid... Thank

Re: ANN: ClojureScript release 0.0-1513

2012-10-23 Thread David Nolen
On Mon, Oct 22, 2012 at 3:20 PM, Shantanu Kumar wrote: > > > On Oct 23, 12:11 am, David Nolen wrote: > > On Mon, Oct 22, 2012 at 3:08 PM, Shantanu Kumar < > kumar.shant...@gmail.com>wrote: > > > > > 19afb31a52504293ba2182c584b1867917316662 > > > > Do you have top level lets in your code? > > > >

Re: CLJS: println stopped working (r1514) ?

2012-10-23 Thread David Nolen
On Tue, Oct 23, 2012 at 6:47 PM, Frank Siebenlist < frank.siebenl...@gmail.com> wrote: > Thanks Paul. > > Just wanted a confirmation first that this printing from the browser repl > doesn't work before opening a new issue. > (too many versions and uncommitted changes on my mac - it's a pain trying

Re: CLJS: println stopped working (r1514) ?

2012-10-23 Thread Frank Siebenlist
Yes - automated testing of cljs in the browser would definitely be Grand with a capital G. Not sure exactly what it would take, but it may be helpful to use this cljs-info.repl/cljs->repl function as it allows you to send cljs-forms for eval to the browser and get the result back from your clj

Re: CLJS: println stopped working (r1514) ?

2012-10-23 Thread Frank Siebenlist
Thanks Paul. Just wanted a confirmation first that this printing from the browser repl doesn't work before opening a new issue. (too many versions and uncommitted changes on my mac - it's a pain trying to create a clean slate - may require a lein&m2 hard-reboot… a simple confirmation would avoi

Re: CLJS: println stopped working (r1514) ?

2012-10-23 Thread David Nolen
A related ticket - http://dev.clojure.org/jira/browse/CLJS-404 if someone is interested. Would be grand if we could automate testing the browser REPL to avoid regressions like this. David On Tue, Oct 23, 2012 at 5:51 PM, Paul deGrandis wrote: > Frank, > > Do you have an open issue for this? if

tutorials or screencasts on debuggers in clojure?

2012-10-23 Thread James Hess
Hi, Are there any recent tutorials or screencasts on the debuggers in clojure's ecosystem today (e.g. ritz for emacs, or CCW)? If not then I think having a debugger tutorial on clojure-docs or similar would fill a massive void. -Jimbo -- You received this message because you are subscribed

Re: when to be lazy

2012-10-23 Thread Jonathan Fischer Friberg
No, that's unfortunate. :( Jonathan On Wed, Oct 24, 2012 at 12:27 AM, Brian Craft wrote: > hipster presentation is not so great in archive: can't really see what > he's doing. > > > On Tuesday, October 23, 2012 1:55:08 PM UTC-7, Jonathan Fischer Friberg > wrote: > >> Just found this: http://www

Re: when to be lazy

2012-10-23 Thread Brian Craft
hipster presentation is not so great in archive: can't really see what he's doing. On Tuesday, October 23, 2012 1:55:08 PM UTC-7, Jonathan Fischer Friberg wrote: > > Just found this: http://www.infoq.com/presentations/Laziness-Good-Bad-Ugly > > Jonathan > > On Tue, Oct 23, 2012 at 10:09 PM, Bria

Re: Midje popularity?

2012-10-23 Thread Brian Marick
I merged your pull request, and I'm now getting up to speed with nrepl, leiningen 2, etc. Do you want to be a committer to midje-mode? I'll have to get dnaumov to set you up, since it's his repo. - Brian Marick, Artisanal Labrador Contract programming in Ruby and Clojure Occasional consult

Re: CLJS: println stopped working (r1514) ?

2012-10-23 Thread Paul deGrandis
Frank, Do you have an open issue for this? if not, please do so and attach all the information you can. I can start digging in on this. Paul -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.

Re: when to be lazy

2012-10-23 Thread Jonathan Fischer Friberg
Just found this: http://www.infoq.com/presentations/Laziness-Good-Bad-Ugly Jonathan On Tue, Oct 23, 2012 at 10:09 PM, Brian Craft wrote: > Thanks for all the responses! This is great. > > b.c. > > On Tuesday, October 23, 2012 12:51:11 PM UTC-7, Sean Corfield wrote: > >> On Tue, Oct 23, 2012 at

Re: CLJS: println stopped working (r1514) ?

2012-10-23 Thread David Nolen
On Tue, Oct 23, 2012 at 4:33 PM, Frank Siebenlist < frank.siebenl...@gmail.com> wrote: > Sorry - browser-repl- any browser. Ah. This is possible given some of the changes around printing. Help welcome on this one, a bit busy this week. David -- You received this message because you are subscr

Re: CLJS: println stopped working (r1514) ?

2012-10-23 Thread Frank Siebenlist
Sorry - browser-repl- any browser. On Oct 23, 2012, at 1:25 PM, David Nolen wrote: > On Tue, Oct 23, 2012 at 4:18 PM, Frank Siebenlist > wrote: > Bump. > > Could someone please confirm that printing from the repl doesn't work anymore? > > Thanks, Frank. > > In what REPL? Works fine for me u

Re: CLJS: println stopped working (r1514) ?

2012-10-23 Thread David Nolen
On Tue, Oct 23, 2012 at 4:18 PM, Frank Siebenlist < frank.siebenl...@gmail.com> wrote: > Bump. > > Could someone please confirm that printing from the repl doesn't work > anymore? > > Thanks, Frank. In what REPL? Works fine for me using the Rhino one via script/repljs David -- You received th

Re: CLJS: println stopped working (r1514) ?

2012-10-23 Thread Frank Siebenlist
Bump. Could someone please confirm that printing from the repl doesn't work anymore? Thanks, Frank. On Oct 19, 2012, at 8:18 PM, Frank Siebenlist wrote: > When I eval in the cljs-repl: > >(set! *print-fn* clojure.browser.repl/repl-print) > > all works again. > > Seems that the "(defm

Re: when to be lazy

2012-10-23 Thread Brian Craft
Thanks for all the responses! This is great. b.c. On Tuesday, October 23, 2012 12:51:11 PM UTC-7, Sean Corfield wrote: > > On Tue, Oct 23, 2012 at 11:38 AM, Brian Craft > > > wrote: > > Is a lazy seq mostly about algorithmic clarity, and avoiding unnecessary > > computation? So far I haven't

Re: immutable objects in js

2012-10-23 Thread Philip Potter
If you're interested, I did an introduction to clojure's persistent data structures at the london Clojure user group earlier this year: http://skillsmatter.com/podcast/home/persistent-data-structures-in-clojure There have also been talks worth watching on the subject by Chris Houser, Daniel Spiew

Re: when to be lazy

2012-10-23 Thread Sean Corfield
On Tue, Oct 23, 2012 at 11:38 AM, Brian Craft wrote: > Is a lazy seq mostly about algorithmic clarity, and avoiding unnecessary > computation? So far I haven't run into any cases where I wouldn't realize > the entire sequence, and it's always faster to do it up-front. Here's a real world example

Re: immutable objects in js

2012-10-23 Thread Raoul Duke
On Tue, Oct 23, 2012 at 12:47 PM, Philip Potter wrote: > Clojure's persistent data structures use sharing under the hood. Ergo, so do > clojurescript's. keen! thanks. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email

Re: immutable objects in js

2012-10-23 Thread Philip Potter
Clojure's persistent data structures use sharing under the hood. Ergo, so do clojurescript's. Phil On Oct 23, 2012 8:23 PM, "Raoul Duke" wrote: > On Tue, Oct 23, 2012 at 12:19 PM, David Nolen > wrote: > > On Tue, Oct 23, 2012 at 3:17 PM, Brian Craft > wrote: > >> Does clojurescript have to do

Re: when to be lazy

2012-10-23 Thread Brian Hurt
Sorry- I didn't mean for my post to come off sounding like the only reason to use lazy eval is to skip computation. It's just *one* of the many reasons. On Tue, Oct 23, 2012 at 3:08 PM, Kurman Karabukaev wrote: > Hi Brian, > > Laziness (and first class functions) can help with code modularity,

Re: when to be lazy

2012-10-23 Thread Kurman Karabukaev
Hi Brian, Laziness (and first class functions) can help with code modularity, I would suggest reading paper by John Hughes on the topic: www.cs.kent.ac.uk/people/staff/dat/miranda/whyfp90.pdf Kurman On Tue, Oct 23, 2012 at 11:38 AM, Brian Craft wrote: > I don't yet understand how laziness help

Re: Some Friend documentation and regarding documentation in general

2012-10-23 Thread Pierre R
Thanks David for the extra doc. I have had a try with OpenID. Everything works kind of expected. I had a question about "302 redirection prior to authentication" that I posted on github. Another question is how to link the concept of roles with the openid credentials. IMHO the doc is really l

Re: immutable objects in js

2012-10-23 Thread Raoul Duke
On Tue, Oct 23, 2012 at 12:19 PM, David Nolen wrote: > On Tue, Oct 23, 2012 at 3:17 PM, Brian Craft wrote: >> Does clojurescript have to do full copies on collection types to keep them >> immutable? Or is there some nice way to efficiently do immutable objects in >> js? > ClojureScript now implem

Re: immutable objects in js

2012-10-23 Thread David Nolen
On Tue, Oct 23, 2012 at 3:17 PM, Brian Craft wrote: > Does clojurescript have to do full copies on collection types to keep them > immutable? Or is there some nice way to efficiently do immutable objects in > js? ClojureScript now implements all of Clojure's persistent data structures. David

immutable objects in js

2012-10-23 Thread Brian Craft
Does clojurescript have to do full copies on collection types to keep them immutable? Or is there some nice way to efficiently do immutable objects in js? -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@g

Re: when to be lazy

2012-10-23 Thread Jonathan Fischer Friberg
Example: You want to find an element with a certain property in a list. In a imperative language you can do: function ... for( ... loop over list) if( ... current element has the property ...) return the element But in clojure we can do: (first (filter has-the-property? the-lis

Re: when to be lazy

2012-10-23 Thread Brian Hurt
On Tue, Oct 23, 2012 at 2:58 PM, Jim - FooBar(); wrote: > On 23/10/12 19:57, Brian Hurt wrote: > >> Unless you don't need to do it at all. >> > > nce... ;-) > > I was actually serious. One of the advantages of lazy eval is that it lets you delay deciding whether or not to do a computation unt

Re: when to be lazy

2012-10-23 Thread Jim - FooBar();
On 23/10/12 19:57, Brian Hurt wrote: Unless you don't need to do it at all. nce... ;-) Jim -- 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 moder

Re: when to be lazy

2012-10-23 Thread Brian Hurt
On Tue, Oct 23, 2012 at 2:49 PM, Jim - FooBar(); wrote: > On 23/10/12 19:38, Brian Craft wrote: > >> it's always faster to do it up-front. >> > > it will always always be faster do it upfront...no way around that! > Unless you don't need to do it at all. Brian -- You received this message beca

Re: when to be lazy

2012-10-23 Thread Jim - FooBar();
On 23/10/12 19:38, Brian Craft wrote: it's always faster to do it up-front. it will always always be faster do it upfront...no way around that! Clojure offers both worlds...be lazy when designing APIs or dealing with big-data that don't fit to memory and be greedy when you want petal to the

Re: when to be lazy

2012-10-23 Thread Raoul Duke
On Tue, Oct 23, 2012 at 11:38 AM, Brian Craft wrote: > I don't yet understand how laziness helps. Can anyone point me to a > reference? all of haskell? ;-) -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@

when to be lazy

2012-10-23 Thread Brian Craft
I don't yet understand how laziness helps. Can anyone point me to a reference? I have vague memory that one of the videos addresses this (I remember something about "these are not iterators"), but I'm having trouble finding it now. I'm finding that lazy seqs are too slow for everything, so I ex

Re: Some Friend documentation and regarding documentation in general

2012-10-23 Thread Patrik Sundberg
These are great tutorials. Thanks for publishing. Right now I'm looking for something similar using the OpenID workflow. I see it's there but how I use to for example create a "sign in with google" setup is less clear to me. Has anyone got a good OpenID example out there somewhere? On Saturday

nREPL 0.2.0-RC1 released

2012-10-23 Thread Chas Emerick
I released [org.clojure/tools.nrepl "0.2.0-RC1"] last night. This includes a couple of key fixes since the 0.2.0-beta9 release, which you can peruse here if you're so inclined: http://dev.clojure.org/jira/browse/NREPL/fixforversion/10153 http://dev.clojure.org/jira/browse/NREPL/fixforversion/10

Re: Meta data access

2012-10-23 Thread Mamun
Hi Carlo, Thanks. Now it is fine. Regards, Mamun On Tuesday, October 23, 2012 5:24:41 AM UTC+2, Carlo wrote: > > Hey Mamun, > > Your problem is that your ^{:test true} metadata isn't being applied > to your functions, as you might expect, but rather to the var that is > pointing to the functi

Re: ANN: Zürich Clojure User Group

2012-10-23 Thread Nando
Thomas, Can you be more specific about the room, if it is already known? On Mon, Oct 22, 2012 at 8:00 PM, Thomas G. Kristensen < thomas.g.kristen...@gmail.com> wrote: > Hi Nando, > > The first meeting will be Monday 12 of November at 7 PM (more information > at http://www.meetup.com/zh-clj-Zuric

Re: ANN: LispIndent, jEdit plugin that indents lisp code

2012-10-23 Thread Jonathan Fischer Friberg
> > BTW, I created the beginnings of a CDS "development tools" guide > https://github.com/clojuredocs/cd > s/blob/master/articles/ecosystem/development_tools.md

Re: after a few days, my app dies -- how should I diagnose?

2012-10-23 Thread Hubert Iwaniuk
Not sure if that is a case but could your run your software in some long running shell like tmux or screen. You redirected all standard file descriptors, so it should not be a problem, but it is worth a try. HTH, Hubert. AtKaaZ wrote: You could save the std out and err to some .log and can ins

Re: Understanding clojure.core.cache TTL cache

2012-10-23 Thread Hussein B.
Just to push to the limit. Lets say we saved/serializer the cache to a secondary storage (file or ZooKeeper). What happen when the cache is restored? I mean TTL is still honored? expired data while been sleeping will be evicted upon an operation is performed after deserialization? Thanks a lot

Re: UTF-8 behavior ClojureScript (vs. Clojure)

2012-10-23 Thread Dave Sann
I notice this is fixed on clojurescript master. thanks guys. I can now delete my special edition clojure :) On Saturday, 20 October 2012 11:55:23 UTC+11, Chas Emerick wrote: > > I've filed a CLJS issue for this, and attached a patch: > > http://dev.clojure.org/jira/browse/CLJS-400 > > Thanks