Hello all,
I have some scientific code written in Lisp (SBCL) that I'd like to convert
to Clojure. However, to run efficiently on clusters, I'll need to learn use
MPI.
I've looked at MPJ-Express here, http://mpj-express.org/ and I understand
that in theory it should be consumable in Clojure, and
Hi guys,
I have developed a very very little application in clojure that use an
external lib in java that i prefer do not touch.
The problem is that this lib for some weird reason (debug i guess)
print at video a bunch of information useless for me, there is any way
to avoid this problem, i mean
It's logging, and assuming the logging implementation it is using
log4j, you can specify the logging properties in a properties file, as
system properties, or set the properties in code. The easiest way is
to place a file called log4j.properties on the classpath (in the
resources directory of your
Hi David,
Luke just accepted my pull request over the weekend that addressed
this very issue.
As of Monday, you should be able to treat an HTML string like any
other DOM content, including querying with xpath and updating text and
innerHTML.
Bobby
On Jan 22, 5:26 am, David Powell wrote:
> Hi,
Thanks David and Kevin,
I tried System.console() in the code. The mystery is it could work in
clojure repl, but System.console() will return null if I put everything
into jar package. Per the spec, system.console could return null. I don't
quite understand why the two cases are different.
Best re
Hi all,
I'm curious why the "show" function got abandoned when migrating from monolithic
contrib.repl-utils to clojure.repl?
http://dev.clojure.org/display/design/Where+Did+Clojure.Contrib+Go
It looks like it would have been useful. Does anything replace it?
Thanks.
-ken
--
You received this
May I also suggest a look at VisualLangLab (http://vll.java.net/)?
It's a completely visual environment for developing (see
http://vll.java.net/EditingTheGrammarTree.html) and testing (see
http://vll.java.net/TestingParsers.html) parsers without using code/
scripts of any kind. Under the hood, its
Hi All,
I'm using Clojure 1.3.0 with CDT 1.2.6.2 on OSX Lion with Java 1.6.
I want to set a breakpoint on -main on the program to be debugged. So,
run lein repl on this program. It opens up port 8030 successfully.
(This is based off the documentation here:
http://georgejahad.com/clojure/cdt.html
Definitely interested, although I'm in Gippsland rather than Melbourne
itself so am reasonably restricted in what I can attend in the city during
the week.
When I get moving I'll join the Meetup list.
- DAemon
On 07/02/2012, at 10:23 PM, James Sofra wrote:
Hi all,
I have been discussing recen
So I bought a couple of books on Clojure and one of them tells me to
use Lein, the other tells me to download from github.
- in lein repl, (clojure-version) gives me '1.2'
- in the github d/l'd version, (clojure-version) gives me '1.4'
I googled a bit, and when I type 'lein' I don't see anything
Hm, I wrote a reply yesterday figuring it would show up today (seeing as I
accidentally double posted last time because it did not show up at once),
but that reply seems to be lost.
I see what you mean now, I think. Seeing as you will have to build your
hierarchies yourself you might try someth
Piggy-backing off Mark's answer, if it is log4j that's being used, you can
also use log4j.properties to set different logging levels for your Java
code vs. your Clojure code (assuming the code are in different packages):
http://stackoverflow.com/questions/3569395/filtering-out-log4j-messages-fro
Mark Rathwell writes:
> It's logging, and assuming the logging implementation it is using
> log4j,
Why do you know that from the information given?
Just in case the java lib in fact uses System.out/err directly, one can
redirect standard out and error to something else.
(with-open [w (clojure.
Tassilo: I don't know it , but it is the most likely probability. One would
hope that if a library is dumping to the console, or anywhere, it is done
through a standard logging lib configurable by the client. If it turned out not
to be the case, it would be evident quickly, and then try other p
Ambert Ho writes:
> So I bought a couple of books on Clojure and one of them tells me to
> use Lein, the other tells me to download from github.
>
> - in lein repl, (clojure-version) gives me '1.2'
> - in the github d/l'd version, (clojure-version) gives me '1.4'
>
> I googled a bit, and when I t
clojure.reflect/reflect gets you the same information as a big 'ole data
structure. You can pprint it for readability.
The only thing that was not ported was the formatted text output, which
would be easy enough to reproduce based on `reflect`.
-S
--
You received this message because you are
Interesting. Thanks for the good answer.
I totally forgot the JVM layer adjustments first ;-)
Best
Stefan E.
--
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
Is there a reason not to just use protocols for your mixins?
(defprotocol Labelled
whatever)
(defprotocol Textfield
whatever-else)
(defprotocol Datetimepicker
something)
(defrecord Label
Labelled
whatever ...)
(defrecord Textbox
Textfield
whatever-else ...)
(defrecord LabelledTe
On Wed, Feb 8, 2012 at 3:15 PM, Tassilo Horn wrote:
> Mark Rathwell writes:
>
>> It's logging, and assuming the logging implementation it is using
>> log4j,
>
> Why do you know that from the information given?
>
> Just in case the java lib in fact uses System.out/err directly, one can
> redirect
I think that the use of :foreign-libs to include non closure js libs in
cljs builds may be hazardous
My reasoning as as follows:
if you use :foreign-libs, you create a namespace for the library - and must
require this namespace in order for it to be included in the build.
But, if you plan to
>From what I've seen, MPI in java is not good performance wise. You take a
huge hit due to all the copying. To get good cluster performance in java,
you need to use something like Java Fast Sockets.
http://developers.sun.com/solaris/articles/fastSockets.html
http://www.des.udc.es/~juan/papers/
On 7 February 2012 22:23, James Sofra wrote:
>
> So please drop a note here, or you email me directly, to let me know if
> you are in Melbourne and interesting in catching up to chat about and hack
> Clojure.
>
>
I'd be interested.
--
You received this message because you are subscribed to the
Sorry about that. As you noticed the doc here was out of date:
http://georgejahad.com/clojure/cdt.html
It should be fixed now.
Just for your reference however that doc only describes the command
line version of CDT. If you use Emacs and Swank-clojure, it is much
easier to use swank-cdt, as you
forgot to mention that Hugo Duncan is also working on a debugger which
can
be found here:
https://github.com/pallet/ritz
On Feb 8, 10:16 pm, George Jahad wrote:
> Sorry about that. As you noticed the doc here was out of date:
>
> http://georgejahad.com/clojure/cdt.html
>
> It should be fixed no
Cedric's is the approach I would take. Like he said, use private functions
for the shared code.
On Wed, Feb 8, 2012 at 8:49 PM, Cedric Greevey wrote:
> Is there a reason not to just use protocols for your mixins?
>
> (defprotocol Labelled
> whatever)
>
> (defprotocol Textfield
> whatever-else
Having read through some of the closure compiler code - I don't think that
inserting the externs file into the build is possible - without changes to
the compiler.
I do think that support for wrapping foreign libs into a usable unit would
be a good idea.
D
--
You received this message becaus
Cedric Greevey writes:
Hi Cedric,
>> Just in case the java lib in fact uses System.out/err directly, one
>> can redirect standard out and error to something else.
>>
>> (with-open [w (clojure.java.io/writer "/dev/null")]
>> (binding [*out* w, *err* w]
>> (.noisyJavaCall1 1 2 3)
>> (.noisy
First of all, I must say, this TSX stuff is FREAKING AWESOME! I've
wanted these features for years.
So basically you're going to need two STM solutions, 1) hardware based
off of TSX 2) software based, and we'd need the ability to swap these
two models out on-the-fly. All you really need is for the
Could anyone point me to a description of "->" and "->>", please?
I've seen a few references to them (e.g. git://gist.github.com/1761143.git)
but nothing in "Programming Clojure". Google doesn't seem to like
searching for such strings.
Thanks.
--
You received this message because you are subscr
-> - http://clojuredocs.org/clojure_core/clojure.core/-%3E
->> http://clojuredocs.org/clojure_core/clojure.core/-%3E%3E
On Wed, Feb 8, 2012 at 11:16 AM, Simon Holgate wrote:
> Could anyone point me to a description of "->" and "->>", please?
>
> I've seen a few references to them (e.g. git://gist
Thank you!
S
--
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
Also, for future reference, symboihound.com is a great tool for
programmers. http://symbolhound.com/?q=-%3E+clojure
On Wed, Feb 8, 2012 at 11:18 AM, Tamreen Khan wrote:
> -> - http://clojuredocs.org/clojure_core/clojure.core/-%3E
> ->> http://clojuredocs.org/clojure_core/clojure.core/-%3E%3E
--
I'm currently working with multi-agent based systems and a teacher showed
me the benefits of using JADE framework for those kind of applications. I'm
not sure if it's better to use a framework like this one or if it's better
to take advantage of Clojure and its refs, agents, atoms
How can
On Wed, Feb 8, 2012 at 9:46 PM, Simon Holgate wrote:
> Could anyone point me to a description of "->" and "->>", please?
>
> I've seen a few references to them (e.g. git://gist.github.com/1761143.git)
> but nothing in "Programming Clojure". Google doesn't seem to like
> searching for such strings.
I've always wondered why there isn't a "thread-in-the-middle" macro
(or should it be "thread-wherever"?), with special syntax to indicate
where to thread like so:
(--> foo
(bar x _ y)
(baz _ x y)
(test x y _))
Should be easy to implement I guess...
On Feb 8, 4:29 pm, Baishampayan Ghose wr
On Wed, Feb 8, 2012 at 10:06 PM, Stathis Sideris wrote:
> I've always wondered why there isn't a "thread-in-the-middle" macro
> (or should it be "thread-wherever"?), with special syntax to indicate
> where to thread like so:
>
> (--> foo
> (bar x _ y)
> (baz _ x y)
> (test x y _))
>
> Should be
Hi Ron,
I think the persistent collections are no different from any other
collections from a GC perspective in that you control which references you
keep and for how long in your code. After "modification" some nodes may no
longer be referenced and will be eligible for GC so I'm not sure what you
If the answer is efficiency then I would respond "prove it", i.e. produce a
test harness that produces the expected load so you can measure
performance. Other factors you might consider (when choosing between any
different technology):
- maturity: how mature is each technology?
- adoptabilit
On Feb 8, 2012, at 10:16 AM, Simon Holgate wrote:
> Could anyone point me to a description of "->" and "->>", please?
Another thing to check out is Fogus' nice write up (and links) about these and
other "thrushy" combinators:
http://blog.fogus.me/2010/09/28/thrush-in-clojure-redux/
bill
--
Ah, thanks, that's a very interesting thread. To be honest I haven't
found myself in a situation where --> would be very useful, it was
more of a random thought...
On Feb 8, 4:38 pm, Baishampayan Ghose wrote:
> On Wed, Feb 8, 2012 at 10:06 PM, Stathis Sideris wrote:
> > I've always wondered why
Thank's Colin, that's what I've been thinking...
Maybe some mixing is a better approach, I really
enjoy concurrency programming with Clojure, but I think I need to try some
other libraries/languages (such as Scala as you mentioned, which is great
as well) to see where each one fits in my problem, m
My "Joy of Clojure" is on its way. Perhaps I should have waited for
its arrival before posting. Thanks for all the useful pointers.
Simon
--
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
No
42 matches
Mail list logo