Re: Clojure Terracotta - TIM

2009-11-23 Thread Sergey Didenko
it work there. Yes, I can try to help. Feel free to write me. Actually, I would like to try Clojure + Terracotta as a data layer for my Java app, so I'm more interested in adapting the changes to the latest Clojure codebase and tuning Terracotta interaction. I saw autolocking in config and now

Re: Clojure Terracotta - TIM

2009-11-18 Thread Paul Stadig
Thanks for your feedback. I was able to get it to work again and pushed some minor changes to the git repo. I downloaded Terracotta 3.1.1, and followed the instructions in the tim-clojure-1.0-SNAPSHOT/example/README. I ended up uncommenting all of the code in ClojureTerracottaConfigurator.java. I

Re: Clojure Terracotta - TIM

2009-11-17 Thread Sergey Didenko
Hi Paul, the code from [1] does not work under the latest Terracotta (3.1.1) with clojure-slim.jar's in the following combinations: 1) branch 1.0.x from [3] 2) branch 1.0.x from [3] + modified ClojureTerracottaConfigurator.java (uncommented lines) 3) [2] svn revision 1335 + modified

Re: Clojure Terracotta - TIM

2009-11-16 Thread Paul Stadig
/Doc?id=dg7c7v49_241g5t8tqsv [2] http://paul.stadig.name/2009/04/terracotta-bug-reports.html On Sun, Nov 15, 2009 at 2:47 PM, Sergey Didenko sergey.dide...@gmail.comwrote: Hi from a Clojure newbie! I have read the april thread Clojure + Terracotta Update and it looks pretty positive. A few

Re: Clojure Terracotta - TIM

2009-11-16 Thread Paul Stadig
thread Clojure + Terracotta Update and it looks pretty positive. A few question for TIM users: Is there newer version than http://github.com/pjstadig/tim-clojure-1.0-snapshot ? Are there still bugs? Can it be called production ready? Regards, Sergey. -- You received this message because

Re: Clojure Terracotta - TIM

2009-11-16 Thread Sergey Didenko
Thanks for your answer, Paul! I'm certainly going to try this TIM. Another question: You say that it requires runtime replacement of some Clojure classes but the lines that include modified *TC.java files are commented ( see ClojureTerracottaConfigurator.java from tim-clojure-1.0-snapshot ).

Clojure Terracotta - TIM

2009-11-15 Thread Sergey Didenko
Hi from a Clojure newbie! I have read the april thread Clojure + Terracotta Update and it looks pretty positive. A few question for TIM users: Is there newer version than http://github.com/pjstadig/tim-clojure-1.0-snapshot ? Are there still bugs? Can it be called production ready? Regards

Re: Clojure + Terracotta Update

2009-04-02 Thread Paul Stadig
at 7:38 PM, Rich Hickey richhic...@gmail.com wrote: On Mar 30, 5:12 pm, Paul Stadig p...@stadig.name wrote: I have gotten to the point in my Clojure + Terracotta experiment, where I believe all of the features of Clojure are functional (Refs, Atoms, transactions, etc.). I do not have a way

Re: Clojure + Terracotta Update

2009-04-02 Thread Jeffrey Straszheim
in my Clojure + Terracotta experiment, where I believe all of the features of Clojure are functional (Refs, Atoms, transactions, etc.). I do not have a way to extensively test the Clojure functionality, but I have run the clojure.contrib.test-clojure test suites successfully, as well as some

Re: Clojure + Terracotta Update

2009-03-30 Thread Rich Hickey
On Mar 30, 5:12 pm, Paul Stadig p...@stadig.name wrote: I have gotten to the point in my Clojure + Terracotta experiment, where I believe all of the features of Clojure are functional (Refs, Atoms, transactions, etc.). I do not have a way to extensively test the Clojure functionality, but I

Re: Clojure + Terracotta: We Have REPL!

2009-03-08 Thread Rich Hickey
On Mar 5, 4:23 pm, Paul Stadig p...@stadig.name wrote: I had one last, major hurdle, and was helped by Chouser (thank you!). http://paul.stadig.name/2009/03/clojure-terracotta-we-have-repl.html Still lots more to do, and probably some simple changes that could be rolled back

Clojure + Terracotta: We Have REPL!

2009-03-05 Thread Paul Stadig
I had one last, major hurdle, and was helped by Chouser (thank you!). http://paul.stadig.name/2009/03/clojure-terracotta-we-have-repl.html Still lots more to do, and probably some simple changes that could be rolled back into the Clojure codebase. However, I feel as though I've finally reached

