Re: RFC 155 - Remove geometric functions from core

2000-08-30 Thread Dan Sugalski
At 07:37 PM 8/29/00 -0700, Russ Allbery wrote: Dan Sugalski [EMAIL PROTECTED] writes: On 29 Aug 2000, Russ Allbery wrote: I'd love to see Perl aggressively take advantage of new capabilities in dynamic loaders, though. Among other things, I'll point out that symbol versioning is the way

Re: RFC 155 - Remove geometric functions from core

2000-08-30 Thread Andy Dougherty
On Tue, 29 Aug 2000, Russ Allbery wrote: Not a big deal, and that's certainly doable. But it's possible to do more than that if you really want to. The glibc folks have decided to comment to nearly full binary compatibility for essentially forever; the theory is that upgrading libc should

Re: RFC 155 - Remove geometric functions from core

2000-08-30 Thread Dan Sugalski
On Wed, 30 Aug 2000, Andy Dougherty wrote: On Tue, 29 Aug 2000, Russ Allbery wrote: Not a big deal, and that's certainly doable. But it's possible to do more than that if you really want to. The glibc folks have decided to comment to nearly full binary compatibility for essentially

Re: RFC 155 - Remove geometric functions from core

2000-08-30 Thread Bryan C . Warnock
On Wed, 30 Aug 2000, Dan Sugalski wrote: I think we can pull this off if we're careful and draw really strict lines about what is and isn't public stuff. It's not easy, and it will mean we'll have to have some reference executables in a test suite for verification, but I think we can manage

Re: RFC 155 - Remove geometric functions from core

2000-08-30 Thread Russ Allbery
Andy Dougherty [EMAIL PROTECTED] writes: I'm sure the glibc folks indeed work very hard at this and are largely successful. I also know, however, that over the past couple of years or so, I've had to recompile nearly all of my applications on several occasions when I've upgraded glibc.

Re: RFC 155 - Remove geometric functions from core

2000-08-29 Thread David L. Nicol
Well then. It is impossible to rearchitect it to make it shared text? Perhaps the first instance of perl sets up some vast shared memory segments and a way for the newcomers to link in to it and look at the modules that have been loaded, somewhere on this system, and use the common copy?

Re: RFC 155 - Remove geometric functions from core

2000-08-29 Thread Sam Tregar
On Tue, 29 Aug 2000, David L. Nicol wrote: Well then. It is impossible to rearchitect it to make it shared text? Perhaps the first instance of perl sets up some vast shared memory segments and a way for the newcomers to link in to it and look at the modules that have been loaded, somewhere

Re: RFC 155 - Remove geometric functions from core

2000-08-29 Thread Tom Christiansen
Well then. It is impossible to rearchitect it to make it shared text? Perhaps the first instance of perl sets up some vast shared memory segments and a way for the newcomers to link in to it and look at the modules that have been loaded, somewhere on this system, and use the common copy? I'd

Re: RFC 155 - Remove geometric functions from core

2000-08-29 Thread Dan Sugalski
At 12:02 PM 8/29/00 -0600, Tom Christiansen wrote: Well then. It is impossible to rearchitect it to make it shared text? Perhaps the first instance of perl sets up some vast shared memory segments and a way for the newcomers to link in to it and look at the modules that have been loaded,

Re: RFC 155 - Remove geometric functions from core

2000-08-29 Thread David L. Nicol
Sam Tregar wrote: On Tue, 29 Aug 2000, David L. Nicol wrote: Well then. It is impossible to rearchitect it to make it shared text? Perhaps the first instance of perl sets up some vast shared memory segments and a way for the newcomers to link in to it and look at the modules that

Re: RFC 155 - Remove geometric functions from core

2000-08-29 Thread Stephen P. Potter
Lightning flashed, thunder crashed and Tom Christiansen [EMAIL PROTECTED] m whispered: | Very well, then: I'll save it for an after-the-fact I-TOLD-YOU-SO, | which, believe it or not, is truly *not* a pleasant thing to be | able to say. Tom, we appreciate your constructive comments and your help

Re: RFC 155 - Remove geometric functions from core

2000-08-29 Thread Sam Tregar
On Tue, 29 Aug 2000, David L. Nicol wrote: does sysV shm not support the equivalent security as the file system? Well, no, I don't think it does. It supports permissions on individual segments but it doesn't support anything like directory perimssions. It might be enough, and it might not

Re: RFC 155 - Remove geometric functions from core

2000-08-29 Thread Nick Ing-Simmons
David L . Nicol [EMAIL PROTECTED] writes: does sysV shm not support the equivalent security as the file system? mmap() has the file system. Did I not just describe how a .so or a DLL works currently? And behind the scenes that does something akin to: int fd =

