The strings branch

2009-01-24 Thread Simon Cozens
Hello all, As you probably know by now, I'm really fired up about making sure that Parrot's string handling works well and supports a good range of character sets and encodings. To this end, I sketched out PDD28 with Allison and a cast of hundreds, and now I'm working on implementing it.

Re: For your encouragement

2008-12-05 Thread Simon Cozens
Geoffrey Broadwell wrote: > Someone needs to reply to the comments from readers who have confused > DBI and DBDI, and have thus decided we are turning Perl into Java. It's Perl people, Geoffrey. You tell them that you've made a racing car out of old biscuit tins, they'll tell you that you painted

For your encouragement

2008-12-05 Thread Simon Cozens
I just ran this code, which worked with the expected results: use DBDI; my $conn = DBDI::DriverManager.getConnection("dbdi:SQLite3:test.db", "", ""); my $stm = $conn.createStatement(); my $rs = $stm.executeUpdate("CREATE TABLE foo (bar, baz)"); my $stm = $conn.prepareStatement("INSERT INTO foo (b

Re: Assignment of UnManagedStruct in Perl6

2008-11-19 Thread Simon Cozens
Patrick R. Michaud wrote: > In r32873 I've updated assignment semantics so that it now tries to > do the right thing when dealing with something coming from outside > Rakudo's type system. In particular, assigning an UnManagedStruct > to a scalar value should now properly take a reference instead

Assignment of UnManagedStruct in Perl6

2008-11-18 Thread Simon Cozens
I'm writing an SQLite extension. I have it working fine in PIR, but the bridge to Perl 6 is causing problems. Specifically, this Perl 6 code works: SQLite::pmc_check(SQLite::open("test.db")); # Returning 0x2d1efa0 # PMC 0xedf1a8 data pointer 0x2d1efa0 # PMC 0xedf1a8 data pointer 0x2d1efa0 But thi

Re: [perl #49762] parrot 0.5.2 make fails on mac ppc with leopard 10.5.1

2008-06-03 Thread Simon Cozens
Sure, what do you need me to do? S Sent from my iPod On 3 Jun 2008, at 23:46, "James Keenan via RT" <[EMAIL PROTECTED] > wrote: Resolution of this ticket appears to depend on having Mac OS X 10.5 (whether on ppc or on intel). Is there anyone who can volunteer to work on this? Thank you ve

Re: Character sets PDD ready for review

2008-03-13 Thread Simon Cozens
Simon Cozens wrote: I think I've finished doing what I can with docs/pdds/draft/pdd28_character_sets.pod for the time being. Please have a look at it, and let me know if there's anything wrong, anything unclear, anything missing or anything objectionable about it Warno

Character sets PDD ready for review

2008-03-08 Thread Simon Cozens
Hi folks, I think I've finished doing what I can with docs/pdds/draft/pdd28_character_sets.pod for the time being. Please have a look at it, and let me know if there's anything wrong, anything unclear, anything missing or anything objectionable about it. Character set and encoding support is

Re: [perl #50018] [BUG] rakudo segfaults after "No scope found for PAST::Var" error

2008-01-22 Thread Simon Cozens
Edwin Steiner (via RT) wrote: I found that rakudo segfaults when the following statements are executed interactively: Oops, I told RT but I didn't tell p6i: This is the same bug as #49758; merging tickets. -- Grr... don't get me started on Wagner. The man couldn't resolve a dominant seventh t

The horror, the Unicode horror

2008-01-15 Thread Simon Cozens
Hello all. This is a plea from the heart. Parrot was designed from the very beginning to support abstract interfaces to strings, to avoid the scary hairiness we had converting a Unicode-agnostic Perl 5.5 into a Unicode-aware 5.6. Believe me, it was not fun. So when I see stuff like th

Re: [perl #49762] [configure] JIT configuration problems on OS X

2008-01-14 Thread Simon Cozens
Joshua Hoblitt via RT wrote: What is the OSX toolchain solution for inline asm with fat binaries? Architecture-specific ifdefs. gcc -arch ppc -arch i386 will run the compile twice, and then bundle the two results together, so ifdefs will do the right thing. At some point we have to assume

Re: [perl #48497] [BUILD] Missing opcodes should be an error

2008-01-09 Thread Simon Cozens
James Keenan via RT wrote: > The build tools tests are intended to be run after someone has made > changes in modules such as lib/Parrot/Pmc2cUtils/, Ops2cUtils and > Ops2pmutils/. They're set up to be run after Configure.pl has completed > but before make has been invoked. (In fact, they will ge

Re: Proposal: split ternary ?? :: into binary ?? and //

2005-09-08 Thread Simon Cozens
[EMAIL PROTECTED] (Larry Wall) writes: > So let's go ahead and make it ??!!. (At least this week...) I hereby christen this "the interrobang operator". (http://en.wikipedia.org/wiki/Interrobang) -- "Your fault: core dumped" -- MegaHAL

Re: Declarations of constants

2005-05-31 Thread Simon Cozens
[EMAIL PROTECTED] (Adam Kennedy) writes: > Forgive my ignorance here, but for all of these different ways of > doing constants, will they all optimize (including partial > evaluation/currying) at compile/build/init/run-time? Gosh, I hope not. > my $gravity is constant = 10; # One significant figu

Re: Anonymous classes

2005-05-29 Thread Simon Cozens
[EMAIL PROTECTED] (Ingo Blechschmidt) writes: > I think the only thing you're missing are two braces: > $.request_class = class is Foo::Request {}; Thank you; then how do I put methods into $.request_class? -- "I will make no bargains with terrorist hardware." -- Peter da Silva

Anonymous classes

2005-05-29 Thread Simon Cozens
Hello, I'm having a seriously good time porting Maypole to Perl 6. If you still have reservations about how Perl 6 is going to be to program in, I urge you to try programming in it. Now, commercial over, I have some questions. What's the syntax for declaring inherited anonymous classe

Re: What Requires Core Support (app packaging)

2004-09-07 Thread Simon Cozens
[EMAIL PROTECTED] (Dan Hursh) writes: > Um, on a somewhat unrelated note, having tried to get a department of > mine to switch over to perl from csh and REXX of all things, I have > co-workers I hope never see this. They may need to write their own operating system if they want to avoid the dodgy

Re: What Requires Core Support (app packaging)

2004-09-06 Thread Simon Cozens
[EMAIL PROTECTED] (John Siracusa) writes: > Don't you think it's preferable to temp-expanding and compiling at runtime? Not if it's slower, no. The choice was made not to go with bytecode because of a deficiency in Perl. If that deficiency wasn't there, then sure, go with bytecode. But you're mis

Re: What Requires Core Support (app packaging)

2004-09-06 Thread Simon Cozens
[EMAIL PROTECTED] (John Siracusa) writes: > PAR doesn't compile or precompile to bytecode, it packages, temp-expands, > and runs. It *could* do this, but loading bytecode in Perl 5 is slower than loading and compiling source, so there's not really much point. What's so magic about bytecode, anyway

Re: S4: Can PRE and POST be removed from program flow?

2004-09-05 Thread Simon Cozens
[EMAIL PROTECTED] (John Siracusa) writes: > there's an official way, you'll certainly see less wheel reinvention than in > Perl 5. This is a good thing. That is only true if you accept the fundamentalist principle that one should never reinvent wheels. If that were true, then we wouldn't be worki

Re: S4: Can PRE and POST be removed from program flow?

2004-09-04 Thread Simon Cozens
[EMAIL PROTECTED] (John Siracusa) writes: > Anyway, what it'll give me is "official" support for this type of thing. Call me a crazy man, but I *like* the lack of official support. I actually count it as a Good Thing that perl can be made to do cool stuff without Larry having to explicitly declar

Re: Instantiation

2004-08-24 Thread Simon Cozens
[EMAIL PROTECTED] (Aaron Sherman) writes: > > my $x = Some::Module::That::Defines::A::Class.AUTOLOAD.new("blah"); > > Wow, that's pretty amazing... uh... I think I'd just prefer to do it > the old fashioned way. If my suggestion was really that horrific, I > withdraw the question. These days, to

Re: push with lazy lists

2004-07-16 Thread Simon Cozens
[EMAIL PROTECTED] (David Storrs) writes: > Does it even make sense to take the Infiniteth element of an array? You should have used a hash in the first place. -- BASH is great, it dumps core and has clear documentation. -Ari Suntioinen

Re: scalar subscripting

2004-07-12 Thread Simon Cozens
[EMAIL PROTECTED] (Juerd) writes: > Could methods like "[]" and "{}" *default* to "postcircumfix:"? A more interesting question is "does it mean anything for them *not* to be postcircumfix"? After all, the only other use would be "$foo.[]($bar, $baz)", which is practically identical. Unless you w

Re: A stack for Perl?

2004-06-29 Thread Simon Cozens
[EMAIL PROTECTED] (Luke Palmer) writes: > > $_='foo bar baz'; > > split; > > # @STACK now is (1, 'foo', 'bar', 'baz'); > > I can imagine some uses for that... > > Sick... and... wrong. :-) > > Not only would it mess with what things have to do in void context, it > would fudge up the garba

Re: definitions of truth

2004-06-26 Thread Simon Cozens
[EMAIL PROTECTED] (Paul Hodges) writes: > Do note that I realize I can check it. It's just that for no reason I > can quite define, my C background wants a null byte to be FALSE without > any special chicanery on my part when checking. I can live with the > fact it isn't going to be, it just seems

Re: Simon Cozens has really painful hands

2004-05-19 Thread Simon Cozens
[EMAIL PROTECTED] (Austin Hastings) writes: > > message is something I really need to respond to, I probably won't > > reply for the time being or will reply curtly. > > The difference? Yeah, I doubt anyone will notoice. > Feel better, Simon. Thanks. And no thanks to whatever worm it was tha

Re: RFC eq and ==

2004-05-18 Thread Simon Cozens
[EMAIL PROTECTED] (Chromatic) writes: > Is "10" a string? Is it a number? Is "10base-T" a string? Is it a > number? Is an object with overloaded stringification and numification a > number? Is it a string? > > I don't know a good heuristic for solving these problems. If you have > one, it's

Re: C style conditional statements

2004-05-12 Thread Simon Cozens
[EMAIL PROTECTED] (Aaron Sherman) writes: > is it really that new and scary? No, but not for the reasons you think. You seem to believe that you're comparing Perl and a Perl-derived language and pointing out that they're both like Perl, but it looks like you're comparing two Algol-derived language

Re: C style conditional statements

2004-05-12 Thread Simon Cozens
[EMAIL PROTECTED] (Luke Palmer) writes: > familiar. You'll find this in the earlier Exegeses, Piers Cawley's > article "Perl 6: Not Just for Damians" > (http://www.perl.com/pub/a/2001/10/23/damians.html), some of the > presentations from the last few conference seasons, and scattered about > the c

Re: Completely OT question about a Larry quote

2004-05-11 Thread Simon Cozens
[EMAIL PROTECTED] (Simon Cozens) writes: > I remember reading a transcript of a talk Larry gave sometime which mentioned > a conversation between Heidi Wall and Damian Conway, in which Heidi said > something like "But what is the future apart from a succession of tomorrows?"

Completely OT question about a Larry quote

2004-05-11 Thread Simon Cozens
I apologise for asking this here, but I can't think of anywhere better for it, and I have a feeling what I'm looking for was in a Perl 6-related talk, so... I remember reading a transcript of a talk Larry gave sometime which mentioned a conversation between Heidi Wall and Damian Conway, in which

Re: Hash internals?

2004-04-27 Thread Simon Cozens
[EMAIL PROTECTED] (Sumanth Sharma) writes: > Pls throw some light on How are hashes handled internally in Perl?. Fst, this is the Perl 6 internals list, and I suspect you want an answer about Perl 5. Assuming you do want an answer about Perl 5, please see http://www.netthink.co.uk/downloads/i

Re: Compatibility with perl 5

2004-04-26 Thread Simon Cozens
[EMAIL PROTECTED] (Larry Wall) writes: > It would be a (roughly) zero growth option to simply > switch to :x syntax for command-line switches instead of -x syntax. And POSIX be damned! -- A person is smart. People are dumb, panicky dangerous animals and you know it. - Agent J, Men in Black

Re: A12: The dynamic nature of a class

2004-04-23 Thread Simon Cozens
[EMAIL PROTECTED] (Jeff Clites) writes: > So what does "$foo = 12" in that context actually mean in Perl6? Another interesting question is "in Perl 6, are variables typed, values typed, or a little of both?" It seems that Parrot has been working primarily on the assumption that it's values that a

Re: A12: Typed undef

2004-04-23 Thread Simon Cozens
[EMAIL PROTECTED] (Austin Hastings) writes: > > which doesn't quite work, because $spot is undefined. What probably happens > is that the my cheats and puts a version of undef in there that knows it > should dispatch to the Dog class if you call .self:new() on it. Anyway, > we'll make it work one

Re: A12: The dynamic nature of a class

2004-04-23 Thread Simon Cozens
[EMAIL PROTECTED] (Dan Sugalski) writes: > my Joe $foo; > > emits the code that, at runtime, finds the class ID of whatever Joe's > in scope, instantiates a new object of that class Uh, is that right? I don't think that "my" is a constructor, more a typing declarator. -- Hi, this is Ken. Wh

Re: backticks

2004-04-16 Thread Simon Cozens
[EMAIL PROTECTED] (Mark J. Reed) writes: > > The biggest use of modulus is in implementing hashes > > Rather, one of the biggest uses. I don't have documentation to support > the claim that it is the biggest, and there are certainly others - > date arithmetic, astronomy etc. I'll bet you the ac

Re: backticks

2004-04-14 Thread Simon Cozens
[EMAIL PROTECTED] (Aaron Sherman) writes: > $ find . -name \*.pl | wc -l > 330 > $ find . -name \*.pl -exec grep -hlE 'qx|`|`|readpipe' {} \; | wc -l > 123 > > `` gets used an awful lot But that's in Perl 5, which is a glue language. -- "Though a program

Re: Q: Can colons control backtracking in logical expressions?

2004-04-02 Thread Simon Cozens
[EMAIL PROTECTED] (Austin Hastings) writes: > > if (specific() ?? detail1() && detail2() :: general()) {...} > > For some value of "correct" I suppose. Using ??:: within an if/else context > makes my skin crawl, stylistically. :-( Ah, then use if! if (if(specific()) { detail() } else { ge

Re: Default program

2004-04-01 Thread Simon Cozens
[EMAIL PROTECTED] (Austin Hastings) writes: > Since the emacs codebase is already ported to many platforms, it should > be trivial to add this to the core perl distribution. Perhaps Simon > would agree to lead this effort? I would laugh, but http://search.cpan.org/~jtobey/Emacs-EPL-0.7/ -- On ou

Re: New functions in the core (Was Re: Dereferencing Syntax)

2004-03-26 Thread Simon Cozens
[EMAIL PROTECTED] (Joe Gottman) writes: > This function would be very useful in inner loops, so if it is possible to > implement it more efficiently in the core than as a sub in a module I think > we should do so. And, if it's possible to implement it more efficiently in the core than as a sub in

Re: Outer product considered useful

2004-03-22 Thread Simon Cozens
[EMAIL PROTECTED] (Austin Hastings) writes: > Before this gets simonized, let me add that this seems genuinely useful: It provides > a way of constructing a loop in a dimension that is not really accessible, except > via recursion. Oh, it *is* useful, and it's extremely nice to know that someth

Re: Some questions about operators.

2004-03-20 Thread Simon Cozens
[EMAIL PROTECTED] (Austin Hastings) writes: > > I'm not sure that having quaternary logic in Perl 6 is necessarily a good > > idea. Why stop only at four states? > > Total about twelve possible "states" plus junctions, of which eight or nine > would be 'useful', and only three would be knowingly u

Re: Some questions about operators.

2004-03-20 Thread Simon Cozens
I'm not sure that having quaternary logic in Perl 6 is necessarily a good idea. Why stop only at four states? -- ... though the Japanese must be the most stupid people... I'm sure I read somewhere that Tokyo has the densest population in the world... - Gid Holyoake, sdm.

Re: Operators that keep going and going...

2004-03-14 Thread Simon Cozens
[EMAIL PROTECTED] (Carissa) writes: > Obviously the Perl6 community has accepted that it's possible to have > variants on operators for things like vectorization. I'm wondering if there > would be any desire, need or room for what I have so far thought of as > "persistent" (or "Energizer Bunny") o

Re: Mutating methods

2004-03-12 Thread Simon Cozens
"Oh, it's got lots of Japanese in it, I'd better read it..." :) [EMAIL PROTECTED] (Larry Wall) writes: > Some will argue that since English doesn't have a grammatical > postfix topicalizer like Japanese, we should stick with something > like more English-like: > > $x = (.a + .b + .c given $f

Re: Whither Apocalypse 7?

2004-02-29 Thread Simon Cozens
[EMAIL PROTECTED] (Dave Mitchell) writes: > Did I miss something? Was there ever an apocalyse 7? Yes, there was. It was tacked on the end of Apocalypse 6, and said essentially "No longer in core. See Damian." -- DYSFUNCTION: The Only Consistent Feature of All of Your Dissatisfying Relati

Re: Exegesis 7: Some other tyops

2004-02-28 Thread Simon Cozens
[EMAIL PROTECTED] (Damian Conway) writes: > Thanks for those. We'll leave them out overnight and see if the elves > will make them disappear from the various on-line versions. ;-) It may take a *couple* of nights, but the elves will be at work. -- Gods, you know your house is full of goths when

Re: Exegesis 7: Page Length

2004-02-28 Thread Simon Cozens
[EMAIL PROTECTED] (Smylers) writes: > Also, not strictly to do with formats but raised by the above, how is > infinity written in Perl 6? ⠈ž ? -- even though I know what a 'one time pad' is, it still sounds like a feminine hygiene product.

Re: Exegesis 7: Page Length

2004-02-28 Thread Simon Cozens
[EMAIL PROTECTED] (Smylers) writes: > Also, not strictly to do with formats but raised by the above, how is > infinity written in Perl 6? ⠈ž -- Complete the following sentence: People *ought* to weigh bricks, cats and cinnamon in the same units because... - Ian Johnston

Re: Perl 6 timeline?

2004-02-26 Thread Simon Cozens
[EMAIL PROTECTED] (Aaron Sherman) writes: > At the current rate, the aforementioned apoc #11 will be out sometime > after I die, a frustrated old man who remembers the glory days of Perl > 3. The current rate is not going to be sustained; the Perl 6 class sytem is a massive thing, and once that's

Re: Perl 6 timeline?

2004-02-26 Thread Simon Cozens
[EMAIL PROTECTED] (Bennett Todd) writes: > 2004-02-26T14:26:47 Larry Wall: > > Well now, I remember Perl 0, sonny. > > Does that still exist anywhere? If nowhere else, Larry's got a copy IN HIS HEAD. :) -- I have heard that the universe does not support atomic operations (although I've not see

Re: Perl 6 timeline?

2004-02-26 Thread Simon Cozens
[EMAIL PROTECTED] (Larry Wall) writes: > It's the coherence that I can't delegate, and if I tried to, we would > certainly end up with Second System Syndrome Done Wrong, instead of Done > Right. You know, it's statements like this that make it hard for even me to be curmudgeonly. > E7 is com

Re: The Sort Problem

2004-02-12 Thread Simon Cozens
[EMAIL PROTECTED] (Dave Whipp) writes: > @sorted = sort { infix:<=> map { scalar $_.foo('bar').compute } @^_ } } > @data Abusing the rubyometer slightly: @data = @sorted.sort( op => &infix:<=>, key => { $^a.foo('bar').compute } ); -- If the code and the comments disagree, then both are probably

Re: The Sort Problem

2004-02-12 Thread Simon Cozens
[EMAIL PROTECTED] (Aaron Crane) writes: > One option might be an 'rsort' function, but I think that's somewhat lacking > in the taste department. Agreed. > Another might be as simple as > > @unsorted ==> sort ==> reverse ==> @sorted; @sorted <== sort <== @unsorted, no? ;) > @unsorted ==>

Re: This week's summary

2004-02-10 Thread Simon Cozens
[EMAIL PROTECTED] (Michael Scott) writes: > On 10 Feb 2004, at 14:09, The Perl 6 Summarizer wrote: > > I wonder how long it'll be before someone reimplements > > them in in PIR... > > or Perl6 perchance. Well, Perl6::Rules should be coming out soon, so that should help. -- The problem with

Two things to think about

2004-02-06 Thread Simon Cozens
Just some opinion pieces: http://www.ondotnet.com/pub/wlg/3941 and my reply http://blog.simon-cozens.org/bryar.cgi/id_6649 -- You can't have everything... where would you put it? -- Steven Wright

Re: Backward branch, warnocked.

2004-02-03 Thread Simon Cozens
[EMAIL PROTECTED] (Leopold Toetsch) writes: > It can be fixed. It'll take a lot of overhead. Following all branches in > spaghetti code is a PITA. > > Just don't do that. Separate your subs in distinct compilation units. And then you don't need to worry about the fact that Parrot running computer

Re: Semantics of vector operations

2004-02-02 Thread Simon Cozens
[EMAIL PROTECTED] (Andy Wardley) writes: > Sure, make Perl Unicode compliant, right down to variable and operator > names. But don't make people spend an afternoon messing around with mutt, > vim, emacs and all the other tools they use, just so that they can read, > write, email and print Perl

Re: Messages delayed, out of order

2004-01-29 Thread Simon Cozens
[EMAIL PROTECTED] (Will Coleda) writes: > What's going on with the ordering of messages? My message of : Tue, 27 Jan 2004 > 19:53:15 -0500 just made it to the list, a day after my (also delayed) /followup/ to > that message. And Leo, who responded to the most recent, had his email make it to > t

Re: Optimization brainstorm: variable clusters

2004-01-17 Thread Simon Cozens
[EMAIL PROTECTED] (Dave Mitchell) writes: > The perl5 internals are a complete mess. It's like Jenga - to get the > perl5 tower taller and do something new you select a block somewhere in > the middle, with trepidation pull it out slowly, and then carefully > balance it somewhere new, hoping the wh

Re: Optimization brainstorm: variable clusters

2004-01-16 Thread Simon Cozens
[EMAIL PROTECTED] (Dan Sugalski) writes: >if ($foo > 10) { > print $foo; >} > This is mainly because of the possibility of tied or > overridden namespaces, which would argue for a refetch on each use. No, come on, Dan. It's far worse than that. It'll be possible, from Perl-space to o

Re: Archive tarball?

2004-01-08 Thread Simon Cozens
[EMAIL PROTECTED] (Michael.Firestone) writes: > As there is no search engine at this moment groups.google.com might work for you. -- Wouldn't you love to fill out that report? "Company asset #423423 was lost while fighting the forces of evil." -- Chris Adams in the scary.devil

Creating "proper" interpreters with Parrot

2004-01-08 Thread Simon Cozens
What's left to do to allow Parrot to be embedded into an interpreter and have IMCC fed directly to it? cola seems to be the closest thing in languages/ to do this, but even that requires shelling out to system calls. I'd like to start putting together some little language interpreters. -- For

Re: References to hash elements?

2004-01-06 Thread Simon Cozens
Jeff Clites: > But here what I'm copying is the _contents_ of the hash slot. True, but irrelevant. :) > And here I'm not making a copy, but also the thing I'm taking a > reference to is not the same thing I copied above. Here, it's a > reference to a hash slot. No, it isn't. It's a reference t

Re: References to hash elements?

2004-01-06 Thread Simon Cozens
Jeff Clites: > But there's a semantic difference between a "reference to a hash > element" and a "reference to something which happens to have come out > of a hash". True, but irrelevant. :) > $a = $hash{bar}; Here you used the copy constructor before taking the reference. It might look like a

Re: References to hash elements?

2004-01-06 Thread Simon Cozens
Arthur Bergman: > I am wondering how the references to hash elements are planned to be > done? The call to set_ must somehow be delayed until the time is right. I would have thought that a hash element would itself be a PMC rather than an immediate value, so a reference to that should be treated

Re: but true

2003-12-20 Thread Simon Cozens
[EMAIL PROTECTED] (Larry Wall) writes: > is classof($x) Ouch. $x's class isn't a property or trait of it? > class AnonClass is classof($x) does FooBar { }.bless($x, foobar => bar) I don't understand what the bit at the end is doing. This is calling .bless on the overriden method? And I'm not

Re: Vocabulary

2003-12-17 Thread Simon Cozens
[EMAIL PROTECTED] (Michael Lazzaro) writes: > Well, just for clarification; in my anecdotal case (server-side web > applications), the speed I actually need is "as much as I can get", > and "all the time". Every N cycles I save represents an increase in > peak traffic capabilities per server, whic

Re: >>OP<< [was: Re: Properties] [OT]

2003-12-03 Thread Simon Cozens
[EMAIL PROTECTED] (Paul Hodges) writes: > I am not seeing unicode. Don't worry because, and I honestly don't mean this disparagingly - by the time Perl 6 is ready for prime-time, you will. Larry got this one right. -- "Jesus ate my mouse" or some similar banality. -- Megahal (trained on

Re: Properties

2003-11-27 Thread Simon Cozens
[EMAIL PROTECTED] (Larry Wall) writes: > P.S. I think we deserve a $rubyometer-- for bypassing mixins. I think you deserve loud and wild applause for an object model I want to use Right Now Dammit. -- Overall there is a smell of fried onions. (fnord)

Re: 'Core' Language Philosophy [was: Re: 'catch' statement modifier]

2003-11-26 Thread Simon Cozens
[EMAIL PROTECTED] (Michael Lazzaro) writes: > I think we also need to be skeptical of the false economy of putting such > sugar into CP6AN, if a sizable portion of the community is going to > download it anyway. "The standard Perl library will be almost entirely removed. The point of this is to fo

Re: s/// in string context should return the string

2003-11-21 Thread Simon Cozens
[EMAIL PROTECTED] (Luke Palmer) writes: > $substituted = ($text ~~ s/$pattern/$replacement/) but nothing; Surely "no buts"? :) > What I really want is a functional version of s///. Like: > my $substituted = $text.s(/$pattern/, { $replacement }); > Without modifying $text. $rubyometer++;

Re: [perl] RE: s/// in string context should return the string

2003-11-19 Thread Simon Cozens
[EMAIL PROTECTED] (Allison Randal) writes: > We talked about this today. Our current thought is to retroactively > write the Synopses and keep those up-to-date (with notes in the outdated > parts of the A's and E's pointing to the relevant section of the > S's). To be honest, I don't care how it's

Re: [perl] RE: s/// in string context should return the string

2003-11-19 Thread Simon Cozens
[EMAIL PROTECTED] (Larry Wall) writes: > Sigh. There's no =~ operator in Perl 6. How should we go about bringing A3 up to match current reality? It is, after all, over two years old now. -- End July 2001 - Alpha release for demonstration at TPC

Re: Control flow variables

2003-11-18 Thread Simon Cozens
[EMAIL PROTECTED] (Austin Hastings) writes: > This is what I was talking about when I mentioned being able to do: > &cleanup .= { push @moves: [$i, $j]; } This reminds me of something I thought the other day might be useful: $cleanup = bless {}, class { method DESTROY { ... } }

Re: Control flow variables

2003-11-18 Thread Simon Cozens
[EMAIL PROTECTED] (Dan Sugalski) writes: > > Luke Palmer: > > > That's illegal anyway. Can't chain statement modifiers :-) > Will be able to. I thought as much; Perl 6 will only be finally finished when the biotech is sufficiently advanced to massively clone Larry... -- Sometimes it's better n

Re: Control flow variables

2003-11-18 Thread Simon Cozens
Luke Palmer: > Well... it is and isn't. At first sight, it makes the language look > huge, the parser complex, a lot of syntax to master, etc. It also seems > to me that there is little discrimination when adding new syntax. Correct. > But I've come to look at it another way. Perl 6 is doing

Re: Control flow variables

2003-11-18 Thread Simon Cozens
[EMAIL PROTECTED] (Luke Palmer) writes: > I was reading the most recent article on perl.com, and a code segment > reminded me of something I see rather often in code that I don't like. The code in question got me thinking too; I wanted to find a cleaner way to write it, but didn't see one. > So,

Re: How to get environment variables?

2003-11-03 Thread Simon Cozens
[EMAIL PROTECTED] (Andrew Shitov) writes: > Is it possible to get environment variables from perl6 programme? It > failes when I try to use perl5 hash %ENV. Thanks. Are you sure you're using the Perl 6 hash syntax? (%ENV{FOO} rather than Perl 5-style $ENV{FOO}) What version of Perl 6 are you usin

Re: The Block Returns

2003-10-15 Thread Simon Cozens
[EMAIL PROTECTED] (Larry Wall) writes: > But for the time being I'm tied to an IV pole We got rid of those; they're PMC poles now. Get well soon, Simon -- "They laughed at Columbus, they laughed at Fulton, they laughed at the Wright brothers. But they also laughed at Bozo the Clown."

Re: The Block Returns

2003-10-03 Thread Simon Cozens
[EMAIL PROTECTED] (Austin Hastings) writes: > Frankly, I think I'd rather see: Some nits: > macro atexit($code) is parsed(/{ * }/) { Probably just macro atexit($code) is parsed(//) { > $block .= $code; $block _= $code; Dunno what .= would mean now . is method call. I'm sure som

Re: Pondering parameterized operators

2003-09-28 Thread Simon Cozens
[EMAIL PROTECTED] (Luke Palmer) writes: > [$lhs, $rhs]æ\220\215.æ\235\237compile; What's that in old money? -- As the saying goes, if you give a man a fish, he eats for a day. If you teach him to grep for fish, he'll leave you alone all weekend. If you encourage him to beg for fish, pretty soon

Re: Parrot 0.0.11 "Doubloon" Released!

2003-09-20 Thread Simon Cozens
[EMAIL PROTECTED] (Dan Sugalski) writes: > >I know what BASIC means, but what the hell is a PCM and what is a IMCC > >supposed to mean? And what is a CPS? The FAQ doesn't cover this... > > PMC is Pulse Code Modulation That's PCM. PMC is Phillip Martin Cozens, my father. -- Will your long-winded

Re: Next Apocalypse

2003-09-15 Thread Simon Cozens
[EMAIL PROTECTED] (Piers Cawley) writes: > Great. But will it also be possible to add methods (or modify them) > to an existing class at runtime? You only have to look at a Smalltalk > image to see packages adding helper methods to Object and the like People get upset when CPAN authors add stuff t

Implementing Nickle

2003-08-17 Thread Simon Cozens
Not sure if this has been flagged up here or not yet, but it looks interesting: http://nickle.org/implement/html " For non-local jumps caused by break, continue and return statements, Nickle automatically builds a continuation if necessary to ensure that intervening twixt blocks are executed

Re: Apocalypses and Exegesis...

2003-08-14 Thread Simon Cozens
[EMAIL PROTECTED] (Alberto Manuel Brandão simões) writes: > The question is simple, and Dan can have the same problem (or him or > Larry). I am thinking on a Perl 6 book in portuguese (maybe only a > tutorial... but who knows). But that means I must write something which > will work :-) Just a hin

Re: Perl 6's for() signature

2003-08-01 Thread Simon Cozens
[EMAIL PROTECTED] (Damian Conway) writes: > The last thought on the problem that Larry's shared with me was that there > may need to be a special case for allowing a single &block parameter after > the slurpy And the Rubyometer creeps up another few notches... (Gosh, you'd almost think that Matz

Re: Perl6 Daydreams (on topic but frivolous)

2003-06-29 Thread Simon Cozens
[EMAIL PROTECTED] (Jonathan Scott Duff) writes: > My only dream is that by this time next year we have a fully- > functional-people-can-use-it-in-production Perl6. It doesn't even > have to be 100% complete; I think just 85% would be enough if it were > the right 85%. I've been using an 85%-compl

Re: printf-like formatting in interpolated strings

2003-06-16 Thread Simon Cozens
[EMAIL PROTECTED] (Austin Hastings) writes: > replacing, or merging, formats with emit-rules > seems like an interesting project. I dunno, I think it fires my "change for the sake of change" alarm bells. So far we're already throwing away thirty years of^W^W^W^W^W^Wrationalising one Unix little l

Re: printf-like formatting in interpolated strings

2003-06-16 Thread Simon Cozens
[EMAIL PROTECTED] (Edwin Steiner) writes: >Description: This list is for discussing user-visible changes to >the language. > > It's somewhat unnerving to post on topic and (hopefully) politely and I think your post was spot on; the only problem I had with it is that I felt it was addressin

Re: printf-like formatting in interpolated strings

2003-06-16 Thread Simon Cozens
[EMAIL PROTECTED] (Edwin Steiner) writes: > Well, it's a bike shed. Perhaps best not to have people expend lots of energy painting bike sheds until the nuclear reactor's anywhere near functional, though. I think the whole thing can be done, in whatever style people would like, using whatever natt

Re: Multimethod dispatch?

2003-06-02 Thread Simon Cozens
[EMAIL PROTECTED] (Luke Palmer) writes: > It will still have a lot of power in text processing, and still be a > powerful "quicky" language, but that's no longer its primary focus -- > not to say that highly structured programming is. So, uh, what is? > And you can still do it the Perl 5 way in P

Re: == vs. eq

2003-04-01 Thread Simon Cozens
[EMAIL PROTECTED] (Luke Palmer) writes: > I don't know what the "official" (this week) policy is, but I > think it's a bad idea for references to auto-dereference. keys %$hash_r would bore me compared to keys $hash_r, since 'keys' can easily know that it wants a hash; in fact, I thought that auto

Re: == vs. eq

2003-04-01 Thread Simon Cozens
[EMAIL PROTECTED] (Smylers) writes: > No! Please! PHP tried this and gets it very wrong indeed Don't be too hasty on the basis of one failure - Ruby tried it and got it very right indeed. In fact, Ruby has three types of equality/match operator, all slightly different, but most people on

Re: How shall threads work in P6?

2003-04-01 Thread Simon Cozens
[EMAIL PROTECTED] (Matthijs Van Duin) writes: > >Well, if you optimize for the most common case, throw out threads altogether. > > Well, I almost would agree with you since cooperative threading can > almost entirely be done in perl code, since they are built in > continuations. I actually gave a

Re: How shall threads work in P6?

2003-03-31 Thread Simon Cozens
[EMAIL PROTECTED] (Matthijs Van Duin) writes: > I think if we apply the Huffman principle here by optimizing for the > most common case, cooperative threading wins from preemptive threading. Well, if you optimize for the most common case, throw out threads altogether. -- "The bad reputation UNIX

Re: P6ML?

2003-03-26 Thread Simon Cozens
To what extent should the (presumably library-side) ability to parse a given markup language influence Perl 6's core language design? (which is what this list is nominally about.) I think this ought to approximate to "none at all". -- I'd rather have ham in my sandwich than cheese, but complaini

Re: Rules and hypotheticals: continuations versus callbacks

2003-03-19 Thread Simon Cozens
[EMAIL PROTECTED] (Matthijs Van Duin) writes: > OK, I suppose that works although that still means you're moving the > complexity from the perl implementation to its usage: in this case, > the perl 6 parser which is written in perl 6 No, I don't believe that's what's happening. My concern is that

  1   2   3   4   5   6   7   8   9   10   >