Re: Building with Java 7 but running on Java 6?

2013-09-04 Thread Tom Emerson
Hadoop cluster ;) > > On Wednesday, September 4, 2013 9:45:11 PM UTC+2, Tom Emerson wrote: >> >> Greetings, >> >> I develop with JDK 7 but have coworkers who (for reasons I don't want to >> get into) run Java 6, and they cannot run the uberjars I create because

Building with Java 7 but running on Java 6?

2013-09-04 Thread Tom Emerson
Greetings, I develop with JDK 7 but have coworkers who (for reasons I don't want to get into) run Java 6, and they cannot run the uberjars I create because of the version mismatch. Is it possible for Clojure/Leiningen to generate compatible class files? Or do I need to setup a VM that has Java

Dan Weinreb Google Tech Talk

2009-08-18 Thread Tom Emerson
ommon Lisp, Scheme, and Clojure. Definitely worth watching. -tree -- Tom Emerson tremer...@gmail.com http://treerex.blogspot.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post

Processing elements in a lazy seq in parallel

2009-08-10 Thread Tom Emerson
ing I want bounded parallelism (such as pmap gives you, 2 + number of cores) how would you approach this problem in Clojure? Thanks in advance for your insights, -tree -- Tom Emerson tremer...@gmail.com http://treerex.blogspot.com/ --~--~-~--~~~---~--~

Re: Confusion with namespaces and SLIME

2009-07-28 Thread Tom Emerson
me with SLIME 2009-07-15, > clojure-mode 8c333628bf507749dd78b312333130b00e6ec06f, swank-clojure > 6cd3057d48e00da485cdf43b2b170816e5187c40, Emacs 22.2.1 (on Ubuntu > 9.04), and both Clojure 1.0.0 and current git.  Perhaps you should try > upgrading your setup? > > Best, > Da

Re: Confusion with namespaces and SLIME

2009-07-28 Thread Tom Emerson
t confused by it. Does this make more sense now? -tree -- Tom Emerson tremer...@gmail.com http://treerex.blogspot.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this

Confusion with namespaces and SLIME

2009-07-27 Thread Tom Emerson
n though I know they're in the namespace that is current in the SLIME repl). However, if I use C-c C-e to evaluate the ns call and the subsequent calls that set the values being referred to, all is fine. Anyway, tips are appreciate for working with namespaces with SLIME. Thanks in advance,

Re: Confusion on Clojure 1.0, compatible clojure-contrib, git-hub, svn, ...

2009-07-06 Thread Tom Emerson
gt; > Stu > >> So I guess my unstated question is this: what is the GIT incantation >> to get a particular branch of a repository (or whatever the GIT >> terminology is for it)? The documentation for git-clone doesn't help >> much, and none of the tutorials I

Re: Confusion on Clojure 1.0, compatible clojure-contrib, git-hub, svn, ...

2009-07-06 Thread Tom Emerson
make changes to clojure-mode and swank-clojure, we'll be sure to > tag the last versions that work with 1.0. Until then you can just use > the master branch. Cool, will do. Thanks again! -tree -- Tom Emerson tremer...@gmail.com http://treerex.blogspot.com/ --~--~-~--~---

Confusion on Clojure 1.0, compatible clojure-contrib, git-hub, svn, ...

2009-07-06 Thread Tom Emerson
while? SF -> GC -> GitHub/Assembla -> ? Thanks for your help (and patience), -tree -- Tom Emerson tremer...@gmail.com http://treerex.blogspot.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clo

Namespace confusion using clojure.contrib.zip-filter

2009-03-24 Thread Tom Emerson
this isn't (explicitly) documented. Thanks for any clarification. -tree -- Tom Emerson tremer...@gmail.com http://treerex.blogspot.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group

Re: My SLIME installation diary

2009-02-05 Thread Tom Emerson
n Windows with the latest snaps of everything, just as I was a couple of weeks ago. Haven't tried installing on my Ubuntu box yet to see if this is indeed windows specific. -tree -- Tom Emerson tremer...@gmail.com http://treerex.blogspot.com/ --~--~-~--~~~---~--

More SLIME woes

2009-01-23 Thread Tom Emerson
ot; "C:\\classes\\*")) ; VM args that allows JSwat to connect to the REPL (setq swank-clojure-extra-vm-args '("-Xdebug" "-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=")) (eval-after-load "slime" '(p

Re: Blogging About Clojure?

2008-12-19 Thread Tom Emerson
be quite good and quite popular, and also is free. Anyway, they're the big two. -tree -- Tom Emerson tremer...@gmail.com http://www.dreamersrealm.net/~tree --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: CLI launcher (was: Superficial barriers to entry)

2008-12-19 Thread Tom Emerson
ribute binary packages, so it is up to the user to go out and download it, get and build/install APR, and Windows users are stuck. I agree that hashdot is a good solution, but it isn't optimal IMHO. -tree -- Tom Emerson tremer...@gmail.com http://www.dreamersrealm.net/~tree --~--~-

Re: Microsoft SQL Server and the sql contrib

2008-12-19 Thread Tom Emerson
ssword" }) Failing that, send along a connection string that you would use from Java and we can figure out how to break it apart into its pieces for the SQL library. -tree -- Tom Emerson tremer...@gmail.com http://www.dreamersrealm.net/~tree --~--~-~--~~~---

Re: Understanding SLIME blog post

2008-12-09 Thread Tom Emerson
rebinds the selector shortcut for switching to the most recent lisp-mode buffer to switch to the most recent Clojure mode buffer. This lets me switch back and forth between the REPL and the file I'm editing easily with C-c s r and C-c s l. -tree -- Tom Emerson [EMAIL PROTECTED]

Re: Java vararg functions called from Clojure

2008-12-08 Thread Tom Emerson
"Read the API docs you git!" I've come across. Thanks for pointing the obvious to me. :) -tree -- Tom Emerson [EMAIL PROTECTED] http://www.dreamersrealm.net/~tree --~--~-~--~~~---~--~~ You received this message because you are subscribed to t

Java vararg functions called from Clojure

2008-12-08 Thread Tom Emerson
rmat "%03d" (to-array '(5))) works as you would expect. I just wanted to make sure I wasn't missing something. Perhaps something along the lines of (defn format-string [fmt & args] (String/format fmt (to-array args))) would be useful in string-utils. -tree --

Re: Adding boolean?

2008-12-05 Thread Tom Emerson
ate type code for the type of the v" [v] (cond (integer? v) "I" (string? v) "S" (boolean? v) "B")) assuming that the predicate boolean? exists. In my view having this would make the API more orthogonal, e

Re: PATCH: fixed issue in doPrepared

2008-12-04 Thread Tom Emerson
On Thu, Dec 4, 2008 at 2:44 PM, Stephen C. Gilardi <[EMAIL PROTECTED]> wrote: > Thanks for the report. I had made an accidental checkin at svn258. > I've reverted to code identical to svn257 which I believe is correct. > Please give it a try. That did it, thanks! -t

PATCH: fixed issue in doPrepared

2008-12-04 Thread Tom Emerson
Here is a patch that appears to fix the issue I found in the sql library's doPrepared function, which I mentioned earlier. -- Tom Emerson [EMAIL PROTECTED] http://www.dreamersrealm.net/~tree --~--~-~--~~~---~--~~ You received this message because yo

Question on do-prepared in the clojure.contrib.sql

2008-12-04 Thread Tom Emerson
index value) (.addBatch stmt)) (.executeBatch stmt))) The problem, such as it is, is that the Derby embedded driver works fine. I haven't looked at the Derby code, but I think this is an accident. Comments? Thanks. -tree -- Tom Emerson [EMAIL PROTECTED] http://www.dream