Re: RFC 155 - Remove geometric functions from core

2000-08-29 Thread Dan Sugalski
At 07:32 PM 8/29/00 +, Nick Ing-Simmons wrote: David L . Nicol [EMAIL PROTECTED] writes: Did I not just describe how a .so or a DLL works currently? And behind the scenes that does something akin to: int fd = open("file_of_posn_indepenant_byte_code",O_RDONLY); struct stat st;

Re: RFC 155 - Remove geometric functions from core

2000-08-29 Thread Sam Tregar
On Tue, 29 Aug 2000, Nick Ing-Simmons wrote: David L . Nicol [EMAIL PROTECTED] writes: does sysV shm not support the equivalent security as the file system? mmap() has the file system. I wasn't aware that mmap() was part of SysV shared memory. My mistake? It's not on the SysV IPC man

Re: RFC 155 - Remove geometric functions from core

2000-08-29 Thread Nick Ing-Simmons
Sam Tregar [EMAIL PROTECTED] writes: On Tue, 29 Aug 2000, Nick Ing-Simmons wrote: David L . Nicol [EMAIL PROTECTED] writes: does sysV shm not support the equivalent security as the file system? mmap() has the file system. I wasn't aware that mmap() was part of SysV shared memory. It is

Re: RFC 155 - Remove geometric functions from core

2000-08-29 Thread Uri Guttman
"ST" == Sam Tregar [EMAIL PROTECTED] writes: ST On Tue, 29 Aug 2000, Nick Ing-Simmons wrote: David L . Nicol [EMAIL PROTECTED] writes: does sysV shm not support the equivalent security as the file system? mmap() has the file system. ST I wasn't aware that mmap() was part

Re: RFC 155 - Remove geometric functions from core

2000-08-29 Thread Jarkko Hietaniemi
On Tue, Aug 29, 2000 at 06:43:34PM -0400, Uri Guttman wrote: "ST" == Sam Tregar [EMAIL PROTECTED] writes: ST On Tue, 29 Aug 2000, Nick Ing-Simmons wrote: David L . Nicol [EMAIL PROTECTED] writes: does sysV shm not support the equivalent security as the file system?

Re: RFC 155 - Remove geometric functions from core

2000-08-29 Thread Uri Guttman
"TC" == Tom Christiansen [EMAIL PROTECTED] writes: Yup. I think somebody said that mmap() is POSIX. It isn't. TC Are you sure? TC http://slacvx.slac.stanford.edu/HELP/POSIX/CALLABLE_FUNCTIONS/MMAP TCThe mmap() function maps process addresses to a memory object. i

Re: RFC 155 - Remove geometric functions from core

2000-08-29 Thread Russ Allbery
David L Nicol [EMAIL PROTECTED] writes: This is what I was talking about when I suggested the language maintain a big list of all the addresses of each function, and after the function gets loaded or compiled it is added to the big list, and after this stage the placeholder in the op can be

Re: RFC 155 - Remove geometric functions from core

2000-08-29 Thread Dan Sugalski
On 29 Aug 2000, Russ Allbery wrote: I'm not sure I'm completely following what you're arguing for here, but be careful not to go too far down the road of duplicating what the dynamic loader already knows how to do. There be dragons; that stuff is seriously baroque. You really don't want to

Re: RFC 155 - Remove geometric functions from core

2000-08-29 Thread Russ Allbery
Dan Sugalski [EMAIL PROTECTED] writes: On 29 Aug 2000, Russ Allbery wrote: I'd love to see Perl aggressively take advantage of new capabilities in dynamic loaders, though. Among other things, I'll point out that symbol versioning is the way that things like libc manage to be backward

Re: RFC 155 - Remove geometric functions from core

2000-08-27 Thread Nick Ing-Simmons
Jarkko Hietaniemi [EMAIL PROTECTED] writes: bytes microperl, which has almost nothing os dependent (*) in it 1212416 shared libperl 1277952 bytes + perl 32768 bytes1310720 dynamically linked perl

Re: RFC 155 - Remove geometric functions from core

2000-08-27 Thread Jarkko Hietaniemi
On Sun, Aug 27, 2000 at 08:37:38PM +, Nick Ing-Simmons wrote: Jarkko Hietaniemi [EMAIL PROTECTED] writes: bytes microperl, which has almost nothing os dependent (*) in it 1212416 shared libperl 1277952 bytes + perl 32768

Re: RFC 155 - Remove geometric functions from core

2000-08-27 Thread Stephen P. Potter
Lightning flashed, thunder crashed and Steve Fink [EMAIL PROTECTED] whispered: | Depends on your definition of "module". Many people seem to be assuming | "module" eq "shared library". Yes, exactly. I use module as a generic term for something other than the main perl binary itself, a black

