On Mon, Oct 13, 2008 at 11:14 PM, Stuart Halloway
[EMAIL PROTECTED] wrote:
Hi Patrick,
How about:
(defmulti length (fn [x]
(if (= :stateMachine (:class x))
(:state x)
(:class x
(defmethod length :yardstick [x] 36)
(defmethod
I humbly present my first steps toward an Clojure Eclipse plugin
(http://code.google.com/p/clojure-dev/).
It seems your writing your plug-in in java. I don't know anything
about Eclipse plug-ins; it should be possible (maybe not desirable) to
write the plug-in in clojure right? what are your
On Oct 2, 10:23 pm, Pascal [EMAIL PROTECTED] wrote:
Hi all,
for Michael Beauregard,
Is there a reason why setting the Main-Class field in the jar's manifest
doesn't work.
It work, and since the manifest had to be edited to set the Class-Path
why not set correctly the Main-Class ?
Great, this sounds really nice. I will have a look at it.
I created a clojure library bundle from the clojure.jar and a
second bundle that depends on the first. The seconds bundle
activator calls two clojure functions for start and stop of the
bundle passing the BundleContext to the clojure
The SQL library in clojure-contrib already does this just for that sole
purpose:
(defmacro with-connection
Evaluates body in the context of a new connection to a database then
closes it. db-spec is a map containing string values for these
required
keys:
:classname the jdbc driver
I'm getting the following error message when trying to load a 12MB clojure
file that is basically just a big hashmap of fundamental types (i.e.
strings, numbers, keywords, etc.).
java -cp
/home/pstadig/.emacs.d/clojure/target/clojure-lang-1.0-SNAPSHOT.jar:./gen
clojure.lang.Script db.clj
Thanks Markus,
I agree, awareness of sexps will be very important. Sounds like I
have some research to do with clojure-mode.
Casey
On Oct 14, 8:27 am, mac [EMAIL PROTECTED] wrote:
I use eclipse daily at work so I'm pretty used to it, would be very
nice with a clojure plugin.
Are you taking
On Oct 14, 1:55 pm, Paul Stadig [EMAIL PROTECTED] wrote:
I'm getting the following error message when trying to load a 12MB clojure
file that is basically just a big hashmap of fundamental types (i.e.
strings, numbers, keywords, etc.).
java -cp
Thanks, Rich. Reading made the difference. I was confused because I was able
to load smaller data structure literal files, but it would choke on the 12MB
file. That's why I thought there was something about the way the larger file
was being loaded.
I think I avoided using read because it needed a
Writing Eclipse plugins in Clojure is very interesting is a long term
goal. In order to pull that off, I would need to extend/implement
Eclipse platform classes and interfaces in Clojure, and export these
classes in an Eclipse plugin, which is an OSGi bundle.
Scala rewrote their Eclipse plugin
On Oct 13, 11:01 pm, CuppoJava [EMAIL PROTECTED] wrote:
Is there anyway to do the following with the existing multi-method
facilities?
There is a general multi-method length(object) that splits off to
different methods depending on the :class of the object.
And then specifically for
I'm also not completely happy with the usefulness of update-in.
However I don't see how this improves things a lot.
(update-in m [:a :b] + 2) can be written as:
(update-in m [:a :b] (partial + 2)) or
(update-in m [:a :b] #(+ 2 %))
both of which are more readable and more self-documenting IMO.
I have. I just had to add /home/pstadig/gen to
swank-clojure-extra-classpaths. When I start emacs (from my Application
menu) it starts in my home directory. If you started emacs in a different
directory, then I guess you would just have to add [THAT DIR]/gen to the
classpath.
Paul
On Tue, Oct
Hi Matt,
I don't have a Mac easily available, so unfortunately I can't run
tests on my own.
Could you tell me what you have set in:
C-h v swank-clojure-extra-classpaths
And also the output of evaluating:
M-: (swank-clojure-cmd)
Thanks,
- Jeff
On Oct 14, 12:49 pm, Matthew D. Swank [EMAIL
I am attempting to work Clojure (at least partially) into my job, but
in doing so I wonder how many of you here use it at your own jobs as
opposed to relegating it to hobby.
-m
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
On Oct 14, 2008, at 3:49 PM, Matthew D. Swank wrote:
Anyone using clojure on a mac?
I am. I specify which clojure slime should run using Swank Clojure
Binary (in customize). In my shell script, I specify my classpath
using a -cp $DIRS command line argument and also specify a place to
Wow -- I didn't know about that one! I'd have included it for-sure if
I had.
There were a few that hit the editing room floor, including a
keyboard shaped waffle iron.
On Oct 14, 2008, at 7:51 AM, Michel Salim wrote:
On Mon, Oct 13, 2008 at 6:13 PM, estherschindler
[EMAIL PROTECTED]
On Oct 14, 10:04 am, Asbjørn Bjørnstad [EMAIL PROTECTED] wrote:
On Oct 2, 10:23 pm, Pascal [EMAIL PROTECTED] wrote:
Hi all,
for Michael Beauregard,
Is there a reason why setting the Main-Class field in the jar's manifest
doesn't work.
It work, and since the manifest had to be
On Oct 13, 9:51 pm, jim [EMAIL PROTECTED] wrote:
Rich,
I've been working with refs tonight and I appreciate the validate-fn
addition. Makes my life a lot easier.
From reading the docs, 'ensure' keeps a ref from changing inside a
dosync. But if accesses to refs are contained in function
On Oct 14, 10:04 am, Asbjørn Bjørnstad [EMAIL PROTECTED] wrote:
[..snip..]
So it is not possible to put the clj files into the jar so that no
unzipping
is neccessary? I tried, but my java/jar knowledge is basically zero.
--
-asbjxrn
it is definitely possible. To make a jar that
Just a data-point:
OS: Windows-XP
CPU: Pentium-IV 2.8 Ghz
Mem: 504 MB
JDK:1.6u10rc
Startup time of swank-clojure rev. 1064: 6 s.
Startup time of swank-clojure rev. 1068: 120 s!
When I get home, I can see if the difference is as dramatic in Linux
x68_64 and OS-X PPC32.
Hello,
On 14 Okt., 16:58, Randall R Schulz [EMAIL PROTECTED] wrote:
I have heard it claimed (on one of the Scala lists, I think)
that patterns themselves are an anti-pattern...
I think there are always patterns. They are just different. In
Clojure there is maybe the Driver Function pattern:
Hi all,
After a short break from hacking in Clojure I am back and eager to try
out all the new features but I am having trouble getting familiar with
the new lib/namespace feature.
I want to use the zip-filter library so at the REPL I tried this:
(require 'clojure.contrib.zip-filter :as zf)
Well, there's also gen-class... I'm still getting to know clojure...
On Oct 14, 1:35 pm, Casey Marshall [EMAIL PROTECTED] wrote:
Writing Eclipse plugins in Clojure is very interesting is a long term
goal. In order to pull that off, I would need to extend/implement
Eclipse platform classes
On Oct 14, 2008, at 5:24 PM, Paul Drummond wrote:
I want to use the zip-filter library so at the REPL I tried this:
(require 'clojure.contrib.zip-filter :as zf)
which failed with:
java.lang.Exception: Unable to resolve symbol: zf in this context
The zf needs a quote as well as
On Tuesday 14 October 2008 14:17, Matthew D. Swank wrote:
Just a data-point:
OS: Windows-XP
CPU: Pentium-IV 2.8 Ghz
Mem: 504 MB
JDK:1.6u10rc
Startup time of swank-clojure rev. 1064: 6 s.
Startup time of swank-clojure rev. 1068: 120 s!
You managed to slow it down by a factor of 20??
I
Hi,
I humbly present my first steps toward an Clojure Eclipse plugin
(http://code.google.com/p/clojure-dev/). So far, here's where its at:
* Clojure nature, project type and builder (which doesn't do much
yet).
* Added a Clojure REPL to the console. You can open it with the New
Console button
On Mon, Oct 13, 2008 at 6:13 PM, estherschindler
[EMAIL PROTECTED] wrote:
7 Cool, Weird and Useful Computer Keyboards
Not every computer keyboard or input device is a boring hunk of
plastic. We look at several ergonomic, wireless, high-tech and just
plain fun keyboards to brighten your day and
It sounds like all we really need is a single clojure thread which
handles all access to Swing/AWT/Whatever. Since an additional
complaint is that Swing is too imperative, it sounds like both
problems could easily be solved at once.
I'd personally like for the declarations to be done using
Hi,
On 14 Okt., 22:13, Fogus [EMAIL PROTECTED] wrote:
I am attempting to work Clojure (at least partially) into my job,
but in doing so I wonder how many of you here use it at your own
jobs as opposed to relegating it to hobby.
I'm using Clojure at my job, but mainly to make my life easier.
On Oct 14, 4:48 pm, Randall R Schulz [EMAIL PROTECTED] wrote:
On Tuesday 14 October 2008 14:17, Matthew D. Swank wrote:
Just a data-point:
OS: Windows-XP
CPU: Pentium-IV 2.8 Ghz
Mem: 504 MB
JDK:1.6u10rc
Startup time of swank-clojure rev. 1064: 6 s.
Startup time of
I'm one of about a dozen developers on a 250 kloc Java codebase that
has a DSL of sorts in it: boolean predicate trees representing
targeting for ad campaigns. I write, among other things, tree-
rewriting compilers that turn those trees into SQL where clauses,
scheduling buckets, floating point
I am in the market for a phone and it would be so cool to have clojure
on it. Has anyone tried this yet?
--
The Mafia way is that we pursue larger goals under the guise of
personal relationships.
Fisheye
--~--~-~--~~~---~--~~
You received this message
33 matches
Mail list logo