Re: Clojure + Terracotta: We Have REPL!

2009-03-05 Thread Mark H.
On Mar 5, 12:23 pm, Paul Stadig p...@stadig.name wrote: I had one last, major hurdle, and was helped by Chouser (thank you!). http://paul.stadig.name/2009/03/clojure-terracotta-we-have-repl.html Still lots more to do, and probably some simple changes that could be rolled back

Clojure + Terracotta: the Next Steps

2009-03-03 Thread Paul Stadig
I've done some more work on Clojure + Terracotta. I moved my code into a Terracotta Integration Module (TIM), which allows the bundling and reuse of the Terracotta configuration, but also provides for class replacement so that clustered versions of some classes can be written without necessarily

Re: Clojure + Terracotta = Yeah, Baby!

2009-03-02 Thread Joseph Mikhail
- and the clojure/terracotta topic is of interest to a lot of people... It would be wonderful if someone would come and talk about the progress... Regards, Amit. http://www.meetup.com/The-Bay-Area-Clojure-User-Group/ On Mar 1, 8:37 am, Luc Prefontaine lprefonta...@softaddicts.ca wrote: We

Re: Clojure + Terracotta = Yeah, Baby!

2009-03-01 Thread Paul Stadig
I've started work on a Terracotta Integration Module for Clojure already. As I understand it, we can package up the Terracotta config as well as any replacement classes. This way we can patch Clojure temporarily until either Terracotta supports the features we need, or Clojure can be rewritten so

Re: Clojure + Terracotta = Yeah, Baby!

2009-03-01 Thread Luc Prefontaine
We will go for a TIM. Just looked at the doc and tes that would simplify our work a lot. Thank you, Luc On Sat, 2009-02-28 at 18:48 -0800, Nabib El-Rahman wrote: Hi guys, I work for Terracotta ( on the server side ) and find this work with Clojure + Terracotta very exciting. Writing

Re: Clojure + Terracotta = Yeah, Baby!

2009-03-01 Thread Amit Rathore
Are any of the folks on this thread in/around the bay area? (I know Nabib is). We're having a clojure user-group meeting on the 12th of March - and the clojure/terracotta topic is of interest to a lot of people... It would be wonderful if someone would come and talk about the progress... Regards

Re: Clojure + Terracotta = Yeah, Baby!

2009-03-01 Thread Luc Prefontaine
of the folks on this thread in/around the bay area? (I know Nabib is). We're having a clojure user-group meeting on the 12th of March - and the clojure/terracotta topic is of interest to a lot of people... It would be wonderful if someone would come and talk about the progress... Regards, Amit

Re: Clojure + Terracotta = Yeah, Baby!

2009-02-28 Thread Paul Stadig
My approach was just to share what few refs I wanted, but another approach (like Luc's) is to share everything. The obvious advantage being that you can set! the root binding of vars (like function definitions). The goal with Terracotta is to make things as transparent as possible, so I don't

Re: Clojure + Terracotta = Yeah, Baby!

2009-02-28 Thread Luc Prefontaine
1) AtomicReference is used in several places. Instead of changing it, we think we can keep it when Clojure runs locally and provide an alternative when running in shared mode. AtomicReference is optimized to be efficient in a standalone JVM. We would like to keep it that way. Eventually

Re: Clojure + Terracotta = Yeah, Baby!

2009-02-28 Thread Paul Stadig
In the Namespace case, it might be premature optimization to worry about AtomicReference being replaced. If there is a way to rewrite that code with, say, synchronized blocks, and it will work better with Terracotta, I think it would be worth doing. I don't think it would be normal usage to be

Re: Clojure + Terracotta = Yeah, Baby!

2009-02-28 Thread Luc Prefontaine
We think the same way. Our first implementation of an alternative to AtomicReference is straightforward, we will look at improving it if the need arises. It will be easier to do so when we get stats from Terracotta after running some benchmarks. There's much to do before getting there. Luc On

Re: Clojure + Terracotta = Yeah, Baby!

2009-02-28 Thread Nabib El-Rahman
Hi guys, I work for Terracotta ( on the server side ) and find this work with Clojure + Terracotta very exciting. Writing a TIM is definitely the way to go, It's a place to hide the glue until both Terracotta and Clojure catches up with each other. If you have any questions feel free to post

Re: Clojure + Terracotta = Yeah, Baby!

