in reply to Re: Disputation of g0n on the power and efficacy of XS
in thread Disputation of g0n on the power and efficacy of XS
Yes, that's exactly my problem. However, there are occasions when companies are not prepared to pay for a license for a c compiler, and not willing for whatever reason (anti open-source, excessive rootkit paranoia etc) to have gcc installed on their machines. Saying that's soooo stupid may be true, but it doesn't get us very far.
Moreover, in a company the size of the one I'm currently contracted to (>100k employees) policies do not change easily, and certainly not at the instigation of contract developers (who in the company hierarchy rate somewhere below the office cat).
Perl is an open source community and code re-use is rampant and appropriate. I'd rather see a module use a widely used and well maintained C library than reimplement it and fall into disrepair. You mention openssl: when the C library that most people use has a new version, I don't have to wait for a Perl version to catch up. I don't have to watch parallel evolution in code that does (or should do) the same thing.
OK, maybe openssl was a bad example, and I quite agree that its better to use a 'widely used and well maintained C module'. I'm suggesting that a) it would be useful for those occasions where compiled C is difficult or impossible to implement to have a pure perl alternative, where possible; but mainly b) that it would make life a lot easier to know when a module has a C/XS dependency. I know that's tricky, for the reasons I set out in my OP - that's why I raised the point for discussion.
Although it would be nice to have a way to select different implementations of things at a low level, and the programmer level I just want to use the same module name everywhere and know I'll get some implementation of it. If the local machine has the C implementation, I get the speedy C implementation. If it has the pure Perl implementation, I end up using that without changing my script.
Again, I agree, and I'm trying to do something of the sort in one of my modules, but at the moment I'm engrossed in improving functionality in the pure perl implementation.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Disputation of g0n on the power and efficacy of XS
by Anonymous Monk on Apr 21, 2005 at 09:13 UTC | |
by dragonchild (Archbishop) on Apr 21, 2005 at 13:34 UTC | |
by Anonymous Monk on Apr 21, 2005 at 14:31 UTC | |
by dragonchild (Archbishop) on Apr 21, 2005 at 14:35 UTC | |
by Anonymous Monk on Apr 22, 2005 at 08:43 UTC | |
by Anonymous Monk on Apr 22, 2005 at 09:48 UTC |