Re: we already have barewords as variables if we want them Re: the C JIT

2000-09-08 Thread David L. Nicol
John Porter wrote: undecorated variable names suffer from this showstopping weakness: they can't be interpolated. Unless we change other aspects of perl's syntax to support it, that is -- maybe s/${x}/5/. Now, maybe we can live without variable interpolation; but I'd bet most perl

Re: we already have barewords as variables if we want them Re: the C JIT

2000-09-08 Thread John Porter
David L. Nicol wrote: I am not suggesting dropping the magic signifiers from the beginning of Perl scalars and containers. In fact, I resent these insinuations (first Nathan's, now yours) that I am among those who suggest dropping the decorations from perl scalars. I am not among that

Re: the C JIT

2000-09-07 Thread David L. Nicol
"Myers, Dirk" wrote: $mode = 0755 ; $file = "Foobar" ; #include sys/types.h #include sys/stat.h chmod($mode, $file) ; Which chmod gets called, perl or C? What are the rules for figuring this out? Dirk Following the documentation at

Re: the C JIT

2000-09-06 Thread David L. Nicol
I don't know exactly how this message got marked "unread" again, No, here it is, the server at Sun has decided to send it again, which is all right, since I don't think I responded before going home last friday. Received: from mercury.Sun.COM

Re: the C JIT

2000-09-06 Thread Nathan Wiger
"David L. Nicol" wrote: s/x/5/; # this is still going to replace # all the eckses in $_ with fives. Why? This is an arbitrary decision if you've declared variables to be barewords. Anyways, I'm done harping on this issue. I think a single, simple syntax is good. You

RE: the C JIT

2000-09-06 Thread Myers, Dirk
s/x/5/; # this is still going to replace # all the eckses in $_ with fives. Why? This is an arbitrary decision if you've declared variables to be barewords. I think it's a sane decision -- IMHO barewords shouldn't be allowed to

we already have barewords as variables if we want them Re: the C JIT

2000-09-06 Thread David L. Nicol
Nathan Wiger wrote: "David L. Nicol" wrote: s/x/5/; # this is still going to replace # all the eckses in $_ with fives. Why? This is an arbitrary decision if you've declared variables to be barewords. Misstating my position, when I take one, is and will

Re: the C JIT

2000-09-06 Thread David L. Nicol
f that's legal, what does: print "I wonder what this is : " . length ; do? I imagine the first order of business for the C JIT team would be some conversion operators. Numeric types stringify into decimal representation, no reason to throw that away.

Re: we already have barewords as variables if we want them Re: the C JIT

2000-09-06 Thread John Porter
David L. Nicol wrote: A bareword inside doublequotes is not interpreted, in Perl or C. No; a "bareword" in quotes (any kind) is not a bareword. -- John Porter

Re: the C JIT

2000-09-01 Thread David L. Nicol
Nathan Wiger wrote: "David L. Nicol" wrote: my dog $spot; to dog spot; If we only allow this where enough info is available to allocate dog-sized pieces of memory directly, Perl can blaze through the code that deals with dogs. I don't see what barewords gain

Re: the C JIT

2000-09-01 Thread David L. Nicol
Sam Tregar wrote: On Thu, 31 Aug 2000, David L. Nicol wrote: We're talking about making a faster Perl. C's syntax requires enough clarity to compile to something quick. it is a very short hop from my dog $spot; to dog spot; What about the second version would

Re: the C JIT

2000-09-01 Thread Nathan Wiger
"David L. Nicol" wrote: They gain us compliance with the whims of the people who like barewords for variable names. You may or may not find that to be a good thing. It's not just that I don't think dropping $'s is a good idea, but that is the general consensus as well. I can't see dog

Re: the C JIT

2000-08-31 Thread David Corbin
some ways. I want to see Perl become a full-blown C/C++ JIT. Since Perl is for a large part a compatible subset of C I don't see this as unrealistic. Delaying any post-token parsing of barewords until after looking at what local declarations are in effect is part of it, dealing with the

Re: the C JIT

2000-08-31 Thread Sam Tregar
On Thu, 31 Aug 2000, David L. Nicol wrote: Perl looks, and AFAIK has always looked, like "C plus lune noise" to many people. I think Perl looks like "C plus moon noise" to former C programmers. I imagine some people see it and think "Csh plus Awk noise". Perl is a lot more than

RE: the C JIT

2000-08-31 Thread David Olbersen
: Thursday, August 31, 2000 9:31 AM - - To: [EMAIL PROTECTED] - - Subject: Re: the C JIT - - - - - - On Thu, 31 Aug 2000, David L. Nicol wrote: - - - - Perl looks, and AFAIK has always looked, like "C plus lune noise" to - - many people. - - - - I think Perl looks like "C plus moon n

Re: the C JIT

2000-08-31 Thread David L. Nicol
Sam Tregar wrote: On Thu, 31 Aug 2000, David L. Nicol wrote: run-time efficiency C doesn't get run-time efficiency from its syntax, so we can't really expect to get anything here. It gets it from its compilation architecture. If you want to build a Perl frontend for GCC I think

Re: the C JIT

2000-08-31 Thread Nathan Wiger
"David L. Nicol" wrote: my dog $spot; to dog spot; If we only allow this where enough info is available to allocate dog-sized pieces of memory directly, Perl can blaze through the code that deals with dogs. I don't see what barewords gain us here. Who says that my

Re: the C JIT

2000-08-31 Thread Sam Tregar
On Thu, 31 Aug 2000, David L. Nicol wrote: We're talking about making a faster Perl. C's syntax requires enough clarity to compile to something quick. it is a very short hop from my dog $spot; to dog spot; What about the second version would result in faster execution? Do

the C JIT

2000-08-30 Thread David L. Nicol
-blown C/C++ JIT. Since Perl is for a large part a compatible subset of C I don't see this as unrealistic. Delaying any post-token parsing of barewords until after looking at what local declarations are in effect is part of it, dealing with the one or two differences in operator precedence