Re: {ANN} clojure-control 0.4.1 released.

2012-07-17 Thread Murtaza Husain
http://palletops.com/ On Wednesday, July 18, 2012 11:41:11 AM UTC+5:30, dennis wrote: > > I am sorry,i don't know pallet,any links? thanks. > > 2012/7/18 Murtaza Husain > >> >> Hi, >> >> How is this different from pallet ? >> >> Thanks, >> Murtaza >> >> >> On Wednesday, July 18, 2012 10:52:57 A

Re: Clojurians in the midlands (UK)

2012-07-17 Thread Philip Potter
There are a few in Cambridge, but it's a stretch to call that the "Midlands": http://groups.google.com/group/camclj On Jul 17, 2012 9:06 AM, "Colin Yates" wrote: > I know there are a few in London, but are there any around the midlands in > the UK (Coventry, Leicester, Birmingham, Derby etc.)? >

Re: {ANN} clojure-control 0.4.1 released.

2012-07-17 Thread dennis zhuang
I am sorry,i don't know pallet,any links? thanks. 2012/7/18 Murtaza Husain > > Hi, > > How is this different from pallet ? > > Thanks, > Murtaza > > > On Wednesday, July 18, 2012 10:52:57 AM UTC+5:30, dennis wrote: >> >> Clojure-control is a >> clo

Re: {ANN} clojure-control 0.4.1 released.

2012-07-17 Thread Murtaza Husain
Hi, How is this different from pallet ? Thanks, Murtaza On Wednesday, July 18, 2012 10:52:57 AM UTC+5:30, dennis wrote: > > Clojure-control is a > clojure tool library to execute user defined tasks on remote machines > grouped into cluster just

{ANN} clojure-control 0.4.1 released.

2012-07-17 Thread dennis zhuang
Clojure-control is a clojure tool library to execute user defined tasks on remote machines grouped into cluster just like fabric in python or node-control in node.js. *Home*: https://github.com/killme2008/clojure-control Control 0.4.1 released,it ha

Re: {ANN} ring.velocity: render apache velocity templates for ring in clojure.

2012-07-17 Thread Sun Ning
enlive最大的好处是页面html页面不会掺入任何模板语言,直接就可以在浏览器里预览页面设计 但是用的时候思维确实和传统的模板引擎不太一样 On Wed 18 Jul 2012 12:50:39 PM CST, Shen, Feng wrote: 同感enlive较复杂。前段时间,转向了Mustache。 沈锋 美味书签 http://mei.fm On Wed, Jul 18, 2012 at 11:59 AM, dennis zhuang mailto:killme2...@gmail.com>> wrote: 其实就是几行代码封装下,我觉的velocity比什

Re: {ANN} ring.velocity: render apache velocity templates for ring in clojure.

2012-07-17 Thread Shen, Feng
同感enlive较复杂。前段时间,转向了Mustache。 沈锋 美味书签 http://mei.fm On Wed, Jul 18, 2012 at 11:59 AM, dennis zhuang wrote: > 其实就是几行代码封装下,我觉的velocity比什么enlive好用多了。 > > 2012/7/18 Shen, Feng > > 不错不错。 >> velocity 在java中用得较广。 >> 这样为potential 的 clojure用户铺了一下道路。 >> >> 沈锋 >> 美味书签 http://meiwei.fm >>

Re: {ANN} ring.velocity: render apache velocity templates for ring in clojure.

2012-07-17 Thread dennis zhuang
其实就是几行代码封装下,我觉的velocity比什么enlive好用多了。 2012/7/18 Shen, Feng > 不错不错。 > velocity 在java中用得较广。 > 这样为potential 的 clojure用户铺了一下道路。 > > 沈锋 > 美味书签 http://meiwei.fm > > > > On Wed, Jul 18, 2012 at 12:00 AM, dennis zhuang wrote: > >> A little error in getting started missing :age >> >> (ren

Re: atom and lock

2012-07-17 Thread Warren Lynn
For people who are interested, here is my own version of atom updating functions: ;; A wrapped up atom that can be used in those lock-* functions (deftype LockAtom [atom] clojure.lang.IDeref (deref [this] @(.atom this))) ;; (lock-atom (+ 4 5)) => # (defmacro lock-atom "Like ATOM, but

Re: {ANN} ring.velocity: render apache velocity templates for ring in clojure.

2012-07-17 Thread Shen, Feng
不错不错。 velocity 在java中用得较广。 这样为potential 的 clojure用户铺了一下道路。 沈锋 美味书签 http://meiwei.fm On Wed, Jul 18, 2012 at 12:00 AM, dennis zhuang wrote: > A little error in getting started missing :age > > (render "test.vm" :name "dennis" :age 29) > > > 2012/7/17 dennis zhuang > >> Hi,all >

