Here is a list of steps that should get you to a working Emacs+Clojure
SLIME on Mac OS X. I've also used it on Linux (without the MacPorts
command, instead using its package manager to install a working GNU
emacs).
If you don't have many MacPorts programs installed, or don't mind
reinsta
> I would still like to see slime in action, however. I have two emacs
> installed, GNU and Aquamacs. macports is still not able to do anything
Sorry if this sounds silly but have you tried with carbon emacs? I
heard from old time hardcore emacsers that that is the best emacs for
OS X (I'm not one
On Fri, Dec 10, 2010 at 12:43 AM, javajosh wrote:
> It does beg the question, though: what is a reasonable bare minimum
> function set that a real-life lisp would require?
I think different people might give different answers to that.
The academic computer scientist is likely to consider lambda,
On Dec 9, 9:16 pm, Ken Wesson wrote:
> On Fri, Dec 10, 2010 at 12:13 AM, javajosh wrote:
>
> > On Dec 9, 9:07 pm, Ken Wesson wrote:
> >> On Thu, Dec 9, 2010 at 11:55 PM, javajosh wrote:
> >> > Common Lisp.
>
> >> It figures. :)
>
> > It's still a really exciting story - thanks Alec for sharing
On Dec 9, 5:41 pm, Alec Battles wrote:
> > On Dec 6, 9:16 pm, Phil Hagelberg wrote:
> >> On Mon, Dec 6, 2010 at 9:00 PM, javajosh wrote:
> >> > Sorry for asking here, but I think it's at least a little relevant to
> >> > Clojure since I for one wouldn't be installing emacs if it wasn't for
> >>
Thanks, it is so hard to google symbols.
On Fri, Dec 10, 2010 at 12:01 AM, Mark Rathwell wrote:
>
> it's in clojure.contrib
>
> On Thu, Dec 9, 2010 at 11:58 PM, Alex Baranosky <
> alexander.barano...@gmail.com> wrote:
>
>> I could have sworn I had seen a clojure macro -?> which was just like ->
>
On Fri, Dec 10, 2010 at 12:13 AM, javajosh wrote:
>
>
> On Dec 9, 9:07 pm, Ken Wesson wrote:
>> On Thu, Dec 9, 2010 at 11:55 PM, javajosh wrote:
>> > Common Lisp.
>>
>> It figures. :)
>
> It's still a really exciting story - thanks Alec for sharing it! I was
> reading Gabor's post (http://quoten
On Dec 9, 9:07 pm, Ken Wesson wrote:
> On Thu, Dec 9, 2010 at 11:55 PM, javajosh wrote:
> > Common Lisp.
>
> It figures. :)
It's still a really exciting story - thanks Alec for sharing it! I was
reading Gabor's post (http://quotenil.com/Planet-Wars-Post-
Mortem.html) and it sounds like somethi
On Thu, Dec 9, 2010 at 11:35 PM, Alex Baranosky
wrote:
> Thanks Ken.
You're welcome.
--
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 moderated - pleas
On Thu, Dec 9, 2010 at 11:55 PM, javajosh wrote:
> Common Lisp.
It figures. :)
--
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 moderated - please be p
it's in clojure.contrib
On Thu, Dec 9, 2010 at 11:58 PM, Alex Baranosky <
alexander.barano...@gmail.com> wrote:
> I could have sworn I had seen a clojure macro -?> which was just like ->
> except that if it, at any point, evaluated to nil, then it would return nil,
> instead of throwing a NullPoi
I could have sworn I had seen a clojure macro -?> which was just like ->
except that if it, at any point, evaluated to nil, then it would return nil,
instead of throwing a NullPointerException.
Is there such a thing out there, or am I misremembering?
Best,
Alex
--
You received this message beca
Common Lisp.
http://quotenil.com/
On Dec 9, 7:09 pm, Ken Wesson wrote:
> On Thu, Dec 9, 2010 at 8:53 PM, Alec Battles wrote:
> > I'm sure a few people have read this news already. It's been up for a
> > week, though strangely ZDnet -- which, on principle, I refuse to link
> > to
>
> Why?
>
> >
Thanks Ken.
(doall) to the rescue! It worked!
Makes perfect sense. It explains why sometimes it would seem to work if I
put the result of the mapping into a let binding... it was calculating the
value.
--
You received this message because you are subscribed to the Google
Groups "Clojure" gro
On Thu, Dec 9, 2010 at 10:50 PM, Alex Baranosky
wrote:
> (map (fn [dest] (dist-in-miles origin dest)) locations))
> It seems the stubbing is not happening when (distances "Boston,MA"
> "Albany,NY" "LosAngeles,CA") is being evaluated. But if I put print
> statements in the function to see the
I've been playing with Amit Rathore's simple mocking functions:
http://s-expressions.com/2010/01/24/conjure-simple-mocking-and-stubbing-for-clojure-unit-tests/
I'm seeing the weirdest effect, and after banging my head on it for a couple
hours I figure it's time to ask about it. Any ideas would be
On Thu, Dec 9, 2010 at 8:43 PM, Steven E. Harris wrote:
> Ken Wesson writes:
>
>> and to encapsulate as a function:
>>
>> (defn fmap [f m]
>> (into {}
>> (for [[k v] m]
>> [k (f v)])))
>
> Here, "fmap" is a poor choice of name, if it's meant to be a reference
> to Haskell's function o
On Thu, Dec 9, 2010 at 8:53 PM, Alec Battles wrote:
> I'm sure a few people have read this news already. It's been up for a
> week, though strangely ZDnet -- which, on principle, I refuse to link
> to
Why?
> -- is one of the only places to write it up.
>
> http://pr-usa.net/index.php?option=com_
I'm sure a few people have read this news already. It's been up for a
week, though strangely ZDnet -- which, on principle, I refuse to link
to -- is one of the only places to write it up.
http://pr-usa.net/index.php?option=com_content&task=view&id=560484&Itemid=
Nice news to read before b
> On Dec 6, 9:16 pm, Phil Hagelberg wrote:
>> On Mon, Dec 6, 2010 at 9:00 PM, javajosh wrote:
>> > Sorry for asking here, but I think it's at least a little relevant to
>> > Clojure since I for one wouldn't be installing emacs if it wasn't for
>> > Clojure and Slime. Getting prompts about what th
Ken Wesson writes:
> and to encapsulate as a function:
>
> (defn fmap [f m]
> (into {}
> (for [[k v] m]
> [k (f v)])))
Here, "fmap" is a poor choice of name, if it's meant to be a reference
to Haskell's function of the same name. It's not obvious to me that
mapping a function over a
Take a look at this for connection pooling:
http://bitbucket.org/kumarshantanu/clj-dbcp/src
On Thu, Dec 9, 2010 at 1:39 PM, Ghadi Shayban wrote:
> I'm using contrib,sql to clean rows from one DB and insert them into
> another.
>
> I was thinking something like (pseudo-code
>
> (sql/with-connecti
Hi people!
Recently, I used as final example in a short presentation:
https://github.com/sfraser/MultithreadedGameOfLife
http://www.youtube.com/watch?v=CFCYVfApPUc
It shows:
- Multithreading
- persistence data, transactions
- access to Java tech, as Swing
My first minutes were dedicated to simpl
Thanks, for all of your thoughts, guys. I'm letting all the ideas boucne
around. I'll be sure to let you all know how it goes after the talk.
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.c
2010/12/10 Ken Wesson
> On Thu, Dec 9, 2010 at 6:23 PM, javajosh wrote:
> > Of course, it could also be a GUI app, too. But, for some reason Lispy
> > programmers don't seem to be very good at making things look pretty.
>
> Watch this space for me proving that statement wrong sometime soon. :)
>
On Thu, Dec 9, 2010 at 6:23 PM, javajosh wrote:
> Of course, it could also be a GUI app, too. But, for some reason Lispy
> programmers don't seem to be very good at making things look pretty.
Watch this space for me proving that statement wrong sometime soon. :)
--
You received this message bec
2010/12/10 javajosh
> On Dec 9, 7:08 am, Laurent PETIT wrote:
> > If the audience is Java / Ruby, my guess is that they don't want to know
> > about emacs, for one.
>
> I agree - learning clojure, I don't want to know about emacs either
> (especially since installing clojure support has been uns
On Dec 9, 7:08 am, Laurent PETIT wrote:
> If the audience is Java / Ruby, my guess is that they don't want to know
> about emacs, for one.
I agree - learning clojure, I don't want to know about emacs either
(especially since installing clojure support has been unsuccessful so
far). Eclipse has a
On Dec 9, 12:52 pm, Alan wrote:
> rest). However, my understanding is that c.c.string is going away in
> 1.3, and many of its features will be removed rather than moved, so I
Yes, it is replaced by clojure.string. c.c.string is deprecated in
1.2 and removed in 1.3
-S
--
You received this mes
I'm using contrib,sql to clean rows from one DB and insert them into
another.
I was thinking something like (pseudo-code
(sql/with-connection db1
.
(doseq [x (map rs)] (insert-into-other x)))
(defn insert-into-other [r]
(sql/with-connection db2
...))
But this obviously will open/close
clojure.contrib.string has take and drop, which do what you want
(though you have to ask for exactly one character to emulate first/
rest). However, my understanding is that c.c.string is going away in
1.3, and many of its features will be removed rather than moved, so I
don't think you're supposed
If the audience is Java / Ruby, my guess is that they don't want to know
about emacs, for one.
My guess is also that it's not in 15 minute that you'll make them
comfortable with the IDE of using a LISP "syntax".
Of course, maybe they already know about clojure. If so, either they will
learn nothin
You're not going to convey much useful information in 15 minutes, but
you can do something inspiring. A couple of years ago I saw a video -
probably by Marco Berringer - that showed a CL/emacs expert solving a
nontrivial problem. I was purely amazed at the amount of code that
appeared on the scre
You can get lots of information out of &env and &form, with a bit of
effort.
See
https://github.com/stuartsierra/lazytest/blob/86a75572e81625b09f9ed15981fb9efd670e00a9/modules/lazytest/src/main/clojure/lazytest/expect.clj#L39
for an example.
-S
On Dec 9, 4:20 am, Sunil S Nandihalli
wrote:
> Hel
The idea is interesting, it is an application of the principle: move the
computation where the data resides, rather than shovel data between remote
locations
there is quite an interesting implementation in scala
http://lambda-the-ultimate.org/node/3626
ps sorry if a bit off-topic
Las
2010/12/9
Thanks Alex. That helps.
Sunil.
On Thu, Dec 9, 2010 at 4:28 PM, Alex Osborne wrote:
> Sunil S Nandihalli writes:
>
> > I would like to know what meta info does &form that get passed to
> > your macro.. actually contain? I am able to only get the line
> > number.. Is there a way to get the file
On Thu, Dec 9, 2010 at 5:58 AM, Alex Osborne wrote:
> Sunil S Nandihalli writes:
>
>> I would like to know what meta info does &form that get passed to
>> your macro.. actually contain? I am able to only get the line
>> number.. Is there a way to get the file name aswell?
>
> The currently evalua
Sunil S Nandihalli writes:
> I would like to know what meta info does &form that get passed to
> your macro.. actually contain? I am able to only get the line
> number.. Is there a way to get the file name aswell?
The currently evaluating/compiling file (if it is a file and not the
REPL or some
On Thu, Dec 9, 2010 at 5:18 AM, Shantanu Kumar wrote:
> It might be possible to get other info (such as var-name, var-body
> etc), but it's mostly subjective (depending on the form being passed):
>
> https://bitbucket.org/kumarshantanu/clj-miscutil/src/e16432dc0b6c/src/main/clj/org/bituf/clj_miscu
It might be possible to get other info (such as var-name, var-body
etc), but it's mostly subjective (depending on the form being passed):
https://bitbucket.org/kumarshantanu/clj-miscutil/src/e16432dc0b6c/src/main/clj/org/bituf/clj_miscutil.clj#cl-251
Regards,
Shantanu
On Dec 9, 3:04 pm, Ken Wess
On Thu, Dec 9, 2010 at 4:48 AM, Sunil S Nandihalli
wrote:
> hmm.. so how do we get the file name inside our macro??
I guess we ask nicely for it to be added to the &form metadata in 1.3. :)
Interestingly, extracting the correct line number in cases of
multi-line forms is already handled:
(ns fa
hmm.. so how do we get the file name inside our macro??
Sunil.
On Thu, Dec 9, 2010 at 2:57 PM, Ken Wesson wrote:
> On Thu, Dec 9, 2010 at 4:20 AM, Sunil S Nandihalli
> wrote:
> > Hello everybody,
> > I would like to know what meta info does &form that get passed to your
> > macro.. actually co
On Thu, Dec 9, 2010 at 4:20 AM, Sunil S Nandihalli
wrote:
> Hello everybody,
> I would like to know what meta info does &form that get passed to your
> macro.. actually contain? I am able to only get the line number.. Is there a
> way to get the file name aswell?
user=> (defmacro foo [x] `(quote
Hello everybody,
I would like to know what meta info does &form that get passed to your
macro.. actually contain? I am able to only get the line number.. Is there a
way to get the file name aswell?
Thanks,
Sunil.
--
You received this message because you are subscribed to the Google
Groups "Cloju
On Dec 8, 11:12 pm, Raoul Duke wrote:
> another take on rpc/queries/services:
>
> www.odbms.org/download/2010-09-Batches-ICOODB.pdf
>
> apparently very preliminary, i can't find the java implementation
> referred to in the slides.
I liked the idea but was sceptical since most remote work is do
Thanks Alan,
I have in fact realized the mistake after I posted it .. and I had posted
another message which has it the way you mentioned.
Sunil.
On Tue, Dec 7, 2010 at 11:55 PM, Alan wrote:
> I see you have defined a print-and-return macro; you might prefer my
> and-print:
>
> (defmacro and-pr
46 matches
Mail list logo