Tim Johnson wrote:
I have evaluated clojure for the last couple of days, and it is both my own
professional decision and my recommendation to the professional organizations
that I belong to and report to that clojure is not ready for prime time.
[snip]
I agree that Tim was a bit over-reacting;
I'm happy that this guy self eliminated himself from clojure
community. But experience tells me not to be so sure. His kind tends
to come back and unfortunately is very persistent.
If downloading couple of jar files and dropping them into the
classpath is too much for him, then he is definitelly
On Mon, Mar 22, 2010 at 1:43 PM, Meikel Brandmeyer wrote:
> Hi,
>
> On Mar 22, 7:13 am, Per Vognsen wrote:
>
>> As a solution, I factored the reify out into a deftype:
>>
>> http://gist.github.com/339834
>
> A short note: you don't have to use :keyword notation in the methods.
> The attributes of
I love clojure but I think it's unnecessary it doesn't ship with a simple
clj and a clj.bat script out of the box, yeah it's easy to run it with jvm,
but who want to type
java -server -Djava.ext.dirs=./lib:/opt/bin/lib -cp
~/.emacs.d/lisp-packages/swank-clojure jline.ConsoleRunner clojure.lang.Rep
On 21 Mar 2010, at 20:34, Fogus wrote:
(defmethod clojure.core/print-method ::Piece [piece writer] ???what
goes
here???)
(defmethod clojure.core/print-method ::Piece
[piece writer]
(.write writer (str (:number piece) (:letter piece)) 0 2))
Extending Piece to provide a str method can repla
On Mon, Mar 22, 2010 at 5:39 AM, Michał Marczyk
wrote:
>
> Not sure if I want to draw any particular conclusion from this...
> Probably not, since I'm not yet done wondering to which degree I might
> be correct in thinking it. :-) I do want to stress once again the need
> for benchmarking with exp
On 22 Mar 2010, at 07:43, Meikel Brandmeyer wrote:
No. The "problem" is, that for each type there is a unique print-
method installed by deftype. You have to re-define this method and
call the method for clojure.lang.IDeref directly. (See also above
paste.)
It may be easier to do a
(r
Hi Andrzej,
I'm not a Petri net specialist too, but I dont see how one could
simulate the view of a Clojure programmer onto STM, without simulation
too the stuff programmers doesnt see: Richs under-the-hood-magic.
Regards, alux
Andrzej schrieb:
> On Mon, Mar 22, 2010 at 4:36 AM, alux wrote:
> >
Thank you Stuart,
this closes some of my thinking loops.
Greetings from Europe, alux
Stuart Sierra schrieb:
> Maven has a default search path, but it only works for the standard
> plugins distributed by Apache.
>
> To use the Clojure plugin (any of the clojure:* commands) the pom.xml
> must cont
Indeed. Petri nets are based on the idea of synchronization via
localized token passing; STM tries to create an illusion of
synchronization-free serial execution which explicitly supports
non-local 'spooky action at a distance' for references. Petri nets are
not a very useful modeling tool here.
This is definitely flamebait. However, he has a point. Perhaps we
should make it clear on the Getting Started page that deploying Java
is a prerequisite to deploying Clojure, and include links to resources
on how to do that for the platform you are on. It's presently unclear
to anyone without a
To add the perspective of a true newbie to this dogpile, I'm going to have
to say that the OP was just plain wrong. He made a major mistake -- wanting
to compile clojure for himself on a platform that's not exactly friendly to
Java development in the first place (Slackware, not Linux in general) -
This is the follow-up code I wrote to help me understand JMS-Topic
(javax.jms.Topic).
Regards,
John
(ns jms.jms-topic
(:use [jms.jms-test :only (get-initial-context
get-message-text)])
(:import (javax.jms Session MessageListener)))
(defn publish-term-message-to-
On 2010 Mar 21, at 11:52 PM, Cosmin Stejerean wrote:
On Sun, Mar 21, 2010 at 10:20 PM, Luc Préfontaine > wrote:
Yes we could have a complete package to run Clojure from the shell
command line but how far could someone go with this
to build a workable system without an IDE ?
[...]
Comments any
Hi alux, Andrej,
Thanks!
I'm still trying to understand how STM works in Clojure, so I would
be happy if someone could tell me what's the relationship between
Petri nets and the STM model.
Is Petri nets analogous to the STM? If you have any good online
resource, I would be very grateful if yo
On Mon, Mar 22, 2010 at 2:19 PM, Joel Westerberg
wrote:
>
> Every time I've started up with a clojure project I've had to spend a few
> hours fiddling with the environment, not that I don't do that with other
> languages, but it would be nice with an officially sanctioned solution for
> setting up
Is my first impression right or wrong ?
Is Clojure harder to setup from Windows for beginners ?
Would an installer (.msi) help by hiding Java related details and
providing some basic scripts to run it ?
Luc P.
On Mon, 2010-03-22 at 16:48 +0530, Martin DeMello wrote:
> On Mon, Mar 22, 2010 at 2
Haven't tried setting it up on windows, but an msi that hid the java
details would be a nice plus, provided hat the abstraction never
leaked (i.e. that you could do all the basic clojure operations
without having to stop and edit or bypass the scripts).
martin
On Mon, Mar 22, 2010 at 5:01 PM, Luc
I use OS X and had only minor trouble getting Clojure to run the first
time. But even minor trouble still has a disproportionate effect on
someone's first impression. The out-of-box experience matters for
everything and programming languages are no exception. Eclipse is a
good example of a Java dev
I'd agree with that, I've setup Clojure on Linux, Mac and Windows and I found
Windows the most difficult. Granted, I virtually never use Windows, but it
felt like I was fighting it by being at the command line, but had no choice but
to be there.
On 22 Mar 2010, at 11:31, Luc Préfontaine wrote:
Don't twist my post away from it's purpose...
I am not making an IDE a pre-requisite for learning purposes.
The original poster was talking about getting Clojure usable by
corporations... he was not talking about
academic learning. Too bad he was not aware that there are other IDEs
available othe
A bit off topic, but I'm hoping someone here will know - is there a
vector canvas available for the jvm? I mean something like tk's
canvas, where you can draw vector objects that retain their own
identity, and can independently respond to mouse clicks.
martin
--
You received this message because
On Mon, Mar 22, 2010 at 5:13 PM, Per Vognsen wrote:
> good example of a Java developer-oriented application with a good
> out-of-box experience on all platforms. Shell scripts for UNIX and
> installers for Windows and OS X would go a long way towards improving
> that for Clojure.
In my opinion, a
Note that I didn't propose an installer except for OS X and Windows.
Only a DWIM shell script.
-Per
On Mon, Mar 22, 2010 at 7:04 PM, Ramakrishnan Muthukrishnan
wrote:
> On Mon, Mar 22, 2010 at 5:13 PM, Per Vognsen wrote:
>> good example of a Java developer-oriented application with a good
>> ou
On Mon, Mar 22, 2010 at 8:59 PM, Martin DeMello wrote:
> A bit off topic, but I'm hoping someone here will know - is there a
> vector canvas available for the jvm? I mean something like tk's
> canvas, where you can draw vector objects that retain their own
> identity, and can independently respond
Hi,
I'm attempting to write some Clojure code to work on the 80legs
crawling service. The current code is available at
http://github.com/pingles/crawly/
(note there's not much to it so far).
80legs impose some security restrictions to ensure you can't do
anything too dangerous when it's running
On Mar 20, 2010, at 2:50 PM, cageface wrote:
So will deftype/protocol be the recommended, idiomatic way to
implement ADTs in Clojure 1.2?
Yes.
Will the current map/struct based
approaches essentially be deprecated?
These are two different things. deftypes will work fine with map-based
On Mar 20, 2010, at 3:56 AM, Stuart Halloway wrote:
The questions below refer to the gist at https://gist.github.com/336674/9ab832a86d203731c6379404d20afded79fe5f5b
and to protocols in general:
(1) Clojure automatically types hints the first argument when
extending a protocol to an interfa
On Mar 21, 2010, at 8:29 AM, Andrzej wrote:
On Sun, Mar 21, 2010 at 6:37 PM, Jarkko Oranen
wrote:
Rich has done some work on using the JDK7 ForkJoin Library to
parallelise map and reduce over vectors, since they are already
internally structured as trees. It hasn't been touched in a while,
> I agree with Stuart that the user experience should be friendly on all
> supported platforms.
I also agree. The best setup experience I've had so far is using
NetBeans with the Enclojure plugin.
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To po
On Mon 22/03/10 11:31 , "LucPréfontaine" lprefonta...@softaddicts.ca sent:
> Is my first impression right or wrong ?
> Is Clojure harder to setup from Windows for beginners ?
> Would an installer (.msi) help by hiding Java related details and
> providing some basic scripts to run it ?
I think the
On Mon, Mar 22, 2010 at 7:20 PM, Rich Hickey wrote:
>
> On Mar 20, 2010, at 3:56 AM, Stuart Halloway wrote:
>
>> The questions below refer to the gist at
>> https://gist.github.com/336674/9ab832a86d203731c6379404d20afded79fe5f5b and
>> to protocols in general:
>>
>> (1) Clojure automatically types
> In my opinion, atleast in the GNU/Linux world, it should be left to
> distributors to do this job. On Debian for instance, one just need to
> do `apt-get install clojure clojure-contrib' to get clojure installed.
It's equally simple on the Mac with Homebrew [1]:
$ brew install clojure clojure-c
On Mon, Mar 22, 2010 at 7:59 AM, Martin DeMello wrote:
> A bit off topic, but I'm hoping someone here will know - is there a
> vector canvas available for the jvm? I mean something like tk's
> canvas, where you can draw vector objects that retain their own
> identity, and can independently respond
On Mon, Mar 22, 2010 at 7:42 AM, Paul Ingles wrote:
>
> I'm trying to find a way of ensuring that when the Clojure runtime
> kicks in the class loader can be bound to something provided from the
> Java adapter side (see
>
> http://github.com/pingles/crawly/blob/master/src/com/eightylegs/customer/
Luc,
Windows users should be good to go. Clojurebox, Enclojure & CCW are
ready for use for any Java dev with some experience. As for the
installation process, pick you poison:
http://vimeo.com/tag:install_clojure
Sorry to self-post,
Sean
On Mar 22, 7:31 am, Luc Préfontaine
wrote:
> Is my firs
FWIW Michael it was your ClojureX was what got me going best in the beginning,
but on Mac OS X, not Windows. Getting a minimal clojure-aware editing setup was
a little harder -- the emacs-setup stuff you had in an earlier version of
ClojureX got me started there too, but I had to do some other
Hi Ryan,
well, to describe in the terms of Petri nets how the Clojure STM is
built? Thats a good topic for a thesis, but rather hard to do in news
group articles.
If you try to understand how to use the STM in Clojure, Petri nets
probably will not help you. STM rather asks you to forget the stuff
Hello,
I try to get comfortable with the maven clojure plugin, but am still
fighting.
Precondition: I'm bound to use M$ Windows (XP currently) at my job, so
I want to get stuff running there.
The clojure:repl Is running now. But when I start typing, I dont see
stuff. The characters I type are ec
On Mon, Mar 22, 2010 at 6:05 PM, Andrzej wrote:
> On Mon, Mar 22, 2010 at 8:59 PM, Martin DeMello
> wrote:
>> A bit off topic, but I'm hoping someone here will know - is there a
>> vector canvas available for the jvm? I mean something like tk's
>> canvas, where you can draw vector objects that r
think about the difference between putting flash or python on a machine
compared to clojure. there's more of a system-level "path" feel to those
things (even though each user can have their own environment). I mean, you
can add a clj script to your path and get the same effect, but that's what's
On Mar 21, 2010, at 8:50 PM, Stuart Sierra wrote:
No, but you can change the configs and recompile.
Clojure itself uses Ant, so "ant" on a machine with only Java 1.5
should do the trick. To install that custom JAR in your local Maven
repository, download the "Maven Ant Tasks" JAR and run:
ant
On Mon, Mar 22, 2010 at 1:26 AM, cej38 wrote:
> I am a physicist by training and practice, this means that I am an
> expert on Fortran 95. To say my exposure to Java is minimal would be
> generous. And until last year when I heard about Clojure from a
> friend, I thought LISP was a speech imped
The questions below refer to the gist at https://gist.github.com/336674/9ab832a86d203731c6379404d20afded79fe5f5b
and to protocols in general:
(1) Clojure automatically types hints the first argument when
extending a protocol to an interface or class, which is great. But
you cannot override
I have to say that while I'm sorry that we didn't snag the original
poster
as a Clojure user, he has actually done us a real favor. The most
important
customer is the pissed off customer who tells you why he is pissed
off. You
don't have to take everything he says to heart, but it is always worth
l
On Mon, Mar 22, 2010 at 9:40 PM, Rich Hickey wrote:
>
> You really do need to look at par, and fork/join as well. In particular,
> your desire for even partitioning and balancing is obviated by work
> stealing. If you think about it, you'll see that that would become
> immediately necessary as soo
On 22 Mar 2010, at 14:12, Per Vognsen wrote:
Even if the functions can be written in terms of the core protocol,
putting them in the protocol makes it possible to implement
higher-performance specialized versions for some containers while
supplying default implementations in terms of the core pr
Actually, this is more complicated than I thought. The build
processes will use whatever default version of Java is installed
locally.
Maven has config options for the Java *compiler* version to use, but
that will only work for .java source files (of which there are non in
contrib). The version
By the way, Ant has the same problem: you can specify a target JDK
version in the "javac" task, but not the "java" task. So the Clojure
compiler runs with the default "java" executable on the local machine.
-SS
On Mar 22, 11:54 am, Stuart Sierra
wrote:
> Actually, this is more complicated than
I looked at these videos and they are a very good starting point.
Then do we have a communication problem getting these things known ?
Are these videos listed on the "Getting started" page ?
What about using contrib ? That would be the first "classpath" problem a
newcomer would face.
It looks to
>>> lookup (find-protocol-method) over the method invocation itself. Is that the
>>> right way to summarize the performance implications?
>>
>> No, since the result is cached. The real every-call overhead is having to
>> go through the var to detect changes to the protocol, vs the inline-defined
>>
Yes, yes and yes: The videos are great, and all of the information is out
there, but it was hard for me to find as I first waded in. And getting contrib
to work was one of my first problems. BTW I'd also like to reinforce that
although full IDEs aren't necessary to begin -- and besides they're
Hmm... maybe something like this?
http://hackage.haskell.org/platform/
Or this?
http://www.openoffice.org/
Sean
On Mar 22, 12:39 pm, Lee Spector wrote:
> Yes, yes and yes: The videos are great, and all of the information is out
> there, but it was hard for me to find as I first waded in. And
Before someone dings me on the race condition, imagine I had factored
those repeated @cache calls into a (let [value# @cache] ...)
expression. The other thing I'm missing is a check for whether the
protocol has been changed since the cache entry was created; this
would be done by also maintaining a
Hi guys,
I am running Clojure on OS X Snow Leopard, 64bit, Java 1.6. I've been
developing a little app using Lein, Swank and Emacs, and now I am
having trouble getting Nailgun to work properly.
I'm not in front of my usual PC right now so I may get a few things
wrong; but here is what I know.
- M
Hey everyone
I've come across a few situations where the print-json multi-method
does not cover certain types that may be desirable to have (ex.
java.math.BigDecimal and java.util.Date)
It's really easy to hack your way around this, but I was just
wondering if there's any demand for a change to t
On Mar 22, 10:54 am, Stuart Halloway
wrote:
> >> The questions below refer to the gist
> >> athttps://gist.github.com/336674/9ab832a86d203731c6379404d20afded79fe5f5b
> >> and to protocols in general:
>
> >> (1) Clojure automatically types hints the first argument when
> >> extending a protoc
Do we really care what they are built with, or only that they target
1.5? (i.e. javac's -target option)
On Mar 22, 2010, at 11:54 AM, Stuart Sierra wrote:
Actually, this is more complicated than I thought. The build
processes will use whatever default version of Java is installed
locally.
On Mar 22, 2010, at 12:13 PM, Luc Préfontaine wrote:
I looked at these videos and they are a very good starting point.
Then do we have a communication problem getting these things known ?
Are these videos listed on the "Getting started" page ?
They are now:
http://clojure.org/getting_started
When I try to use JColorChooser in Clojure I get the followinf error:
Exception in thread "AWT-EventQueue-0"
java.lang.IllegalArgumentException: No matching method found:
showDialog for class javax.swing.JColorChooser
Shouldn't showDioalog be there? What and I doing wrong. Here's the
code:
(
I'll try this out since I'm stuck and wanted to get out of the
business of building my own versions of clojure/-contrib (hence the
move to maven).
What do other projects do that have maven repos with similar
contraints? Are there separate entries in the repo?
On Mar 22, 3:53 pm, Rich Hickey wrot
The new version of the maven-clojure-compiler plugin now supports the
toolchains API to solve this ( running maven under 1.6, compiling with 1.5)
but that won't help clojure itself:
You can read more about this at:
http://maven.apache.org/guides/mini/guide-using-toolchains.html
I really need t
`showDialog` is a static method. Maybe something like below would work?
(JColorChooser/showDialog parent "Choose Color" bisque)
Allen
--
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
I think the problem is that you are try to use a static method lake an
instance method. I was able to get the following to work:
(import javax.swing.JColorChooser)
(JColorChooser/showDialog nil "Test" java.awt.Color/BLACK)
Sean
On Mar 22, 4:51 pm, WoodHacker wrote:
> When I try to use JColorC
I'll certainly agree that it should be as easy as possible to get
started in Clojure, but I really don't think that the kind of people
that can't use anything without a windows installer are going to get
very far with Clojure in any case.
I mean, if it's too much to install java, unzip a file and
There are a ton of people who are ready for dabbling with Clojure but
aren't ready for production systems. You'd be surprised how linearly
independent system administration skills and software development
skills really are. They aren't quite orthogonal, but it's amazingly
close.
On Mar 22, 5:36
Really no ideas?
Hm.
I dont know what to do too.
Reagrds, alux
--
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
Phil,
I've sent you a pull request with the refactoring of clojure-mode. If
it looks ok to you, I was wondering if you might perhaps like a second
one to include instructions to setup Clojure highlighting in
swank-clojure's readme?
Sincerely,
Michał
--
You received this message because you are
On Mar 22, 2:48 pm, Sean Devlin wrote:
> There are a ton of people who are ready for dabbling with Clojure but
> aren't ready for production systems. You'd be surprised how linearly
> independent system administration skills and software development
> skills really are. They aren't quite orthogo
On Mar 22, 1:10 am, Luc Préfontaine
wrote:
> An IDE becomes a necessity as the complexity of your software is
> increasing.
>
> Now what's a complex piece of software ?
>
> Presently we have 12 components in production some being several
> thousand lines covering three languages (Java, Ruby and Cl
Disturbingly, it doesn't error, it just always returns false.
This is in version 1.1. Can someone check and see if this is still a
problem on the latest version?
Thanks,
Mark
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, se
> Subject: Re: mvn clojure:repl - no keyboard echo
>
> Really no ideas?
> Hm.
> I dont know what to do too.
Several ongoing threads related to bootstrap issues; if I'm tracking
right you're trying to run Incanter (Clojure front-end with several java
stats and graph libraries) on XP. I'm on XP a
On Mon, Mar 22, 2010 at 7:03 PM, cageface wrote:
>
> On the other hand, if you go to the "getting started" pages of Jruby,
> Groovy they're actually far more daunting (IMO) than Clojure's:
> http://groovy.codehaus.org/Tutorial+1+-+Getting+started
> http://kenai.com/projects/jruby/pages/GettingStar
If jline is a problem, does removing it from the pom's dependencies "solve"
the problem?
--
Pull me down under...
On Tue, Mar 23, 2010 at 12:07 PM, Kevin wrote:
> There's an issue floating around here about jline problems under windows...
> seems some setups use jline to give extra terminal
I agree with Sean on the near-orthogonality of sysadmin skills and the skills
needed to get a lot of Clojure as a language. I have precious few of the former
but not of the latter. And just today I had a very capable undergrad student
with programming experience in a couple of languages (but
Very helpful, thanks!
Stu
On Mar 22, 10:54 am, Stuart Halloway
wrote:
The questions below refer to the gist athttps://gist.github.com/
336674/9ab832a86d203731c6379404d20afded79fe5f5b
and to protocols in general:
(1) Clojure automatically types hints the first argument when
extending a pr
I've traced my hang issue down to these lines in NGServer
synchronized(System.in) {
if (!(System.in instanceof ThreadLocalInputStream)) {
System.setIn(new ThreadLocalInputStream(in));
System.setO
Apparently starting the server with swank-clojure-project does not
work, but starting it with "lein swank" and then connecting from Emacs
works. Perhaps this is a problem with launching from inside Emacs.
Either way, I now have something of a work around.
Brad
--
You received this message becau
78 matches
Mail list logo