d on a URL parameter (e.g. ?
day=20081110). There are scads of tutorials out there on how to do
this sort of thing in various languages (particularly Java). You
should have no lack of resources on that front...
Clojure can essentially do anything that Java can. If you can run
Java on your server, you
Hi!
I'd like to use a macro in a configuration .clj file. This macro is
supposed to def some vars in appropriate namespaces. However, I'm
getting the exception from the subject. Is there a way to write a
macro which temporarily binds *ns* to some namespace so that it can
"def" things in there?
In Common Lisp and Scheme, if you have an expression that evaluates a
symbol, it doesn't evaluate it until you call the function, not when
you define it. So you can do this:
Common Lisp:
[1]> (defun b () a)
B
[2]> (defvar a 5)
A
[3]> (b)
5
Scheme:
1 ]=> (define (b) a)
;Value: b
1 ]=> (define a
On Nov 10, 9:38 pm, "Mike DeLaurentis" <[EMAIL PROTECTED]> wrote:
> Hi Rich,
>
> I'm giving a talk about Clojure tomorrow night in Philadelphia for a
> functional programming user group, and I'd like to include some
> information about you. Do you have a standard bio you use for things
> like th
Hi Rich,
I'm giving a talk about Clojure tomorrow night in Philadelphia for a
functional programming user group, and I'd like to include some
information about you. Do you have a standard bio you use for things
like that? Just a few sentences about your background and your
motivation for writing
When I rebuilt using 1088 it works correctly. Thank you very much!
On Nov 9, 11:43 pm, "Stephen C. Gilardi" <[EMAIL PROTECTED]> wrote:
> On Nov 9, 2008, at 9:57 PM, [EMAIL PROTECTED] wrote:
>
> svn co -r 1088
>
> If you continue to have trouble, please give more detail about your
> har
Hello
(I have some lisp and elisp background, but my html is rather poor,
and java indistinguishable from zero)
I want to do something quick and dirty with html and I am wondering if
I can leverage my lisp knowledge
I am publishing my daily log pages in html (using emacs muse
+planner). These
Hello, I would like to contribute to testing Clojure. (Rich has my CA
already.)
I have been thinking about it and going through some unit tests for
different language. I am proposing this syntax change to macro 'is':
Instead of writing:
(deftest test-+
(is (= (+) 0))
(is (= (+ 1) 1))
On Nov 10, 9:28 pm, "Stephen C. Gilardi" <[EMAIL PROTECTED]> wrote:
> This works:
>
> svn cohttps://clojure.svn.sourceforge.net/svnroot/clojure/trunkclojure
> (checks out)
> cd clojure
> ant
> (builds)
> java -cp clojure.jar:./gen clojure.lang.Repl
> (fails)
> java -cp cloj
On Nov 10, 2008, at 2:45 PM, [EMAIL PROTECTED] wrote:
>
> I know its marked as DO NOT USE, but anyway I gave it a try and got:
>
> java -jar clojure.jar clojure.lang.Repl
> Exception in thread "main" java.lang.ExceptionInInitializerError
This works:
svn co https://clojure.svn.sourceforge.net/sv
On Nov 10, 9:55 am, "Robert Lally" <[EMAIL PROTECTED]> wrote:
> - The current users of Clojure probably aren't representative of the
> development community as a whole. I'm not suggesting that they/we are better
> or worse than average. Just that early adopters are atypical, exemplified by
> the f
On Nov 10, 5:48 am, "Robert Lally" <[EMAIL PROTECTED]> wrote:
> One of the many things that I really like about Clojure is that it abandoned
> Lisp tradition where it was pragmatic to do so. One of the prime examples
> for me was the use of first and rest rather than car and cdr.
To me that made
I know its marked as DO NOT USE, but anyway I gave it a try and got:
java -jar clojure.jar clojure.lang.Repl
Exception in thread "main" java.lang.ExceptionInInitializerError
at clojure.lang.Repl.(Repl.java:23)
Caused by: java.lang.RuntimeException: java.lang.RuntimeException:
java.lang.Cl
On Nov 10, 5:55 pm, "Robert Lally" <[EMAIL PROTECTED]> wrote:
> Of course this is all predicated upon the creation of IDE tooling that is
> still very far away, so it is in many ways an argument based on a future
> which may never happen. I can see the value in optimising for now rather
> than the
I appreciate the answers that everyone has given to my post, and I thought
I'd send a single response before ceasing my bleating; I do realise that
this discussion has the potential to devolve into multiple different
religious wars, and I appreciate everyone's tolerance and forbearance so
far.
I th
Report from the field: I got this working on Windows XP with gvim 7.2
and Ruby 1.8.6-26. No special hacking required, the default Windows
binary installs of Vim and Ruby seem to "just work" together.
I've only done trivial tests so far, but the basic Clojure integration
is working. I'm sure we'
On Nov 10, 10:17 am, Rich Hickey <[EMAIL PROTECTED]> wrote:
> On Nov 10, 2008, at 9:46 AM, Graham Fawcett wrote:
>
>
>
> > Hi folks,
>
> > I haven't been bitten by the "do not use" revisions, R1089 onward, but
> > it seems that others have.
>
> > I'm just curious why the team decided not to use
You're right. Meikel's way seems good to me, too, and "try 1" works
after restarting slime. :) Thanks! Meikel, Stuart~
On 11월10일, 오후11시49분, Stuart Halloway <[EMAIL PROTECTED]>
wrote:
> Hi Chanwoo,
>
> I think Meikel's approach of switching to the namespace is simpler,
> but your "try 1" works for
Hmm.. My code which I pasted above is wrong.. Though I know no one
care about it, :) here is the corrected code.. It seems that It is
good to just use 'java-import-code->lst' in repl and copy & paste the
list into (:use ~) statement.
(ns easy-import
(:use clojure.contrib.str-utils))
(defn java
On Mon, Nov 10, 2008 at 11:15 AM, Randall R Schulz <[EMAIL PROTECTED]> wrote:
>
> On Monday 10 November 2008 07:30, Daniel Renfer wrote:
>> There is one thing I would like to point out. My editor of choice,
>> (emacs) uses the length of the function name as a guide of where to
>> indent the next l
Oh dear. I'm sure I shouldn't be responding to this thread, yet here I am...
On Mon, Nov 10, 2008 at 11:15 AM, Randall R Schulz <[EMAIL PROTECTED]> wrote:
>
> What on Earth is an 80-character limit?
There are two main choices: some limit vs. no limit. With no limit,
everyone's got to have a wi
ant and svn are in /usr/bin/ on my leopard install, which means they
either came with OS X itself or the OS X development tools. I'd check
if you've got them already before installing.
On Nov 10, 2008, at 11:15 AM, Justin Henzie wrote:
>
> I am using the svn version 1086 and this works fin
I am using the svn version 1086 and this works fine for me.
If you have never used subversion don't worry it is very simple to
use.
Here are basic instructions.
Download ant from
http://ant.apache.org/bindownload.cgi
Supposing you downloaded apache-ant-1.7.1-bin.tar.gz
Open a terminal
On Monday 10 November 2008 07:30, Daniel Renfer wrote:
> There is one thing I would like to point out. My editor of choice,
> (emacs) uses the length of the function name as a guide of where to
> indent the next line to in some situations. I find that in my code, I
> try to create functions that s
There is one thing I would like to point out. My editor of choice,
(emacs) uses the length of the function name as a guide of where to
indent the next line to in some situations. I find that in my code, I
try to create functions that say what I want to say without pushing
the body of my code too c
On Mon, Nov 10, 2008 at 10:33 AM, Rich Hickey <[EMAIL PROTECTED]> wrote:
> I'll also add that I didn't check in something that didn't run, just
> something that contains changes that require changes to your code or
> environment. Tracking SVN HEAD certainly implies a willingness to make
> such ch
This is an argument that will probably go on for a long, long time, and
I wonder if it might have to do with the way that people think and
program. Personally, I tend to throw together lots of small experiments
in the process of developing, and being able to use short symbols for
common opera
+1 on existing names
On Mon, 10 Nov 2008 09:50:12 -0500
Rich Hickey <[EMAIL PROTECTED]> wrote:
>
>
> On Nov 10, 2008, at 8:48 AM, Robert Lally wrote:
>
> > One of the many things that I really like about Clojure is that it
> > abandoned Lisp tradition where it was pragmatic to do so. One o
On Nov 10, 2008, at 9:46 AM, "Graham Fawcett"
<[EMAIL PROTECTED]> wrote:
>
> Hi folks,
>
> I haven't been bitten by the "do not use" revisions, R1089 onward, but
> it seems that others have.
>
> I'm just curious why the team decided not to use a branch for these
> breaking changes, and mergin
On Nov 10, 2008, at 9:46 AM, Graham Fawcett wrote:
>
> Hi folks,
>
> I haven't been bitten by the "do not use" revisions, R1089 onward, but
> it seems that others have.
>
> I'm just curious why the team decided not to use a branch for these
> breaking changes, and merging back with trunk once th
I am in favor of the existing names. Things you use all the time
(like the core of a language) should be concise, things that you use
more rarely can have longer names.
That said, it would be pretty straightforward to alias longer names--
you could open source a humane_names.clj and let peo
Hi folks,
I haven't been bitten by the "do not use" revisions, R1089 onward, but
it seems that others have.
I'm just curious why the team decided not to use a branch for these
breaking changes, and merging back with trunk once the breakage was
finished?
Like many open-source projects, Clojure s
On Nov 10, 2008, at 8:48 AM, Robert Lally wrote:
> One of the many things that I really like about Clojure is that it
> abandoned Lisp tradition where it was pragmatic to do so. One of the
> prime examples for me was the use of first and rest rather than car
> and cdr. Sure, I can read cod
Hi Chanwoo,
I think Meikel's approach of switching to the namespace is simpler,
but your "try 1" works for me. Is it possible that you need to reload
all the namespaces in your REPL to clear out some old code?
Try 2 cannot work because the defn* gets expanded at macro-time, and
the bindin
Hi,
simply change to the namespace in question:
in /foo/foo.clj:
---8<---
(ns foo)
(defn- private-foo-func
[x y]
(+ x y))
---8<---
in test-foo.clj:
---8<---
; Make sure foo namespace is loaded
; correctly before we go on.
(require 'foo)
(in-ns 'foo)
; Make sure, we don't interfere with
;
I'm sorry for spamming.. In Stuart's book - 'Programming Clojure', I
saw below paragraph:
"1. Redefine private to mean "private for production code, but public
for serialization and unit tests".
...
I have seen Java programs that needed all these features."
So I decided to try what he referred t
One of the many things that I really like about Clojure is that it abandoned
Lisp tradition where it was pragmatic to do so. One of the prime examples
for me was the use of first and rest rather than car and cdr. Sure, I can
read code with car and cdr but it never really communicated that well; I
a
Thanks a lot. Now I see. :)
On 11월10일, 오후9시23분, mb <[EMAIL PROTECTED]> wrote:
> Hi,
>
> On 10 Nov., 12:48, Chanwoo Yoo <[EMAIL PROTECTED]> wrote:
>
> > (ns test
> > (->:import "import org.apache.http.HttpVersion; import
> > org.apache.http.http.client.HttpClient"))
>
> ns is itself a macro, whi
Hi,
On 10 Nov., 12:48, Chanwoo Yoo <[EMAIL PROTECTED]> wrote:
> (ns test
> (->:import "import org.apache.http.HttpVersion; import
> org.apache.http.http.client.HttpClient"))
ns is itself a macro, which treats the :import, :use, :require and
:refer-clojure clauses specially. Since it does not e
Hello. I tried to write small utility for importing java code. Because
sometimes I want to just copy and paste very long java import code and
hope it work in clojure rather than converting it to clojure style.
Functions and macros work as I expected. But if I try to apply '-
>:import' in ns state
40 matches
Mail list logo