2009-02-28 Thread hank williams
Writing a TIM is definitely the way to go, It's a place to hide the glue until both Terracotta and Clojure catches up with each other. uhhh what is a TIM? Thanks Hank -- blog: whydoeseverythingsuck.com --~--~-~--~~~---~--~~ You received this

Clojure + Terracotta = Yeah, Baby!

2009-02-27 Thread Paul Stadig
I've recently done some experimentation with Clojure and Terracotta. I've detailed my experience at: http://paul.stadig.name/2009/02/clojure-terracotta-yeah-baby.html and shared my code at: http://github.com/pjstadig/terraclojure/tree/master/ I'm the first to admit that I'm not an expert

Re: Clojure + Terracotta = Yeah, Baby!

2009-02-27 Thread Luc Prefontaine
at: http://paul.stadig.name/2009/02/clojure-terracotta-yeah-baby.html and shared my code at: http://github.com/pjstadig/terraclojure/tree/master/ I'm the first to admit that I'm not an expert in Terracotta. This is actually my first time working with it. I was able to setup

Re: Clojure + Terracotta = Yeah, Baby!

2009-02-27 Thread Phil Hagelberg
Paul Stadig p...@stadig.name writes: I've recently done some experimentation with Clojure and Terracotta. I've detailed my experience at: http://paul.stadig.name/2009/02/clojure-terracotta-yeah-baby.html Very exciting; I'm looking forward to trying this out! Thanks for posting. -Phil

Re: Clojure + Terracotta = Yeah, Baby!

2009-02-27 Thread Paul Stadig
://paul.stadig.name/2009/02/clojure-terracotta-yeah-baby.html and shared my code at: http://github.com/pjstadig/terraclojure/tree/master/ I'm the first to admit that I'm not an expert in Terracotta. This is actually my first time working with it. I was able to setup a permanent store, and to run

Re: Clojure + Terracotta = Yeah, Baby!

2009-02-27 Thread Luc Prefontaine
at 12:20 -0800, Paul Stadig wrote: I've recently done some experimentation with Clojure and Terracotta. I've detailed my experience at: http://paul.stadig.name/2009/02/clojure-terracotta-yeah-baby.html and shared my code at: http://github.com/pjstadig/terraclojure/tree/master/ I'm

Re: Clojure + Terracotta = Yeah, Baby!

2009-02-27 Thread Rich Hickey
/2009/02/clojure-terracotta-yeah-baby.html and shared my code at: http://github.com/pjstadig/terraclojure/tree/master/ I'm the first to admit that I'm not an expert in Terracotta. This is actually my first time working with it. I was able to setup a permanent store, and to run

Re: Clojure + Terracotta = Yeah, Baby!

2009-02-27 Thread Luc Prefontaine
experience at: http://paul.stadig.name/2009/02/clojure-terracotta-yeah-baby.html and shared my code at: http://github.com/pjstadig/terraclojure/tree/master/ I'm the first to admit that I'm not an expert in Terracotta. This is actually my first time working with it. I

Re: Clojure + Terracotta

2008-10-20 Thread Alex Miller
Sorry, I was not thinking straight when I wrote part of this. We will protect you from seeing nulls by faulting values back in, even if not read under a lock. So, what you said originally there is true. There is a possibility that you can get dirty reads in this scenario but in the case of an

Re: Clojure + Terracotta

2008-10-20 Thread Rich Hickey
On Oct 20, 10:12 am, Alex Miller [EMAIL PROTECTED] wrote: Sorry, I was not thinking straight when I wrote part of this. We will protect you from seeing nulls by faulting values back in, even if not read under a lock. So, what you said originally there is true. There is a possibility that

Re: Clojure + Terracotta

2008-10-19 Thread Alex Miller
Rich, I'm the tech lead for the transparency team at Terracotta and this is not exactly correct. For example, while you can read clustered state outside of a clustered lock, it's possible for the tc memory manager to clear that state at any time, allowing you to see a null instead of the real

Clojure + Terracotta

2008-10-18 Thread Rich Hickey
On Fri, Oct 17, 2008 at 8:01 PM, Luc Prefontaine [EMAIL PROTECTED] wrote: I am not very far from tackling this issue. In our bus messaging system, we are using Terracotta with some Java components and it's a matter of weeks before we start to investigate how we can bridge Clojure and

Re: Clojure + Terracotta

2008-10-18 Thread Luc Prefontaine
Ok, I'll digest this in the next couple of weeks and have a look more closely at Clojure code and Terracotta's capabilities. I have a non-linear thinking process so it helps to have some early goals. I'll create some prototype setup here to help identify issues and run some basic tests. Thank