On 14 Dec 2010, at 04:22, Robert McIntyre wrote:
It's not a protocol, but you may want to take a look at
clojure.contrib.generic.arithmetic for inspiration.
I wish you luck in your complex number implementation! I've done my
own using clojure.contrib.generic and can post if it anyone's
interes
On 13 Dec 2010, at 22:41, Sunil S Nandihalli wrote:
I found two libraries for complex numbers...One in
apache.common.math and the other in clojure-contrib but which
clearly states that it is quiet incomplete ... can anybody make a
suggestion for a good alternative..
The one in clojure.co
On Mon, Dec 13, 2010 at 9:10 PM, javajosh wrote:
> But seriously, it looks like despite the SLIME error it installed, and
> the lein stuff installed without a problem, so I have a pretty decent
> environment. Phew, that was easy!
Yeah, though it's not so bad on OSes that have a good built-in pack
On Dec 13, 8:51 pm, Phil Hagelberg wrote:
> If you check out the source for Emacs 24, it comes with package.el
> already, so once it's released it will definitely be the lowest-hassle
> way to get started. No need to worry about instability; I've been
> following Emacs trunk since 2007 or so witho
On Mon, Dec 13, 2010 at 8:27 PM, Robert McIntyre wrote:
> I don't know how applicable this might be for you, but I've had no
> problems whatsoever checking out the latest source for emacs 23 and
> compiling from source using the mac developer tools, all on my
> friend's laptop. All I did was type
On Dec 9, 11:11 pm, Andy Fingerhut wrote:
>
> Follow the instructions on the ELPA page for installing it:
>
> http://tromey.com/elpa/install.html
>
> After you do M-x package-list-packages, go down the list of packages
> until the cursor is on the line for the package "clojure-mode", pre
I don't know how applicable this might be for you, but I've had no
problems whatsoever checking out the latest source for emacs 23 and
compiling from source using the mac developer tools, all on my
friend's laptop. All I did was type make and cross my fingers.
you might give it 5 minutes if other
On Dec 14, 2:27 am, Vagif Verdi wrote:
> Maybe clojure should adopt linux versioning scheme, where even numbers
> are stable production clojure and odd numbers are development branch ?
AFAICT this will seriously affect Maven/Lein/Cake transitive
dependency management when dealing with version-ra
Aha! You're a genius!
On Dec 13, 8:06 pm, gaz jones wrote:
> homebrew installs a mac application to:
>
> /usr/local/Cellar/emacs/23.2/Emacs.app/
>
> by default which you can run from there, or copy to your /Applications
> folder to run. running from the terminal doesnt seem to work so well
> in m
homebrew installs a mac application to:
/usr/local/Cellar/emacs/23.2/Emacs.app/
by default which you can run from there, or copy to your /Applications
folder to run. running from the terminal doesnt seem to work so well
in my experience.
On Mon, Dec 13, 2010 at 8:43 PM, javajosh wrote:
> Ok, I
here it is:
(defrecord imaginary [real complex])
(defmethod + [imaginary Number] [i r]
(imaginary. (+ (:real i) r) (:complex i)))
(defmethod + [Number imaginary] [r i]
(+ i r))
(defmethod + [imaginary imaginary] [i1 i2]
(imaginary. (+ (:real i1) (:real i2))
Robert would love to see your implementation.. The reason I am going for
protocols .. is performance...
Sunil.
On Tue, Dec 14, 2010 at 8:52 AM, Robert McIntyre wrote:
> It's not a protocol, but you may want to take a look at
> clojure.contrib.generic.arithmetic for inspiration.
>
> I wish you lu
yeah cool I can do that.. thx. But I remember seeing a syntax for it in the
ns macro...
Sunil.
On Tue, Dec 14, 2010 at 8:54 AM, Robert McIntyre wrote:
> you can always do
>
> (def c+ clojure.core/+)
>
> right after the namespace declaration.
>
> --Robert McIntyre
>
> On Mon, Dec 13, 2010 at 10:2
you can always do
(def c+ clojure.core/+)
right after the namespace declaration.
--Robert McIntyre
On Mon, Dec 13, 2010 at 10:20 PM, Sunil S Nandihalli
wrote:
> Hello everybody,
> I am defining a protocol which defines the functions +,-,*,/ .. so I am
> excluding those symbols when I do :refer
It's not a protocol, but you may want to take a look at
clojure.contrib.generic.arithmetic for inspiration.
I wish you luck in your complex number implementation! I've done my
own using clojure.contrib.generic and can post if it anyone's
interested.
thanks,
--Robert McIntyre
On Mon, Dec 13, 201
Hello everybody,
I am defining a protocol which defines the functions +,-,*,/ .. so I am
excluding those symbols when I do :refer-clojure but I would like to give an
alias to say something like c+ c- c* and c/ how can I do this?
Thanks,
Sunil
--
You received this message because you are subscrib
Thanks David .. but is there a protocol that contains +,*,/,- operations? If
there is one I can simply add those operations...
Sunil.
On Tue, Dec 14, 2010 at 7:07 AM, David Nolen wrote:
> On Mon, Dec 13, 2010 at 8:13 PM, Sunil S Nandihalli <
> sunil.nandiha...@gmail.com> wrote:
>
>> Hello Everyb
Ok, I decided to nuke ports, fink, and delete every package they ever
installed. I successfully installed emacs 23.2 via homebrew (there's a
good overview of homebrew here
http://ascarter.net/2010/02/22/homebrew-for-os-x.html).
I started the emacs it installed, but I didn't know how to access the
On Mon, Dec 13, 2010 at 8:13 PM, Sunil S Nandihalli <
sunil.nandiha...@gmail.com> wrote:
> Hello Everybody,
> I see that Konrad-Hinsen's complex-library in the contrib is a very good
> fit.. But I am afraid about the performance since the basic operations are
> being dispatched using multi-methods
Hello Everybody,
I see that Konrad-Hinsen's complex-library in the contrib is a very good
fit.. But I am afraid about the performance since the basic operations are
being dispatched using multi-methods... Does anybody have any say on this?
Sunil.
On Tue, Dec 14, 2010 at 3:20 AM, Sunil S Nandihalli
I'm interested, can't provide much programming help in this area
tough. I could always help test it.
On Dec 12, 6:36 pm, Mike K wrote:
> I really, really want ClojureCLR to play nice with emacs the way
> Clojure does. I've looked at the swank-clojure sources, but I really
> don't know enough abo
On Wed, Dec 8, 2010 at 02:16, Sam Aaron wrote:
> The rollout of videos has already started:
>
> http://twitter.com/clojure_conj/status/10324356836102144
>
>
Fogus' talk: http://clojure.blip.tv/file/4501296/
The synopsis says "30 minutes" but it seems there may have been an issue in
the upload /
On Mon, Dec 13, 2010 at 5:38 PM, Meikel Brandmeyer wrote:
> Hi,
>
> Am 13.12.2010 um 21:42 schrieb Ken Wesson:
>
>> (Where did
>> you find vary-meta? There seems to be a lot of stuff that's there, but
>> hardly anyone knows about.)
>
> http://clojure.github.com/clojure/
>
> Hope that helps.
That'
"Vagif Verdi" wrote:
>Maybe clojure should adopt linux versioning scheme, where even numbers
>are stable production clojure and odd numbers are development branch ?
Gods please no.
--
Sent from my Android phone with K-9 Mail. Please excuse my brevity.
--
You received this message because you
Hi,
Am 13.12.2010 um 21:42 schrieb Ken Wesson:
> (Where did
> you find vary-meta? There seems to be a lot of stuff that's there, but
> hardly anyone knows about.)
http://clojure.github.com/clojure/
Hope that helps.
Sincerely
Meikel
--
You received this message because you are subscribed to t
On Sun, Dec 12, 2010 at 7:09 PM, Stuart Halloway
wrote:
> Clojure 1.3 Alpha 2 is now available at
>
> http://clojure.org/downloads
...and via Leiningen as:
[org.clojure/clojure "1.3.0-alpha4"]
which leads me to ask:
Has there been any thought to making simultaneous clojure/contrib
releases to
I really miss having complex numbers as native types... :(
On Tue, Dec 14, 2010 at 3:11 AM, Sunil S Nandihalli <
sunil.nandiha...@gmail.com> wrote:
> Hello everybody,
> I found two libraries for complex numbers...One in apache.common.math and
> the other in clojure-contrib but which clearly stat
Hello everybody,
I found two libraries for complex numbers...One in apache.common.math and
the other in clojure-contrib but which clearly states that it is quiet
incomplete ... can anybody make a suggestion for a good alternative..
Thanks,
Sunil.
--
You received this message because you are subs
Maybe clojure should adopt linux versioning scheme, where even numbers
are stable production clojure and odd numbers are development branch ?
On Dec 12, 7:09 pm, Stuart Halloway wrote:
> Clojure 1.3 Alpha 2 is now available at
>
> http://clojure.org/downloads
>
> 0 Changes from 1.3 Alpha
On Mon, Dec 13, 2010 at 3:27 PM, Alan wrote:
> That function is already written for you.
>
> user=> (def x (atom (with-meta [] {:foo 1})))
> #'user/x
> user=> (meta @x)
> {:foo 1}
> user=> (swap! x vary-meta assoc :bar 2)
> []
> user=> (meta @x)
> {:bar 2, :foo 1}
Not exactly. My swap-meta! is a
See my reply to Ken. I recommend against writing swap-meta! in your
own code, except maybe as a shorthand for (swap! foo vary-meta);
certainly don't implement it from the ground up when the language
already gives you the function you want.
On Dec 12, 2:22 am, Alexander Yakushev
wrote:
> On Dec 12
That function is already written for you.
user=> (def x (atom (with-meta [] {:foo 1})))
#'user/x
user=> (meta @x)
{:foo 1}
user=> (swap! x vary-meta assoc :bar 2)
[]
user=> (meta @x)
{:bar 2, :foo 1}
On Dec 11, 2:36 pm, Ken Wesson wrote:
> On Sat, Dec 11, 2010 at 5:24 PM, Meikel Brandmeyer wrot
On Sun, Dec 12, 2010 at 7:32 PM, Alec Battles wrote:
>> Because posting the link would make some modicum of sense…
>>
>> http://blog.twonegatives.com/post/2168030248/kata
>>
>> ^_^
>
> Excellent blog post.
>
> I have yet to read Dave Thomas's book, though it's very high on my list.
>
> One note: A
Created http://dev.clojure.org/jira/browse/CLJ-690 for this. Thanks!
Stu
> Ah, I'm embarassed for not trying it on the developer version earlier
> -- I'm running 1.2. Since Clojure 1.3 changes the semantics of -
> w.r.t. overflow, it succesffully catches this.
>
> However, -' still has this bug
On Fri, Dec 10, 2010 at 3:30 PM, Tim Visher wrote:
> Because posting the link would make some modicum of sense…
>
> http://blog.twonegatives.com/post/2168030248/kata
>
> ^_^
Awesome Tim! Thanks for taking the time to put that together!
-John
--
You received this message because you are subscr
Chris Maier writes:
>> (if window-system (set-exec-path-from-shell-PATH))
>
> This was a huge help for me, but I had to replace the "-i" flag with
> "--login" in order to fully replicate my path that I see in Terminal.
> I have a few things set in /etc/paths.d (TeX, X11, and git,
> specifically),
36 matches
Mail list logo