macro says Can't use qualified name as parameter

2011-05-27 Thread nil
I was looking at http://saucelabs.com/blog/index.php/2009/12/running-your-selenium-tests-in-parallel-clojure/ and in the comments, :Scott suggested that a macro could reduce some of the boilerplate that you see here: (def test-google { :name "google" :test (fn [client] (doto cl

another question on macros defining functions

2011-06-02 Thread nil
Hi Here's another macro-noob question. (Thanks for the help on the previous question and please do let me know if stackoverflow is a more appropriate place to ask noob questions.) I'm trying to write a macro (or a function) that defines/declares specifically named functions. In (let [eff "gee"] (

Re: another question on macros defining functions

2011-06-03 Thread nil
> The problem here is that macros run at compile time, but let bindings > exist at run time. > > If you need the name to be determined at run time you will need to use eval. Where do I use eval? I tried looking at the argument to see if it was called with a string literal vs a symbol, but can't ev

Re: another question on macros defining functions

2011-06-03 Thread nil
Mark, it turns out that everything I need is known and static at hack- time. (Sorry for making it sound otherwise) I know all the names, values, *and* behaviors that I want to use when I'm writing the code for my tests. I just want my clojurebox symbol completion to work after having written a bunc

Re: emacs-clojure-vagrant: a sane development virtual environment

2011-07-06 Thread nil
I'm on a Windows machine. Does the output below indicate that I need something like cygwin? Thanks in advance! [default] VM booted and ready for use! [default] Mounting shared folders... [default] -- v-root: /vagrant [default] Running provisioner: Vagrant::Provisioners::Shell... [default] stdin: i

Re: emacs-clojure-vagrant: a sane development virtual environment

2011-07-07 Thread nil
gt; > As a starting point. Vagrant related channels should be able to help > you further (but please communicate your solution back to the group!). > > Thanks, >  -justin > > > > > > > > On Wed, Jul 6, 2011 at 2:20 PM, nil wrote: > > I'm o

Re: emacs-clojure-vagrant: a sane development virtual environment

2011-07-08 Thread nil
I was using the latest VirtualBox (4.0.10) and it was complaining about a version mismatch between Guest Additions Version: 4.0.6 and VirtualBox Version: 4.0.10. So I switched to VirtualBox Version 4.0.6 instead and the output is below. It no longer complains about the mismatch. I'm continuing to

what makes this code slow?

2011-07-21 Thread nil
The two functions below should return true if the first argument is divisible by any of the prime numbers (ascending) in the second argument, and false otherwise. But the second function is much slower. I haven't been able to figure out why. Can you? Also, if there is a more idiomatic way, please

Re: what makes this code slow?

2011-07-21 Thread nil
Oh right. What you said is what I meant. I renamed the functions improperly and then fooled myself. But I still can't figure out why the second one is much slower. On Jul 21, 4:09 pm, Tassilo Horn wrote: > nil writes: > > Hi! > > > The two functions below should r

Re: what makes this code slow?

2011-07-21 Thread nil
id, a properly written loop will always be faster that an > idiomatic version using first-order functions. > > On Jul 22, 12:17 am, nil wrote: > > > > > Oh right. What you said is what I meant. I renamed the functions > > improperly and then fooled myself. But I still c

Re: emacs-clojure-vagrant: a sane development virtual environment

2011-07-23 Thread nil
-f package-updates And the result is there's no match for M-x slime-connect On Jul 8, 11:47 am, nil wrote: > I was using the latest VirtualBox (4.0.10) and it was complaining > about  a version mismatch between Guest Additions Version: 4.0.6 and > VirtualBox Version: 4.0.10. So

Re: Pair Coding over Skype

2011-07-28 Thread nil
Until you find someone, one site you can look at is the clojure euler site. It has some math examples written by folks who know clojure to varying degrees. You can see different ways of tackling a given problem. On Jul 28, 1:26 pm, Jay Vyas wrote: > Hi guys (and hello to my beloved london-clojuri

Re: Pair Coding over Skype

2011-07-29 Thread nil
Yes On Jul 29, 3:24 pm, Jeremy Heiler wrote: > > Is this the site you are talking about? > > http://clojure-euler.wikispaces.com/ -- 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