Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Module development: concurrent versions (Updated)

by pajout (Curate)
on Dec 27, 2010 at 10:07 UTC ( #879273=note: print w/ replies, xml ) Need Help??


in reply to Module development: concurrent versions (Updated)

I suffered for it, but after some unsatisfying experiments I accepted following philosophy, assuming both versions of the module exists in some concurrent version system:

If it is not absolutely necessary to use both versions in the same process, just put proper versions to special paths, dedicated for this purpose. Then you can have two or more paths for two or more versions and you can run one process for every version and compare their behavior, having remaining parts of the program identical.

If it is absolutely necessary, rename versions (MyModule0_71.pm) for testing purposes. Though it is ugly work, it consumes less time than fiddling Perl guts, and it does not make chance that fiddled solution will work differently from renamed solution.


Comment on Re: Module development: concurrent versions (Updated)
Re^2: Module development: concurrent versions (Updated)
by BrowserUk (Pope) on Dec 27, 2010 at 11:58 UTC
    If it is absolutely necessary, rename versions (MyModule0_71.pm) for testing purposes. Though it is ugly work,

    Yeah. That's what I did. But as you say, it is ugly.

    Simple things like the bootstrap entry point having a specific rather than generic name is what causes the problems. And it is unnecessary as there would be no conflict in calling a XS_bootstrap entrypoint in many .dll/.so's.


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://879273]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (11)
As of 2014-09-17 11:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (72 votes), past polls