Re: [math] Questions on Field

2009-04-24 Thread Bill Barker
- Original Message - From: "Phil Steitz" To: "Commons Developers List" Sent: Friday, April 24, 2009 6:02 PM Subject: Re: [math] Questions on Field luc.maison...@free.fr wrote: - "Bill Barker" a écrit : I've been looking over the Field implementations, and it looks like it'

Re: [VOTE] Accept Sanselan as a commons component

2009-04-24 Thread sebb
On 25/04/2009, Phil Steitz wrote: > Phil Steitz wrote: > > > I would like to propose that we accept Sanselan as a (proper) commons > component. See [1] for background on Sanselan. We can discuss the > administrative issues in [1] as we plan and execute the svn moves and > component setup. > > >

Re: [VOTE] Accept Sanselan as a commons component

2009-04-24 Thread Phil Steitz
Phil Steitz wrote: I would like to propose that we accept Sanselan as a (proper) commons component. See [1] for background on Sanselan. We can discuss the administrative issues in [1] as we plan and execute the svn moves and component setup. Votes, please. This vote will close in 72 hours

Re: [VOTE] Accept Sanselan as a commons component

2009-04-24 Thread Phil Steitz
Phil Steitz wrote: I would like to propose that we accept Sanselan as a (proper) commons component. See [1] for background on Sanselan. We can discuss the administrative issues in [1] as we plan and execute the svn moves and component setup. Votes, please. This vote will close in 72 hours

[VOTE] Accept Sanselan as a commons component

