Re: Tip: hash indexing

2017-10-03 Thread Bennett Todd
I'd like to note that Hash tables don't preserve the order they're created, and that this isn't a perl6 thing, this is intrinsic to the definition of hash tables. On October 3, 2017 9:06:47 AM EDT, Andrew Kirkpatrick wrote: >Thanks, your script enticed me to explore different ways of >construc

Re: bash and pm6 question

2017-09-21 Thread Bennett Todd
With perl5, that could have been something like. "perl -Mmy -e ...", but I don't have access to a perl6 at this instant to compare. There should be a flag you can use to include a module into the.running environment before evaluating the "-e" code. Using "use" within the "-e" string should wor

Re: Need sub for `LWP::UserAgent`

2017-07-28 Thread Bennett Todd
Thank you! I'd have hated for my echo of your knowledge to be the only tip he got, and you included a pointer to the option he needed, which I didn't try from my phone:-)

Re: Need sub for `LWP::UserAgent`

2017-07-28 Thread Bennett Todd
As for LWP being a pain, I see it differently, filling the specs for a web client --- many specs --- is a pain. The curl project is trying to wrap a blanket around that pain.

Re: Need sub for `LWP::UserAgent`

2017-07-28 Thread Bennett Todd
I just googled perl6 libcurl, and got https://github.com/CurtTilmes/perl6-libcurl That's definitely where I'd start.

Re: Need sub for `LWP::UserAgent`

2017-07-28 Thread Bennett Todd
I'm not expert in curl, nor even http client coding, so I just checked the curl(1) man page on my system, it says: -L, --location (HTTP) If the server reports that the requested page has moved to a different location (indicated with a Location:

Re: Perl 6 ignores SIGPIPE

2017-06-16 Thread Bennett Todd
I think it'd be cool to notice, and properly report, write errors, rather than silently ignoring them. Back when lwall was asking for things we wanted perl6 to do, I asked to be able to wrap builtins specifically so I could use Fatal qw(print). Yes, perl5 often ignores write errors, but no, I

Re: Net::SMTP attachments?

2017-03-01 Thread Bennett Todd
Well, tastes can reasonably differ on that point. Bunging all of the complexity, of implementation, of design tradeoffs, and of documentation, into one big module might suit some tastes. Not mine, as either an implementor or a user. Not all uses need all components, and I for myself would rathe

Re: Fwd: Re: grammars and indentation of input

2016-09-13 Thread Bennett Todd
Well put. The clearest description of Python's approach I've read, explained it as a lexer that tracked indentation level, and inserted appropriate tokens when it changed.

Re: Fwd: Re: grammars and indentation of input

2016-09-13 Thread Bennett Todd
Hostile or not, thanks for your informative reply.

Re: Fwd: Re: grammars and indentation of input

2016-09-13 Thread Bennett Todd
Thank you, very much. Yes, I'm disappointed, but I'd rather know.

Re: Fwd: Re: grammars and indentation of input

2016-09-13 Thread Bennett Todd
Having the minutia of the programmatic run-time state of the parse then influence the parse itself, is at the heart of the perl5 phenomenon "only Perl can parse perl", which I rather hope isn't going to be preserved in perl6.

Re: can Perl 6 bootstrap itself

2016-08-25 Thread Bennett Todd
Bootstrapping is funny that way. Besides the tools in the environment, you've got to have at least 1GB RAM available to build perl6. I can compile it within the Gnuroot Debian app on my Nexus 5, which has 2GB total real ram, so it has enough even inside the Android app. I can't similarly buil

Re: can Perl 6 bootstrap itself

2016-08-25 Thread Bennett Todd
Figuring out the environment, and how to best fit into it, is tricky, wants a richly powerful programming language, like perl. Ideally one that's almost certainly already available. Someday, Perl6 will be that language.

Re: can Perl 6 bootstrap itself

2016-08-24 Thread Bennett Todd
Actually, now that I think about it, I'm not as sure. Maybe, eventually, a full perl6 compiler and runtime written entirely in perl6 might, possibly, be nice; but using, and interoperating with, existing mature tools like e.g. make and gcc has some big advantages, too.

Re: can Perl 6 bootstrap itself

2016-08-23 Thread Bennett Todd
I think that would be great. Also lovely if it were completely correct, which I think is perhaps the biggest focus now, or nice and compact and fast, which still has a way to go. Many lovely goals to enjoy working on.

Re: can Perl 6 bootstrap itself

2016-08-22 Thread Bennett Todd
I think perl6 isn't self bootstrapping, yet. Unless I've gotten myself confused, some of the environment sniffing and basic build automation is in perl5, and the foundation is in C. Also wants make.

Re: Build error while installing Rakudo on Ubuntu

2016-08-11 Thread Bennett Todd
Have more than 1GB RAM --- or plenty of swap, and vast patience.

Re: Fwd: perl6 INC

2016-06-05 Thread Bennett Todd
Thanks, very much. That talk inspired unhappiness in me, and I've even written my thoughts out, but as all I've got is an unconstructive rant, I'm keeping it as an inspiration until I can offer my own perl6 package manager that suits my prejudices. A sample of one: if the problem is that perl6

Re: NativeCall interface for a char ** argument

2016-05-25 Thread Bennett Todd
A C char** is an array (of unknown length) of pounters to C strings ( each of unknown length). I don't know NativeCall, can't tell you how it should be declared, but I hope that highlights the issue.

Re: Fwd: perl6 INC

2016-05-11 Thread Bennett Todd
Thanks for the helpful note. Perhaps I need to get to coding my own module installer. I appreciate that "everything, everywhere, must support i18n" is noble, but I think it's pretty ugly to encode filenames in the install tree on all systems, because there exist systems that can't represent som

Re: Fwd: perl6 INC

2016-05-11 Thread Bennett Todd
Thanks for the explanation. Sounds like an unfortunate situation, rather than letting the system admin choose modules within the limits of filesystem namespace, it's using a separate database, opaque to filesystem tools. I hope this is just a temporary hack until a mature solution is hammered o

Re: Fwd: perl6 INC

2016-05-11 Thread Bennett Todd
I never got panda to install, so I use zef. The only module I've installed was Readline, to shut up the blind nagging whenever I run perl6 for a repl. Zef seems to have left files containing the string Readline in share/perl6/site, plus .perl6/precomp. The filenames are hashes, perhaps from a

Re: Fwd: perl6 INC

2016-05-11 Thread Bennett Todd
I think you're right, and the rpm packaging of perl5 is rather similar -- but simpler, as there aren't the bifurcations into moarvm vs jvm, and panda vs zef. But perl6 is young yet. Happily, it's not too hard to package a single compiler, e.g. rakudo-moar. And as long as you're comfy with rpmbu

Re: perl6 INC

2016-05-11 Thread Bennett Todd
Agreed. I too found panda didn't successfully install, so I just switched from rakudo-star to rakudo, and I use zef. This package looks like it tries to build rakudo-star, panda doesn't, it installs what bits succeed, and quietly ignores those that don't. I think the packager should work from r

Building perl6 on Android in Gnuroot Debian : perl6

2016-04-17 Thread Bennett Todd
https://www.reddit.com/r/perl6/comments/4f6jx5/building_perl6_on_android_in_gnuroot_debian/ TLDR: LDFLAGS=-Wl,-z,noexecstack And then zef install --force Readline Moarvm wants to try to execute code off the stack, but doesn't have to. Android blocks attempts to execute code on the stack with sel

Re: Perl 6 timeline?

2004-02-26 Thread Bennett Todd
2004-02-26T14:26:47 Larry Wall: > Well now, I remember Perl 0, sonny. Does that still exist anywhere? I don't have anything older than perl 1. > They don't make 'em like they used to... That they don't. On Bent Linux (my own distro, based on uClibc instead of glibc) I get ; ls -l perl1 perl5.8.

Re: What the heck is: timely destruction

2003-08-19 Thread Bennett Todd
Is the destruction going to be timely enough for IO::File->new(">foo")->print("foo\n"); print `cat foo`; to behave predictably? -Bennett pgp0.pgp Description: PGP signature

Re: What the heck is: timely destruction

2003-08-18 Thread Bennett Todd
2003-08-18T13:52:50 K Stol: > After reading most of the messages on timely destruction, I still > don't quite understand what it is. If someone has a spare minute > free, could you please explain? The other explanations certainly have formality to commend them, but somehow they didn't make clear t

Re: "XML is Too Hard for Programmers" = Tim Bray

2003-03-18 Thread Bennett Todd
2003-03-18T13:54:12 Michael Lazzaro: > A perl5-native parser can be rigged up fairly easily, but it's > *numbingly* slow compared to the C version. I mean, 20-50 times > slower, by my guess. That's the nature of the beast; XML requires a lexer which knows about more than just two or so character

Re: Speaking of signals...

2001-01-03 Thread Bennett Todd
2001-01-03-21:43:39 Dan Sugalski: > I think one of the things we might want to do is figure out what people use > signals for [...] The big one I can think of is interrupting > timers. [...] (Excepting I/O signalish things, which will get > handled elsewhere) How about, goosing long-lived daemon

Markup wars (was Re: Proposal for groups)

2000-12-05 Thread Bennett Todd
2000-12-05-13:02:56 Nathan Torkington: > I say that the person who *does* the work deserves the right to > choose what format it is in. So long as we can make navigable > webpages out of it, that person can write on a Commodore 64 for > all I care. Would you accept a restatement of: as long as wh

Re: Design

2000-11-02 Thread Bennett Todd
2000-11-02-17:30:56 Nathan Torkington: > Here are the things to order, in my order: > > Robustness > Portability > Maintainability > Testability > Reusability > Speed > Simplicity > Size A couple of negligible wibbles to toss in: would it make sense to separate "Simplicity" into

Re: Critique available

2000-11-02 Thread Bennett Todd
2000-11-02-16:30:36 John Porter: > Bennett Todd wrote: > > Java is crappy engineering with superb marketing, > > This is so wide of reality, I conclude that you don't know the > first thing about Java. Conclude whatever you like. I started by reading the language and VM

Re: Critique available

2000-11-02 Thread Bennett Todd
I'm probably pouncing on a point you didn't intend to make, disagreeing with something you didn't intend to say here, picking on subtleties of how you phrased it, so I'm gonna omit the attribution:-). I still wanna pounce on this. > [ all sorts o' reality omitted ] how many people are going to >

Re: RFC 332 (v1) Regex: Make /$/ equivalent to /\z/ under the '/s' modifier

2000-10-06 Thread Bennett Todd
I started to write: Is there a reason for introducing an asymmetry, or should this proposal read "... and /^/ equivalent to /\A/ ..."? but then I re-re-read perlre(1) and realized that that is the current behavior already: this proposal is hammering out a little bit of irregularity,

Re: RFC 331 (v1) Consolidate the $1 and C<\1> notations

2000-10-06 Thread Bennett Todd
I can see the motivation for wanting this, but there's a cost I haven't read anyone mentioning yet: this is abandoning backward compatibility with a regex notation that has remained pretty consistent in ed(1) and grep(1) and things inspired by them since I guess the early '70s, when they were born

Re: RFC 327 (v1) C<\v> for Vertical Tab

2000-10-06 Thread Bennett Todd
Is Vertical Tab used as whitespace in any current system? I thought it was an artifact of the old line printers doing heavy duty forms stuff, and went out with them. -Bennett PGP signature

Re: RFC 161 (v4) Everything in Perl becomes an object.

2000-09-27 Thread Bennett Todd
2000-09-27-22:03:19 Randal L. Schwartz: > So, I'd be happy to make everything an object under three conditions: > > 1) it doesn't interfere with *optimized* language constructs for > the most common tasks > > 2) it isn't being put in just to satisfy some theory that making > everything an object

Re: RFC 161 (v4) Everything in Perl becomes an object.

2000-09-27 Thread Bennett Todd
2000-09-27-21:53:34 Michael Fowler: > You can ask "why?" (or "why not?") until you're blue in the face, > and the question would still be valid. He just doesn't want to, > nor do I. We may have a misunderstanding here about what "it" is. > If $str = "foo" and m/foo/ are somehow magical objects,

Re: RFC 161 (v4) Everything in Perl becomes an object.

2000-09-27 Thread Bennett Todd
2000-09-27-17:37:07 Randal L. Schwartz: > f I want a language where everything is an object, I know > where to find it. If the only excuse for tossing this is some kind of gut revulsion towards objects, I sure hope the RFC doesn't get withdrawn, and the folks with that revulsion take some tummy m

Re: RFC 161 (v4) Everything in Perl becomes an object.

2000-09-27 Thread Bennett Todd
2000-09-27-15:19:23 Simon Cozens: > On Wed, Sep 27, 2000 at 03:17:01PM -0400, Bennett Todd wrote: > > I'd cite ruby as an indication that it shouldn't have to inflict any > > performance hit > > *boggle*. That's classic. Ruby *is* a performance hit.

Re: RFC 161 (v4) Everything in Perl becomes an object.

2000-09-27 Thread Bennett Todd
2000-09-27-15:08:10 Simon Cozens: > Never too late to withdraw, sir. [1] The less crap we make Larry > wade through, the better. Regarding the specific issue at hand, could you please offer something more specific than "you'd like it withdrawn"? Is there a reason why it's impossible to implement

Re: RFC 161 (v4) Everything in Perl becomes an object.

2000-09-27 Thread Bennett Todd
2000-09-27-05:28:01 Piers Cawley: > Simon Cozens <[EMAIL PROTECTED]> writes: > > On Wed, Sep 27, 2000 at 05:25:28AM -, Perl6 RFC Librarian wrote: > > > At the suggestion of others I've opted to freeze rather than > > > withdraw. > > > > How might I persuade you to reconsider? > > I was kind

Re: RFC 283 (v1) C in array context should return a histogram

2000-09-26 Thread Bennett Todd
2000-09-26-05:18:57 Paris Sinclair: > > (%alphabet) = $string =~ tr/a-z//; > > also a little more concise (and certainly more efficient...) than > > %alphabet = map { $_ => eval "\$string =~ tr/$_//" } (a..z); However, compared to say $hist[ord($_)]++ for split //, $string;

Re: RFC 313 (v1) Perl 6 should support I18N and L10N

2000-09-26 Thread Bennett Todd
2000-09-26-08:10:54 Webmaster: > Simon Cozens [EMAIL PROTECTED] Wrote: > >Perl 6 needs some kind of internationalisation and therefore message > >catalogue support. Really needs, with great urgency. > > Doesn't RFC 85 address this to some extent? By offering up 'error codes' > can't the programme

Re: Pulling RFC 161

2000-09-25 Thread Bennett Todd
2000-09-25-12:04:44 Matt Youell: > Unless I hear compelling arguments to the contrary, I'll be > withdrawing RFC 161 on Tuesday due to lack of interest. If the only grounds is lack of interest, please just freeze it. It can be tossed later if people turn up strong counterarguments, like difficult

Re: New Perl rewrite - embedded Perl

2000-09-13 Thread Bennett Todd
2000-09-13-13:56:07 John van V: > 2000-09-12-20:35:32 Bennett Todd: > > The exact same design targets --- really really fast, teensy > > memory footprint --- that define the microcontroller embedded > > market, also define the entry to these roles on the biggest > >

Re: New Perl rewrite - embedded Perl

2000-09-13 Thread Bennett Todd
2000-09-13-03:29:16 Hildo Biersma: > Some would argue that a better design is required. Apache 2.0 will > use a mixed thread/process model, and mod_perl 2.0 will run > selected threads within one process, precisely to alleviate these > problems. So it's not necessarily perl's fault... Some would

Re: New Perl rewrite - embedded Perl

2000-09-12 Thread Bennett Todd
2000-09-11-16:23:20 Dan Sugalski: > At 03:16 PM 9/11/00 -0500, Jarkko Hietaniemi wrote: > >On Mon, Sep 11, 2000 at 01:12:44PM -0700, Russ Allbery wrote: > > > INN has been embedding Perl for years, quite successfully. > > > >There's embedding and there's embedding. Embedding in an UNIX server > >

Re: code repository

2000-09-08 Thread Bennett Todd
2000-09-07-19:50:35 Adam Turoff: > > Given that it's only available to people who happen to run supported > > platforms, > > OK. That pegged the fud-o-meter. The list of supported platforms > listed on http://www.perforce.com/perforce/loadprog.html is hovering > around fifty, [...] Sure hope

Re: code repository

2000-09-07 Thread Bennett Todd
2000-09-07-17:11:50 Dan Sugalski: > Perl 5's development issues have nothing to do with the code > repository -- [...] That's certainly possible, but since the reason we're gathered here together working on trying to launch perl6 is a collective belief that perl5 has become unmaintainable for fu

Re: code repository

2000-09-07 Thread Bennett Todd
2000-09-05-10:53:25 Dan Sugalski: > >I don't think it's a good idea to build Perl6 development > >infrastructure around non-free software. > > I don't think we should make decisions about the software we use > for development based on political views. The decisions should be > based on technical

Re: RFC 159 (v1) True Polymorphic Objects

2000-09-06 Thread Bennett Todd
2000-08-28-18:47:06 Tom Christiansen: > It strikes me as a bit reminiscent of (one reason) why Larry > didn't make a+b work on strings, since then while with numbers, > a+b and b+a would be the same, with strings they would not be, and > we have these rather deeply held convictions about such matt

Re: RFC 155 - Remove geometric functions from core

2000-08-29 Thread Bennett Todd
Tom Christiansen <[EMAIL PROTECTED]> writes: > Keywords that *cannot* be overridden are chop, defined, delete, do, > dump, each , else, elsif, eval, exists, for, foreach, format, glob, > goto, grep, if, keys, last, local, m, map, my, next, no, package, > pop, pos, print, printf, prototype, push, q

Re: On the case for exception-based error handling.

2000-08-27 Thread Bennett Todd
2000-08-27-12:03:07 Peter Scott: > > use Fatal qw(:io ...); > > no Fatal qw(:arithmetic); > > Bingo, yes. I will make appropriate changes to RFC 80. You might > think about whether RFC 70 needs to be changed. I don't think so; while I mention styles of changes and growth for F

Re: On the case for exception-based error handling.

2000-08-27 Thread Bennett Todd
2000-08-22-16:40:13 Peter Scott: > >I'm not sure, but I think Chaim's main point was just that, not > >that divide-by-zero should be ignored too. > > Well, it could be made user-selectable, right Bennett? Do you envisage > being able to say > > use Fatal qw(Arithmetic IO etc) > > usi

Re: On the case for exception-based error handling.

2000-08-27 Thread Bennett Todd
2000-08-22-15:13:23 Peter Scott: > I too would rather say > > my $fh = open $filename or die "Couldn't copy source: $!" > > than > > my $fh; try { $fh = open $filename } catch { die "Couldn't copy > source: ", $@->syserr } I'd usually rather just say my $fh = open $