Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: 2.0 API freeze (or lack thereof): msg#00127

apache.mod-perl.devel

Subject: Re: 2.0 API freeze (or lack thereof)

Geoffrey Young wrote:
was Re: [patch] s/APR::URI::default_port_for_scheme/APR::URI::port_of_scheme/


OK, then we have a little problem with people who have started using the old API which should be phases out. We have two choices to take:

1) simply change the API, removing the old one and let users adjust their code

2) having a phase-out process where we add Apache/deprecated.pm with all the right aliases and the first time the function is used we log to error_log the function's TTL (time-to-live), for example suggesting that all deprecated functions are to be removed by the golden release.

Of course it's much easier to go with (1) ;)

There were quite a few changes in the APR's API that need to be propogated to the mod_perl API. (e.g. lots of socket API changes and more).


well, I think that this goes to the heart of of the 2.0 project - what's the official line on API freeze?

First of all you have to differ between Apache API and APR API, these are two different beasts. Apache is not responsible for APR API per se. APR's API is planned to be frozen by 1.0 release (which should be one of the next releases).

I think that Apache API itself is pretty stable at this moment. All the new developments go into the Apache 2.1 tree.

personally, I think it should all up for grabs until we the official "2.0" release to CPAN, that it should be understood the API can change without notice or back compat.

But people have already started using the existing API, so we can at least try to make their upgrades less painful.

as I play around with 2.0, there still seem to be lots of unfinished (filters)

Which ones are you talking about? Other than the TIE interface the filters API is pretty complete IMHO.

and missing (finfo) parts,

That one will probably won't exist at all in mp2.

so even more changes are forthcoming, and I don't think that issues that arise while working through these API changes should be hindered by back compat while we're still essentially in beta (or less in some areas :)

and, quoting stas from test-dev:

> In any case Apache::Test wasn't released yet, so any API
> changes are OK, IMHO.

The difference is that Apache::Test was never released to public in any form. It was coming with mp2 to run mp2's tests.

and Apache::Test is probably more used at this point than 2.0 :)

so, I guess I'm thinking that we should make the API right, especially in cases where mod_perl is serving as true glue between Perl and another API (like APR) and not worry too much about the consequences (for the moment). however, if this is our stance, then it really needs to be public, like in the INSTALL and website.

Well, I suggest that we at least maintain a file that documents the API changes between release versions.

__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:stas@xxxxxxxxxx http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
qplus.devel/200...    network.jabber....    debian.qa-packa...    encryption.gpg....    python.dabo.dev...    uclinux.devel/2...    science.mathema...    recreation.pesc...    kernel.ck/2004-...    mozilla.devel.e...    tex.latex.prosp...    ietf.multi6/200...    bbc.cvs/2002-11...    xfree86.newbie/...    jakarta.taglibs...    altlinux.hardwa...    comedi/2002-05/...    horde.bugs/2004...    games.diplomacy...    finance.e-gold....    web.dom.test-su...    lang.ruby.rails...    os.netbsd.devel...    video.gstreamer...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation