ould have a s/z/s/ version, for
those who speak a z-impared dialect of English.)
-=- James Mastros
name than 'regex'.
[...]
> Maybe 'match' is a better keyword.
Can I suggest we keep match meaning thing you get when you run a thingy
against a string, and make "matcher" be the thingy that gets run?
100% agree with you, Allison; thanks for putting words to "doesn't feel
right".
-=- James Mastros
ements, but
it compares as a range. 1.1 should ~~ 1..2; pugs thinking that's false is a
bug, not a feature.
Of course, that doesn't mean implementing range in a subset of perl6 without
it isn't interesting, and possibly useful for bootstrapping.
-=- James Mastros
infix .new.
>
> (args)`Class;
The problem with it is that somehow we have to get 5`m / 30`s to work,
even though m is an operator, which AFAIK means it needs to be a macro,
or the moral equivalent (is parsed).
Also, having every unit be a like-named class would very muc
should be looking into how to make it a pragmata,
rather then pushing the idea on perl6-language. It shouldn't be too
hard -- a matter of using the equivalent of perl5's UNIVERSAL::AUTOLOAD,
and the OUTER:: scope.
-=- James Mastros,
theorbtwo
role into some
> class or other to determine the behavior if they care.
Why is this a role, rather then just implementing postcircumfix:«[
]»(Whatever $self: Int $index) ? (I'd hope the error message is a bit
more newbie-friendly, but that's the only special-casing I see it
needing...)
-=- James Mastros
don't like CGI.pm's HTML generation, for example
-- it makes you feel like you don't need to know HTML, when you do.)
-=- James Mastros
rom DEM to FRF,
you /must/ convert to EUR in the middle, or you will get the wrong
result. Of course, neither the DEM nor the FRF have existed in several
years, so it probably isn't that important...)
-=- James Mastros,
Who certainly looks forward to this.
hogonality strikes again.
...unless read returns a Str but source("foo").
-=- James Mastros
got to get to bed, though.
Goodnight,
-=- James Mastros,
theorbtwo
t it stuck into the
approps Syn? (This, of course, might be a bit of a problem; the best
solution I can think of is to start on Syn 29).
-=- James Mastros
t it stuck into the
approps Syn? (This, of course, might be a bit of a problem; the best
solution I can think of is to start on Syn 29).
-=- James Mastros
See attached diff.
Index: src/Help.hs
===
--- src/Help.hs (revision 216)
+++ src/Help.hs (working copy)
@@ -2,6 +2,7 @@
#define VERSION "6"
#define DATE ""
#include "config.h"
+#include "Version.h"
{-
Online help and banner
Luke Palmer wrote:
James Mastros writes:
Does this imply that it's now possible to type C, and
declare @foo? In the current perl, this doesn't work -- it's a syntax
error. It'd certainly make many constructs easier.
That looks weird to me. But as Rod points out, it can b
's a syntax
error. It'd certainly make many constructs easier.
-=- James Mastros
tstrap yourself into PIR, for example. (Either with yourself, or
compiling whatever other language you're written in into PBC.)
-=- James Mastros,
theorbtwo
ave a pair of keywords or a data item for "has been made into a
test", and we should provide a list of bugs that have not been marked
that way, and also have not been marked as "can't make into a test".
-=- James Mastros
d seem, then, that the answer is "there's some property of
thingies that gives the name that error messages will use to refer to
them". (I want to thank the man who made "thingy" the proper technical
term, BTW.) So what's it called?
-=- James Mastros
?
Possibly. I'd be more interested in running the test suite as well as
the benchmarks, and plotting a line of %success along with the response
time.
-=- James Mastros,
theorbtwo
g and leave the
string as-is, with an optional, default-on, warning, but that's a matter
for p6l.)
Mechanism, not policy, on this issue.
-=- James Mastros
the parser -- the compile-time stuff. You do
have to re-implement the runtime stuff, but that's largely the nature of
the beast -- your runtime will be very different anyway, I should think.
-=- James Mastros
Patrick R. Michaud wrote:
On Tue, Sep 14, 2004 at 12:42:59PM -0700, Larry Wall wrote:
I agree that the default should be the current outer language.
I agree that the default ought to be overridable.
I agree that the right way to do that is with something like "use PIR;"
rather than inventing an inc
Jonathan Scott Duff wrote:
On Tue, Sep 14, 2004 at 04:03:49PM +0200, James Mastros wrote:
Or, instead of thinking of this as a special-purpose thing
I think you meant something akin to C< /(.) { use PIR; print P0;}/ > and
C< /(.) { use Forth; P0 print}/ > :-) As long as we'
in the beginning, that
will consume that, then hand the rest back to us.
- This means that the grammar parser has to figure that out itself.
- ...until we extend the compilation interface.
- It means that we have a more complicated grammar engine (slightly).
- It means that we're changing the one bit of perl6 that we just said
hadn't been changed much.
-=- James Mastros
Nicholas Clark wrote:
On Tue, Sep 07, 2004 at 06:07:24PM +0200, James Mastros wrote:
4. The single-file, platform dependent, machine language executable
(realexe).
Which parrot can already do. (Or at least could, but I don't think that
anyone's been checking on it recently)
Er, right --
minimal. The
others require standard-library support, but all the major bits are
things that should already be in the standard library (because a
front-end to C6PAN should come with, and that means extracting some sort
of .tar.gz files -- calling out to external utilities doesn't cut it t
normal quotes.
3) Some editors will give you one when you want the other.
- David ³wondering how likely curly-quotes are to come out right² Green
4) Many people think they're in Latin-1, but they aren't, they're only
in Microsoft's perversion of Latin-1.
-=- James Mastros
impurtnce?) has a very low ratio -- but nobody
cares if it lives or dies.)
BTW, what's $report->{files}{ninja}?
A standalone tester would be very nice -- so authors can test their
kwalitee before they upload, rather then after.
There's a couple of misspelled fields in the kwalitee report.
-=- James Mastros
ertations, and attempt to verify each of them using
non-modifying SQL and/or using DBI's standard introspection mechinsimis.
(Hint: One way to get a list of columns in a table is to select * limit
1 from it, and inspect what you get back.)
-=- James Mastros
he difference between x and xx is sensical -- the
former repeats one thing, the later many... but what's the reasoning for
xxx, other then that it's like xx? How will users be able to remember
which is which?
-=- James Mastros,
theorbtwo
Rocco Caputo wrote:
On Sun, Jul 11, 2004 at 10:09:38PM +0200, James Mastros wrote:
All unreachable code is either people misusing the term "unreachable", a
bug in Devel::Cover, or dead code that should be removed.
Here's a puzzle, then.
I just ran into a similar "problem&qu
on't disturb useful things that you'd want in
double-quotes -- which includes patterns common in any natural language,
which includes even the literal versions of << / >> (which I can't type
easily at the moment).
-=- James Mastros
harder before declaring something unreachable.
Note that this shouldn't be construed as saying that you should create
insane tests, just to get 100% coverage. My point is almost the exact
oppisate: that it's not reasonable to try for 100% conditional coverage.
-=- James Mastros
Austin Hastings wrote:
So, how wrong is this:
class VerticalYadda
{
extends Yadda;
multi method coerce:as($what) {
say "Coercing VerticalYadda to " ~ ($what as Str);
next METHOD;
}
}
sub *\U{VERTICAL ELLIPSIS}()
{
return new VerticalYadda;
}
=Austin
macro \
kup, that saves the expiry time,
and defining a second coercion from that to an IP address, that reruns
the lookup if the TTL has expired. The first coercion should take place
at compile time, the second not until runtime.
-=- James Mastros
is set to vibrate, and you aren't wearing it, you
need to check every so often, or you'll miss pages.
-=- James Mastros
be more
trusted then the code that calls them, and callbacks to be less trusted).
-=- James Mastros
e
mix of APL and PHP. At least we don't have a Unicode alias for say
(yet, why do I suspect we're about to get a unary » operator for it?
Perhaps I'm just pessimistic this morning.)
-=- James Mastros
header that says that it
shouldn't be allowed to eval string, which is easy to prove, since it's
a verifiable given.)
-=- James Mastros
Mark J. Reed wrote:
One obvious reason for reaching out to unicode characters is the
restricted number of non-alphanumeric characters in ASCII. But why do
infix operators have to be non-alphanumeric?
They don't - but they do have to "look like operators". Thanks to the
multiplication symbol, lowe
without stubs), if at all
(the stubs may be quite difficult).
Is it worthwhile anyway?
Quite possibly.
Is it easy?
No.
Will it do everything you want it to do?
No.
-=- James Mastros
t; or
some such.
"is mindwarping"? "does the_time_warp_again"?
The problem, in any case, is similar to "throws" in Java: if any of your
children are marked, so shall you be, unto the Nth generation. (Or, at
least, this is how I understand it.)
-=- James Mastros
Karl Brodowsky wrote:
Mark J. Reed wrote:
The UTF-8 encoding is not so attractive in locales that make
heavy use of characters which require several bytes to encode therein, or
relatively little use of characters in the ASCII range;
utf-8 is fine for languages like German, Polish, Norwegian, Spanis
name might also avoid accidental access
of "your globals".
...or you could document it as a feature, enabling enhanced
introspection versus "standard" TCL.
("It's not a bug, it's a feature!")
-=- James Mastros
e complexity in every class
ever written. I know, not rocket science. But darned annoying, and
it's better to force one person to write darned annoying code (even if
it is you), then to force everybody to implement it.
-=- James Mastros
a fresh look at that section of code.)
-=- James Mastros
there's no way to tell if a future eval STRING
(or equiv) might be useful.)
-=- James Mastros
mod_perl get funded could give to the
first, and people who wanted to see Larry, you (Dan), Damian, and the
gang get funded (or, unfornatly, some subset thereof, depending on how
much money comes in) could give to the second... and everybody gets
their way.
-=- James Mastros
eads) this shouldn't be an issue.
Might I suggest that we make sure we can deal sanely with either mmaping
or reading PBC files, and then worry about this later, like when
somebody actualy finds it being a problem in real use?
-=- James Mastros
now what's actualy going on that we have to
be wary of. (Even authenticating the host is potentialy useful...
though I can't think of a good use.)
-=- James Mastros
ther major sections located dynamicly.
(Then again, making me happy shouldn't be anybody's priority.)
-=- James Mastros
even that infesable, no?)
(BTW, I removed p5p from the CC list, since I don't think this makes
sense for non-JIT targets... and since p5 doesn't JIT...)
-=- James Mastros
should be
unique across a process over all time.) If that'd require that an
object's ID be a combination of the header address and a generation
counter, that's OK. It means a serilization point in the allocator, but
I think we'd need one no matter what (Dan?).
-=- James Mastros
the option of
committing later. Sort of what a "try" block would like to be when
it grows up...
Or hypothetical variables in a non-regex context...
-=- James Mastros
s, unless someone can think of something useful
for it to mean.
It would, logicaly, mean that the class Module has a method "foo" if
true -- applying can on an object tells you if the class of that object
can do somthing, and Main is an object of class Module... right?
(%Main:: is a hash,
(This is a reply to a mail accidently sent to me personaly instead of
the list. Buddha, care to resend your other mail? I havn't quoted it
in total.)
On 12/12/2002 9:43 AM, Buddha Buck wrote:
James Mastros wrote:
Here's my basic defintion of ID: Two things should have the same
neccessarly have the
same reprensentation in PBC -- to whit, a constant float in different
compilation units will get different slots in the constant table, but
are really identical. The same is true of constant strings. (Constant
integers are inlined, and thus this doesn't apply t
esentation slides on this at
http://perl.plover.com/yak/memoize-quant/ -- "Quantitative Analysis of
Memoization".
-=- James Mastros
PS -- This is getting offtopic, even for p6l.
omthing_here($_);
die "Bye-bye universe!" if ($_=42);
}
Will never compute anything after the first 41 element in @foo occours.
(I'm assuming map, grep, and any other list-oriented function that can
get away with it will act lazily when given a lazy-list argument.)
-=- James Mastros
On 12/05/2002 12:18 PM, Michael Lazzaro wrote:
On Thursday, December 5, 2002, at 02:11 AM, James Mastros wrote:
On 12/04/2002 3:21 PM, Larry Wall wrote:
\x and \o are then just shortcuts.
Can we please also have \0 as a shortcut for \0x0?
\0 in addition to \x, meaning the same thing? I
ndows and several other OSes (I
think, I like to play with Unicode but have little actual use for it),
ALT-0nnn is spelt in decimal only. Decimal Unicode ordnals are
fundimently flawed (since blocks are always on nice even hex numbers,
but ugly decimal ones), but useful anyway).
-=- James Mastros
--
0101 \101 p5/C compatable Unintutive
0o101 \o101 ConsistentHard to read
0c101 \o101 keeps \c for Inconsistent
control-char
0c101 unsupported Consistentoctal string chars
unsupported
0t101 \t101 Consistentwhat's tab?
Or somthing else?
All choices are bad, which one is best?
-=- James Mastros
tion to text which they enclose; they can be
embedded within interpolated strings.
\L{}Lowercase all characters within brackets
\U{}Uppercase all characters within brackets
\Q{}Escape all characters that need escaping
within brackets (except "}")
h
aren't neccessarly the same -- zero-width non-breaking space is
nonprinting, and doesn't wordbreak, but is whitespace!
=head2 Gory Details of parsing quoted constructs
I think this section is going to be very much different -- since the
perl6 parser is going to be defined in perl6 regexes, it may just say
"see anydelimiter.pl and quoted.pl".
-=- James Mastros
t, IE 22#11
is 1*22**1+1, 22#0:11 is 0*22**1+11.)
Another possiblity is to simply consider base>36 numbers with no colons
to be in error, which might be best.
-=- James Mastros
need to create typed C numbers without risking
to lose precision, you should write them as a string literals:
I think Larry has mandated the oppisite -- that we Do The Right Thing
with bigints automaticly -- IE that BigInt is a subclass of Int, with
full automatic promotion. (I think this isn't going to be true of
little-i int, though.)
-=- James Mastros
On 11/27/2002 3:09 AM, Dan Sugalski wrote:
At 1:02 AM -0500 11/27/02, James Mastros wrote:
On 11/25/2002 9:02 PM, Dan Sugalski wrote:
Pretty straightforward. Edit call_types.txt. First parameter's the
return type, the rest are the parameter types. Use "p" for any
generic
probably never really complete. For
now, I'm just reading along and occasionaly kabitzing.)
-=- James Mastros
On 11/26/2002 8:02 AM, James Mastros wrote:
Guys, can we please not argue over just how arithmetic and such works
for NaN and Inf, and defer to IEEE specs (IEEE-754, AKA IEEE floating
point)? It'll save much argument, and that's how it'll almost
certianly be implemente
hat last point.) This whole paragraph might properly be pushed
off to the discussion of Num in Bool context later.)
-=- James Mastros
e a list returns it's last element
whereas an array returns it's size, because it simply ain't so, and
causes confusion. (I'd write an RFC suggesting that the scalar comma op
dies, but it's too late, and I'm sure somebody already did. Anyway,
that's a p6l thing too.)
-=- James Mastros
. So far, it looks like a
very nice list -- high signal, low noize, and it's possible to keep it
all straight in your head.
-=- James Mastros
On Sat, 15 Dec 2001, David & Lisa Jacobs wrote:
> Are the missing ops (e.g. mul_i_ic_i) intentional or just not implemented
> yet.
Intentional; since mul is communitive, there's no reason to have versions
with args 2&3 i,ic and ic,i.
-=- James Mastros
--
"
any file changes, which
would be the easiest way of doing it.)
-=- James Mastros
--
"In the case of alchemy v chemistry the chemists know whether it will
probably go bang before they try it (and the chemical engineers still duck
anyway)." -=- Alan Cox
On Tue, 4 Dec 2001, Dan Sugalski wrote:
> Q: What about endianness?
> A: Native endianness. Byteswapping's easy enough.
Where in the packfile does it define the native endinaness of floats?
(Note "native endianess" has to include wheather the sign is the MSB or
the LSB, and the endianness of the e
;Under the same terms as _parrot_ should be fine.
-=- James Mastros
--
"In the case of alchemy v chemistry the chemists know whether it will
probably go bang before they try it (and the chemical engineers still duck
anyway)." -=- Alan Cox
onment, the OS's
poor excuse for a hash that was useful for taking persistant parameters
from the shell.
I didn't think that it was an advanced IPC mechinisim. I didn't think
anything that even resembled IPC was any of core.ops & pals domain.
Peace, Love, and Turnpike,
just that there's a good way
to deal with it in p6, because we have our choice of semantic.)
-=- James Mastros
--
"In the case of alchemy v chemistry the chemists know whether it will
probably go bang before they try it (and the chemical engineers still duck
anyway)." -=- Alan Cox
think they should get their own %ENV.
-=- James Mastros
--
"In the case of alchemy v chemistry the chemists know whether it will
probably go bang before they try it (and the chemical engineers still duck
anyway)." -=- Alan Cox
hinking. You can simulate it with a properly
constructed PMC, of course, but that makes the output be of not much use.
(Of course, I notice you didn't ask that question.)
-=- James Mastros
--
"In the case of alchemy v chemistry the chemists know whether it will
probably go ba
e letters are also numbers (Aleph is also 1, Bet is also
2, etc.))
(Damm... when did I become such a Unicode fanatic. The only language I
acatualy know doesn't even use most of Latin-1.)
-=- James Mastros
--
"In the case of alchemy v chemistry the chemists know whether it will
p
about platdeps.
-=- James Mastros
--
"In the case of alchemy v chemistry the chemists know whether it will
probably go bang before they try it (and the chemical engineers still duck
anyway)." -=- Alan Cox
On Thu, 29 Nov 2001, Simon Cozens wrote:
> On Thu, Nov 29, 2001 at 06:41:36PM +, Alex Gough wrote:
> I'd prefer you did it the way Perl does it - if (foo < 0) foo = -foo;
Why? For at least x86, your way will be a lot slower.
-=- James Mastros
--
Put bin Laden out li
On Wed, 28 Nov 2001, Andy Dougherty wrote:
> Longer term, James Mastros was working on splitting out the larger
> platform-specific chunks (e.g. dynaloading, async I/O, time functions,
> etc.). See the earlier thread "Platform splitting, mark 2" for details.
> I&quo
I
> know others disagree.
I think we can get the best of both worlds. We, I think, should be able
to get the bytecode format such that it is mmapable on platforms with the
same endiannes and sizeof(INTVAL), and nonmmapable otherwise.
-=- James Mastros
--
Put bin Laden out like a bad ci
r (the fd), and some
(win32 CreateFile(), for example) want to return a void* (the file
handle). (This is a pointer to a kernel-allocated structure that will
cause a segfault to directly access, BTW, so no GC problems here.)
I propose that we make INTVAL and opcode_t the same size, and gaurrenteed
to
.
Note that some (many) possible methods havn't been written. (Esp. for
dynloading.) This is still proof-of-concept stage, largly.
-=- James Mastros
--
God has both Tea and No Tea -=- SLM
platforms.tar.gz
Description: Binary data
got a bit of a problem.
This is completly untested on anything but my the linux and winME sides of
my computer. (The windows side gets errors in core_ops.c that I can't seem
to track down.)
-=- James Mastros
Index: Configure.pl
===
uot;,
> but that wouldn't really help that much. And I could fudge it all
> with macros, but that's a Perl 5 thing to do.
I don't see doing it with a macro as too bad, so long as the macro is
decently localized. (If you don't like macros because of their
preprocessor natur
stead of sepperatly?
-=- James Mastros
ead lock failed - giving up
Sombody want to fix that? Presumably, it's a dead lockfile that needs to be
deleted.
-=- James Mastros
requires some uniformity on how handles are created
> (ergo always from the arena).
I think we can just declare like
struct PMC {
struct PMC *next, *prev; // GC stuff, don't touch!
}
and trust XS writers not to touch.
-=- James Mastros
An INTVAL should never get a /native/ pointer in it. However, when we do
relitave or absolute jumps in parrot code, the destination is an INTVAL.
Also, there's a good chance that PMC constants or non-constants may be at
some points native pointers, and it would probably help effinceny for
sizeof(INTVAL)==sizeof(PMC), no?
-=- James Mastros
uestion is 5 of 8. Perl, PHP,
Python, and Tcl we plan (AFAIK) on being compilable to Parrot, and
possibly XSLT as well. (I have no idea how much sense considering XSLT
being "compiled" to a VM makes.)
Mozilla, ".NET Framework", Web Services, and XML I see as N/A on a Parrot
lev
the exception #defines are currently only used for errorlevels
on the intepreter's death.)
> (The general gist of the patch is damn good, btw)
I agree. (The documentation is even more lacking then in mine, though.
Dan'll complain. Or should, anyway.)
-=- James Mastros
--
Put bin Laden out like a bad cigar: http://www.fieler.com/terror
"You know what happens when you bomb Afghanastan? Thats right, you knock
over the rubble." -=- SLM
shouldn't it make the MOPS numbers look better, not worse?
-=- James Mastros
--
Put bin Laden out like a bad cigar: http://www.fieler.com/terror
"You know what happens when you bomb Afghanastan? Thats right, you knock
over the rubble." -=- SLM
On Wed, Nov 07, 2001 at 10:15:07AM -0500, Ken Fox wrote:
> I've been thinking of ways to speed up stuff like:
> foreach my $x (@vector) {
> $x *= $scale
> }
>
> If Perl can keep the loop index in an integer register, then Parrot
> could use fast loop ops. IMHO there's no point in using fa
to
tell it how to get core_ops.c. (Note that in the current Makefile, we
special-case it.)
-=- James Mastros
5,98, or Me. But so long as we don't care, the security descriptor
parameter can be NULL, and it will work fine on both.)
I should note, BTW, that I don't write windows programs when I can manage
not to, and I don't run NT.
-=- James Mastros
he point where different modules can have different
GCs... but I don't think it's reasonably possible.
Without doubt, there should be a way for parrot code to modify the
properties of the GC, like the frequency of calling, and to specify "run the
GC now".
-=- James Mastros
1 - 100 of 191 matches
Mail list logo