Re: Transactional Synchronization in Haswell

2012-02-08 Thread Timothy Baldridge
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

- and -

2012-02-08 Thread Simon Holgate
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 subscribed to

Re: - and -

2012-02-08 Thread Tamreen Khan
- - 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 simon.holg...@gmail.com wrote: Could anyone point me to a description of - and -, please? I've seen a few references to them (e.g.

Re: - and -

2012-02-08 Thread Simon Holgate
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

Re: - and -

2012-02-08 Thread Aaron Cohen
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 histor...@gmail.com wrote: - - http://clojuredocs.org/clojure_core/clojure.core/-%3E -

Multi-agent framework vs Clojure concurrency

2012-02-08 Thread Jonathan Cardoso
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

Re: - and -

2012-02-08 Thread Baishampayan Ghose
On Wed, Feb 8, 2012 at 9:46 PM, Simon Holgate simon.holg...@gmail.com 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

Re: - and -

2012-02-08 Thread Stathis Sideris
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

Re: - and -

2012-02-08 Thread Baishampayan Ghose
On Wed, Feb 8, 2012 at 10:06 PM, Stathis Sideris side...@gmail.com 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

Re: Persistent collections and garbage collection

2012-02-08 Thread Paudi Moriarty
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

Re: Multi-agent framework vs Clojure concurrency

2012-02-08 Thread Colin Yates
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? -

Re: - and -

2012-02-08 Thread Bill Caputo
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 -- You

Re: - and -

2012-02-08 Thread Stathis Sideris
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 b.gh...@gmail.com wrote: On Wed, Feb 8, 2012 at 10:06 PM, Stathis Sideris side...@gmail.com

Re: Multi-agent framework vs Clojure concurrency

2012-02-08 Thread Jonathan Cardoso
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,

Re: - and -

2012-02-08 Thread Simon Holgate
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 Note

Suggestions for using MPI in Clojure

2012-02-08 Thread Adam Getchell
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,

Print only by clojure code

2012-02-08 Thread Simone Mosciatti
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

Re: Print only by clojure code

2012-02-08 Thread Mark Rathwell
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

Re: Domina: html in strings?

2012-02-08 Thread Bobby Calderwood
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

Re: read password from console

2012-02-08 Thread Stanley Cai
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

No show?

2012-02-08 Thread Ken Restivo
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

Re: Looking for parser generator library

2012-02-08 Thread Sanjay Dasgupta
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

Clojure CDT up, cont, down, local-names throws arity errors after hitting breakpoint

2012-02-08 Thread Sean Neilan
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:

Re: Calling all Melbourne, Australia, Clojure users

2012-02-08 Thread David Allen
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 james.so...@gmail.com wrote: Hi all, I have

noob question on lein and 1.4

2012-02-08 Thread Ambert Ho
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

Re: mixins/multiple inheritance

2012-02-08 Thread Matthias Diehn Ingesman
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

Re: Print only by clojure code

2012-02-08 Thread Benny Tsai
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):

Re: Print only by clojure code

2012-02-08 Thread Tassilo Horn
Mark Rathwell mark.rathw...@gmail.com 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.

Re: Print only by clojure code

2012-02-08 Thread Mark Rathwell
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

Re: noob question on lein and 1.4

2012-02-08 Thread Phil Hagelberg
Ambert Ho amber...@gmail.com 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,

Re: No show?

2012-02-08 Thread Stuart Sierra
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

Re: Transactional Synchronization in Haswell

2012-02-08 Thread edlich
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

Re: mixins/multiple inheritance

2012-02-08 Thread Cedric Greevey
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

Re: Print only by clojure code

2012-02-08 Thread Cedric Greevey
On Wed, Feb 8, 2012 at 3:15 PM, Tassilo Horn tass...@member.fsf.org wrote: Mark Rathwell mark.rathw...@gmail.com 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

Clojurescript options :foreign-libs (and an idea seeking opinions)

2012-02-08 Thread Dave Sann
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

Re: Suggestions for using MPI in Clojure

2012-02-08 Thread Brent Millare
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

Re: Calling all Melbourne, Australia, Clojure users

2012-02-08 Thread Glen Stampoultzis
On 7 February 2012 22:23, James Sofra james.so...@gmail.com 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

Re: Clojure CDT up, cont, down, local-names throws arity errors after hitting breakpoint

2012-02-08 Thread George Jahad
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

Re: Clojure CDT up, cont, down, local-names throws arity errors after hitting breakpoint

2012-02-08 Thread George Jahad
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 cloj...@blackbirdsystems.net wrote: Sorry about that.  As you noticed the doc here was out of date: http://georgejahad.com/clojure/cdt.html

Re: mixins/multiple inheritance

2012-02-08 Thread Alex Baranosky
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 cgree...@gmail.com wrote: Is there a reason not to just use protocols for your mixins? (defprotocol Labelled whatever) (defprotocol Textfield

Re: Clojurescript options :foreign-libs (and an idea seeking opinions)

2012-02-08 Thread Dave Sann
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

Re: Print only by clojure code

2012-02-08 Thread Tassilo Horn
Cedric Greevey cgree...@gmail.com 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)