Re: Example of a real-world ClojureScript web application

2011-08-11 Thread Filip de Waard
On Wed, Aug 10, 2011 at 11:22 PM, Scott Jaderholm jaderh...@gmail.comwrote: I haven't read the code yet but I have a few questions: Do you miss backbone.js? Are you going to use it with cljs? I'm using 100% ClojureScript, with Google Closure as the only external dependency. I don't miss

Re: Example of a real-world ClojureScript web application

2011-08-11 Thread Filip de Waard
On Thu, Aug 11, 2011 at 4:03 AM, Timothy Washington twash...@gmail.comwrote: Good on you. I've been looking to find a reliable way to have Javascript unit testing run in a v8 (or any JS) shell. I've tried Jasmine and am now trying Google Closure's unit testing framework, but have so far come

Silly Chat: Clojure, ClojureScript and WebSockets

2011-08-11 Thread Hubert Iwaniuk
Good news everyone! Here is a sample Clojure ClojureScript application that uses WebSocket for communication. http://lab01.kungfoo.pl:8108/ Source code: https://github.com/neotyk/ws-cljs/ Nothing really fancy, just a POC kind of thing. Cheers, Hubert. P.S. We are hiring in Amsterdam. --

Re: Silly Chat: Clojure, ClojureScript and WebSockets

2011-08-11 Thread Paulo Pinto
nice On Aug 11, 9:29 am, Hubert Iwaniuk neo...@kungfoo.pl wrote: Good news everyone! Here is a sample Clojure ClojureScript application that uses WebSocket for communication.http://lab01.kungfoo.pl:8108/ Source code:https://github.com/neotyk/ws-cljs/ Nothing really fancy, just a POC kind

[ANN] Lacij v.0.4.0

2011-08-11 Thread Pierre Allix
Hello, I'm pleased to announce the release of the version 0.4.0 of the Lacij graph visualization library. The release includes a new automatic layout called hierarchical layout. It is similar to a tree layout or family tree but works on any type of graph (tree or not). An example of this layout

Re: Creating a map algorithmically

2011-08-11 Thread Kevin Sookocheff
Thanks Justin, this is a terrific implementation. -- 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

Re: rebind var for all threads

2011-08-11 Thread Armando Blancas
My code calls a function in 3rd party library A, which in turn calls a function in 3rd party library B.  The lib B function uses blacklisted Java classes, causing my app to crash when lib A calls it.  I would like to replace that function with a safe version, so that lib A is forced to use

Re: Elegant tools deserve elegant solutions. -- L. E. Gant

2011-08-11 Thread Petr Gladkikh
On Mon, Aug 8, 2011 at 1:46 PM, Tuba Lambanog tuba.lamba...@gmail.com wrote: Hello, I’m doing a word stemmer for a non-English language. A stemmer parses a word into its word parts: prefixes, roots, suffixes. The input word is at least a root word (English example would be ‘cloud’), but can

Re: Passing ClojureScript objects to JavaScript functions

2011-08-11 Thread Brenton
There is an issue for this: http://dev.clojure.org/jira/browse/CLJS-37 and work is being done to come up with a good solution. The comment in the issue is outdated. There was some discussion last week about how best to do this. I can't remember the details but I know that doing anything

Re: rebind var for all threads

2011-08-11 Thread Mark Rathwell
(This is all moot at this point, since the author or Noir has made changes that allow it to be compatible with App Engine.) Background: This was with noir version 1.1.0, and appengine-magic version 0.4.3. appengine-magic needs a ring handler, which noir provided with noir.server/gen-handler.

Re: Elegant tools deserve elegant solutions. -- L. E. Gant

2011-08-11 Thread Tuba Lambanog
Hi, Petr, Thank you for the pointer to the site. Indeed a treasure trove of ideas on stemmer algorithms. Tuba On Thu, Aug 11, 2011 at 8:45 AM, Petr Gladkikh petrg...@gmail.com wrote: On Mon, Aug 8, 2011 at 1:46 PM, Tuba Lambanog tuba.lamba...@gmail.com wrote: Hello, I’m doing a word

Re: rebind var for all threads

2011-08-11 Thread Ken Wesson
On Thu, Aug 11, 2011 at 2:05 PM, Mark Rathwell mark.rathw...@gmail.com wrote: (This is all moot at this point, since the author or Noir has made changes that allow it to be compatible with App Engine.) App Engine. Background: This was with noir version 1.1.0, and appengine-magic version

Re: rebind var for all threads

2011-08-11 Thread Alan Malloy
On Aug 11, 12:31 pm, Ken Wesson kwess...@gmail.com wrote: On Thu, Aug 11, 2011 at 2:05 PM, Mark Rathwell mark.rathw...@gmail.com wrote: (This is all moot at this point, since the author or Noir has made changes that allow it to be compatible with App Engine.) App Engine. Background:

Re: Passing ClojureScript objects to JavaScript functions

2011-08-11 Thread Kevin Lynagh
Alright, thanks for the info. Do you know why an automatic solution is out? I'm trying to use D3 from ClojureScript, but right now all of the clarity I get from Clojure's nicer data manipulation abstractions is lost having to convert to/from JS objects everywhere. On Aug 11, 9:27 am, Brenton

Re: rebind var for all threads

2011-08-11 Thread Ken Wesson
On Thu, Aug 11, 2011 at 4:45 PM, Alan Malloy a...@malloys.org wrote: Have you even tried a google search for app engine? It's (a) nothing to do with a phone, (b) fairly well known, and (c) easy to discover even if you've never heard of it. Previous discussions of App Engine here have implied

Re: Passing ClojureScript objects to JavaScript functions

2011-08-11 Thread Ken Wesson
On Thu, Aug 11, 2011 at 5:02 PM, Kevin Lynagh klyn...@gmail.com wrote: Alright, thanks for the info. Do you know why an automatic solution is out? I'm trying to use D3 from ClojureScript, but right now all of the clarity I get from Clojure's nicer data manipulation abstractions is lost

Re: rebind var for all threads

2011-08-11 Thread Sean Corfield
On Thu, Aug 11, 2011 at 2:10 PM, Ken Wesson kwess...@gmail.com wrote: Previous discussions of App Engine here have implied it to be associated with the APIs for Android, a phone OS. Now you've made me curious... *which* previous discussions implied that? -- Sean A Corfield -- (904) 302-SEAN

Re: Passing ClojureScript objects to JavaScript functions

2011-08-11 Thread Kevin Lynagh
Yeah, I ended up writing two such functions for converting Clojure sequentials into JS arrays and maps into JS objects: https://gist.github.com/1141054 (Note that they won't convert a vector containing maps or vice versa properly, so they're not quite nice functions yet.) On Aug 11, 2:14 

Re: rebind var for all threads

2011-08-11 Thread Ken Wesson
On Thu, Aug 11, 2011 at 5:47 PM, Sean Corfield seancorfi...@gmail.com wrote: On Thu, Aug 11, 2011 at 2:10 PM, Ken Wesson kwess...@gmail.com wrote: Previous discussions of App Engine here have implied it to be associated with the APIs for Android, a phone OS. Now you've made me curious...

Re: rebind var for all threads

2011-08-11 Thread Mark Rathwell
Is the app store for more than just Android device apps then? Apple has one central app store for iPhone/iPad apps, and now even has one for Mac apps. Android's situation I haven't exactly figured out, but I think there is a central app store somewhat managed by Google, but Amazon also has an

Re: rebind var for all threads

2011-08-11 Thread Ken Wesson
On Thu, Aug 11, 2011 at 10:02 PM, Mark Rathwell mark.rathw...@gmail.com wrote: Is the app store for more than just Android device apps then? Apple has one central app store for iPhone/iPad apps, and now even has one for Mac apps.  Android's situation I haven't exactly figured out, but I think

Protocol Power - Pattern Matching Java Classes

2011-08-11 Thread David Nolen
I realized that supporting pattern matching on Java classes is pretty trivial - 15 lines code needed to be changed. I think this a good example of how powerful protocol really are: https://gist.github.com/1141252 David -- You received this message because you are subscribed to the Google

Re: rebind var for all threads

2011-08-11 Thread Sean Corfield
On Thu, Aug 11, 2011 at 6:48 PM, Ken Wesson kwess...@gmail.com wrote: Eh. I now can't seem to actually find any recent post mentioning both it and Android. But mentioning it in connection with Google's app store is another matter. There is no Google App Store. There is an Android Market

Re: Example of a real-world ClojureScript web application

2011-08-11 Thread Linus Ericsson
You get Selenium running by using the clj-webdriver [1], thanks to Semperos for that one! [1] https://github.com/semperos/clj-webdriver /Linus 2011/8/11 Filip de Waard f...@vix.io On Thu, Aug 11, 2011 at 4:03 AM, Timothy Washington twash...@gmail.comwrote: Good on you. I've been looking to

Typo in Clojure.org docs

2011-08-11 Thread Ambrose Bonnaire-Sergeant
The example for using (bean obj) should be `(bean java.awt.Color/black)` ATM it is (bean [[http://java.awt.Color/black|java.awt.Color/black]]) http://clojure.org/java_interop#Java%20Interop-The%20Dot%20special%20form-(bean%20obj) Thanks, Ambrose -- You received this message because you are