Re: RFC 155 - Remove geometric functions from core

2000-08-25 Thread Dan Sugalski
At 09:12 AM 8/25/00 -0400, Stephen P. Potter wrote: As you say, 200 lines isn't much. But combine that with the IPC, the environment, the system, etc it all adds up. Not to much, though. We've been down this road for perl 5. You'd be surprised at how little code gets removed if you yank most

Re: RFC 155 - Remove geometric functions from core

2000-08-25 Thread Tom Christiansen
That's the basic goal behind my RFCs for moving things to modules. In general, I hope to make the language cleaner, easier to learn and use, and easier to extend. "Clean"? What is "clean"? Huh? And since when has Perl ever been supposed to be "clean"? I've got plenty of quotage from

Re: RFC 155 - Remove geometric functions from core

2000-08-25 Thread Tom Christiansen
Not to much, though. We've been down this road for perl 5. You'd be surprised at how little code gets removed if you yank most of the functions under discussion. (They're generally trivial wrappers around library calls, with very little code involved) Thaniks -- I wish people wouldn't forget

Re: RFC 155 - Remove geometric functions from core

2000-08-25 Thread GregLondon
Dan wrote: At 09:12 AM 8/25/00 -0400, Stephen P. Potter wrote: As you say, 200 lines isn't much. But combine that with the IPC, the environment, the system, etc it all adds up. Not to much, though. We've been down this road for perl 5. You'd be surprised at how little code gets removed if

Re: RFC 155 - Remove geometric functions from core

2000-08-25 Thread Tom Christiansen
Or, more succinctly, we're not going to screw with perl without a *darned* good reason. This is the most beautiful thing I've read in days. --tom

Re: RFC 155 - Remove geometric functions from core

2000-08-25 Thread Larry Wall
Dan Sugalski writes: : Or, more succinctly, we're not going to screw with perl without a *darned* : good reason. Er, perl is already screwed--it's Perl we're trying to preserve and grow. Larry

Re: RFC 155 - Remove geometric functions from core

2000-08-25 Thread John Porter
Dan Sugalski wrote: Or, more succinctly, we're not going to screw with perl without a *darned* good reason. Well, in the big picture, we *are* screwing with perl, and we know that we have darned good reason to. But to apply this metric to every fine-grained aspect of perl5 is silly. Perl6

Re: RFC 155 - Remove geometric functions from core

2000-08-25 Thread Larry Wall
Tom Christiansen writes: : Or, more succinctly, we're not going to screw with perl without a *darned* : good reason. : : This is the most beautiful thing I've read in days. Bear in mind there are lots of darned good reasons. :-) Larry

Re: RFC 155 - Remove geometric functions from core

2000-08-25 Thread John Porter
Larry Wall wrote: Dan Sugalski writes: : Or, more succinctly, we're not going to screw with perl without a *darned* : good reason. Er, perl is already screwed--it's Perl we're trying to preserve and grow. Man; leave it to Larry to say the right thing, in the best way. :-) -- John

Re: RFC 155 - Remove geometric functions from core

2000-08-25 Thread Tom Christiansen
But to apply this metric to every fine-grained aspect of perl5 is silly. Perl6 should be a well-designed, consistent, integrated opus. If it goes against the grain of perl6's design to have system-specific system calls built in, then they shouldn't be built in, regardless of how it was in perl5.

Re: RFC 155 - Remove geometric functions from core

2000-08-25 Thread John Porter
Tom Christiansen wrote: But to apply this metric to every fine-grained aspect of perl5 is silly. Perl6 should be a well-designed, consistent, integrated opus. If it goes against the grain of perl6's design to have system-specific system calls built in, then they shouldn't be built in,

Re: RFC 155 - Remove geometric functions from core

2000-08-25 Thread Tom Christiansen
Well, duh. So what? Did you really miss my point by so many furlongs? Whatever. You'll take my fork when you pry it out of my cold, dead hands. Perl will ship with fork. But maybe in a loadable library, eh? More of this nonsense, eh? I just fail to understand the urge to eviscerate. Why

Re: RFC 155 - Remove geometric functions from core

2000-08-25 Thread Tom Christiansen
You don't beneficially make Perl any more anything by ghettoizing its useful systems functionality. You certainly don't make it more "portable". I still can't use any of my myriad useful systems hackery script if I try to run them on CP/M, and you aren't going to change that one whit. So

Re: RFC 155 - Remove geometric functions from core

2000-08-25 Thread John Porter
Tom Christiansen wrote: Why don't we just say that Perl isn't for systems work anymore, and remove everything that diddles $!, or $?, or anything that might call anything from the C library. As in "remove mountains", yes. -- John Porter We're building the house of the future

