BUK,
I see your point about statically linking to a
fraction of a million libraries, each with a
potentially large number of functions, sub-modules.
I don't have that much RAM on hand!
And a 1001 Trick Pony like ImageMagick Convert would
seem like a good place for sharing.
For specialized tools on the other end of the spectrum,
the guaranteed costs of every shared run overwhelm the
speculative, theoretical benefits by many orders of
magnitude.
Only if you can have umpteen programs running
simultaneously and sharing the code AND if you would
have crashed out of memory otherwise is there any
chance of a benefit. Arbitrating over who gets it when
could cost a lot and means YOU NEED MORE RAM.
If your kids are squabbling over toys, you need more toys!
You can just swap out a library and not have to recompile?
If you rent your code and don't have the source, there
might be a case. But, that's not the Perl Way. You would
just download the new tgz, rebuild it from source and be
sure it worked.
Time is the one essential item you can't make more of.
Settling up front for doing 4 runs per day with __SLOWS__
libraries instead of 5 runs, forever, because you might be
able to save a build one day sounds like a hard sell.
And the case of needing all of cpan for one program is
not something you see regularly. How many 1000+ module
programs have you written? My record is definitely in the
double digits.
But, pulling every one of the 11 CPAN_zees in my
hg.pl script (plus my bloated, 694kb, everything
and the kitchen sink for the last 5 years Bpbfct.pm)
should be easily doable.
The average .gz size from a small sample is < 2 MB
each. How big is the average .PM?
loc .pm | grep "\.pm" | grep 5.22 | wc > 4666
lsr -sA ` loc .pm | grep "\.pm" | grep 5.22` | add
87,175,440
87MB / 4666 Perl_5.22 *.pm modules -> 18,683 b/.pm
I wonder how much byte code you would get on
average from 18k of Perl??
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.