Re: Extending protocol for maps

2012-07-27 Thread Baishampayan Ghose
In Clojure (JVM) Maps, etc. are built on top of Java interfaces and not Clojure protocols (yet). And yes, it's quite possible to build your own data-structure that behaves like a map. I will be able to give you a better answer if you explain your exact requirement. Regards, BG On Sat, Jul 28, 2

Problems extending sequences

2012-07-27 Thread JvJ
I'm trying to create a new ISeq type, just to try to get the hang of extending sequences. It's not working, though. As far as I can tell, I've implemented all necessary methods. However, I still get an error when attempting to create an instance of the type. When I enter the following in the

Re: auxiliary methods like :before and :after for multimethods?

2012-07-27 Thread George Oliver
On Friday, July 27, 2012 12:06:33 PM UTC-7, Vinzent wrote: > > robert-hooke actualy doesn't work with multimethods afaik. You can try my > new library (https://github.com/dnaumov/hooks), but it's alpha (no docs > yet, sorry). Yes, from the robert-hooke readme, "Adding hooks to a defmulti is

Extending protocol for maps

2012-07-27 Thread JvJ
Is there a way to extend whatever protocol is used by Clojure maps (struct maps, array maps, hash maps, 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 posts from new memb

Using Java libraries inside of clojurescript on node.js

2012-07-27 Thread Sean Neilan
Hey All, I just wanted to point out the existence of this library called node-java. It lets you use java libraries on node.js and therefore you can use them within clojurescript! https://github.com/nearinfinity/node-java I have not tried it myself but I will soon. -Sean -- You received this me

Re: Transitioning an App from Java to Clojure (Notes of a Talk)

2012-07-27 Thread Timothy Washington
Hey Nicolas, Thanks for the feedback and corrections. I was trying to hone in on OO and Lisp's model of what it means to compute. While this just served as a backdrop for the conceptual and code differences between Bkeeping's Java and Clojure versions, I can see a much deeper analysis happening he

Re: Experiences developing a crowdfunding site for open source projects in Clojure (from a Python background)

2012-07-27 Thread Mark Rathwell
> Yes, I actually just set it up. Very easy. Thank you. Not sure how you are specifying the redirect url, but if you have a trailing slash, you may want to try removing it. kodefund.com/about redirects to http://www.kodefund.com//about/ Also, completely nitpicking here, but you might also want t

Re: Experiences developing a crowdfunding site for open source projects in Clojure (from a Python background)

2012-07-27 Thread Vinzent
Actually http://www.kodefund.com gives me DNS error, but anyway, looks like the issues is on my side. суббота, 28 июля 2012 г., 2:06:46 UTC+6 пользователь Aaron Lebo написал: > > It is http://www.kodefund.com. > > I haven't setup the "naked" domain, as heroku advises against that. > Perhaps I s

Re: Experiences developing a crowdfunding site for open source projects in Clojure (from a Python background)

2012-07-27 Thread Aaron Lebo
Vinzent rather. On Friday, July 27, 2012 3:15:46 PM UTC-5, Aaron Lebo wrote: > > Yes, I actually just set it up. Very easy. Thank you. > > Vincent thanks for pointing that out. > > On Friday, July 27, 2012 3:12:02 PM UTC-5, Mark Rathwell wrote: >> >> > > I haven't setup the "naked" domain, as hero

Re: Experiences developing a crowdfunding site for open source projects in Clojure (from a Python background)

2012-07-27 Thread Aaron Lebo
Yes, I actually just set it up. Very easy. Thank you. Vincent thanks for pointing that out. On Friday, July 27, 2012 3:12:02 PM UTC-5, Mark Rathwell wrote: > > > > I haven't setup the "naked" domain, as heroku advises against that. > > > Perhaps I should? > > > > Usually you can setup a 301 re

Re: Experiences developing a crowdfunding site for open source projects in Clojure (from a Python background)

2012-07-27 Thread Mark Rathwell
> > I haven't setup the "naked" domain, as heroku advises against that. > > Perhaps I should? > > Usually you can setup a 301 redirect from the naked domain to www with > your registrar. Should have said, where ever you are hosting DNS, but most registrars provide this capability if you are using

Re: Experiences developing a crowdfunding site for open source projects in Clojure (from a Python background)

2012-07-27 Thread Mark Rathwell
> I haven't setup the "naked" domain, as heroku advises against that. Perhaps I should? Usually you can setup a 301 redirect from the naked domain to www with your registrar. On Fri, Jul 27, 2012 at 4:06 PM, Aaron Lebo wrote: > It is http://www.kodefund.com. > > I haven't setup the "naked" doma

Re: Experiences developing a crowdfunding site for open source projects in Clojure (from a Python background)

2012-07-27 Thread Aaron Lebo
It is http://www.kodefund.com. I haven't setup the "naked" domain, as heroku advises against that. Perhaps I should? On Friday, July 27, 2012 2:37:51 PM UTC-5, Vinzent wrote: > > Very cool! Thanks for sharing. It's interesting to read such a detailed > report about experience with the language.

Re: Experiences developing a crowdfunding site for open source projects in Clojure (from a Python background)

2012-07-27 Thread Moritz Ulrich
On Fri, Jul 27, 2012 at 9:37 PM, Vinzent wrote: > Unfortunately, I can't access your site: http://kodefund.com/ gives me "The > domain name you have requested isn't available". Looks like your DNS server hasn't received the updated record yet. Works fine on Google DNS. -- You received this mess

Re: Experiences developing a crowdfunding site for open source projects in Clojure (from a Python background)

2012-07-27 Thread Vinzent
Very cool! Thanks for sharing. It's interesting to read such a detailed report about experience with the language. Unfortunately, I can't access your site: http://kodefund.com/ gives me "The domain name you have requested isn't available". The idea sounds good though, and I'll definitely try ko

Re: Transitioning an App from Java to Clojure (Notes of a Talk)

2012-07-27 Thread nicolas.o...@gmail.com
Hi, Great notes. I like a lot. A few (mostly technical) comments: > Concept of Computation > > What does it mean to compute? Turns out this is a complicated question. From > what I can tell, to compute is an actualization (or concrete version) of a > mathematical function. We are swimming in a

Re: auxiliary methods like :before and :after for multimethods?

2012-07-27 Thread Vinzent
robert-hooke actualy doesn't work with multimethods afaik. You can try my new library (https://github.com/dnaumov/hooks), but it's alpha (no docs yet, sorry). Any suggestions about API is welcome. пятница, 27 июля 2012 г., 3:15:44 UTC+6 пользователь George Oliver написал: > > hi, I'm wondering

Re: community interest in machine learning (?)

2012-07-27 Thread Timothy Washington
I'm working on a Neural Network application to tech myself machine learning and AI. - https://github.com/twashing/nn There's nothing there right now. But I'm keenly interested in the field, and getting a working project, predicting financial time series. I'm keen to check out clojure-encog

Transitioning an App from Java to Clojure (Notes of a Talk)

2012-07-27 Thread Timothy Washington
Hi all, I recently gave a talk at a Toronto Dev Shop, The Jonah Group. It just detailed my experiences, transitioning a Java app to a Clojure app, and the benefits that accrued to me. I thought it would be nice to share with the Clojure community. Below is an approximate

Re: Looking for help with a deadlock issue

2012-07-27 Thread paul santa clara
t; > > I've put up the thread dump and information about the os and jvm > versions here: > > > > https://github.com/relaynetwork/20120727-deadlock-issue > > > > The part of our application that deadlocked is a web service that uses > > Compjure and Jetty.

Re: seesaw's beautiful docstrings

2012-07-27 Thread John Gabriele
On Wednesday, July 25, 2012 8:16:52 AM UTC-4, Tassilo Horn wrote: > > Laurent PETIT writes: > > >> -Is there a way write the docs in a separate place (different section > >> of the document or different document altogether)? > > Sure. > > --8<---cut here---start-

Re: Looking for help with a deadlock issue

2012-07-27 Thread Neale Swinnerton
: > > https://github.com/relaynetwork/20120727-deadlock-issue > > The part of our application that deadlocked is a web service that uses > Compjure and Jetty. Other parts of the application did not deadlock > (we have AMQP consumers that were still processing successfully). >

Looking for help with a deadlock issue

2012-07-27 Thread Kyle R. Burton
about the os and jvm versions here: https://github.com/relaynetwork/20120727-deadlock-issue The part of our application that deadlocked is a web service that uses Compjure and Jetty. Other parts of the application did not deadlock (we have AMQP consumers that were still processing successfully

Re: Clojurians in the midlands (UK)

2012-07-27 Thread Dimitrios Jim Piliouras
this is really great! I have joined the google group and I'm looking forward to the next meetup! as the website suggests i will keep an eye on the time and place as it says it is not always fixed...too bad I missed the clojurescript talk :( btw, have you talked about the reducers lib? It is the fi

Re: Clojurians in the midlands (UK)

2012-07-27 Thread Simon Holgate
Hi all, sorry I didn't spot your emails before but you may not be aware of the Manchester Lambda Lounge which is a functional programming group: http://www.lambdalounge.org.uk/ The group used to be a solely Clojure meetup but we were few so Rick Moynihan (who has been the driving force behin

Re: How to add an URL into the classpath?

2012-07-27 Thread Stuart Sierra
Hello Yoshinori, In general, you cannot modify the JVM classpath at runtime. Clojure uses its own classloader to do dynamic code generation, but you cannot rely on being able to control the classloader which is running the whole JVM. -S -- You received this message because you are subscribed

Experiences developing a crowdfunding site for open source projects in Clojure (from a Python background)

2012-07-27 Thread Aaron Lebo
Hello! Sometime around 2 and a half months ago, I started to work on a new project using Clojure. I've been using Python heavily for about 6 six years working for a small direct mail company and before that started programming with Ruby on Rails. This new project was something out of left field

Re: is their a Clojure framework for handling form validation?

2012-07-27 Thread David Petrovics
Hi Larry, I've been working on a library to provide conveniences similar to what you described. It makes it really easy to generate nicely styled forms. You can specify default values for your form, validation functions to run upon form submission, and actions to execute in the event of success

ClojureScript UI binding library

2012-07-27 Thread Matthew Todd
Hi, I am looking for some feedback on my ClojureScript library cljs-binding. If you haven't already seen it, it’s a library that aims to make it easier to bind html elements to ClojureScript functions. It allows jQuery functions to be called on

Re: is their a Clojure framework for handling form validation?

2012-07-27 Thread Takahiro Hozumi
> Instead of calling the ExceptionInfo ctor & .getData directly, it's better to use ex-info & ex-data instead. Baishampayan Thank you for the information. I agree with you. On Friday, July 27, 2012 6:39:29 PM UTC+9, Baishampayan Ghose wrote: > > On Thu, Jul 26, 2012 at 10:19 PM, Takahiro Hozumi

Re: [ANN] geva-clj 1.2 - Grammatical evolution in clojure

2012-07-27 Thread cameron
It doesn't support that out of the box but it should be pretty straight forward to add. Was the use case you were thinking of something like this http://paste.lisp.org/display/130713 ? Cameron. On Thursday, July 26, 2012 11:07:31 PM UTC+10, Jeff Rose wrote: > > Wow, cool. Over the years we've

Re: is their a Clojure framework for handling form validation?

2012-07-27 Thread Baishampayan Ghose
On Thu, Jul 26, 2012 at 10:19 PM, Takahiro Hozumi wrote: > (when-let [m (validate params)] > (throw (clojure.lang.ExceptionInfo. "validation error" m))) > > (defn wrap-validation-exception [handler] > (fn [req] > (try > (handler req) > (catch clojure.lang.ExceptionInfo e >

Re: is their a Clojure framework for handling form validation?

2012-07-27 Thread John Szakmeister
On Tue, Jul 24, 2012 at 6:05 PM, Trent Ogren wrote: > https://github.com/weavejester/valip > > The approach of that project is interesting. Not only does it decouple > validation from any notion of web form (it just works on maps like many of > the others in this thread), it decouple the error mes

How to add an URL into the classpath?

2012-07-27 Thread Yoshinori Kohyama
Hello clojurians, Adding an URL to the classpath dynamically in REPL succeeded. $ java -cp clojure-1.3.0.jar clojure.main Clojure 1.3.0 user=> (def ccl (.getContextClassLoader (Thread/currentThread))) #'user/ccl user=> (class ccl) clojure.lang.DynamicClassLoader user=> (.addURL ccl

Re: Repeatedly applying functions until a condition is met

2012-07-27 Thread Adrian Mowat
Brilliant! Thanks Denis Those are 2 great tips. I had looked through the documentation until my eyes went square but I'm not very well practiced with all the functions so I decided to ask the community for help. take-while was exactly what I needed. Many Thanks Adrian On Thursday, 26 July