Re: Regexp: s//$str/ should replace or add?

2007-04-14 Thread A. Pagaltzis
* gabriele renzi <[EMAIL PROTECTED]> [2007-04-14 22:20]: > sorry about the dumb question but I'm not sure I understand the > assertion. > > If I write something like > my $s="hello" > s//a/ > I expected it to give me > "hallo" > whereas it give ms > "haello". > > Does it mean that basically

Re: How to pass a ref from a language with no refs

2006-09-29 Thread A. Pagaltzis
* Mark Stosberg <[EMAIL PROTECTED]> [2006-09-29 14:18]: > my $p5_dumper = > eval('sub {use Data::Dumper; print Dumper(@_); }', :lang); > > my @a = ; > $p5_dumper.(@a); # received as array > $p5_dumper.([EMAIL PROTECTED]); # received as arrayref > $p5_dumper.(VAR @a); # received as arra

Re: xx operator

2006-09-28 Thread A. Pagaltzis
> I have the following code: > > class MyStupidString { > method repeatit(Str $string, Int $repeat) { > say $string xx $repeat; > my $add = $string xx $repeat; > say $add; > } > > }; > > my $obj = MyStupidString.new; > $obj.repeatit

Re: CGI Session management (was Re: the CGI.pm in Perl 6)

2006-09-21 Thread A. Pagaltzis
* Randal L. Schwartz [2006-09-22 01:25]: > HTML::FillInForm, HTML::Widget, CGI::FormBuilder were *not* in > core. CGI.pm was. One stop shopping. Easy to describe to > people. That still doesn’t prove that tight coupling is necessary between parameter parsing and HTML generation. The concept of c

Re: Web development I: Web::Toolkit

2006-09-20 Thread A. Pagaltzis
* Aankhen <[EMAIL PROTECTED]> [2006-09-21 03:15]: > On 9/19/06, A. Pagaltzis <[EMAIL PROTECTED]> wrote: > >On top of this, roughly 80% (or so it sometimes feels) of the > >useful attributes defined in HT

Re: Perl6 "style-guide"

2006-09-20 Thread A. Pagaltzis
* Juerd <[EMAIL PROTECTED]> [2006-09-21 00:50]: > I've been thinking in Perl 6 terms for quite a while now, I won’t dismiss this claim, but the [EMAIL PROTECTED] = qw( Exporter );` example I mentioned in the other mail cautions me from believing that anyone is particularly fluent with Perl 6 quite

Re: the CGI.pm in Perl 6

2006-09-20 Thread A. Pagaltzis
* Juerd <[EMAIL PROTECTED]> [2006-09-21 00:45]: > And I wouldn't want the nullbyte mistake again. Let's just > stick to the last given value instead. Nobrainer. The nullbyte thing was a Perl-4-ism. > Also, I want parameters to be able to do a certain Upload role, > which adds terribly useful meth

Re: the CGI.pm in Perl 6

2006-09-20 Thread A. Pagaltzis
* Juerd <[EMAIL PROTECTED]> [2006-09-20 22:25]: > I think it's time we moved away from the param method, and > started using a hash. I don’t know about that. The `param` method has the nice property that it allows you to pretend everything’s a single value or to use multi-valued params, at your ow

Re: Perl6 "style-guide"

2006-09-20 Thread A. Pagaltzis
* Fagyal Csongor <[EMAIL PROTECTED]> [2006-09-20 17:00]: > I am afraid that when I will be starting to write Perl6 code, > it will be too much Perl5-ish, Even with a style guide, your Perl 6 code will still be Perl-5-ish. And even once it’s not anymore, six months later you will discover that it’s

Re: the CGI.pm in Perl 6

2006-09-20 Thread A. Pagaltzis
* Randal L. Schwartz [2006-09-20 19:30]: > To get this to work right, whatever I use for HTML generation > needs to know how to get incoming params. Admittedly, the > interface is simple, but it would have to know if I'm using a > functional form with a hidden object (use CGI qw/param/) Which is

Re: CGI Session management (was Re: the CGI.pm in Perl 6)

2006-09-20 Thread A. Pagaltzis
* Randal L. Schwartz [2006-09-20 19:30]: > "Fagyal" == Fagyal Csongor <[EMAIL PROTECTED]> writes: >> yet I never needed those HTML generating methods. > > You've never made a sticky form then. False dilemma. You can create sticky forms conveniently without using CGI.pm’s HTML generation stuff. Y

Re: Web development I: Web::Toolkit

2006-09-19 Thread A. Pagaltzis
* Amir E. Aharoni <[EMAIL PROTECTED]> [2006-09-17 16:25]: > WordPress is an example of a webserver software tool that does > try to produce standard XHTML. It does it by default and very > few bloggers who use it care about it or, for that matter, > notice it. Psh, whatever. Everyone serves their

Re: the CGI.pm in Perl 6

2006-09-19 Thread A. Pagaltzis
* Randal L. Schwartz [2006-09-19 21:25]: > The form-generation stuff needs tight coupling with the getting > (and setting) of the incoming param values. You couldn't just > use two random modules for that... they'd have to specifically > know about each other and work together. Err, no. They jus

Re: more on perl5 modules

2006-09-18 Thread A. Pagaltzis
* Richard Hainsworth <[EMAIL PROTECTED]> [2006-09-18 15:20]: > I copied your neat program into a file, called it gtk2test.p6 > and got > pugs gtk2_test.p6 > *** >unexpected ":" >expecting term postfix, operator, ";" or end of input >at gtk2_test.p6 line 2, column 56 Note my translation

Re: perl6 and a multi-interpreted-language example

2006-09-17 Thread A. Pagaltzis
* William Herrera <[EMAIL PROTECTED]> [2006-09-17 21:50]: > perl 5 (9 lines, 353 bytes) > > use FreezeThaw qw(cmpStr); > > my @a1_9 = (1 .. 9); > my @numbers = sort {rand(10) > $a} @a1_9; > > for (my $steps = 0; cmpStr([EMAIL PROTECTED], [EMAIL PROTECTED]); ++$steps) { >print join(" ", @num

Re: more on perl5 modules

2006-09-17 Thread A. Pagaltzis
* Richard Hainsworth <[EMAIL PROTECTED]> [2006-09-17 18:05]: > The .can workaround doesnt seem to work for more complex > modules. Err, the .can workaround is a way to get past missing sub exports. Methods are never exported. Why are you using the workaround for sub exports on methods. > Here is

Re: Charsets in HTTP (was: the CGI.pm in Perl 6)

2006-09-16 Thread A. Pagaltzis
* Juerd <[EMAIL PROTECTED]> [2006-09-16 22:15]: > My thoughts: > > * Default Content-Type header of "text/html; charset=UTF-8". > * Default output encoding of UTF-8. > * When a new Content-Type is set, but no new encoding > * Keep the default output encoding of UTF-8 >

Re: the CGI.pm in Perl 6

2006-09-16 Thread A. Pagaltzis
* Trey Harris <[EMAIL PROTECTED]> [2006-09-10 23:50]: > But the HTML methods are used everywhere. And the more > novitiate the programmer, the more likely they are to be using > them spaghetti-like throughtout their code. If they discover > that every time they see a C it's going to entail > new c

Charsets in HTTP (was: the CGI.pm in Perl 6)

2006-09-16 Thread A. Pagaltzis
* Darren Duncan <[EMAIL PROTECTED]> [2006-09-09 20:40]: > 4. Make UTF-8 the default HTTP response character encoding, > and the default declared charset for text/* MIME types, and > explicitly declare that this is what the charset is. The only > time that output should be anything else, even Lati

Re: CGI Session management (was Re: the CGI.pm in Perl 6)

2006-09-16 Thread A. Pagaltzis
* Yuval Kogman <[EMAIL PROTECTED]> [2006-09-12 12:05]: > There are *so* many ways to do session handling that lugging > them all into CGI.pm will just make a mess. Agreed, but maybe this is a case where it would make sense to do something like what Perl 6 does for OO vs Perl 5, ie provide one good

Re: Stubborn coworkers

2006-08-31 Thread A. Pagaltzis
* Ryan, Martin G <[EMAIL PROTECTED]> [2006-08-31 03:30]: > "This is a similar problem that Forth and Lisp had." > > How so? Are they multi-paradigmatic leading to a large and > rich selection of syntax and approaches to choose from? Or do > they try to shoe-horn you into a specific approach that

Re: Stubborn coworkers

2006-08-29 Thread A. Pagaltzis
* Jeff Stampes <[EMAIL PROTECTED]> [2006-08-29 17:00]: > Since I came to programming after the days of Forth and Lisp > being prominent languages, I can't dispute nor concur with her > statement. How would you respond? By telling her that the comparison is flawed? Neither Lisp nor Forth have anyt

Re: Announcing the Perl 6 and Parrot wiki workspaces

2006-08-28 Thread A. Pagaltzis
* Andy Lester <[EMAIL PROTECTED]> [2006-08-28 21:05]: > Try it again. That’s better. Regards, -- Aristotle Pagaltzis //

Re: Announcing the Perl 6 and Parrot wiki workspaces

2006-08-28 Thread A. Pagaltzis
* Juerd <[EMAIL PROTECTED]> [2006-08-28 16:35]: > In other words: it's pretty unusably slow with over 15 seconds, > sometimes even 45 seconds per page. I get the same. Andy said it was his home box. Guess his connectivity’s not that great, which makes me wonder why Conrad thought it was a good pla

Re: Lessons from the test function parameter placement quibbles?

2006-07-18 Thread A. Pagaltzis
* Michael G Schwern <[EMAIL PROTECTED]> [2006-07-19 02:10]: > On 7/17/06, A. Pagaltzis <[EMAIL PROTECTED]> wrote: > >Had they been named parameters, we wouldn't be having this > >discussion. > >is got => 'foo', expected => 'bar'

Re: Kwalitee metric: Broken Installer

2006-07-18 Thread A. Pagaltzis
* Randy W. Sims <[EMAIL PROTECTED]> [2006-07-19 00:20]: > For example, who's to say what constitutes a bad version of an > installer How about the installer maintainer himself? As in the case of M::I… Regards, -- Aristotle Pagaltzis //

Re: use Tests; # ?

2006-07-17 Thread A. Pagaltzis
* Fergal Daly <[EMAIL PROTECTED]> [2006-07-17 15:45]: > The standard way to do this is to put > > local $Test::Builder::Level = $Test::Builder::Level + 1; > > at the top of every function in your library that does not > actually call ->ok() use Attribute::Handlers; sub UNIVERSAL::TestHe

Lessons from the test function parameter placement quibbles?

2006-07-17 Thread A. Pagaltzis
Hi all, so by now we’ve had quibbles about the “irregularity” of `skip`, `can_ok` and `isa_ok`, and a suggestion that the test name always go first. Conclusion? Had they been named parameters, we wouldn’t be having this discussion. And you know what? We don’t even need Test::More::NextGen to imp

Re: fetching module version from the command line

2006-07-16 Thread A. Pagaltzis
* Graham Barr <[EMAIL PROTECTED]> [2006-07-17 02:00]: > perl -MDBI\ 999 > DBI version 999 required--this is only version 1.50. > BEGIN failed--compilation aborted. You can use an equals sign instead of a space, there, which makes it a little easier to type: perl -MDBI=666 -e1 Regards, -- #A

Re: Fw: Fixing SKIP:

2006-07-15 Thread A. Pagaltzis
* Jonathan Rockway <[EMAIL PROTECTED]> [2006-07-16 00:45]: > > can_ok cannot accept a description because it accepts a list. > > This could be repaired by re-prototyping can_ok as ([EMAIL PROTECTED]). I do not think that prototype means what you think it means. Regards, -- Aristotle Pagaltzis /

Re: TAP diagnostic syntax proposal

2006-07-15 Thread A. Pagaltzis
* Adam Kennedy <[EMAIL PROTECTED]> [2006-07-15 05:55]: > Whatever "standard diagnostic" set we dictate, we can't > localise it, so we should be aiming for language which is > maximally clear and comprehendable by non-native speakers. This is a very good point. I also think it’s another one where

Re: CPANDB - was: Module::Dependency 1.84

2006-07-14 Thread A. Pagaltzis
* Tels <[EMAIL PROTECTED]> [2006-07-14 02:40]: > announced to early - now everybody tells me how I have to > implement it and why my way wont work You were saying Adam’s way is inferior to your way. I disagreed. That’s about the size of it. Regards, -- Aristotle Pagaltzis //

Re: Time for a Revolution

2006-07-13 Thread A. Pagaltzis
* chromatic <[EMAIL PROTECTED]> [2006-07-14 00:55]: > Sure, but it's only one thing people need to remember. One > thing is easier than N things, especially as N changes every > time the core changes. Yes, I agree. Don’t get me wrong, I’m not saying Bundle::PerlPlus is a bad idea (though in addin

Re: Time for a Revolution

2006-07-13 Thread A. Pagaltzis
* chromatic <[EMAIL PROTECTED]> [2006-07-13 23:25]: > On Thursday 13 July 2006 13:32, A. Pagaltzis wrote: > >I thought that’s called “the core distribution.” NEXT is > >already in there. So is List::Util (a big deal for me). > > Maybe for Perl 5.9.x... but how long

Re: Time for a Revolution

2006-07-13 Thread A. Pagaltzis
* chromatic <[EMAIL PROTECTED]> [2006-07-13 21:10]: > Why is there not a Bundle::PerlPlus (and yes, I've lathered up > my yak with that name) that downloads and installs the modules > that should have been in the box? I thought that’s called “the core distribution.” NEXT is already in there. So is

Re: CPANDB - was: Module::Dependency 1.84

2006-07-13 Thread A. Pagaltzis
* Tels <[EMAIL PROTECTED]> [2006-07-13 21:50]: > On Thursday 13 July 2006 19:40, A. Pagaltzis wrote: > > * Tels <[EMAIL PROTECTED]> [2006-07-12 19:00]: > > > Using SQLite or similiar is what really creates the > > > problems with CPANTS - you cant just ac

Re: CPANDB - was: Module::Dependency 1.84

2006-07-13 Thread A. Pagaltzis
* Michael Peters <[EMAIL PROTECTED]> [2006-07-13 19:50]: > And if you use DBD::SQLite you don't even need that. I has > everything you'd need. Actually that’s more of a hassle. If you install DBI::Shell you get close, but having to specify a DSN is still a hassle. With the SQLite binary you just s

Re: TAP diagnostic syntax proposal

2006-07-13 Thread A. Pagaltzis
* Smylers <[EMAIL PROTECTED]> [2006-07-13 10:50]: > When you first suggested those terms earlier in this thread I > did find that I had to slow down when reading them to work out > which is which. > > I had no such slowdown on reading David Landgren's mail. Same here. > I think it's just that "w

Re: CPANDB - was: Module::Dependency 1.84

2006-07-13 Thread A. Pagaltzis
* Tels <[EMAIL PROTECTED]> [2006-07-12 19:00]: > Using SQLite or similiar is what really creates the problems > with CPANTS - you cant just access the raw database without the > front-end. All you need is one binary from www.sqlite.org – I don’t follow why this is a problem. And I certainly prefe

Re: TAP diagnostic syntax proposal

2006-07-12 Thread A. Pagaltzis
* Jonathan Rockway <[EMAIL PROTECTED]> [2006-07-12 17:50]: > Things to think about :) This is the time in our program where we stop to consider what it means that DJB, who wrote that advice/rant, also wrote an RFC2822 parser. Regards, -- Aristotle Pagaltzis //

Re: TAP diagnostic syntax proposal

2006-07-12 Thread A. Pagaltzis
* Adam Kennedy <[EMAIL PROTECTED]> [2006-07-12 06:10]: > Fair enough a "Layer 1" TAP parser might not care, but why not > make it as equally easy to implement a "Layer 2" parser as > well. +1 Did you guys consider the problem of newlines in content? Regards, -- Aristotle Pagaltzis //

Re: TAP diagnostic syntax proposal

2006-07-10 Thread A. Pagaltzis
* Randy W. Sims <[EMAIL PROTECTED]> [2006-07-11 01:40]: > chromatic wrote: > >On Monday 10 July 2006 10:19, Michael G Schwern wrote: > > > >> got: this > >> expected:that > > > >"got" still sucks. Is there any chance to change it to "received"? > > returned? Err, it’s what was pa

Re: TAP diagnostic syntax proposal

2006-07-10 Thread A. Pagaltzis
* Ovid <[EMAIL PROTECTED]> [2006-07-10 20:40]: > From: chromatic <[EMAIL PROTECTED]> > > On Monday 10 July 2006 10:19, Michael G Schwern wrote: > > > > >got: this > > >expected:that > > > > "got" still sucks. Is there any chance to change it to "received"? > > I like "pitched"

Re: Testing various HTML constructs

2006-07-08 Thread A. Pagaltzis
* Gabor Szabo <[EMAIL PROTECTED]> [2006-07-08 18:10]: > How can I check other HTML constructs? I’d marry XML::LibXML’s HTML parsing mode into W::M so I could prod the document with XPath expressions, then I’d add some convenience methods added T::W::M. Regards, -- Aristotle Pagaltzis //

Re: [Slightly OT] Understanding Software Licences

2006-07-07 Thread A. Pagaltzis
Oh, and as a last point, before I leave well enough alone: * Shlomi Fish <[EMAIL PROTECTED]> [2006-07-07 17:45]: > I can tell you from my experience that one of my projects would > not have become half-as-successful as it has been, if it had > been released under the GPL instead of the Public Doma

Re: [Slightly OT] Understanding Software Licences

2006-07-07 Thread A. Pagaltzis
* Shlomi Fish <[EMAIL PROTECTED]> [2006-07-07 17:45]: > For the record, it is possible to be interested and > knowledgable about law, without having a Law Diploma. This is > similar to the fact that you can program without having a B.Sc. > in Computer Science or whatever. No, it’s more similar to

Re: [Slightly OT] Understanding Software Licences

2006-07-07 Thread A. Pagaltzis
* Shlomi Fish <[EMAIL PROTECTED]> [2006-07-07 15:25]: > It's sort of a "small headed" (see > http://www.joelonsoftware.com/items/2004/12/06.html ) "I just > want to write code and am not interested in any legal details" > attitude. Oh, please. Are you really that audacious to suggest that all of P

Re: Module Signatures

2006-07-06 Thread A. Pagaltzis
* Adam Kennedy <[EMAIL PROTECTED]> [2006-07-07 03:25]: > Andreas J. Koenig wrote: > >>On Fri, 07 Jul 2006 10:02:00 +1000, Adam Kennedy <[EMAIL PROTECTED]> > >>said: > > >> (What would be marginally worth it is having PAUSE sign > > >> distros. At least we can assure that the CPAN mirror >

Re: Old and broken versions of Module::Install

2006-07-06 Thread A. Pagaltzis
* Adam Kennedy <[EMAIL PROTECTED]> [2006-07-07 00:00]: > If you ONLY use the basic functionality, and you aren't willing > to pay attention, you should be using EU:MM still, until either > MB or or MI hits 1.0, because neither of them are ready for > general use. Manual inspection has always sugge

Re: check if all the links on an HTML page are working (except the mailto links)

2006-07-06 Thread A. Pagaltzis
* A. Pagaltzis <[EMAIL PROTECTED]> [2006-07-06 18:05]: > Err, right. I suppose that should be `m!^(s?)http(?(1)|s?):!`, Drat, `m!^(s)?http(?(1)|s?):!` of course. Regards, -- Aristotle Pagaltzis // <http://plasmasturm.org/>

Re: check if all the links on an HTML page are working (except the mailto links)

2006-07-06 Thread A. Pagaltzis
* Andy Lester <[EMAIL PROTECTED]> [2006-07-06 17:55]: > On Jul 6, 2006, at 10:46 AM, A. Pagaltzis wrote: > > >$urls = [ grep m!^s?https?:!, @$urls ]; > > What's an "shttps" link? Err, right. I suppose that should be `m!^(s?)http(?(1)|s?):!`, or

Re: check if all the links on an HTML page are working (except the mailto links)

2006-07-06 Thread A. Pagaltzis
* Gabor Szabo <[EMAIL PROTECTED]> [2006-07-06 17:25]: > Using Test::WWW::Mechanize 1.10 I am trying to > $w->page_links_ok(); > > on a page that has an e-mail address in it and the test fails. > > How could I tell TWM not to bother with the mailto links on the page? There’s no official way. Unt

Re: Old and broken versions of Module::Install

2006-07-06 Thread A. Pagaltzis
* Chris Dolan <[EMAIL PROTECTED]> [2006-07-06 16:30]: > IMHO it likely counts as a CPANTS pass for now, but it may be a > fail in the future unless you update the Makefile.PL with a > newer M::B as bugs are discovered. To make sure we’re on the same page: that would be bugs in M::B::Compat, not M:

Re: Old and broken versions of Module::Install

2006-07-06 Thread A. Pagaltzis
* Steffen Mueller <[EMAIL PROTECTED]> [2006-07-06 15:20]: > What does Module::Build count as? ;) I use M::B with `create_makefile_pl => 'traditional'`. What does that count as? Regards, -- Aristotle Pagaltzis //

Re: Module Signatures [was Re: On "Gaming" CPANTS...]

2006-07-06 Thread A. Pagaltzis
* Jonathan Rockway <[EMAIL PROTECTED]> [2006-07-06 03:25]: > I think the solution (to dependency hell) is to dictate that > CPAN modules be signed with a standard algorithm. OpenPGP > allows too many different algorithms, hence the 22 modules > Crypt::OpenPGP is dependent on. The only strong reaso

Re: Conditionally included list elements

2006-06-18 Thread A. Pagaltzis
* Larry Wall <[EMAIL PROTECTED]> [2006-06-18 19:40]: > On Sun, Jun 18, 2006 at 07:27:57PM +0200, A. Pagaltzis wrote: >>* Larry Wall <[EMAIL PROTECTED]> [2006-06-18 19:05]: >>> We already have the operator you want. It's spelled C. >>> :-) >>

Re: Conditionally included list elements

2006-06-18 Thread A. Pagaltzis
* Larry Wall <[EMAIL PROTECTED]> [2006-06-18 19:05]: > On Sun, Jun 18, 2006 at 05:18:52PM +0200, A. Pagaltzis wrote: > : Maybe TheLarry can enlighten us… :-) > > We already have the operator you want. It's spelled C. :-) Nice. :-) How’s it used? S03 doesn’t list it.

Re: Conditionally included list elements

2006-06-18 Thread A. Pagaltzis
Hi Stuart, * Stuart Cook <[EMAIL PROTECTED]> [2006-06-18 15:05]: > On 6/18/06, A. Pagaltzis <[EMAIL PROTECTED]> wrote: > >Is there a construct in Perl 6 to express this more > >immediately? Something along the lines of the following would > >seem ideal: > &g

Re: Conditionally included list elements

2006-06-18 Thread A. Pagaltzis
* Juerd <[EMAIL PROTECTED]> [2006-06-18 15:10]: > Again I have no idea if this empty list is SUPPOSED to happen. Maybe TheLarry can enlighten us… :-) Regards, -- Aristotle Pagaltzis //

Re: Conditionally included list elements

2006-06-18 Thread A. Pagaltzis
* Juerd <[EMAIL PROTECTED]> [2006-06-18 14:10]: > pugs> my @foo = 1, 2, 3, { 4 if 0 }.(), 5; say @foo.perl > [1, 2, 3, 5] > bool::true > pugs> my @foo = 1, 2, 3, { 4 if 1 }.(), 5; say @foo.perl > [1, 2, 3, 4, 5] > bool::true That’s “conceptually noisy” though… I don’t know

Conditionally included list elements

2006-06-18 Thread A. Pagaltzis
Hi all, one construct that keeps infuriating me in Perl 5 is when I’m spelling out an explicit list where I want to include particular elements only under certain circumstances, ie. $foo, $bar, $baz, $quux but $baz should only be part of the list when $wibble is true. In Perl 5, I can expre

Re: Continuous testing tools

2006-06-09 Thread A. Pagaltzis
* Adam Kennedy <[EMAIL PROTECTED]> [2006-06-09 18:35]: > Sorry for the lack of information, but PITA's design is fairly > ambitious, Hmm, I just saw this: http://googleresearch.blogspot.com/2006/04/our-conference-on-automated-testing.html The submission deadline has already passed, but I figure

Re: OT: wiki engine architecture

2006-06-08 Thread A. Pagaltzis
* Michael Mathews <[EMAIL PROTECTED]> [2006-06-08 13:15]: > This is the smartest suggestion I've yet seen on the subject, > but, not being all *that* familiar with Perl6 Grammars (aren't > they something like contextually-smart regexes?), can anyone > give an example of Perl 6 code that uses gramma

OT: wiki engine architecture (was: $1,000 prize for Perl 6 Wiki written in Perl 6)

2006-06-07 Thread A. Pagaltzis
* Thomas Wittek <[EMAIL PROTECTED]> [2006-06-07 15:05]: > I guess that the architecture/design for such a flexible piece > of software will be relatively complex. All I can think of is “YAGNI”. Defining a syntax in a configuration file doesn’t strike me as a particularly smart move. You will eith

OT: "my wiki syntax is better than yours" (was: $1,000 prize for Perl 6 Wiki written in Perl 6)

2006-06-06 Thread A. Pagaltzis
* Ben Morrow <[EMAIL PROTECTED]> [2006-06-07 01:25]: > Preferably something rst-like? I was wondering why noone had proposed Kwid yet. Doesn’t anyone like it? Regards, -- Aristotle Pagaltzis //

OT: "my wiki syntax is better than yours" (was: $1,000 prize for Perl 6 Wiki written in Perl 6)

2006-06-06 Thread A. Pagaltzis
* Juerd <[EMAIL PROTECTED]> [2006-06-06 17:50]: > side-by-side layouts (extremely useful for showcasing > differences between Perl 5 and Perl 6) Good point. > * Markdown does not have tables. But it lets you embed verbatim HTML as an escape hatch for constructs that it does not model, and althou

Re: $1,000 prize for Perl 6 Wiki written in Perl 6

2006-06-03 Thread A. Pagaltzis
* Thomas Wittek <[EMAIL PROTECTED]> [2006-06-03 22:30]: > Interestingly it is very similar to Markdown although I never > heard about it before :) Hmm, it doesn’t look similar at all to me? Not even superficially similar, but most importantly, it looks line-based. Markdown is block-based. If you w

Re: Minimum modules for Production?

2006-06-02 Thread A. Pagaltzis
* Michael Mathews <[EMAIL PROTECTED]> [2006-06-02 15:25]: > I believe I said "in Perl6 modules" not "in the language core" > as you imply My apologies; I misremembered the argument, and the PHP example you gave only happened to reinforce my misconception. I agree then; having clients for a few ne

Re: Minimum modules for Production?

2006-06-02 Thread A. Pagaltzis
* Michael Mathews <[EMAIL PROTECTED]> [2006-06-02 12:10]: > I would also point to PHP's fread() (and friends) functions, > which take "filenames" in the form of "C:\\blah" or > "http://foo.com/blah"; and behaves the same. Yes, which means that any un- (or badly) sanitised user input has the potent

Re: Running individual unit tests with Test::Class???

2006-05-31 Thread A. Pagaltzis
Hi Andrew, * Andrew Gianni <[EMAIL PROTECTED]> [2006-05-31 15:40]: > Is there an easy way to just run that one test method (as well > as the startup, setup, teardown and shutdown methods) while I'm > working on it rather than running the whole batch? just write a base test class with all your sca

Re: Minimum modules for Production?

2006-05-30 Thread A. Pagaltzis
* Ovid <[EMAIL PROTECTED]> [2006-05-30 02:55]: > An HTML parser That should wait till Grammars and Rules are ready to fly, I think, after which (I assume) it should get implemented very quickly. Regards, -- Aristotle Pagaltzis //

Re: Minimum modules for Production?

2006-05-30 Thread A. Pagaltzis
* Amir E. Aharoni <[EMAIL PROTECTED]> [2006-05-30 10:00]: > My previous workplace was very anal about installing software > from the web - they hardly let me install ActivePerl - and i'm > sure that it's not the only one. Yes, the adminstration and networking policies at many companies are broken;

Re: $1,000 prize for Perl 6 Wiki written in Perl 6

2006-05-28 Thread A. Pagaltzis
* Darren Duncan <[EMAIL PROTECTED]> [2006-05-28 23:40]: > For one thing, I'm assuming that a prize-qualifying solution > won't be able to link-in legacy Perl 5 modules using Pugs' "use > perl5:Foo" syntax; to do so would look bad if we are wanting to > show off a Wiki solution using the NEW technol

Re: $1,000 prize for Perl 6 Wiki written in Perl 6

2006-05-28 Thread A. Pagaltzis
* Amir E. Aharoni <[EMAIL PROTECTED]> [2006-05-28 23:00]: > The popularity of Wikipedia made Media-Wiki syntax the de-facto > standard. It's not perfect, but please don't reinvent the wheel > (even though it's a PHP wheel). I plead not guilty. Markdown is nothing new, and it has half a dozen impl

Re: $1,000 prize for Perl 6 Wiki written in Perl 6

2006-05-28 Thread A. Pagaltzis
* Juerd <[EMAIL PROTECTED]> [2006-05-28 19:35]: > - MediaWiki-compatible syntax I hate the Mediawiki syntax. Can we have something that understands blocks, like Markdown? Just add [[foo]] as intrawiki link syntax. > - Most \W characters can be safely used Yeah, that is true for Markdown. >

Re: CGI on 6

2006-05-28 Thread A. Pagaltzis
* Michael Mathews <[EMAIL PROTECTED]> [2006-05-28 16:15]: > For that matter can anyone give a working (under pugs) example > of a simple substitution using Perl6 regex, "+" => " " for > example? I think you’ll end up doing s:p5/// or however exactly it is spelled where you can just write a Perl 5

Re: CGI on 6

2006-05-28 Thread A. Pagaltzis
* Michael Mathews <[EMAIL PROTECTED]> [2006-05-28 11:40]: > #!/usr/bin/pugs > > say "content-type: text/html\n\n"; > my %q = (); > my @q = split '&', %ENV.{'QUERY_STRING'}; > for (@q) { > my ($n, $v) = split '=', $_; > > # TODO: deal with URI encoding > # similar to perl5:

Re: CGI on 6

2006-05-28 Thread A. Pagaltzis
* Michael Mathews <[EMAIL PROTECTED]> [2006-05-28 10:10]: > (would that be a "pliki"? a "sixwiki"? a "plixi"? erm-) Pliki Sixi? Regards, -- #Aristotle *AUTOLOAD=*_;sub _{s/(.*)::(.*)/print$2,(",$\/"," ")[defined wantarray]/e;$1}; &Just->another->Perl->hacker;

Re: 3 Good Reasons...

2006-05-26 Thread A. Pagaltzis
* Michael Mathews <[EMAIL PROTECTED]> [2006-05-26 13:40]: > But then I'm seeking to learn here so can you give a nice juicy > example of a non-C library that would be a big plus to be able > to include in Perl? There are several Python projects that I wish I could use without having to reimplement

Re: 3 Good Reasons...

2006-05-26 Thread A. Pagaltzis
* Michael Mathews <[EMAIL PROTECTED]> [2006-05-26 12:45]: > In the end it was decided to rewrite that chunk in Perl. I can > tell you, there definitely was cursing in the office that day, > and I doubt anyone there would see it as a plus to have the > ability to mix languages more easily. I just wo

Re: Logic Programming for Perl6 (Was Re: 3 Good Reasons... (typo alert!))

2006-05-25 Thread A. Pagaltzis
* Ovid <[EMAIL PROTECTED]> [2006-05-25 20:45]: > The first hurdle would be the syntax. The programmer just > looking at the code would need to know when one section of code > represents a snippet of logic programming. Is the following a > function call or a Prolog fact? > > loves( 'foo', 'bar'

Re: 3 Good Reasons...

2006-05-24 Thread A. Pagaltzis
* Michael Mathews <[EMAIL PROTECTED]> [2006-05-25 00:45]: > Is there something in Perl 6 akin to a "use strict" switch that > will apply the straightjacket some projects need, and thus > force typing of all variables. (Then I could have a good > comeback for those damned Java guys.) It’s called Co

Re: Simple Print/Say Question

2006-05-24 Thread A. Pagaltzis
* Steffen Schwigon <[EMAIL PROTECTED]> [2006-05-24 15:05]: > "A. Pagaltzis" <[EMAIL PROTECTED]> writes: > > Err I think you misread my mail. I meant that the code > > modifies the hash, but does nothing to modify the reference, > > so there is no need t

Re: Simple Print/Say Question

2006-05-24 Thread A. Pagaltzis
* Ovid <[EMAIL PROTECTED]> [2006-05-24 18:00]: > First off, thanks to Aristotle for clearing some of my > thinking. NP, it’s a good way for me to pick up the disparate Perl 6 clues I picked up haphazardly over time, too. > In my version of Pugs (6.2.11 (r10390)), that fails for two > reasons, bot

Re: Simple Print/Say Question

2006-05-24 Thread A. Pagaltzis
* Steffen Schwigon <[EMAIL PROTECTED]> [2006-05-24 13:55]: > "A. Pagaltzis" <[EMAIL PROTECTED]> writes: > > * Martin Kjeldsen <[EMAIL PROTECTED]> [2006-05-24 12:25]: > >> I understand this as the hash entry with key 'array' get > &g

Re: Simple Print/Say Question

2006-05-24 Thread A. Pagaltzis
* Daniel Hulme <[EMAIL PROTECTED]> [2006-05-24 12:45]: > > $arg_for = [ ( 0 .. $arg_for ) »*« $arg_for ]; > > btw, shouldn't the >>*<< be >>* as the right-hand operand is a > scalar? I don’t know. S03 says: | If either argument is insufficiently dimensioned, Perl | "upgrades" it: | | (3,8,

Re: Simple Print/Say Question

2006-05-24 Thread A. Pagaltzis
* Martin Kjeldsen <[EMAIL PROTECTED]> [2006-05-24 12:25]: > I understand this as the hash entry with key 'array' get > assigned a array consisting of $count number multiplied by > $scale. If that is right, we must be modifying $arg_for > (%buckets) since we are adding an entry to the hash. $arg_fo

Re: Simple Print/Say Question

2006-05-24 Thread A. Pagaltzis
Hi Martin, * Martin Kjeldsen <[EMAIL PROTECTED]> [2006-05-24 11:50]: > Just curious does this actually run? I'm trying on pugs 6.2.11 > and it complains quite a bit. First of all shouldn't > > for %buckets.values -> $arg_for > > be > > for %buckets.values -> $arg_for is rw > > since $arg_for

Re: Simple Print/Say Question

2006-05-24 Thread A. Pagaltzis
my %buckets = ( w => { count => 4, scale => 10.5, }, x => { count => 6, scale => 7, }, y => { count => 12, scale => 3, }, z => { count => 18,

Re: Where can I find a Perl 6 langauge reference?

2006-05-19 Thread A. Pagaltzis
* Steffen Schwigon <[EMAIL PROTECTED]> [2006-05-19 09:10]: > As your email address looks german, Thomas is a fellow cologne.pm’er. :-) > http://dresden-pm.org/cgi-bin/twiki/view/PM/PugsFirstBlood Nice work. Regards, -- Aristotle Pagaltzis //

Re: Where can I find a Perl 6 langauge reference?

2006-05-18 Thread A. Pagaltzis
Hallo Thomas :-), * Thomas Wittek <[EMAIL PROTECTED]> [2006-05-18 20:30]: > Would you recommend reading the synopses[1]? > Or should I take a look at pugs-doc? the synopses are the canonical design documentation of the Perl 6 language, to my understanding. Pugs-doc would probably be a good place

Re: SVN::Web

2006-05-12 Thread A. Pagaltzis
Hi Nik, * Nik Clayton <[EMAIL PROTECTED]> [2006-05-12 15:40]: > Mea culpa -- that was supposed to be an e-mail. well, that’s what it was, too. Regards, -- Aristotle Pagaltzis //

Re: W3C validator

2006-05-08 Thread A. Pagaltzis
* Andy Lester <[EMAIL PROTECTED]> [2006-05-08 18:00]: > Try my HTML::Tidy. It's based on libtidy. Speaking of which, any chance that’ll get a somewhat usable interface? Right now, parser options have to be written to a file and the function that actually cleans the HTML is just documented as “retu

Re: Proposed kwalitee metric: consistent_newlines

2006-05-03 Thread A. Pagaltzis
* David Cantrell <[EMAIL PROTECTED]> [2006-05-03 11:00]: > A. Pagaltzis wrote: > >Why would this have to rely on PPI at all? To check whether > >newlines in the file are consistent, you can just scan the > >source as an opaque of text, no? > > A perl source file m

Re: Proposed kwalitee metric: consistent_newlines

2006-04-30 Thread A. Pagaltzis
* Adam Kennedy <[EMAIL PROTECTED]> [2006-04-30 07:00]: > The Perl::Critic thing could be tricky though. > > One of the very few things PPI does that isn't round-trip safe > (actually, the ONLY thing) is localise the newlines for the > files it opens. Why would this have to rely on PPI at all? To

Re: Proposed kwalitee metric: consistent_newlines

2006-04-30 Thread A. Pagaltzis
* Ovid <[EMAIL PROTECTED]> [2006-04-30 07:20]: > Sounds like a good idea, but what about strings? You'd need to > mask those out prior to the test, wouldn't you? I don’t think so. Even if the only “funny” newline only appears in a string (and even it seems to me more likely that this would happe

Re: Non-Perl TAP implementations (and diag() problems)

2006-04-19 Thread A. Pagaltzis
* A. Pagaltzis <[EMAIL PROTECTED]> [2006-04-19 19:10]: > Use JSON. It’s cross-language, can fit data structures on a > single line, is reasonably widely supported, and can even be > read by a YAML parser. Oh, and I forgot: in contrast to YAML, the spec is so simple that it’s tri

Re: Non-Perl TAP implementations (and diag() problems)

2006-04-19 Thread A. Pagaltzis
* Ovid <[EMAIL PROTECTED]> [2006-04-19 10:05]: > --- demerphq <[EMAIL PROTECTED]> wrote: > > I should think that youd have a much easier time using > > Data::Dumper and its ->Pad and ->Indent(0) method than you > > ever would with YAML. > > That fails when we have PHP, C, or Java producing the > i

Re: Non-Perl TAP implementations

2006-04-18 Thread A. Pagaltzis
* Ovid <[EMAIL PROTECTED]> [2006-04-19 07:20]: > What if someone wants more diagnostic information or more > complete failure information? We might find things useful > enough that that we feel compelled to update TAP. If so, TAP > needs to be versioned and we need to figure out how to > accomoda

Re: Non-Perl TAP implementations

2006-04-18 Thread A. Pagaltzis
* Adam Kennedy <[EMAIL PROTECTED]> [2006-04-18 09:30]: > especially out there in the darkpan. What about the deadpan? SCNR, -- #Aristotle *AUTOLOAD=*_;sub _{s/(.*)::(.*)/print$2,(",$\/"," ")[defined wantarray]/e;$1}; &Just->another->Perl->hacker;

  1   2   >