Linux Bash script to start clojure

2014-11-30 Thread Cecil Westerhof
I made a Bash script to start clojure, both the REPL and a script. When
starting a script it uses an initialisation file if it exists.

https://github.com/CecilWesterhof/BashLibrary/blob/master/bin/clojure

-- 
Cecil Westerhof

-- 
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 patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


unable to load mydocemacs on Lisp Cabinet on XP any help, pls?

2014-11-30 Thread Sylver Stone
Hi, group:
I´m trying with Lisp Cabinet on XP (unable to set a proper environment for 
learning Clojure (/emacs/slime/) on e.g. Fedora (though that´s other (sad) 
story). I tried the to-usb´installation option for testing purposes anyway 
but got into the following issues: (If someone familiar with could give me 
a clue, pls. I´d appreciate it so much)
I put a .emacs file inside h:/LispCabinet/home created during the 
installation process with just a coupple of lines for now for testing (:
require paredit & stop that (by default) annoying bell) 
2. I also placed the paredit file inside the elpa file also created (h:
/LispCabinet/home/.emacs.d/elpa) (also tried placin the file straight in (h:
/LispCabinet/home/) 
3. I also tried withing emacs (by Mx-package-list-packages) so spotting 
where it goes by default and evaluate it but with no changes (though this 
time I saw it goes to the pc host instead of the usb supposedly it should 
(it crates a .emacs.d file at c:\Documents and 
Settings\user-me\ProgramData\) So I also placed my .emacs there for 
checking (but unsuccessful (the annoying bell I tried to get rid of (also 
for quicky checking my changes) is still there).
This is the output I got in the warning buffer; Again, I´d appreciate any 
help. 

Warning (lisp-cabinet): Windows Scripting Host command-line utility (cscript
>> ) is disabled or not available,
>> this could impact the functionality of some Lisp Cabinet components.
>> Please enable Windows Scripting Host or make it available.
>> Warning (initialization): An error occurred while loading 
>> `h:/LispCabinet/home/.emacs':
>>
>> File error: Cannot open load file, paredit
>>
>> To ensure normal operation, you should investigate and remove the
>>
> cause of the error in your initialization file.  Start Emacs with
> the `--debug-init' option to view a complete error backtrace.
>



-- 
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 patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


ANN: Om 0.8.0-beta1, improved multimethod support

2014-11-30 Thread David Nolen
The only change between this release and the previous 0.8.0 alphas is
improved support for multimethods as component constructor functions.
Previously if methods returned different reify instances mount/unmount
life-cycle methods would not be invoked as expected.

Feedback welcome!

https://github.com/swannodette/om

David

-- 
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 patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Attempting to import class from a non-standard location [interop]

2014-11-30 Thread John Bohn
Hi all,
I'm trying to import a class from a non-standard location.. Specifically, 
I'm trying to import PhoneNumberToCarrierMapper from libphonenumber and am 
receiving the following error:

Exception in thread "main" java.lang.ClassNotFoundException: com.google.i18n
.phonenumbers.PhoneNumberToCarrierMapper, compiling:(phonelib/shared.clj:1:1
)

https://github.com/jjbohn/libphonenumber/blob/master/java/carrier/src/com/google/i18n/phonenumbers/PhoneNumberToCarrierMapper.java

(ns phonelib.shared
  (:require [clojure.string :refer [lower-case]])
  (:import  [com.google.i18n.phonenumbers PhoneNumberUtil 
  PhoneNumberUtil$PhoneNumberFormat
  PhoneNumberToCarrierMapper]))

My assumption is the problem has to do with how the directories are 
structured in this library 
(https://github.com/jjbohn/libphonenumber/tree/master/java). 

Anyone run into this before and know of a workaround? 

-- 
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 patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


"rest" arguments and desctructuring / nil vs. empty

2014-11-30 Thread Mike Fikes
For "rest" arguments, as in (defn foo [x & r] r), when the remaining 
arguments are rolled up into a sequence, you will get nil instead of an 
empty sequence.

Is it fair to say that the "rest" nomenclature came about back at the 
beginning of Clojure, when rest really did return nil, prior to the 
introduction of next and lazy sequences?

In other words would it be fair to, given today's behavior, characterize 
them as really being "next" arguments, but with a historical name?

-- 
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 patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Linux Bash script to start clojure

2014-11-30 Thread James Reeves
Do you know about Leiningen and lein-exec?

- James

On 30 November 2014 at 12:41, Cecil Westerhof 
wrote:

> I made a Bash script to start clojure, both the REPL and a script. When
> starting a script it uses an initialisation file if it exists.
>
> https://github.com/CecilWesterhof/BashLibrary/blob/master/bin/clojure
>
> --
> Cecil Westerhof
>
> --
> 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 patient with
> your first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Attempting to import class from a non-standard location [interop]

2014-11-30 Thread Steven Yi
Hi John,

Could this maybe just be a dependencies problem?  It seems you're trying to 
use classes from two different libraries:

com.googlecode.libphonenumber/libphonenumber
com.googlecode.libphonenumber/carrier

If checking the dependencies for your build doesn't solve it, could you 
explain a little further what build system you are using?

steven

On Sunday, November 30, 2014 2:49:40 PM UTC-5, John Bohn wrote:
>
> Hi all,
> I'm trying to import a class from a non-standard location.. Specifically, 
> I'm trying to import PhoneNumberToCarrierMapper from libphonenumber and am 
> receiving the following error:
>
> Exception in thread "main" java.lang.ClassNotFoundException: com.google.
> i18n.phonenumbers.PhoneNumberToCarrierMapper, compiling:(phonelib/shared.
> clj:1:1)
>
>
> https://github.com/jjbohn/libphonenumber/blob/master/java/carrier/src/com/google/i18n/phonenumbers/PhoneNumberToCarrierMapper.java
>
> (ns phonelib.shared
>   (:require [clojure.string :refer [lower-case]])
>   (:import  [com.google.i18n.phonenumbers PhoneNumberUtil 
>   
> PhoneNumberUtil$PhoneNumberFormat
>   PhoneNumberToCarrierMapper]))
>
> My assumption is the problem has to do with how the directories are 
> structured in this library (
> https://github.com/jjbohn/libphonenumber/tree/master/java 
> 
> ). 
>
> Anyone run into this before and know of a workaround? 
>

-- 
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 patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.