Re: offtopic - where are you come from? (poll)

2008-10-17 Thread Apurva Sharan

from Bangalore, India.

Regards,
Apurva 


- Original Message -
From: "Christopher Taylor" <[EMAIL PROTECTED]>
To: clojure@googlegroups.com
Sent: Friday, October 17, 2008 8:50:26 PM GMT +05:30 Chennai, Kolkata, Mumbai, 
New Delhi
Subject: Re: offtopic - where are you come from? (poll)


another German here, but from Berlin :)

On 17.10.2008, at 14:07, mb wrote:

>
> Frankfurt am Main, Germany
> >




--~--~-~--~~~---~--~~
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
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~--~~~~--~~--~--~---



Re: clojure rant

2008-09-12 Thread Apurva Sharan

Oops - hit Ctrl-S too soon :( 

The error is:

---
Loading /home/apurva/.emacs-contrib/swank-clojure/swank-clojure.el 
(source)...done

An error has occurred while loading `/home/apurva/.emacs':

error: Error: You must specify a swank-clojure-jar-path. Please see README of 
swank-clojure.
---

When I change the order of (require 'swank-clojure-autoload) to be after 
setting the swank-clojure-jar-path, the emacs initialization goes through. But 
slime still doesn't start:

---
(clojure/require (quote swank))

(swank/ignore-protocol-version "2008-08-31")

(swank/start-server "/tmp/slime.7935")

Exception in thread "main" java.lang.NoClassDefFoundError: 
Caused by: java.lang.ClassNotFoundException: 
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)

Process inferior-lisp exited abnormally with code 1
---

Regards,
Apurva



- Original Message -
From: "Apurva Sharan" <[EMAIL PROTECTED]>
To: clojure@googlegroups.com
Sent: Saturday, September 13, 2008 12:09:59 PM GMT +05:30 Chennai, Kolkata, 
Mumbai, New Delhi
Subject: Re: clojure rant

I am trying out the changes - but this doesn't appear to work as mentioned in 
the README.

This is what I have now in my .emacs:

(require 'clojure-mode)
(require 'clojure-auto)
(require 'swank-clojure-autoload)

(setq swank-clojure-jar-path )

When I start emacs - I get an error






- Original Message -
From: "Matt Revelle" <[EMAIL PROTECTED]>
To: clojure@googlegroups.com
Sent: Saturday, September 13, 2008 11:33:50 AM GMT +05:30 Chennai, Kolkata, 
Mumbai, New Delhi
Subject: Re: clojure rant



On Sep 13, 2008, at 2:00 AM, Apurva Sharan wrote:

>
> Hi Alexey,
>
> I am using Clojure with Emacs+Slime on Ubuntu 8.04 and it works with  
> the latest version of Clojure & Clojure-contrib from SVN.
>
> I based my setup on the information provided in swank-clojure.clj.  
> The packages are available from: http://clojure.codestuffs.com/
>
> 1. Here is what I have in my .emacs specific to clojure:
>
> (add-to-list 'load-path )
> (add-to-list 'load-path )
>
> (require 'clojure-mode)
> (require 'clojure-auto)
> (require 'swank-clojure)
>
> (setq inferior-lisp-program "clojure")

Don't need to set the inferior-lisp-program.

>
>
> (add-hook 'clojure-mode-hook
>  '(lambda ()
> (define-key clojure-mode-map "\C-c\C-e" 'lisp-eval-last- 
> sexp)
> (define-key clojure-mode-map "\C-x\C-e" 'lisp-eval-last- 
> sexp)))
>
>
> 2. I have an executable file named "clojure" in my path and  
> a .clojure.conf in my home directory. This are based off files  
> included in the clojure-extras package.
>

That external script is no longer needed, though using it will still  
work.  The classpath (and in a moment, java.library.path) can be set  
in your .emacs now.

> Hope this helps ...
>
> Regards,
> Apurva
>
>
> - Original Message -
> From: "Alexey Goldin" <[EMAIL PROTECTED]>
> To: "Clojure" 
> Sent: Saturday, September 13, 2008 10:34:24 AM GMT +05:30 Chennai,  
> Kolkata, Mumbai, New Delhi
> Subject: Re: clojure rant
>
>
> Oh. Thanks, will try right now. I am doing this on Friday night and I
> get answers immediately. Weird.
>
> On Sep 12, 11:49 pm, Matt Revelle <[EMAIL PROTECTED]> wrote:
>> Hey Alexey,
>>
>> On Sep 13, 2008, at 12:41 AM, Alexey Goldin wrote:
>>
>>
>> Well, you'll be missing tab completion for a little longer.  It's on
>> my todo list but
>> not highest priority.
>>
>>> Please forgive my rant. It is obvious that many people are using it
>>> with great success and having much fun, so there obviously is a  
>>> way. I
>>> just fail to see it :-) Any hint on your clojure configuration is
>>> appreciated.  Thanks!
>>
>> If you swing both ways, Vimclojure is another option.
>>
>
> No, I am sorry I am not swinging that far. The only thing I know about
> vi(m) is how to exit it if I start it accidentally.
>
>
> Thanks a lot!
>
>
> >




--~--~-~--~~~---~--~~
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
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~--~~~~--~~--~--~---



Re: clojure rant

2008-09-12 Thread Apurva Sharan

I am trying out the changes - but this doesn't appear to work as mentioned in 
the README.

This is what I have now in my .emacs:

(require 'clojure-mode)
(require 'clojure-auto)
(require 'swank-clojure-autoload)

(setq swank-clojure-jar-path )

When I start emacs - I get an error






- Original Message -
From: "Matt Revelle" <[EMAIL PROTECTED]>
To: clojure@googlegroups.com
Sent: Saturday, September 13, 2008 11:33:50 AM GMT +05:30 Chennai, Kolkata, 
Mumbai, New Delhi
Subject: Re: clojure rant



On Sep 13, 2008, at 2:00 AM, Apurva Sharan wrote:

>
> Hi Alexey,
>
> I am using Clojure with Emacs+Slime on Ubuntu 8.04 and it works with  
> the latest version of Clojure & Clojure-contrib from SVN.
>
> I based my setup on the information provided in swank-clojure.clj.  
> The packages are available from: http://clojure.codestuffs.com/
>
> 1. Here is what I have in my .emacs specific to clojure:
>
> (add-to-list 'load-path )
> (add-to-list 'load-path )
>
> (require 'clojure-mode)
> (require 'clojure-auto)
> (require 'swank-clojure)
>
> (setq inferior-lisp-program "clojure")

Don't need to set the inferior-lisp-program.

>
>
> (add-hook 'clojure-mode-hook
>  '(lambda ()
> (define-key clojure-mode-map "\C-c\C-e" 'lisp-eval-last- 
> sexp)
> (define-key clojure-mode-map "\C-x\C-e" 'lisp-eval-last- 
> sexp)))
>
>
> 2. I have an executable file named "clojure" in my path and  
> a .clojure.conf in my home directory. This are based off files  
> included in the clojure-extras package.
>

That external script is no longer needed, though using it will still  
work.  The classpath (and in a moment, java.library.path) can be set  
in your .emacs now.

> Hope this helps ...
>
> Regards,
> Apurva
>
>
> - Original Message -
> From: "Alexey Goldin" <[EMAIL PROTECTED]>
> To: "Clojure" 
> Sent: Saturday, September 13, 2008 10:34:24 AM GMT +05:30 Chennai,  
> Kolkata, Mumbai, New Delhi
> Subject: Re: clojure rant
>
>
> Oh. Thanks, will try right now. I am doing this on Friday night and I
> get answers immediately. Weird.
>
> On Sep 12, 11:49 pm, Matt Revelle <[EMAIL PROTECTED]> wrote:
>> Hey Alexey,
>>
>> On Sep 13, 2008, at 12:41 AM, Alexey Goldin wrote:
>>
>>
>> Well, you'll be missing tab completion for a little longer.  It's on
>> my todo list but
>> not highest priority.
>>
>>> Please forgive my rant. It is obvious that many people are using it
>>> with great success and having much fun, so there obviously is a  
>>> way. I
>>> just fail to see it :-) Any hint on your clojure configuration is
>>> appreciated.  Thanks!
>>
>> If you swing both ways, Vimclojure is another option.
>>
>
> No, I am sorry I am not swinging that far. The only thing I know about
> vi(m) is how to exit it if I start it accidentally.
>
>
> Thanks a lot!
>
>
> >




--~--~-~--~~~---~--~~
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
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~--~~~~--~~--~--~---



Re: clojure rant

2008-09-12 Thread Apurva Sharan

Hi Alexey,

I am using Clojure with Emacs+Slime on Ubuntu 8.04 and it works with the latest 
version of Clojure & Clojure-contrib from SVN.

I based my setup on the information provided in swank-clojure.clj. The packages 
are available from: http://clojure.codestuffs.com/

1. Here is what I have in my .emacs specific to clojure:

(add-to-list 'load-path )
(add-to-list 'load-path )

(require 'clojure-mode)
(require 'clojure-auto)
(require 'swank-clojure)

(setq inferior-lisp-program "clojure")

(add-hook 'clojure-mode-hook
  '(lambda ()
 (define-key clojure-mode-map "\C-c\C-e" 'lisp-eval-last-sexp)
 (define-key clojure-mode-map "\C-x\C-e" 'lisp-eval-last-sexp)))


2. I have an executable file named "clojure" in my path and a .clojure.conf in 
my home directory. This are based off files included in the clojure-extras 
package.

Hope this helps ...

Regards,
Apurva


- Original Message -
From: "Alexey Goldin" <[EMAIL PROTECTED]>
To: "Clojure" 
Sent: Saturday, September 13, 2008 10:34:24 AM GMT +05:30 Chennai, Kolkata, 
Mumbai, New Delhi
Subject: Re: clojure rant


Oh. Thanks, will try right now. I am doing this on Friday night and I
get answers immediately. Weird.

On Sep 12, 11:49 pm, Matt Revelle <[EMAIL PROTECTED]> wrote:
> Hey Alexey,
>
> On Sep 13, 2008, at 12:41 AM, Alexey Goldin wrote:
>
>
> Well, you'll be missing tab completion for a little longer.  It's on  
> my todo list but
> not highest priority.
>
> > Please forgive my rant. It is obvious that many people are using it
> > with great success and having much fun, so there obviously is a way. I
> > just fail to see it :-) Any hint on your clojure configuration is
> > appreciated.  Thanks!
>
> If you swing both ways, Vimclojure is another option.
>

No, I am sorry I am not swinging that far. The only thing I know about
vi(m) is how to exit it if I start it accidentally.


Thanks a lot!


--~--~-~--~~~---~--~~
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
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~--~~~~--~~--~--~---



Re: Clojure Poll 09/2008

2008-09-11 Thread Apurva Sharan

Yes - I know. And there is 'println' also...

The full mini-language provided by format is much more powerful ...


[1]> (format nil "~{[~{~a~^:~}]~^~&~}" '((1 2 3)(7 8 9)))
"[1:2:3]
[7:8:9]"
[2]> (format nil "~r" 123456)
"one hundred and twenty-three thousand, four hundred and fifty-six"
[3]> 

But, this is really just a 'nice to have' ...

Regards,
Apurva


- Original Message -
From: "Stuart Sierra" <[EMAIL PROTECTED]>
To: "Clojure" 
Sent: Thursday, September 11, 2008 7:22:39 PM GMT +05:30 Chennai, Kolkata, 
Mumbai, New Delhi
Subject: Re: Clojure Poll 09/2008


On Sep 11, 1:18 am, Apurva Sharan <[EMAIL PROTECTED]> wrote:
> 3) Equivalent of 'format' macro. This would be really helpful in debugging.

There is a "printf" in recent Clojure SVN.
-Stuart


--~--~-~--~~~---~--~~
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
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~--~~~~--~~--~--~---



Re: Clojure Poll 09/2008

2008-09-10 Thread Apurva Sharan

> What are you doing with Clojure?

Still learning the language in my spare time :)

> What 3 features would you most like to see added next?

1) Like most people, more specific error messages. Error messages that point 
out 
   the faulty sub-expression would be helpful.

2) Packaging infrastructure similar to ASDF.

3) Equivalent of 'format' macro. This would be really helpful in debugging.


Regards,
Apurva





- Original Message -
From: "Rich Hickey" <[EMAIL PROTECTED]>
To: "Clojure" 
Sent: Thursday, September 11, 2008 12:10:05 AM GMT +05:30 Chennai, Kolkata, 
Mumbai, New Delhi
Subject: Clojure Poll 09/2008


As we rapidly approach 500 members on the group (!) I thought it would
be a good time to conduct another poll:


What are you doing with Clojure?


What 3 features would you most like to see added next?



Thanks,

Rich


--~--~-~--~~~---~--~~
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
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~--~~~~--~~--~--~---



Re: with-meta usage

2008-09-01 Thread Apurva Sharan

Thanks Meikel!

That makes it clearer...

Regards,
Apurva


- Original Message -
From: "Meikel Brandmeyer" <[EMAIL PROTECTED]>
To: clojure@googlegroups.com
Sent: Sunday, August 31, 2008 8:46:01 PM GMT +05:30 Chennai, Kolkata, Mumbai, 
New Delhi
Subject: Re: with-meta usage

Hello,

> I was wondering why the first scenario didn't work but couldn't find
> details on this. Can someone please explain?
I also stumbled over this issue. Please read this sentence from the
"Metadata" section on clojure.org (http://clojure.org/metadata)

> "Symbols and collections support metadata"

I also missed this. It's pretty subtle. Since 10 is neither a Symbol nor
a Collection. You get the error. You can set the metadata of the Var:

---8<---
user=> (def #^{:Some :MetaData} v 10)
#'user/v
user=> (meta #'v)
{:Some :MetaData, :file "NO_SOURCE_FILE", :name v, :ns #, :line 1}
---8<---

Hope this helps.

Sincerely
Meikel


--~--~-~--~~~---~--~~
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
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~--~~~~--~~--~--~---