Re: Literate Programming in Emacs?

2012-01-12 Thread Andrew
Eric asks: The only function ob-clojure uses from swank-clojure is `swank:interactive-eval-region' (used with `slime-eval') in the `org-babel-execute:clojure' function. Which function would now be used to evaluate a region of clojure code? Would `slime-eval-region' suffice? -- You received thi

Re: Is this a bug? extending protocol on js/Object

2012-01-12 Thread David Nolen
You should never extend js/Object. On Thursday, January 12, 2012, Dave Sann wrote: > code is below. > Basically - if I extend a protocol on js/Object then I get an error when calling map on a map with integer keys. > Is this a bug or an error on my part? > Cheers > Dave > Results first: > If the

Re: Struggling in making a sub-process work in an interactive way

2012-01-12 Thread jaime
Well actually I also tried commons-exec but it's the same as clojure.java.shell - they run system command directly, after execution they return and terminate. That's not the way I want On Jan 13, 2:42 am, Denis Labaye wrote: > Hi, > > In Java you would do it with common-exec:http://commons.ap

Is this a bug? extending protocol on js/Object

2012-01-12 Thread Dave Sann
code is below. Basically - if I extend a protocol on js/Object then I get an error when calling map on a map with integer keys. Is this a bug or an error on my part? Cheers Dave Results first: If the extend-protocol and call to 'fred' is commented, ths console shows "START" "one" ([2

Re: ClojureScript One - Getting Started with ClojureScript

2012-01-12 Thread abaitam
Apparently I had Jenkins listening on port 8080. I can now see the CLJS1 application. Will look at the jline problem later. Thanks Brenton. On Jan 12, 6:09 pm, abaitam wrote: > Hi, > I removed the reference to jline.ConsoleRunner and the exception > stopped but I get another error now: > > 2012-0

Re: ClojureScript One - Getting Started with ClojureScript

2012-01-12 Thread abaitam
Hi, I removed the reference to jline.ConsoleRunner and the exception stopped but I get another error now: 2012-01-12 18:05:34.527:INFO::Logging to STDERR via org.mortbay.log.StdErrLog 2012-01-12 18:05:34.528:INFO::jetty-6.1.25 2012-01-12 18:05:34.545:WARN::failed SocketConnector@0.0.0.0:8080: java

Re: ClojureScript One - Getting Started with ClojureScript

2012-01-12 Thread abaitam
Thanks, but I did run script/deps and it successfully completed I have all the jars under lib. I cloned CLJS1 several times but always got the same error. What information do you need to help me solve the problem? On Jan 12, 4:50 pm, Brenton wrote: > It looks like you don't have Clojure. Did you

Re: ClojureScript One - Getting Started with ClojureScript

2012-01-12 Thread Brenton
It looks like you don't have Clojure. Did you run script/deps? Do you have anything in the lib directory? Try running it again. Brenton On Jan 12, 4:28 pm, abaitam wrote: > I am dying to try this. However, the script/run script (on MAC) gives > me this error message: > > Exception in thread "ma

Re: ClojureScript One - Getting Started with ClojureScript

2012-01-12 Thread abaitam
I am dying to try this. However, the script/run script (on MAC) gives me this error message: Exception in thread "main" java.lang.ClassNotFoundException: clojure.main at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Met

Re: ClojureScript One and remote development

2012-01-12 Thread Brenton
Yes. On Jan 12, 3:24 pm, Stan Dyck wrote: > On 01/12/2012 11:44 AM, Brenton wrote: > > > This can also be solved by not hard-coding "localhost" in > > one.sample.core as it is now. > > > There are functions in goog.uri.utils to help with this. > > > This is on our list of things to do. > > > Bren

Re: ClojureScript One - Getting Started with ClojureScript

2012-01-12 Thread Craig Andera
For anyone that wants to hear a bit more about Brenton's thinking around ClojureScript One, we just published a podcast interview with him on the Relevance blog. Have a listen if you feel so inclined! http://thinkrelevance.com/blog/2012/01/12/podcast-episode-003.html On Thu, Jan 12, 2012 at 2:35

Re: ClojureScript One and remote development

2012-01-12 Thread Stan Dyck
On 01/12/2012 11:44 AM, Brenton wrote: This can also be solved by not hard-coding "localhost" in one.sample.core as it is now. There are functions in goog.uri.utils to help with this. This is on our list of things to do. Brenton Is not hard-coding port 8080 also on this list? This would be

Re: piccup 1.0.0 - hiccup-style clojurescript dom generation (extracted from pinot)

2012-01-12 Thread Chris Granger
Haha you should've mentioned you were doing this :p It's something that was going to be happening soon :) I'll be sharing my plans for pinot soon. Cheers, Chris. On Jan 11, 9:02 pm, Dave Sann wrote: > Hi all, > > Because I find it useful in it's own right, I have extracted the > hiccup-style dom

Re: ClojureScript One and remote development

2012-01-12 Thread Brenton
This can also be solved by not hard-coding "localhost" in one.sample.core as it is now. There are functions in goog.uri.utils to help with this. This is on our list of things to do. Brenton On Jan 12, 2:30 pm, Ryan Waters wrote: > I ran into an issue with remote development and ClojureScript O

Re: ClojureScript One - Getting Started with ClojureScript

2012-01-12 Thread Brenton
We cannot share that information because it was a client project. It wasn't really a translation process. We simply attempted to solve the same problem with different tools. I do realize that seeing them side- by-side would be interesting but we just can't do it. Issue 22 is not related to this.

ClojureScript One and remote development

2012-01-12 Thread Ryan Waters
I ran into an issue with remote development and ClojureScript One and thought I'd share with others who potentially will run into the same issue. If I want to access ClojureScript One on ComputerA from ComputerB then I have to tunnel or port forward my request to ComputerA's localhost:8080. That'

defonce is not thread safe (racy)

2012-01-12 Thread Lars Rune Nøstdal
Hi, defonce is not thread safe (racy). -- 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 patient with your first post. To unsubscri

Re: ClojureScript One - Getting Started with ClojureScript

2012-01-12 Thread nchurch
Just wanted to add my thanks on this as well! It looks beautiful Nick. On Jan 12, 11:46 am, Daniel Jomphe wrote: > Will we be able to read the account of the experience of translating the > app from CoffeeScript to ClojureScript? > > And/or reading both code bases. > > Not sure if this acco

Re: Struggling in making a sub-process work in an interactive way

2012-01-12 Thread Denis Labaye
Hi, In Java you would do it with common-exec: http://commons.apache.org/exec/ So add the deps to your project.clj : :dependencies [[org.apache.commons/commons-exec "1.1"]] And use Clojure's Java interop. Keep us posted, I will need to do the same thing soon :) Denis On Wed, Jan 11, 2012 at 4

Re: Literate Programming in Emacs?

2012-01-12 Thread Phil Hagelberg
Andrew writes: > I found [1] from Eric Schulte which says to add certain package > archives such that ELPA finds swank-clojure... But what about the > swank-clojure elisp package being deprecated? swank-clojure.el is definitely deprecated, but there could still be code out there in the wild depe

Re: [ANN] ClojureScript One - Getting Started with ClojureScript

2012-01-12 Thread Daniel Jomphe
Will we be able to read the account of the experience of translating the app from CoffeeScript to ClojureScript? And/or reading both code bases. Not sure if this account is covered by https://github.com/brentonashworth/one/issues/22 -- You received this message because you are subscribed to t

Re: Literate Programming in Emacs?

2012-01-12 Thread Andrew
I found [1] from Eric Schulte which says to add certain package archives such that ELPA finds swank-clojure... But what about the swank-clojure elisp package being deprecated? (By the way, I do get further now... the clojure code evaluates) (setq package-archives '(("original". "ht

Re: [ANN] ClojureScript One - Getting Started with ClojureScript

2012-01-12 Thread mmwaikar
Heart felt thanks to everyone who contributed to this. I hope to catch up with my lack of JS skills through ClojureScript :) Everything about ClojureScript is exciting stuff. Cheers, Manoj. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to

Re: [ANN] ClojureScript One - Getting Started with ClojureScript

2012-01-12 Thread Laurent PETIT
Hi Brenton, 2012/1/11 Brenton > Today we are releasing ClojureScript One. A project to help you get > started writing single-page applications in ClojureScript. > > http://clojure.com/blog/2012/01/11/announcing-clojurescript-one.html > > http://clojurescriptone.com/ > > https://github.com/brento