2009-04-24 Thread Phil Steitz
I would like to propose that we accept Sanselan as a (proper) commons component. See [1] for background on Sanselan. We can discuss the administrative issues in [1] as we plan and execute the svn moves and component setup. Votes, please. This vote will close in 72 hours (1:00AM UTC 28-April

Re: [math] Questions on Field

2009-04-24 Thread Phil Steitz
luc.maison...@free.fr wrote: - "Bill Barker" a écrit : I've been looking over the Field implementations, and it looks like it's mostly done except for FieldPolynomial. I'm not really sure which SparseFieldMatrix and SparseFieldVector are also missing for now. package this

Re: Fwd: commons-logging unsuited for cross-context webapplication invocation usage - migrating to slf4j?

2009-04-24 Thread John Bollinger
Hi Ate, I'm glad your switch to SLF4J is doing what you need it to do, and I am in no way trying to persuade you to change course there. I do think, however, that the problem of classes loading required resources via the wrong ClassLoader could easily manifest in webapp / portlet components ot

Re: Fwd: commons-logging unsuited for cross-context webapplication invocation usage - migrating to slf4j?

2009-04-24 Thread Ate Douma
Mark Thomas wrote: Ate Douma wrote: Mark Thomas wrote: I have seen similar issues in Tomcat's internal logging with java.util.logging, log4j and commons-logging. Why will this be any different with slf4j? Because sfl4j does not use the ContextClassLoader to determine the logger instance but co

Re: Fwd: commons-logging unsuited for cross-context webapplication invocation usage - migrating to slf4j?

2009-04-24 Thread Ate Douma
Hi John, While your example proxy solution is nice enough by itself, imo its way too much over-engineering for the issue at hand. We're trying to get rid of the ContextClassLoader use for *only* the logging, not add more overhead to it! And, in practice this solution wouldn't work for us anyway

Re: [DISCUSS] Sanselan as a Commons library

2009-04-24 Thread Niall Pemberton
On Fri, Apr 24, 2009 at 8:54 AM, Carsten Ziegeler wrote: > Niall Pemberton wrote: >> >> Yes I think saying 3 committers is a bit mis-leading - since Sanselan >> entered the incubator Carsten has made the 2nd most commits but that >> is only 16 commits and he hasn't committed for over a year. Also

Re: [math] Mutable "Vector3D"

2009-04-24 Thread John Bollinger
sebb wrote: > OK, that makes sense. > > However, only objects that are immutable from construction are > thread-safe without needing some kind of synchronisation. > > Passing it to a newly created thread would be OK (Thread.start() is > synch.), but if it is passed to an existing thread some other

Re: [math] Mutable "Vector3D"

2009-04-24 Thread Ted Dunning
On Fri, Apr 24, 2009 at 11:50 AM, John Bollinger wrote: > Ted Dunning wrote: > > My view is that once it is immutable it is immutable. Restoring > mutability > > is done by making a new copy [...]. > > That position is stronger than you make it sound. Changing a supposedly > immutable object so

Re: [math] Mutable "Vector3D"

2009-04-24 Thread John Bollinger
Ted Dunning wrote: > On Fri, Apr 24, 2009 at 11:50 AM, John Bollinger wrote: > > > Ted Dunning wrote: > > > My view is that once it is immutable it is immutable. Restoring > > mutability > > > is done by making a new copy [...]. > > > > That position is stronger than you make it sound. Changing a

Re: [math] Mutable "Vector3D"

2009-04-24 Thread John Bollinger
Ted Dunning wrote: > My view is that once it is immutable it is immutable. Restoring mutability > is done by making a new copy [...]. That position is stronger than you make it sound. Changing a supposedly immutable object so that it is mutable would itself be a mutation. If it were possible th

Re: [math] Mutable "Vector3D"

2009-04-24 Thread Ted Dunning
That is a good and subtle point. On Fri, Apr 24, 2009 at 11:34 AM, sebb wrote: > OK, that makes sense. > > However, only objects that are immutable from construction are > thread-safe without needing some kind of synchronisation. > > Passing it to a newly created thread would be OK (Thread.start

Re: [math] Mutable "Vector3D"

2009-04-24 Thread sebb
OK, that makes sense. However, only objects that are immutable from construction are thread-safe without needing some kind of synchronisation. Passing it to a newly created thread would be OK (Thread.start() is synch.), but if it is passed to an existing thread some other means of synch. would be

Re: [math] Mutable "Vector3D"

2009-04-24 Thread Ted Dunning
My view is that once it is immutable it is immutable. Restoring mutability is done by making a new copy and in the context of the applications I was describing is essentially never done. On Fri, Apr 24, 2009 at 10:39 AM, sebb wrote: > allow a programmer to make a mutable copy that > > is manip

Re: [math] Mutable "Vector3D"

2009-04-24 Thread sebb
On 24/04/2009, Ted Dunning wrote: > With small objects like this, it is generally a very clear win to have > immutable objects. > > With larger matrix and vector objects, the advantage is not so clear. It is > often very nice to mutate large matrices in place via views. This usually > happen

Re: [math] Mutable "Vector3D"

2009-04-24 Thread Ted Dunning
With small objects like this, it is generally a very clear win to have immutable objects. With larger matrix and vector objects, the advantage is not so clear. It is often very nice to mutate large matrices in place via views. This usually happens in the context of a single class such as a decom

Re: Fwd: commons-logging unsuited for cross-context webapplication invocation usage - migrating to slf4j?

2009-04-24 Thread Mark Thomas
Ceki Gulcu wrote: > Mark Thomas wrote: >> >> Sorry if I wasn't clear. I intended that the slf4j jars and the third >> party jars were all in WEB-INF/lib >> >> My concern in this scenario is more that this j.u.l, as part of the JRE, >> will be loaded by the System class loader and hence loggers are

Re: Fwd: commons-logging unsuited for cross-context webapplication invocation usage - migrating to slf4j?

2009-04-24 Thread Ceki Gulcu
Mark Thomas wrote: Sorry if I wasn't clear. I intended that the slf4j jars and the third party jars were all in WEB-INF/lib My concern in this scenario is more that this j.u.l, as part of the JRE, will be loaded by the System class loader and hence loggers are registered JVM wide rather than pe

Re: Fwd: commons-logging unsuited for cross-context webapplication invocation usage - migrating to slf4j?

2009-04-24 Thread John Bollinger
Mark Thomas wrote: > John Bollinger wrote: >> See attached sample code for a class that would support this behavior. > > Your attachment didn't make it through. Could you post it in-line? Sure: /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreeme

Re: [math] Mutable "Vector3D"

2009-04-24 Thread Eric Bowman
luc.maison...@free.fr wrote: > The points above are not theoretical one. Vector3D was mutable and it > cost us weeks of works at that time to track difficult bugs in a > complex application. This was not a simple problem of communication: I > was involved in all teams from commons-math to high leve

Re: Fwd: commons-logging unsuited for cross-context webapplication invocation usage - migrating to slf4j?

2009-04-24 Thread Mark Thomas
John Bollinger wrote: > See attached sample code for a class that would support this behavior. Your attachment didn't make it through. Could you post it in-line? Mark - To unsubscribe, e-mail: dev-unsubscr...@commons.apache.o

Re: Fwd: commons-logging unsuited for cross-context webapplication invocation usage - migrating to slf4j?

2009-04-24 Thread Mark Thomas
Ceki Gulcu wrote: > > > Mark Thomas wrote: >> >> Two web applications both using slf4j with java.util.logging and both >> using a third party library that has a logger called "MyLogger". >> >> When web app one uses the library, slf4j will return - via a call to >> j.u.l.getLogger() - a new logger

Re: [math] Mutable "Vector3D"

2009-04-24 Thread luc . maisonobe
- "Gilles Sadowski" a écrit : > Hello. Hi Gilles, > > Would you consider implementing a _mutable_ 3D-vector class? > A crude benchmark which I just did shows that re-using the same object > is > always (if sometimes only slightly) more efficient than re-creating > it. 3D vectors have bee

Re: Fwd: commons-logging unsuited for cross-context webapplication invocation usage - migrating to slf4j?

2009-04-24 Thread John Bollinger
Mark Thomas wrote: > Ate Douma wrote: > > When Pluto needs to "aggregate" the content of this TestPortlet, it > > invokes it render(PortletRequest, PortletResponse) method using a > > "cross-context" call from the Pluto web application to the "test" web > > application. > > The TestPortlet.render

[math] Mutable "Vector3D"

2009-04-24 Thread Gilles Sadowski
Hello. Would you consider implementing a _mutable_ 3D-vector class? A crude benchmark which I just did shows that re-using the same object is always (if sometimes only slightly) more efficient than re-creating it. [I can help with the editing work.] Best, Gilles

Re: Fwd: commons-logging unsuited for cross-context webapplication invocation usage - migrating to slf4j?

2009-04-24 Thread Jörg Schaible
Hi Ate, Ate Douma wrote at Freitag, 24. April 2009 02:09: > Hi all, > > Thanks to Dennis for bringing this to my attention :) thanks for providing now the appropriate information and for the level of detail. It is only possible to react if such information is provided. - Jörg ---

Re: Fwd: commons-logging unsuited for cross-context webapplication invocation usage - migrating to slf4j?

2009-04-24 Thread Ceki Gulcu
Mark Thomas wrote: Two web applications both using slf4j with java.util.logging and both using a third party library that has a logger called "MyLogger". When web app one uses the library, slf4j will return - via a call to j.u.l.getLogger() - a new logger called MyLogger. When web app two use

Re: Fwd: commons-logging unsuited for cross-context webapplication invocation usage - migrating to slf4j?

2009-04-24 Thread Mark Thomas
Ate Douma wrote: > Mark Thomas wrote: >> I have seen similar issues in Tomcat's internal logging with >> java.util.logging, log4j and commons-logging. Why will this be any >> different with slf4j? > Because sfl4j does not use the ContextClassLoader to determine the > logger instance but compile-tim

Re: [math] Questions on Field

2009-04-24 Thread luc . maisonobe
- "Bill Barker" a écrit : > I've been looking over the Field implementations, and it looks like > it's > mostly done except for FieldPolynomial. I'm not really sure which SparseFieldMatrix and SparseFieldVector are also missing for now. > > package this should go in, since o.a.c.m.analy

Re: Fwd: commons-logging unsuited for cross-context webapplication invocation usage - migrating to slf4j?

2009-04-24 Thread Ate Douma
Mark Thomas wrote: Ate Douma wrote: When Pluto needs to "aggregate" the content of this TestPortlet, it invokes it render(PortletRequest, PortletResponse) method using a "cross-context" call from the Pluto web application to the "test" web application. The TestPortlet.render method receives the

Re: Fwd: commons-logging unsuited for cross-context webapplication invocation usage - migrating to slf4j?

2009-04-24 Thread Mark Thomas
Ate Douma wrote: > When Pluto needs to "aggregate" the content of this TestPortlet, it > invokes it render(PortletRequest, PortletResponse) method using a > "cross-context" call from the Pluto web application to the "test" web > application. > The TestPortlet.render method receives the PortletReque

Re: [DISCUSS] Sanselan as a Commons library

2009-04-24 Thread Carsten Ziegeler
Niall Pemberton wrote: > > Yes I think saying 3 committers is a bit mis-leading - since Sanselan > entered the incubator Carsten has made the 2nd most commits but that > is only 16 commits and he hasn't committed for over a year. Also the > last commit on the project was over 3 months ago: > > ht