Adding boolean?

2008-12-03 Thread Tom Emerson
I found myself needing the following today, and it was noticeably missing from core.clj --- any reason not to include it? (defn boolean? "Returns true if b is a Boolean (i.e., true or false)" [b] (instance? Boolean b)) Peace, -tree -- Tom Emerson [EMAIL PROTE

Re: printing *command-line-args*

2008-11-20 Thread Tom Emerson
nt of 'clj' looks like (with classpath noise removed): java clojure.lang.Script "$1" -- "$@" $ clojure tmp.clj foo bar baz ("tmp.clj" "foo" "bar" "baz") Hope this helps. -- Tom Emerson [EMAIL PROTECTED] http://www.dreamersreal

Re: IntelliJ Plugin

2008-10-29 Thread Tom Emerson
On Mon, Oct 27, 2008 at 11:00 AM, opus111 <[EMAIL PROTECTED]> wrote: > Is anyone working on a Clojure plugin for IntelliJ? Not that I've seen, but there is Enclojure <http://enclojure.org/> which is built on top of NetBeans. -tree -- Tom Emerson [E

Newbie question on the use of functional hash maps

2008-10-19 Thread Tom Emerson
e a global that is used for the collection. Thanks in advance for your wisdom. -tree -- Tom Emerson [EMAIL PROTECTED] http://www.dreamersrealm.net/~tree --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clo

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

2008-10-17 Thread Tom Emerson
Worcester, Massachusetts, USA Sent from Gmail for mobile On 10/17/08, soyrochus <[EMAIL PROTECTED]> wrote: > > > >> So wherever are you come from, be proud and say it. > > Dutch expat, living in Valencia, Spain > > > -- Sent from Gmail for mobile | m

Re: Style question

2008-10-16 Thread Tom Emerson
m 23:36 schrieb Tom Emerson: > >> I'd like to solicit comments on better ways I could have written it: >> >> (defn- split-line >> [line] >> (let [parts (seq (.split line ":"))] >> (loop [mills (drop 1 parts) >> result (list (first

Style question

2008-10-16 Thread Tom Emerson
(let [parts (seq (.split line ":"))] (loop [mills (drop 1 parts) result (list (first parts))] (if (nil? mills) (reverse result) (recur (drop 2 mills) (conj result (take 2 mills))) Thanks in advance for your time,

Re: GUIs in Clojure

2008-10-08 Thread Tom Emerson
> On Oct 8, 2:07 pm, Mitch <[EMAIL PROTECTED]> wrote: >>> I'm interested in doing a GUI program in clojure, but the functional >>> style of clojure doesn't seem to blend too well with the normal Java >>> GUI libraries. Does anybody have any advice on using

Re: Hex literals

2008-10-05 Thread Tom Emerson
jure.org/reader, it says, >>> "Numbers - as per Java, plus ..." >>> >>> This implies to me that hex numbers like 0xff should be accepted by >>> the reader, but they are not. Is this a bug or a misunderstanding on >>>

Modification to clojure.contrib.sql/connection

2008-10-03 Thread Tom Emerson
th-connection "Evaluates body in the context of a connection to a database. Any updates If you want to integrate this into contrib, I have a CA ready to go in the mail to Rich. Thanks, -tree -- Tom Emerson [EMAIL PROTECTED] http://www.dreamersrealm.net/~tree --~--~-~--~~

Re: Clojure at Boston Lisp Meeting videos

2008-10-02 Thread Tom Emerson
ot; or whatever your browser uses for saving the destination of a link. Do this for both and you'll get two ~250MB QuickTIme movies of Cojure goodness. I've tried this on Mac OS X and Windows XP with Safari and Firefox. Works fine. -tree -- Tom Emerson [EMAIL PROTECTED] http://w

Re: Clojure Poll 09/2008

2008-09-17 Thread Tom Emerson
ngs and trying to look things up when reading other people's code but not having luck picking apart some of the reader shortcuts. -tree -- Tom Emerson [EMAIL PROTECTED] http://www.dreamersrealm.net/~tree --~--~-~--~~~---~--~~ You received this message be

Re: Clojure Poll 09/2008

2008-09-11 Thread Tom Emerson
ut it into a simple shell script that lets you invoke Clojure on the named script and arguments, couldn't you? % clojure foo.clj bar baz qux would run foo.clj and pass the arguments. Seems to me this is easier (and cleaner) than coming up with some way of support shebang. -tree -- T

Re: Clojure Poll 09/2008

2008-09-10 Thread Tom Emerson
- > processs or an external process. > > Start out simple, with just a b-tree library and a serializing data > structures library. Clojure already supports transactions and thread > isolation. In the future, build a query language (lisp DSL of course!) > and add support for remote

Re: Proxy question

2008-09-07 Thread Tom Emerson
PM, Shawn Hoover <[EMAIL PROTECTED]> wrote: > > On Sun, Sep 7, 2008 at 2:55 PM, Tom Emerson <[EMAIL PROTECTED]> wrote: > >> Hi folks, >> I'm trying to use the proxy support to provide a filter to >> java.io.File#listFiles and am not having any luck: I

Proxy question

2008-09-07 Thread Tom Emerson
ompiler$InstanceMethodExpr.eval(Compiler.java:1087) at clojure.lang.Compiler$InvokeExpr.eval(Compiler.java:2568) at clojure.lang.Compiler.eval(Compiler.java:3780) at clojure.lang.Repl.main(Repl.java:75) If I don't include the filter in the call to the listFiles method, then it works fine.