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
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
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
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
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
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
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
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}}
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
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
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.
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
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
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
>
> 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
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
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
17 matches
Mail list logo