[ANN] lib-noir 0.1.1

2012-06-23 Thread Anthony Grimes
Chris Granger and I decided that a lot of the stuff in Noir is also useful outside of Noir, so I took a bunch of Noir's middleware and such and split it out into a new library called lib-noir. You can find it here: https://github.com/noir-clojure/lib-noir It has Noir's stateful session/flash mi

slime-auto-connect for clojure-mode in Emacs

2012-06-23 Thread blais
Hello Clojuriasts, This one is for the few aficionados of Emacs and the SLIME. I once got really tired of typing "M-x slime-connect RET RET ... etc." everytime I needed to bounce my VM in order to reconnect my Emacs to it. This happened often enough to me, because like Stuart (S) in a previous em

Re: Difference between defrecord and extend

2012-06-23 Thread Chas Emerick
Dan, This difference is due to the subtleties around how protocols are implemented, and between passing a var vs. capturing a var's state at a particular time. If you change `transmogrify` to this (note the #'), the `(foo* (BarRec.))` succeeds: (def foo* (transmogrify #'foo "Bar")) Pr

Re: ClojureScript instead of CoffeeScript for complete web app development?

2012-06-23 Thread wingie
Since you love FP I wanted to mention another option: LiveScript http://gkz.github.com/LiveScript/blog/functional-programming-in-javascript-using-livescript-and-prelude-ls.html http://gkz.github.com/LiveScript http://gkz.github.com/prelude-ls/ It's a script that compiles down to JavaScript. Insp

ANN: clj-sitemap has been released!

2012-06-23 Thread Levi Campbell
clj-sitemap is a sitemap.xml and robots.txt generator for clojure web apps. This is my first time releasing a clojure library, so any comments and suggestions would be greatly appreciated. https://clojars.org/clj-sitemap https://github.com/levicc00123/clj-sitemap -- You received this message b

Difference between defrecord and extend

2012-06-23 Thread Daniel Skarda
Hi, I have discovered strange difference between methods implemented directly in defrecord and methods added later using extend (extend-type). I simplified the issue to code example listed bellow. Both records FooRec and BarRec implement simple protocol FooProto with method foo. There is also

Re: Little question about doto?

2012-06-23 Thread Vinzent
Well, yes, you've written it right: (doto sphere (.SetColor red) (.SetPosition 5 5 0)) ... or what the question was about? суббота, 23 июня 2012 г., 19:21:18 UTC+6 пользователь Antonio Recio написал: > > I create a white sphere at the beginning of my code, and later, after some > lines of c

Re: Little question about doto?

2012-06-23 Thread Jim - FooBar();
I am not sure what exactly you're asking since you are already using 'doto' in your example so you already know what it does...Personally I would do something like this: (defn make-sphere [&{:keys [color position] :or {color 'white position 0 0 0}}

Little question about doto?

2012-06-23 Thread Antonio Recio
I create a white sphere at the beginning of my code, and later, after some lines of code, I change the color and the position of this sphere. (def sphere (doto (mesh.sphere.) (.SetColor white)) (...) (...) (...) (.. sphere SetColor red) (.. sphere SetPosition 5 5 0)) To change the color and

Re: A tutorial for how to setup your clojure development environment for: Emacs, Leiningen and Linux.

2012-06-23 Thread Moritz Ulrich
Because emacs is traditionally THE editor for lispy programming languages and is so versatile. Of course there are other IDEs out there and you should try a few, but Emacs is easily the most common tool when programming lisp and therefore has the biggest variety of helpers available. -- Sent from

Re: error in clojurescript compilation

2012-06-23 Thread Moritz Ulrich
Can you show us some relevant lines in core.clj? This error means usually mistakes like a forgotten binding vector somewhere. On Sat, Jun 23, 2012 at 4:49 AM, Murtaza Husain wrote: > Hi, > > I was hacking away happily with my clojurescript, when suddenly this error > seems to crop up - > > java.

Re: One little question about vectors and nth?

2012-06-23 Thread Moritz Ulrich
Or use destructuring: (let [[x y z] [1 2 3 4]] (.setOrigin x y z)) I myself would always prefer this method as it describes gives the elements in the vector a structure. See [1] for a blog post about this. [1]: http://tech.puredanger.com/2011/10/12/2-is-a-smell/ On Sat, Jun 23, 2012 at 12:09

Re: One little question about vectors and nth?

2012-06-23 Thread Vinzent
You're passing one argument, a list contaning 3 elements, instead of 3 arguments. Try this (by the way, you can omit nth call): (.SetOrigin cone (v 0) (v 2) (v 3)) Another option (not really relevant in this particular case) is to use memfn: (apply (memfn SetOrigin) cone [2 4 6]) суббота, 23

Re: One little question about vectors and nth?

2012-06-23 Thread thomas kalbe
you don't need the list (and it's wrong doing so). Try (.SetOrigin cone (nth v 0) (nth v 1) (nth v 2)) or (.SetOrigin cone (v 0) (v 1) (v 2)) -thomas On 23.06.2012 11:33, Antonio Recio wrote: I have an object called cone. I can change the origin of the cone with this: (.SetOrigin cone 1

Re: [ANN] clojure.java.jdbc 0.2.3 available on Maven Central

2012-06-23 Thread Vinzent
> > Our web stack is built on small libraries building on eachother's > strengths, could we do the same here ? > Yeah, that's exactly what I had in mind. Just like Ring, c.j.jdbc could accept maps and generate corresponding sql code, thus eliminating the need to write a compiler for each sql D

One little question about vectors and nth?

2012-06-23 Thread Antonio Recio
I have an object called cone. I can change the origin of the cone with this: (.SetOrigin cone 1 1 1) I have a vector called v (def v [2 4 6 8]) And I would like to take 3 elements of the vector v and to set to the origin of the cone. But when I write this I obtain an error: (.SetOrigin cone (li

Re: How to go about finding a Clojure job

2012-06-23 Thread Sergey Didenko
Another possibility is to work at research position where you can select technologies by yourself :) -- 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 mod