Problems with namespaces in repljs

2011-08-13 Thread Timothy Washington
Hey all, This is probably a silly question. But I'ms still struggling with some basic things in ClojureScript. I'm trying to run ./script/repljs to evaluate some basic Clojurescript code. But evaluation keeps on breaking. So I tried a clean clojurescript install with the "Hello" example they give

Re: Stanford AI Class

2011-08-13 Thread Myriam Abramson
I'm just concerned that teaching AI to 25K+ students is going to have an impact and it shouldn't be because P. Norvig didn't publish the next edition of AIMA. I wish they would realize that and change their mind on the assignments for the class. Even Javascript is more suitable for AI than Python!

clojure.java.jdbc input on JDBC-3 (esp. Stuart Sierra!)

2011-08-13 Thread Sean Corfield
http://dev.clojure.org/jira/browse/JDBC-3 "Inconsistency between tuples and regular maps" Stuart Sierra highlighted some inconsistencies in the argument formats expected by various functions in c.j.j. I'm not really seeing those inconsistencies and would value some input from folks. I've added a

clojure.java.jdbc input requested on JDBC-14

2011-08-13 Thread Sean Corfield
http://dev.clojure.org/jira/browse/JDBC-14 "delete-rows does not work with null WHERE" (more accurately: does not work with empty where vector). In the absence of a compelling argument to the contrary, I'm leaning toward resolving this "declined" - see my comment on the ticket for my justification

Re: is my understanding correct for function "identity"?

2011-08-13 Thread Alan Malloy
On Aug 13, 12:45 pm, jaime wrote: > I found an interesting function "identity" which will do nothing but > only returns the parameter passed to it. The next minute I came up a > question: "then what's the purpose of this function?" -- I've tried to > figure out reasons of existence of "identity".

Re: is my understanding correct for function "identity"?

2011-08-13 Thread Sean Corfield
On Sat, Aug 13, 2011 at 9:45 AM, jaime wrote: > The only reason that I can imagine is this: because we often use > higher-order functions, these higher-order functions will accept > functions as its parameters, in such a situation, when we want to use > a higher-order function but don't want to p

Re: is my understanding correct for function "identity"?

2011-08-13 Thread Ken Wesson
On Sat, Aug 13, 2011 at 1:57 PM, Thorsten Wilms wrote: > On 08/13/2011 06:45 PM, jaime wrote: >> Are there other functions for the same purpose? > > I don't see how there could be, for the very same purpose. Though you might > want to consider splitting up functions some more, instead. I think he

Re: Stanford AI Class

2011-08-13 Thread Ken Wesson
On Sat, Aug 13, 2011 at 1:36 PM, Lee Spector wrote: > As someone who works on code-modifying AI (genetic programming, much along > the lines described above -- which, BTW, I would expect Thrun and Norvig to > mention only briefly, if at all... but that's a debate for a different forum) > I find

Re: is my understanding correct for function "identity"?

2011-08-13 Thread Thorsten Wilms
On 08/13/2011 06:45 PM, jaime wrote: The only reason that I can imagine is this: because we often use higher-order functions, these higher-order functions will accept functions as its parameters, in such a situation, when we want to use a higher-order function but don't want to pass any "real" fu

Re: Stanford AI Class

2011-08-13 Thread Lee Spector
On Aug 12, 2011, at 9:07 PM, daly wrote: > On Fri, 2011-08-12 at 16:30 -0700, pmbauer wrote: >> +1 >> >> On Friday, August 12, 2011 3:16:15 PM UTC-7, Sergey Didenko wrote: >>BTW, Is there a case when AI self-modifying program is much >>more elegant than AI just-data-modifying prog

Re: is my understanding correct for function "identity"?

2011-08-13 Thread Mark Engelberg
(filter identity l) is a great way of removing all the false and nil items from l -- 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

is my understanding correct for function "identity"?

2011-08-13 Thread jaime
I found an interesting function "identity" which will do nothing but only returns the parameter passed to it. The next minute I came up a question: "then what's the purpose of this function?" -- I've tried to figure out reasons of existence of "identity". The only reason that I can imagine is this

Re: Clojure on Javascript: Crockford javascript lectures

2011-08-13 Thread daly
Crockford makes the point that

Re: Example of a real-world ClojureScript web application

2011-08-13 Thread Timothy Washington
Btw, I found a PDF version online, of "Closure: The Definitive Guide ". There's also the online docs, and a video overview

Re: Example of a real-world ClojureScript web application

2011-08-13 Thread Raju Bitter
Thanks for your response, Filip. That means for such a new technology the documentation is very good already. And the community can jump in and improve it until the first stable release. Good to know! Raju On Sat, Aug 13, 2011 at 9:16 AM, Filip de Waard wrote: > On Wed, Aug 10, 2011 at 11:42 PM,

Re: ANN: match 0.1.0-SNAPSHOT

2011-08-13 Thread Baishampayan Ghose
On Sat, Aug 13, 2011 at 9:08 AM, David Nolen wrote: > Just pushed a version of match to Clojars, would love to hear feedback! > Since our earlier announcement we now have: > * Guard Patterns > * Or Patterns > * As Patterns > * Java Interop > All this and we've only added about ~260 lines of code w

Re: Stream closed...

2011-08-13 Thread turcio
I'm really fresh to clojure way of doing things and your answers will definitely help. Thank you! Cheers, Daniel On 13 Sie, 06:46, Sean Corfield wrote: > Yeah, I got the impression the OP was trying to create a new file with > double the contents of the old one - the (str file-path 2) piece - b

Re: Example of a real-world ClojureScript web application

2011-08-13 Thread Filip de Waard
On Wed, Aug 10, 2011 at 11:42 PM, Raju Bitter wrote: > Thanks for sharing the code with us, Filip. I have one additional > question: Which parts of ClojureScript were documented well enough for > you, and where was it difficult to find enough information on how to > implemented certain features? >