Re: mini mud-client for within emacs-swank

2012-02-17 Thread bOR_
Solved it. I had to replace the (print (take.. statement with the following: (doseq [c (remove #{\return} (map char (take-while #(not= % -1) (repeatedly #(.read (.getInputStream avendar))] (print c)) -- You received this message because you are subscribed to the Google Groups Clojure

lein run takes an excessive amount of time...

2012-02-17 Thread John Szakmeister
It appears that when executing 'lein run' that it's examining dependencies and/or contacting Maven repositories. This overhead is adding a considerable amount of time to lein run. Firing things up from the command line takes *significantly* less time (30s vs 4-5s). Has anyone else seen this

ClojureScript One in Eclipse

2012-02-17 Thread turcio
Hi, I'm trying to run ClojureScript One using CCW plugin in Eclipse. I created a new project and imported all the source code into it. Then I added folders to the build path that reflect the following configuration from project.clj: :git-dependencies

Re: Lack in the documentation

2012-02-17 Thread abaitam
It is clear that most Clojure documentation (books, tutorials, blog posts) address Java or other language developers. I am at chapter three of the Clojure Programming book and so far I have seen many snippets of Ruby and Python code. That's not necessarily wrong but obviously the book assumes

Lazy loading of doms

2012-02-17 Thread Brent Millare
I have web content that loads instantly except for a small section of it, which depends on high latency computations, that take a second to do. As of now, since the page only loads when everything is computed, the whole page takes a second to load. I'd like most of the page to load, then the

Re: Problem with the Chas Emerick: Modeling the world ... video

2012-02-17 Thread Jason Aeschliman
Likewise On Feb 16, 8:43 am, Sergey Didenko sergey.dide...@gmail.com wrote: The same here. -- 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 -

Re: mini mud-client for within emacs-swank

2012-02-17 Thread George Oliver
On Feb 16, 5:03 am, bOR_ boris.sch...@gmail.com wrote: Started playing with getting an within emacs clojure-based mud client, but puzzling a bit with parsing the incoming stream. The below works (for emacs+swank-clojure 1.4.0), but puts a space between every character. When I try to solve

Mini-interview with William Byrd by Fogus

2012-02-17 Thread mnicky
In the next interview from the (take) series, Fogus interviewes William Byrd, which is talking about some suggestions for Clojure, Scheme and macros and his current work, among other things Link: http://clojure.com/blog/2012/02/16/take5-william-byrd.html -- You received this message

Re: ClojureScript def, vars, and binding

2012-02-17 Thread Brandon Bloom
A robust solution can be implemented via CPS transformation Forgive me for my ignorance, but how exactly would a CPS transformation enable one to capture and restore the current set of dynamic bindings? -- You received this message because you are subscribed to the Google Groups Clojure

Re: Lack in the documentation

2012-02-17 Thread Sean Neilan
Of course, I won't be able to write the entire Recipe Book by myself. I will contribute all the recipes I have discovered with test cases. On Thu, Feb 16, 2012 at 11:40 AM, Sean Neilan s...@seanneilan.com wrote: I'm working on something like this by keeping notes on everything I've encountered

Re: Lack in the documentation

2012-02-17 Thread Sean Neilan
I'm working on something like this by keeping notes on everything I've encountered so far in Clojure 1.3.0. Please understand that these are* personal notes* and as such are very, very messy. http://seanneilan.com/Clojure.html When I have the time, I will volunteer to clean up my notes and turn

noob question/request for guidance vis a vis connecting to SQL Server

2012-02-17 Thread VaedaStrike
I'm really new to programmIng. Started in relational database design and got myself a SQLServer based database for which I want to create a web based clojure/clojurescript/clojurescriptone based front end. I started learning programming (oop) with vb.net and vs and got to realize that to get to

Re: ClojureScript def, vars, and binding

2012-02-17 Thread David Nolen
On Thu, Feb 16, 2012 at 1:33 PM, Brandon Bloom snprbo...@gmail.com wrote: A robust solution can be implemented via CPS transformation Forgive me for my ignorance, but how exactly would a CPS transformation enable one to capture and restore the current set of dynamic bindings? The problem

Re: Lazy loading of doms

2012-02-17 Thread David Nolen
I'm assuming you've put the script tag that waits for this computation directly into the page? On Fri, Feb 17, 2012 at 8:54 AM, Brent Millare brent.mill...@gmail.comwrote: I have web content that loads instantly except for a small section of it, which depends on high latency computations, that

Re: Lazy loading of doms

2012-02-17 Thread Brent Millare
Honestly I have no clue what to do. I'm new to javascript for webpage building. Before even trying to learn javascript I'm just wondering the approaches, pros/cons to do this. You'll have to elaborate a little bit, if you don't mind. -- You received this message because you are subscribed to

Re: Lack in the documentation

2012-02-17 Thread Linus Ericsson
A treasure! I will from now on start to jot down whatever I do also. /Linus 2012/2/16 Sean Neilan s...@seanneilan.com Of course, I won't be able to write the entire Recipe Book by myself. I will contribute all the recipes I have discovered with test cases. On Thu, Feb 16, 2012 at 11:40 AM,

Re: noob question/request for guidance vis a vis connecting to SQL Server

2012-02-17 Thread Linus Ericsson
Hi! Long way! To start with I would head for using webnoir+korma for starters. I think its a better lighted up road for people to start with (eventually you could dump the jvm after a while and run everything in node.js or something but for now thats a risky road for someone new to the language

Re: Lazy loading of doms

2012-02-17 Thread David Nolen
When you inline expensive computations in script tags directly those will delay loading of the page. For anything particularly expensive, I would probably wait until the DOM is ready. If this calculation is happening server side then prevent your script from delaying page load by asynchronously

Re: Lazy loading of doms

2012-02-17 Thread Brent Millare
To be more clear about what I'm asking for, I'd like some simple sample code, or a guide which provides this. Thanks -- 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

Re: Why does (= [] (range)) not terminate?

2012-02-17 Thread Bill Smith
It might help to know that (= (range) (range)) does not terminate either. It appears that the = operator wants to fully evaluate the second argument before comparing to the first. Since (range) is infinite, it hangs. -- You received this message because you are subscribed to the Google

[ANN]: cljsh repls 1.9.5

2012-02-17 Thread Frank Siebenlist
CLJSH REPLS: cljsh is a lightweight client that sends clojure statements/files to a persistent repl-server repls for evaluation. Release notes Cljsh (= 1.9.5) and repls (= 1.9.5) have the following new features: • cljsh automatically finds the repls-server that is started for the project, so

Re: Why does (= [] (range)) not terminate?

2012-02-17 Thread Michael Gardner
On Feb 17, 2012, at 12:32 PM, Bill Smith wrote: It might help to know that (= (range) (range)) does not terminate either. Of course, since a pairwise sequential comparison (what I assume is going on under the hood) will never find a non-matching pair. It appears that the = operator wants to

Re: Why does (= [] (range)) not terminate?

2012-02-17 Thread Alan Malloy
On Feb 17, 10:54 am, Michael Gardner gardne...@gmail.com wrote: On Feb 17, 2012, at 12:32 PM, Bill Smith wrote: It might help to know that (= (range) (range)) does not terminate either. Of course, since a pairwise sequential comparison (what I assume is going on under the hood) will never

Re: ClojureScript def, vars, and binding

2012-02-17 Thread Brandon Bloom
The problem is dealing with with asynchronous code, right? Not capturing / restoring dynamic bindings. No, the problem is that there is no mechanism to capture and restore dynamic bindings. This is a shortcoming irrespective of asynchronous code. It just so happens that such a mechanism

Re: Lack in the documentation

2012-02-17 Thread Jon Seltzer
1. You can't do GUI or game development without using Java. A: Yes, that's true. Clojure was designed to use the vast libraries of Java. Java documentation is superb so if you want to do anything graphical, I'd suggest the Java tutorial and JavaFX especially for all things graphical. It's

Re: Lazy loading of doms

2012-02-17 Thread Brent Millare
The computation is happening server side. From what you said, I think XMLHttpRequest is what I need. Also from what your saying, it sounds like there isn't any clojurescript specifics here, its all in the realm of javascript. Is that right? This sounds like a powerful technique. What about

Re: Lazy loading of doms

2012-02-17 Thread David Nolen
On Fri, Feb 17, 2012 at 3:49 PM, Brent Millare brent.mill...@gmail.comwrote: The computation is happening server side. From what you said, I think XMLHttpRequest is what I need. Also from what your saying, it sounds like there isn't any clojurescript specifics here, its all in the realm of

Re: Why does (= [] (range)) not terminate?

2012-02-17 Thread David Powell
Lazy sequences implement java.util.List, which has a .size method. clojure.lang.APersistentVector/doEquiv (and doEquals) attempts to optimize when it sees it is being compared to something with a .size or .count method, by comparing sizes before doing the hard work of comparing elements. But

Re: Why does (= [] (range)) not terminate?

2012-02-17 Thread Michael Gardner
On Feb 17, 2012, at 2:29 PM, Alan Malloy wrote: Lazy sequences implement java.util.List, which has a .size method. clojure.lang.APersistentVector/doEquiv (and doEquals) attempts to optimize when it sees it is being compared to something with a .size or .count method, by comparing sizes before

tools.logging question

2012-02-17 Thread Don Jackson
I would like to conditionally generate log statements based on run-time checks of various application-specific info. I note the following: Logging levels are specified by clojure keywords corresponding to the values used in log4j and commons-logging: :trace, :debug, :info, :warn, :error,

Re: Problem with the Chas Emerick: Modeling the world ... video

2012-02-17 Thread Stuart Sierra
Chris Redinger and Alan Dipert are working with ConFreaks (who did the recording) to get this fixed. Thanks for your patience, everyone. -Stuart Sierra clojure.com -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to

Re: Why does (= [] (range)) not terminate?

2012-02-17 Thread Alan Malloy
On Feb 17, 1:34 pm, David Powell djpow...@djpowell.net wrote: Lazy sequences implement java.util.List, which has a .size method. clojure.lang.APersistentVector/doEquiv (and doEquals) attempts to optimize when it sees it is being compared to something with a .size or .count method, by

Re: Why does (= [] (range)) not terminate?

2012-02-17 Thread David Powell
Not really viable. What if the first item is realized and the rest aren't? Ah yeah - actually there are loads of reasons that it wouldn't work... -- Dave -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to

Re: ClojureScript def, vars, and binding

2012-02-17 Thread David Nolen
On Fri, Feb 17, 2012 at 1:37 PM, Brandon Bloom snprbo...@gmail.com wrote: The problem is dealing with with asynchronous code, right? Not capturing / restoring dynamic bindings. No, the problem is that there is no mechanism to capture and restore dynamic bindings. This is a shortcoming

Re: Google Summer of Code 2012 - any mentors?

2012-02-17 Thread Peter Hanak
another +1 here On Feb 14, 3:23 am, Simone Mosciatti mweb@gmail.com wrote: More students +1 On Feb 9, 9:54 am, Baishampayan Ghose b.gh...@gmail.com wrote: Alexander, A discussion is currently ongoing in the Clojure Dev mailing list. We are still waiting for someone from

Re: Why does (= [] (range)) not terminate?

2012-02-17 Thread Cedric Greevey
I suggest simply skipping the size comparison if either side is an instance of the class LazySeq. Even for finite seqs this saves traversing each seq twice. -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to

Re: Google Summer of Code 2012 - any mentors?

2012-02-17 Thread Devin Walters
+1, would love to help in any way I can '(Devin Walters) On Feb 17, 2012, at 4:41 PM, Peter Hanak ptr6...@gmail.com wrote: another +1 here On Feb 14, 3:23 am, Simone Mosciatti mweb@gmail.com wrote: More students +1 On Feb 9, 9:54 am, Baishampayan Ghose b.gh...@gmail.com wrote:

Re: Clojure online university

2012-02-17 Thread Devin Walters
I'll add a +1 to this. It seems like a great way to keep a stream of competent, hireable (from a business perspective) Clojure programmers flowing. I think it lowers some concerns for businesses considering adoption. Beyond that, even if a student were to go and program in another language, I

Re: Lack in the documentation

2012-02-17 Thread Sean Corfield
On Fri, Feb 17, 2012 at 4:57 AM, abaitam abai...@gmail.com wrote: a) All those concrete things around you look like objects that has properties and actions: I don't think that's true for a lot of brand new programmers. It's true for Java programmers because everything is an object in their