Re: community interest in machine learning (?)

2012-07-17 Thread myriam abramson
Yes, I am interested too. All I have done is an implementation of HMM and I am looking to use clj-ml to interface with Weka. -- 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

Re: atom and lock

2012-07-17 Thread Warren Lynn
> Finish the thought, what happens when there is "contention", a thread > reads then writes before you acquire the lock to commit. You can try > and making locking work, but you'll just up with CAS based on a lock > > > I am not saying to throw away the "swap!" syntax. "swap!" syntax guarantee

Re: atom and lock

2012-07-17 Thread Warren Lynn
> (def a (atom {})) > > (defn add-kv [k v] >(swap! assoc k v)) > > If I call add-kv from multiple threads, how can I assume that the map > won't be modified in the middle of the assoc? Sure, I could lock, but > read this article first: > http://en.wikipedia.org/wiki/Non-blocking_algorit

Re: atom and lock

2012-07-17 Thread Kevin Downey
On Tue, Jul 17, 2012 at 4:58 PM, Warren Lynn wrote: > > > On Tuesday, July 17, 2012 7:50:10 PM UTC-4, red...@gmail.com wrote: >> >> if you do it as a lock, then readers must block writers (think it >> through). Clojure's reference types + immutable datastructures and the >> views on perception tha

Re: atom and lock

2012-07-17 Thread Timothy Baldridge
> Why is it so? Does not the reader just get a snapshot copy of the atom state > and does not care who writes to the original atom? If a lock is needed, it > is only needed for a very short commit time (cannot read when a writer is > committing), but not during the whole "swap!" function. That stil

Re: Idea around SCMs and Clojure

2012-07-17 Thread Rostislav Svoboda
> I don't think so. After some practice you can read patches as if they > were finest prose. ;-) Yea, for prose they work. I believe that. But I'm paid for writing code :) > There are already special-purpose, format-dependent diff/patch tools, > e.g., XMLdiff, various binary diff/patch tools, an

Re: atom and lock

2012-07-17 Thread Warren Lynn
On Tuesday, July 17, 2012 7:50:10 PM UTC-4, red...@gmail.com wrote: > > if you do it as a lock, then readers must block writers (think it > through). Clojure's reference types + immutable datastructures and the > views on perception that underlay them are strongly opposed to readers > interfer

Re: atom and lock

2012-07-17 Thread Kevin Downey
if you do it as a lock, then readers must block writers (think it through). Clojure's reference types + immutable datastructures and the views on perception that underlay them are strongly opposed to readers interfering with writers. http://www.infoq.com/presentations/Are-We-There-Yet-Rich-Hickey

atom and lock

2012-07-17 Thread Warren Lynn
I have a hard time understanding why there is a need to retry when doing "swap!" on an atom. Why does not Clojure just lock the atom up-front and do the update? I have this question because I don't see any benefit of the current "just try and then re-try if needed" (STM?) approach for atom (may

Re: Implemented isa? as a protocol, makes multimethods more open

2012-07-17 Thread Leif
Design question: I made a new branch of the code where you extend the Is-A protocol on the parent instead of the child. My reasoning is that when you define multimethods, the dispatch value is the parent of the is-a relation. Since you control these values, and have less control over the chil

Re: Teaching beginners to program using an interactive ClojureScript REPL

2012-07-17 Thread Pascal Chatterjee
> I think you should not explain def as a function, as that is not a > helpful simplification but rather just misleading. > > You could just explain how it behaves without mentioning special forms > vs functions. > I see what you mean. My point is more that special forms have the same synta

Re: Idea around SCMs and Clojure

2012-07-17 Thread Tassilo Horn
Rostislav Svoboda writes: Hi Rostislav, >> You want do diffs > > I think you need to concentrate on a way how a diff is made and > defined if you want to improve the way how a VCS works. I.e. current > VCSs use something like this: > > @ some line numbers @ > - replacing that old line... > + ...

Re: community interest in machine learning (?)

2012-07-17 Thread Joshua Bowles
Thanks to all the replies. I'm starting to think that the future of Clojure in the Artificial Intelligence domain (including machine learning) is extremely promising. On Tue, Jul 17, 2012 at 1:51 PM, Joshua Bowles wrote: > Thanks to all the replies. I'm starting to think that the future of > Clo

Re: community interest in machine learning (?)