Re: RFC 155 - Remove geometric functions from core

2000-08-25 Thread Tom Christiansen
If the behind-the-scenes shenanigans are invisible and performance is at worst acceptable, does it really matter how things are implemented? So long as you can still say things like perl -le 'print scalar getpwuid(1)' and that script still continue to work unaltered, then I suppose

Re: RFC 155 - Remove geometric functions from core

2000-08-25 Thread Larry Wall
Tom Christiansen writes: : More of this nonsense, eh? Please don't use fighting words in here. : I just fail to understand the urge to eviscerate. Why don't we just : say that Perl isn't for systems work anymore, and remove everything : that diddles $!, : or $?, or anything that might call

Re: RFC 155 - Remove geometric functions from core

2000-08-25 Thread Dan Sugalski
At 11:36 AM 8/25/00 -0600, Tom Christiansen wrote: If the behind-the-scenes shenanigans are invisible and performance is at worst acceptable, does it really matter how things are implemented? So long as you can still say things like perl -le 'print scalar getpwuid(1)' and that script

Re: RFC 155 - Remove geometric functions from core

2000-08-25 Thread Nathan Torkington
Larry Wall writes: Tom Christiansen writes: : More of this nonsense, eh? Please don't use fighting words in here. On the subject of fighting words, I owe everyone an apology for my language on the subject of Perl being the only thing that can parse Perl. I've been banging my head against

Re: RFC 155 - Remove geometric functions from core

2000-08-25 Thread Michael G Schwern
On Fri, Aug 25, 2000 at 09:12:32AM -0400, Stephen P. Potter wrote: Lightning flashed, thunder crashed and Michael G Schwern [EMAIL PROTECTED] wh ispered: | PS The idea of adding acos, asin and tan is good. You just answered your own question. It is very difficult to add new functions to

Re: RFC 155 - Remove geometric functions from core

2000-08-25 Thread Jarkko Hietaniemi
On Fri, Aug 25, 2000 at 09:20:53AM -0400, Dan Sugalski wrote: At 09:12 AM 8/25/00 -0400, Stephen P. Potter wrote: As you say, 200 lines isn't much. But combine that with the IPC, the environment, the system, etc it all adds up. Not to much, though. We've been down this road for perl 5.

Re: RFC 155 - Remove geometric functions from core

2000-08-25 Thread Stephen P. Potter
Lightning flashed, thunder crashed and Tom Christiansen [EMAIL PROTECTED] m whispered: | More of this nonsense, eh? I just fail to understand the urge | to eviscerate. Why don't we just say that Perl isn't for | systems work anymore, and remove everything that diddles $!, | or $?, or anything

Re: RFC 155 - Remove geometric functions from core

2000-08-25 Thread Tom Christiansen
Your coquettish plot to reveal the desperate yearning of your nethermost alimentary canal for multiply redundant new egresses is neither charming nor subtle--nor even innovative. Although it would be no great trouble for me to don the vestments and sharpen the cutlery to serve as haruspex for so

Re: RFC 155 - Remove geometric functions from core

2000-08-25 Thread Nathan Torkington
Stephen P. Potter writes: =head1 TITLE Perl is Tom's private domain. That's unproductive. Nat

Re: RFC 155 - Remove geometric functions from core

2000-08-25 Thread Tom Christiansen
And that's offensive. What's offensive to one person is amusing to the next. Please act like a grown-up. Stephen cast the first stone, but that's no excuse for you to reply with a boulder. Sure it is: when a hoodlum jumps you with a knife, there's no reason to roll over and quietly submit

Re: RFC 155 - Remove geometric functions from core

2000-08-25 Thread Larry Wall
Tom Christiansen writes: : Please act like a grown-up. Stephen cast the : first stone, but that's no excuse for you to reply with a boulder. : : Sure it is: when a hoodlum jumps you with a knife, there's no reason : to roll over and quietly submit to the death of a thousand cuts. : No, you pull

Re: RFC 155 - Remove geometric functions from core

2000-08-25 Thread Nathan Torkington
Tom Christiansen writes: further abuse as the next bandit decides to chew on you. As nobody else said mum about that scat, I took care of it myself. 90 minutes passed on a Friday night. That doesn't mean it wasn't going to be dealt with. (hint: grown-ups would apologise at this point) I'm

Re: RFC 155 - Remove geometric functions from core

2000-08-25 Thread Steve Fink
Tom Christiansen wrote: So ripping all this 'cruft' would save us about 100-160 kB, still leaving us with well over a 1MB-plus executable. It's Perl itself that's big, not the thin glue to the system functions. Moreover, if you rip out that 100-160 kb, allocating it to modules, then I