2012-07-17 Thread Joshua Bowles
Thanks to all the replies. I'm starting to think that the future of Clojure in the Artificial Intelligence domain (including machine learning) is extr On Tue, Jul 17, 2012 at 1:29 PM, Jim.foobar wrote: > > i also have a strong interest in machine learning...to that end i've > wrapped most of enc

Re: community interest in machine learning (?)

2012-07-17 Thread Jim.foobar
i also have a strong interest in machine learning...to that end i've wrapped most of encog v3...you can find it on github and clojars as "clojure-encog"...sorry for the brief reply im on vacation and just found some internet ... Sent from my mobile... Lee Spector wrote: null -- You receiv

Re: why does this anonymous function work with 'map' but not 'apply'?

2012-07-17 Thread Mark Rathwell
> your apply will end up doing sometihng like this: > (#(println %1) "stu" "mary" "lawrence") > > since apply takes @visitors as a collection and passes each item as an > argument to the function you give it. In other words, apply essentially unpacks the collection and passes the items as individu

Re: ClojureScript, Chrome Extension and BrowserREPL

2012-07-17 Thread David Nolen
On Tue, Jul 17, 2012 at 3:00 PM, Hubert Iwaniuk wrote: > > Hi David, > > Do you know rationale for using CrossPageChannel? > If that could be removed it would simplify BrowserREPL a lot, and would > already unlock Chrome Extension. > > Cheers, > Hubert. Because it works on nearly all browsers - e

Re: ClojureScript, Chrome Extension and BrowserREPL

2012-07-17 Thread Hubert Iwaniuk
Hi David, Do you know rationale for using CrossPageChannel? If that could be removed it would simplify BrowserREPL a lot, and would already unlock Chrome Extension. Cheers, Hubert. David Nolen July 17, 2012 6:15 PM CrossPageChannel does not work unless the pa

Re: why does this anonymous function work with 'map' but not 'apply'?

2012-07-17 Thread Jack Moffitt
> So far, everything is working as I thought. But I also thought that apply > let me run a function on everything in a sequence. Other than "str", I could > not get this to work: > > user> (apply #(println %1) @visitors) I think you are looking for direct invocation: (#(println %1) @visitors) yo

why does this anonymous function work with 'map' but not 'apply'?

2012-07-17 Thread larry google groups
Okay, first, I create an atom that holds a set: user> (def visitors (atom #{})) #'user/visitors user> (swap! visitors conj "stu") user> (swap! visitors conj "mary") user> (swap! visitors conj "mary") user> (swap! visitors conj "lawrence") #{"stu" "lawrence" "mary"} Then I turn this into a strin

Re: re-sharing clojure on rlwrap

2012-07-17 Thread raschedh
> > > I would highly recommend using leiningen. > > You should ! It's a nice program, that I know how to operate. But, as I said, I'm too stupid to gain more productivity from it. It's just, that on the aforementioned Wiki page, there is the sentence: `You'll need Lein to build programs and

Re: ClojureScript, Chrome Extension and BrowserREPL

2012-07-17 Thread David Nolen
On Tue, Jul 17, 2012 at 11:22 AM, Hubert Iwaniuk wrote: > Hello Everyone, > > Did anyone managed to get BrowserREPL running within Chrome Extension? > I'm having hard time getting it up. > > Basically what happens for me is CrossPageChannel communication > initialization failure both from content

Re: {ANN} ring.velocity: render apache velocity templates for ring in clojure.

2012-07-17 Thread dennis zhuang
A little error in getting started missing :age (render "test.vm" :name "dennis" :age 29) 2012/7/17 dennis zhuang > Hi,all > > Apache velocity is a great java template > engine used widely. I want to use it in clojure with compojure and ring > framework,so i've

{ANN} ring.velocity: render apache velocity templates for ring in clojure.

2012-07-17 Thread dennis zhuang
Hi,all Apache velocity is a great java template engine used widely. I want to use it in clojure with compojure and ring framework,so i've created this project---ring.velocity. Home: https://github.com/killme2008/ring.velocity Getting started: Adds dependency in

Re: seeking namespace-aware xml lib

2012-07-17 Thread Chris Perkins
On Monday, July 16, 2012 3:53:21 PM UTC-4, bsmith.occs wrote: > > TL;DR: I'm looking for a Clojure library that round trips XML+namespaces > through Clojure data structures and back again. > > I began an effort to solve this problem quite some time ago; it is here: https://github.com/grammati/ek

ClojureScript, Chrome Extension and BrowserREPL

2012-07-17 Thread Hubert Iwaniuk
Hello Everyone, Did anyone managed to get BrowserREPL running within Chrome Extension? I'm having hard time getting it up. Basically what happens for me is CrossPageChannel communication initialization failure both from content script and background. content_script: "Uncaught Error: CrossPageChan

Re: community interest in machine learning (?)

2012-07-17 Thread Lee Spector
Whether this counts as "machine learning" depends on your perspective, but my group uses clojure for research in genetic programming and related forms of evolutionary computation. See, e.g., https://github.com/lspector/Clojush/ Some of the students in my lab also work in more mainstream forms o

Re: Idea around SCMs and Clojure

2012-07-17 Thread Rostislav Svoboda
> You want do diffs I think you need to concentrate on a way how a diff is made and defined if you want to improve the way how a VCS works. I.e. current VCSs use something like this: @ some line numbers @ - replacing that old line... + ... with this new line which works well for a machine, but i

Re: Idea around SCMs and Clojure

2012-07-17 Thread N8Dawgrr
Hi Tassilo, Thanks for your reply. I agree that you need a persistence layer and a VCS provides additional useful capabilities other than persistence. My suggestion isn't to dispense with a persistence or VCS layer. Its more that the REPL connects directly to the VCS layer (which may be remote

Re: Idea around SCMs and Clojure

2012-07-17 Thread Tassilo Horn
N8Dawgrr writes: > http://clojurian.blogspot.co.uk/ > > In a nutshell its about why use files for source in Clojure, can we do > better? Interesting thoughts. With a dynamic, interactive language like Clojure it would certainly be possible to omit files at all and instead hack everything toget

Re: Clojurians in Pune

2012-07-17 Thread Murtaza Husain
I am a lone developer working on hobby projects in clojure and I know a friend who will be interested. Any other clojurians out there in Pune ? On Tuesday, July 17, 2012 4:10:31 PM UTC+5:30, Baishampayan Ghose wrote: > > We are a team of 6 full-time Clojure developers here in Pune. If there > i

Re: Clojurians in Pune

2012-07-17 Thread Baishampayan Ghose
We are a team of 6 full-time Clojure developers here in Pune. If there is enough interest outside our company group I would be glad to host meetups in our office on weekends. Regards, BG On Tue, Jul 17, 2012 at 4:04 PM, Murtaza Husain wrote: > Hi BG, > > Basically looking to learn and explore. F

Re: Clojurians in Pune

2012-07-17 Thread Murtaza Husain
Hi BG, Basically looking to learn and explore. From the top of my head, maybe couple of hours of solving a few project euler problems, as pairs. The solutions by each pair can then be presented and discussed in the entire group. Or maybe a 30 mins talk modeled around lightning talks. Or tryi

Idea around SCMs and Clojure

2012-07-17 Thread N8Dawgrr
Hi All, One of my first posts to Clojure mailing list. I had an idea around SCMs and Clojure. I'd basically like to put the idea out there and get some feedback. I hope I'm not breaking any etiquette linking to my blog post but I've outlined the idea here: http://clojurian.blogspot.co.uk/ In

Re: Clojurians in Pune

2012-07-17 Thread Baishampayan Ghose
Hi, I am in Pune. What do you want to do in such a Dojo? Regards, BG On Tue, Jul 17, 2012 at 3:45 PM, Murtaza Husain wrote: > Hi, > > Anyone interested in organizing a clojure dojo in Pune ? > > Thanks, > Murtaza > > -- > You received this message because you are subscribed to the Google > Grou

Clojurians in Pune

2012-07-17 Thread Murtaza Husain
Hi, Anyone interested in organizing a clojure dojo in Pune ? Thanks, Murtaza -- 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 pat

Clojurians in the midlands (UK)

2012-07-17 Thread Colin Yates
I know there are a few in London, but are there any around the midlands in the UK (Coventry, Leicester, Birmingham, Derby etc.)? -- 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 p

How does Clojure change the "shape" of your application

2012-07-17 Thread Colin Yates
This is for all those polyglot users - how do you find Clojure has changed the shape of your application? By shape I mean the code artifacts. For example, I find in Java I tend to have many packages (in some dead-end attempt at hinting at modular encapsulation) and many little classes and int

Re: Much longer build time for Clojure on HDD vs. SSD (4 min vs 30s)

2012-07-17 Thread Raju Bitter
Thanks for all your answers. Makes me feel even better about the money I spent for my SSD. - Raju -- 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: Teaching beginners to program using an interactive ClojureScript REPL

2012-07-17 Thread Thorsten Wilms
On 07/16/2012 11:03 PM, Pascal Chatterjee wrote: The trickiest thing I've found so far is that, for simplicity, I've explained def as a function that takes a symbol and a value as arguments. I've then gone on to say that arguments to a function are evaluated before the function itself executes, w