assignable mutators (S06/Lvalue subroutines)

2008-05-16 Thread Brandon Allbery
S06/Lvalue subroutines: Lvalue subroutines return a proxy object that can be assigned to. (...) S13/Methods: Setter methods that expect the new value as an argument do not fall into the well-behaved category, however. When I take these two together, in a way which may be out of context

Re: [perl #111796] Rakudo regex regression

2012-03-16 Thread Brandon Allbery
On Fri, Mar 16, 2012 at 12:56, Nicholas Clark n...@ccl4.org wrote: On Fri, Mar 16, 2012 at 07:51:44AM -0700, Moritz Lenz wrote: Somwhere between the 2012.02 release and 2012.02-180-g16bf0f4, test 253 in S05-mass/rx.t started to fail: Isn't this were a git bisect is a routine way to find

Re: GSOC 2012

2012-03-28 Thread Brandon Allbery
On Tue, Mar 27, 2012 at 12:53, Andy Lester a...@petdance.com wrote: On Mar 27, 2012, at 11:51 AM, Andrew Whitworth wrote: Also since TPF didn't get into GSOC this year, Parrot is willing to host Rakudo-related projects. This surprised me when I saw the list of projects. Do you know why

Re: [perl #115364] [BUG] LTA error message when doing 'is' on a package declaration in Rakudo

2012-10-19 Thread Brandon Allbery
On Fri, Oct 19, 2012 at 3:59 PM, Parrot Raiser 1parr...@gmail.com wrote: If the same sort of problem, (in this case LTA Error Message), keeps showing up. maybe it would be better to rethink the mechanism, rather than patch each individual case? (As an ignorant kibitzer, I may well have

Re: [perl #115364] [BUG] LTA error message when doing 'is' on a package declaration in Rakudo

2012-10-19 Thread Brandon Allbery
On Fri, Oct 19, 2012 at 4:46 PM, Parrot Raiser 1parr...@gmail.com wrote: I meant the process of identifying errors and generating messages. (Using mechanism as a generic classification.) That tends to come from people actually trying to use perl6 for something new, which usually comes with a

Re: [perl #115540] possible rakudo bug

2012-11-02 Thread Brandon Allbery
On Fri, Nov 2, 2012 at 9:38 AM, yary not@gmail.com wrote: From my own knowledge of sockets (not of Rakudo), I don't see a problem here. You're getting a timeout on an attempt to open a port that you've already opened a socket on, which should fail in any language. connect failed:

Re: [perl #112662] LTA error

2012-11-17 Thread Brandon Allbery
On Sat, Nov 17, 2012 at 6:27 PM, Will Coleda via RT perl6-bugs-follo...@perl.org wrote: dir | say #bug too ? Failed to get the directory contents of 'True': readdir failed: No such file or directory Dare I ask what it stringified True to? What happens if the user has a directory with

Re: [perl #116232] [BUG] FIRST and LAST aren't consistent in Rakudo

2013-01-09 Thread Brandon Allbery
On Wed, Jan 9, 2013 at 4:50 PM, jn...@jnthn.net via RT perl6-bugs-follo...@perl.org wrote: While I can see the consistency you're after, I don't see a way to (sanely) implement it. Define sanely. Save the block's context as a continuation, run the LEAVE block in it if we decide we're not

Re: [perl #117307] [BUG] Sequences with strings and a Code stopping condition go backwards in Rakudo

2013-03-23 Thread Brandon Allbery
On Sat, Mar 23, 2013 at 12:16 PM, Patrick R. Michaud pmich...@pobox.comwrote: And also if there ought to be something akin to an Order::None somewhere. Order::NonComparable, possibly which behaves as a (delayed?) exception of some kind? -- brandon s allbery kf8nh

Re: Problem using a module containing a grammar

2013-03-25 Thread Brandon Allbery
On Mon, Mar 25, 2013 at 11:01 AM, phi...@free.fr wrote: grammar SalesExportGram is export { (...) my $parsed = SalesReportGram.parsefile('sales_report.txt'); Might help if you used the same name in both places? -- brandon s allbery kf8nh sine nomine

Re: Commensurability as Key

2013-08-21 Thread Brandon Allbery
On Tue, Aug 20, 2013 at 11:19 PM, Doug McNutt dougl...@macnauchtan.comwrote: I confess. I'm here because I hoped perl 6 would do vector operations after reading an early small book. I don't think anyone has said that it won't/can't. Perl 6 indeed returns a scalar... but that scalar may be a

Re: Perl6 and wxwidgets

2014-06-08 Thread Brandon Allbery
On Sun, Jun 8, 2014 at 6:54 AM, Erik Colson e...@ecocode.net wrote: Is it possible to use an external C-library like wxwidgets from perl6/moarvm ? If so, is there any doc how this can be achieved ? wxwidgets may actually be a bit difficult, since it's not a C library. It's C++, and that is

Re: Could you give me some explanatio​ns about regex?

2014-07-15 Thread Brandon Allbery
On Tue, Jul 15, 2014 at 11:16 AM, MAX PUX isleof...@gmail.com wrote: I expected this output: website ForeignAssistance ForeignAssistanceRow AssistanceType RecipientCountry ProgramName but the output was: └website┐ └ForeignAssistance┐ └ForeignAssistanceRow┐ $/[0] is a Match

Re: [perl #122358] [BUG] slurp() on a directory does not die on OpenBSD

2014-07-23 Thread Brandon Allbery
On Mon, Jul 21, 2014 at 6:39 PM, Carlin Bingham perl6-bugs-follo...@perl.org wrote: The test slurp() on directories fails in S32-io/slurp.t does not pass on OpenBSD as slurp() on a directory does not seem to die on OpenBSD. BSDs tend to preserve the original Unix directory semantics where a

Re: Need help with: Cannot find method 'postcircumfix:( )'...

2015-03-19 Thread Brandon Allbery
On Thu, Mar 19, 2015 at 10:33 PM, Tom Browder tom.brow...@gmail.com wrote: Why do you say that is not a method? The first line says Sorry, somehow I managed to misread that. So you want what I have already said twice: the accessor `self.elem`. If you want to access the variable directly for

Re: Need help with: Cannot find method 'postcircumfix:( )'...

2015-03-19 Thread Brandon Allbery
On Thu, Mar 19, 2015 at 9:32 PM, Tom Browder tom.brow...@gmail.com wrote: if (self.$elem) { # === LINE 995 === LINE 995 This is an indirect method call. Is that really what you intended? If you wanted the `my` variable, it's just `$elem`. If you somehow have an object in

Re: Need help with: Cannot find method 'postcircumfix:( )'...

2015-03-19 Thread Brandon Allbery
On Thu, Mar 19, 2015 at 10:26 PM, Tom Browder tom.brow...@gmail.com wrote: On Mar 19, 2015 8:58 PM, Brandon Allbery allber...@gmail.com wrote: On Thu, Mar 19, 2015 at 9:32 PM, Tom Browder tom.brow...@gmail.com wrote: if (self.$elem) { # === LINE 995 === LINE 995

Re: Perl 6 script beginning lines: 'v6;' required?

2015-03-13 Thread Brandon Allbery
On Fri, Mar 13, 2015 at 8:54 AM, Rob Hoelz r...@hoelz.ro wrote: On Fri, 13 Mar 2015 07:13:31 -0500 Tom Browder tom.brow...@gmail.com wrote: I have seen the following beginning lines of Perl programs in some examples on the Perl 6 web site: #!/usr/bin/env perl6 v6; Isn't the

Re: Problem found with PERL6LIB environment variable

2015-06-08 Thread Brandon Allbery
On Mon, Jun 8, 2015 at 3:09 PM, Fields, Christopher J cjfie...@illinois.edu wrote: I had the same problem recently, tied to the revised path names (e.g. the ‘file#’ prefix). Any reason for the change? Kinda caught me by surprise. It's so that there can be things that are not directories of

Re: help installing Inline::Perl5

2015-06-07 Thread Brandon Allbery
On Sun, Jun 7, 2015 at 7:43 PM, RB reneb.ma...@gmail.com wrote: This is perl6 version 2015.03 built on MoarVM version 2015.03 Recent Panda requires a recent Rakudo; the unit change happened in the last 2 weeks. -- brandon s allbery kf8nh sine nomine associates

Re: [perl #125299] Comment not being correctly ignored inside string

2015-06-01 Thread Brandon Allbery
On Mon, Jun 1, 2015 at 3:58 AM, via RT perl6-bugs-follo...@perl.org wrote: # New Ticket Created by --cut here-- use v6; my $x; $x ~= #={; --cut here-- -cut here-- Unable to parse expression in double quotes; couldn't find final '' at foo.pl:4 That's not comments being parsed, it's

Re: Passing a hash to a subroutine: best method?

2015-07-03 Thread Brandon Allbery
On Fri, Jul 3, 2015 at 11:26 AM, Tom Browder tom.brow...@gmail.com wrote: # method 1 my %hash1; foo1(%hash1); say %hash1.perl; sub foo1(%hash) { %hash{1} = 0; } This is what I would naïvely expect to work in any language except Perl 5. # method 2 my %hash2; my $href2 = %hash2;

Re: Sub args: choose one of two?

2015-07-02 Thread Brandon Allbery
On Thu, Jul 2, 2015 at 3:08 PM, Tom Browder tom.brow...@gmail.com wrote: 1. Write the 'main' program as another subroutine and call it from each of the appropriate multi subs--aarghh! This seems like the right one to me; it also makes it easier to provide similar functionality as a library.

Re: [perl #116439] Subsets and missing-but-optional arguments don't mix well

2015-08-05 Thread Brandon Allbery
On Wed, Aug 5, 2015 at 4:34 PM, Christian Bartolomaeus via RT perl6-bugs-follo...@perl.org wrote: Nowadays the error message is: $ perl6 -e 'subset UInt of Int where * = 0; sub foo (UInt $bar?) { }; foo()' Invocant requires an instance of type Int, but a type object was passed. Did you

Re: Proposed new string methods: trim-rw, trim-leading-rw, trim-trailing-rw

2015-08-14 Thread Brandon Allbery
On Fri, Aug 14, 2015 at 8:07 AM, Tom Browder tom.brow...@gmail.com wrote: But I've tried it and it works (but the syntax still bothers me for now). Note that the same behavior applies to the 'substr' string method so that begs the question of why is the 'substr-rw' method justified and

Re: String trim method

2015-08-05 Thread Brandon Allbery
On Wed, Aug 5, 2015 at 6:47 PM, Tom Browder tom.brow...@gmail.com wrote: I see that to trim white space from a strings's both ends I have to do this: my $s = ' yada yada '; $s = $s.trim; Is that the optimum way? I don't know what you mean by optimal there, but you can say

Re: [perl #126645] Handle library api version in NativeCall

2015-11-15 Thread Brandon Allbery
On Sat, Nov 14, 2015 at 7:09 PM, Sylvain Colinet < perl6-bugs-follo...@perl.org> wrote: > Some distribution (debian) does not provide the libfoo.so symlink in the > binary that provide a libfoo. In the case of debian it's provided by > libfoo-dev. > > I was not able to find what was a standard

Re: [perl #126315] IO::Socket::INET: a way to read 1 packet

2015-10-09 Thread Brandon Allbery
On Fri, Oct 9, 2015 at 7:51 PM, Tokuhiro Matsuno < perl6-bugs-follo...@perl.org> wrote: > I need to read 1 packet data without expecting size. In TCP there is no such thing as 1 packet; TCP is a stream, you *cannot* see the packet(s) underlying it unless you use a raw socket and implement the

Re: [perl #125600] LTA error message when executing directories as perl6 code

2015-07-11 Thread Brandon Allbery
On Sat, Jul 11, 2015 at 7:28 PM, Alex Jakimenko perl6-bugs-follo...@perl.org wrote: $ perl6 somefolder Error while reading from file: Reading from filehandle failed: illegal operation on a directory Note that behavior here can differ substantially: some OSes won't let you open a directory

Re: What are Perl 6's killer advantages over Perl 5?

2015-08-26 Thread Brandon Allbery
On Wed, Aug 26, 2015 at 1:58 PM, Elizabeth Mattijsen l...@dijkmat.nl wrote: It used to be, but that was not according to spec. FROGGS++ implemented the lax mode, which is enabled by default in one-liners. Perhaps TimToady wants to invoke rule #2 on this. Personally, I use an alias that has

Re: [perl #126883] LTA error message mentions parameter "$slip" (1.map: { Slip })

2015-12-11 Thread Brandon Allbery
On Fri, Dec 11, 2015 at 11:55 PM, Lloyd Fournier wrote: > I don't think this should be an error. A Slip type is a kinda odd thing to > be mapping but it should work. It's not mapping over Slips in general; it's mapping over an *undefined* Slip. I'd similarly expect some

Re: [perl #127138] NativeCall not thread safe?

2016-01-04 Thread Brandon Allbery
On Mon, Jan 4, 2016 at 10:51 AM, Elizabeth Mattijsen wrote: > > getenv should be threadsafe according to: > > > http://pubs.opengroup.org/onlinepubs/9699919799/functions/V2_chap02.html#tag_15_09_01 > > > > http://pubs.opengroup.org/onlinepubs/9699919799/functions/getenv.html > >

Re: Recalling previous commands

2016-01-01 Thread Brandon Allbery
On Fri, Jan 1, 2016 at 4:47 PM, Parrot Raiser <1parr...@gmail.com> wrote: > Every time I make a typo in a complex command, I reflexively hit > ctrl-k before remembering I'm not in bash any more. :-)* > ...ctrl-k? wtf is bash misteaching people any more? I'd expect ctrl-p, like pretty much

Re: Bug or PEBCAK?

2015-12-31 Thread Brandon Allbery
On Thu, Dec 31, 2015 at 8:55 AM, Parrot Raiser <1parr...@gmail.com> wrote: > > I'm not sure how to classify this one. It never occurred to me that a > new Linux installation would NOT include a C compiler. Installing gcc > fixed that. Normal for Debianoids. "sudo apt-get install

Re: [perl #127014] [BUG] inconsistent whether type constraint violation is compile error

2015-12-23 Thread Brandon Allbery
On Wed, Dec 23, 2015 at 9:40 PM, Zefram wrote: > Is it legal to compile code that, if executed, would always produce > an exception? Rakudo seems conflicted on the matter. > Pretty sure better compile time checking is a known issue and was not expected or intended

Re: perl 6 for rhel?

2016-01-10 Thread Brandon Allbery
On Mon, Jan 11, 2016 at 2:02 AM, ToddAndMargo wrote: > Anyone know if Perl 6 will be available for Red Hat Enterprise > Linux 7 any time soon? > That's up to Red Hat. Considering that they refuse to fix their Perl 5 packaging which has been fundamentally broken (not to

Re: "with" definedness check

2016-06-06 Thread Brandon Allbery
On Mon, Jun 6, 2016 at 3:45 PM, yary wrote: > On Mon, Jun 6, 2016 at 3:27 PM, Elizabeth Mattijsen > wrote: > > “with” is completely agnostic about what it is working on. It merely > checks for definedness and sets the topicalizer if so. > > Hmm- what's the

Re: NativeCall interface for a char ** argument

2016-05-25 Thread Brandon Allbery
On Wed, May 25, 2016 at 2:41 PM, Fernando Santagata < nando.santag...@gmail.com> wrote: > > gbooleannotify_get_server_info (char **ret_name, > char **ret_vendor, > char **ret_version, >

Re: [perl #128270] [BUG] NFG + :ignoremark = negative codepoint error

2016-05-27 Thread Brandon Allbery
ekosaur: that looks like a RT ticket in the making to me :) [27 17:33] *an [27 17:34] yes, yes it does On Fri, May 27, 2016 at 4:01 PM, Brandon Allbery < perl6-bugs-follo...@perl.org> wrote: > # New Ticket Created by Brandon Allbery > # Please include the string: [perl #128270] > # in

Re: [perl #128289] localhost in IO::Socket::INET

2016-05-29 Thread Brandon Allbery
On Sun, May 29, 2016 at 1:43 PM, mt1957 wrote: > * On both systems localhost translates to 127.0.0.1 (checked with dig) Note that dig only tells you what DNS returns, not what a query through NSS returns; use "getent hosts" for that. In particular, it will not

Re: [perl #128468] Using negative exit code should probably be forbidden (exit -99999)

2016-06-23 Thread Brandon Allbery
On Thu, Jun 23, 2016 at 5:48 PM, Alex Jakimenko < perl6-bugs-follo...@perl.org> wrote: > exit -9 # exit code is 97 > exit -99# exit code is 193 > exit -9 # exit code is 1 > exit - # exit code is 1 > > I think that only non-negative numbers should be allowed. >

Re: Needed: Rakudo Star with 6.c Christmas Perl 6 release

2016-01-16 Thread Brandon Allbery
On Sat, Jan 16, 2016 at 1:40 PM, James E Keenan wrote: > Is there a timeline for the release of a Rakudo Star with 6.c? > I don't think there is a specific timeline, but given the rakudo bug fixes since 6.c (in particular with CompUnitRepo, which would have made it difficult

Re: Intalling Perl6

2016-06-26 Thread Brandon Allbery
On Sun, Jun 26, 2016 at 1:51 PM, Julian Brown wrote: > I search for packages on Debian Jessie for Perl 6 and found Rakudo and > Parrot. > > Does everyone install per user and not system-wide? > Does anyone use Parrot instead of Moar? > Debian is, as always, way behind. The

Re: It's time to use "use v6.c"

2016-02-06 Thread Brandon Allbery
On Sat, Feb 6, 2016 at 2:30 PM, yary wrote: > this morning I installed the 2016.01 R*. Now I'm at the NYC perl6 > study group, and a helpful neighbor asked me to start up p6doc. > This is something of an edge case. It is reasonable for stuff that is supposed to ship *with*

Re: [perl #127482] Compilation check says Syntax OK but program gets error

2016-02-06 Thread Brandon Allbery
On Sat, Feb 6, 2016 at 8:24 PM, James E Keenan wrote: > $ perl6 attempted_printf.pl6 > Type check failed in binding $format; expected Cool but got Pair > in block at attempted_printf.pl6 line 5 > The syntax is fine. The semantics aren't, and even simpler cases

Re: It's time to use "use 6.c"

2016-02-09 Thread Brandon Allbery
On Tue, Feb 9, 2016 at 5:38 AM, Peter Pentchev wrote: > For the record, just to clear up some possible confusion, "use 6.c" > doesn't work in source files; you need "use v6.c". > Clarifying: yary seems to have been confused by the fact that META6.json (only) needs to use

Re: Confused about rakudobrew and Rakudo Star

2016-02-04 Thread Brandon Allbery
On Thu, Feb 4, 2016 at 7:44 AM, Brock Wilcox wrote: > I see Moritz replied to this also saying that the tarball is the way to > go. I'd love to know what I'm missing out on by doing it this way. > Probably nothing right now. The big issue will come later: rakudo

Re: run "...", :out forgetting about the exit code?

2016-02-02 Thread Brandon Allbery
On Tue, Feb 2, 2016 at 6:37 PM, Peter Pentchev wrote: > So, uhm, what am I missing? Shouldn't $p.exitcode remain 1 no matter > whether > I've invoked run() with or without :out? Should I file a bug? > https://rt.perl.org/Ticket/Display.html?id=125757 -- brandon s allbery

Re: Confused about rakudobrew and Rakudo Star

2016-02-03 Thread Brandon Allbery
On Wed, Feb 3, 2016 at 10:30 PM, James E Keenan wrote: > I am evidently confused as to the relationship, if any, between the > 'rakudobrew' utility and the Rakudo::Star distribution. In short: rakudobrew is for the folks who want to track the rapid development of Rakudo.

Re: Rationale for $!

2016-01-28 Thread Brandon Allbery
On Wed, Jan 27, 2016 at 11:06 AM, Felipe Gasper <fel...@felipegasper.com> wrote: > On 27 Jan 2016 11:03 AM, Brandon Allbery wrote: >> >> On Wed, Jan 27, 2016 at 11:00 AM, Felipe Gasper <fel...@felipegasper.com >> <mailto:fel...@felipegasper.com>> wro

Re: Rationale for $!

2016-01-28 Thread Brandon Allbery
On Wed, Jan 27, 2016 at 11:00 AM, Felipe Gasper wrote: > Unrelated, but, does open() not throw on failures anyway? (Noodling with > the perl6 REPL just now seems inconclusive.) There have been issues with failures in sink context not throwing, IIRC? So how you were

Re: 'split': differences between Perl5 and Perl6

2016-02-27 Thread Brandon Allbery
On Sat, Feb 27, 2016 at 8:34 PM, James E Keenan wrote: > I'm surprised to get exactly the same output I got in both languages when > my delimiter was the multi-character string 'tri'. The '[' and ']' > characters do not seem to indicate "character class" at all. It's as if >

Re: Need help with Nil values

2016-02-22 Thread Brandon Allbery
On Mon, Feb 22, 2016 at 9:15 PM, TS xx wrote: > I expect $.value to hold Strings, but I want to be able to instantiate > MyClass whether I have a value already or not, and I also want to be able > to tell if $.value has a real String or not. Is this possible? You don't

Re: [perl #127354] [UNWANTED BEHAVIOUR] Un-mutable NativeCall API Version Warning

2016-01-23 Thread Brandon Allbery
On Sat, Jan 23, 2016 at 3:53 AM, Zoffix Znet wrote: > 1) The warnings should point out potential problems in programs, not > dictate to the programmer some arbitrary "best practice. That is only an 'arbitrary "best practice"' if having your program work correctly

Re: '!' versus 'not' in boolean expression

2016-01-25 Thread Brandon Allbery
On Mon, Jan 25, 2016 at 2:42 PM, Carl Mäsak wrote: > >> my %h; say 'false' if !%h:exists; > > Unexpected named parameter 'exists' passed By the way, is it me or would it be a lot more appropriate and helpful if this error said *what* it was passed to? -- brandon s allbery

Re: [perl #127355] rakudo configuration and build overly dependent on specific version

2016-01-25 Thread Brandon Allbery
On Mon, Jan 25, 2016 at 11:00 AM, Will Coleda via RT < perl6-bugs-follo...@perl.org> wrote: > 3) Try the macport version. It's possible that might work, even on your > machine. No promises. > You could also get a modern cURL and git from MacPorts/Homebrew/whatever. Note that your OS certificate

Re: [perl #127308] Configure.pl with moar fails to find C compiler on older Darwin

2016-01-20 Thread Brandon Allbery
On Wed, Jan 20, 2016 at 11:37 AM, Steve Mynott wrote: > My guess is that the PPC version of OS X probably still has the real > GCC as its compiler rather than clang as on more modern systems. > This will also be true of Intel-based Macs with Xcode 3.x or earlier (roughly

Re: Nice-to-have class methods

2016-01-27 Thread Brandon Allbery
On Wed, Jan 27, 2016 at 9:50 AM, Peter Pentchev wrote: > Right, so that would probably mean that you need a function that removes > the *last* extension; that might indeed make sense, although it's > trivial to implement as a regular expression substitution (but also beware >

Re: [perl #127308] Configure.pl with moar fails to find C compiler on older Darwin

2016-01-21 Thread Brandon Allbery
On Thu, Jan 21, 2016 at 2:29 PM, Tobias Leich via RT < perl6-bugs-follo...@perl.org> wrote: > Can't we do something like this[^1] on darwin also? > > [^1] https://github.com/MoarVM/MoarVM/blob/master/build/setup.pm#L445 > > Like, checking for the existance of clang, and falling back to gcc? >

Re: [perl #127856] LTA error message when declaring variables without a space between “my” and parens (my($test);)

2016-04-07 Thread Brandon Allbery
On Thu, Apr 7, 2016 at 7:29 PM, Alex Jakimenko wrote: > The reason why my() is not allowed is probably exactly the same as the > reason why we don't have if(), but at least in the latter case provide a > meaningful error message. Let's take a look at what happens

Re: can a method name contain a funny character?

2016-04-12 Thread Brandon Allbery
On Tue, Apr 12, 2016 at 6:07 PM, Darren Duncan <dar...@darrenduncan.net> wrote: > On 2016-04-12 6:59 AM, Brandon Allbery wrote: > >> On Tue, Apr 12, 2016 at 9:51 AM, Brock Wilcox <awwa...@thelackthereof.org> >> wrote: >> Heart doesn't work for me, but o

Re: A practical benchmark shows speed challenges for Perl 6

2016-04-01 Thread Brandon Allbery
On Fri, Apr 1, 2016 at 11:09 AM, yary wrote: > Setting the buffer size is better done by the user, not the > programmer. Often the user and the programmer are one and the same, in > which case, the programmer knows the environment and can set the > environment variables- or

Re: [perl #127889] rakudo build failure for ppc64 archi

2016-04-13 Thread Brandon Allbery
On Wed, Apr 13, 2016 at 8:09 AM, Michel Normand < perl6-bugs-follo...@perl.org> wrote: > [ 18s] Found /usr/bin/nqp-m (backend moar) Sounds to me like you need to remove or hide the older version of nqp and possibly moarvm in /usr, because 2016.01 needs newer versions. -- brandon s allbery

Re: testing with a "warn"

2016-04-29 Thread Brandon Allbery
On Fri, Apr 29, 2016 at 1:25 AM, Richard Hainsworth wrote: > throws-like { abc('excess') }, Exception, 'got the exception', message => > / excess recursion /; I'm confused as to why you would expect this to work. The point of warn is it is *not* an exception; an exception by

Re: testing with a "warn"

2016-04-29 Thread Brandon Allbery
On Fri, Apr 29, 2016 at 3:47 PM, Brandon Allbery <allber...@gmail.com> wrote: > Oh, they are resumable exceptions? Useful but rather high cost I'd think. > (Granting that perl6 isn't one of those languages that think exceptions > should be normal control flow. But anyone who de

Re: select (3)

2016-04-30 Thread Brandon Allbery
On Sat, Apr 30, 2016 at 4:35 AM, Kaare Rasmussen wrote: > my $nfds = dup(0); > Note that "nfds" is the highest fd number to check for, plus one. For the naïve implementation, you need to add one here. my $readfds = CArray[uint8].new(0, 2); > What is this initialized to? The

Re: select (3)

2016-04-30 Thread Brandon Allbery
On Sat, Apr 30, 2016 at 11:06 AM, Kaare Rasmussen wrote: > Shouldn't this be a C style array with two bytes, 0 and 2, or > 0010 ? I'm not sure; it's not documented :/ Also not sure offhand how endianness plays in to select()'s bit vectors if you build them by

Re: poll (3) (WAS select (3))

2016-04-30 Thread Brandon Allbery
On Sat, Apr 30, 2016 at 3:05 PM, Kaare Rasmussen wrote: > sub poll(CArray[Pollfd], uint64, uint32) returns int32 is native { * } This, unfortunately, means an array of pointers to Pollfd structs, not an array of Pollfd structs. NativeCall doesn't support the latter currently,

Re: poll (3) (WAS select (3))

2016-04-30 Thread Brandon Allbery
On Sat, Apr 30, 2016 at 7:49 PM, Brandon Allbery <allber...@gmail.com> wrote: > On Sat, Apr 30, 2016 at 3:05 PM, Kaare Rasmussen <ka...@jasonic.dk> wrote: > >> sub poll(CArray[Pollfd], uint64, uint32) returns int32 is native { * } > > > This, unfortunately, mea

Re: Fwd: perl6 INC

2016-05-11 Thread Brandon Allbery
On Wed, May 11, 2016 at 10:21 AM, Bennett Todd wrote: > Zef seems to have left files containing the string Readline in > share/perl6/site, plus .perl6/precomp. The filenames are hashes, perhaps > from a git clone that zef used to pull Readline? They're from rakudo's

Re: Fwd: perl6 INC

2016-05-11 Thread Brandon Allbery
On Wed, May 11, 2016 at 10:46 AM, Moritz Lenz wrote: > On 05/11/2016 04:30 PM, Bennett Todd wrote: > >> 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

Re: How to capture an div 0 exception

2016-05-18 Thread Brandon Allbery
On Wed, May 18, 2016 at 11:29 AM, Brandon Allbery <allber...@gmail.com> wrote: > On Wed, May 18, 2016 at 11:27 AM, mt1957 <mt1...@gmail.com> wrote: > >> This has something to do with lazy evaluation. It triggers the >> calculation when it wants to show the value in $

Re: How to capture an div 0 exception

2016-05-18 Thread Brandon Allbery
On Wed, May 18, 2016 at 11:27 AM, mt1957 wrote: > This has something to do with lazy evaluation. It triggers the calculation > when it wants to show the value in $r. IIRC it doesn't throw, it returns a Failure (deferred/lazy exception that throws when accessed). -- brandon

Re: testing with a "warn"

2016-04-29 Thread Brandon Allbery
On Fri, Apr 29, 2016 at 3:44 PM, Timo Paulssen wrote: > I didn't actually read the other mail in this thread yet, but you can > catch a control exception (like warn uses) with a CONTROL block. Don't > forget to .resume the exception unless you want it to break out of your >

Re: testing with a "warn"

2016-04-29 Thread Brandon Allbery
On Fri, Apr 29, 2016 at 6:45 PM, Larry Wall wrote: > If you need to produce actual warnings in hot code, something's wrong > with your design. (If you just want to print to STDERR, you can use > 'note' instead.) > The latter's more what I was getting at, yes. -- brandon s

Re: [perl #128062] chdir does not respect group reading privilege

2016-05-03 Thread Brandon Allbery
On Tue, May 3, 2016 at 12:01 PM, Christopher Bottoms < perl6-bugs-follo...@perl.org> wrote: > Failed to change the working directory to '/home/test/tests/path': did not > pass 'd r' test Urgh. Please tell me it is not testing permissions before changing directory; that's pointless and (although

Re: [perl #128049] [BUG] "Cannot look up attributes in a type object" error has occurred in the context of using NativeCall

2016-05-02 Thread Brandon Allbery
On Mon, May 2, 2016 at 9:20 AM, Elizabeth Mattijsen wrote: > > You should probably rename your method “new” to BUILD, so that the default > .new() implementation can find it. Could definition of a method new throw a worry or something, pointing people to BUILD and/or the object

Re: [perl #128046] Rakudo hangs if you try to read $*IN when -n is used (perl6 -ne 'say get')

2016-05-01 Thread Brandon Allbery
On Sun, May 1, 2016 at 7:11 AM, Alex Jakimenko wrote: > Now, obviously, it is a little bit weird for the user to try to read from > $*IN when -n Not that weird. Let the loop read chunk headers, and read/process the rest of the chunk in the middle of the loop.

Re: NativeCall interface for a char ** argument

2016-05-25 Thread Brandon Allbery
On Wed, May 25, 2016 at 11:50 AM, Fernando Santagata < nando.santag...@gmail.com> wrote: > When I write a C program I'm able to call that function and I receive the > strings, so I guess my problem is just a mapping one. It can also mean a preallocated array of strings, though; C is sloppy

Re: [perl #128751] rakudo for loop on texas bag operator spawns background IO

2016-07-27 Thread Brandon Allbery
Note that there's a high probability of this being a cygwin-specific issue. On Wed, Jul 27, 2016 at 11:24 AM, Will Coleda via RT < perl6-bugs-follo...@perl.org> wrote: > On Wed Jul 27 07:38:45 2016, ajs wrote: > > Was playing around on command-line with hyperoperations over texas bag > >

Re: function name in a variable

2016-08-09 Thread Brandon Allbery
On Tue, Aug 9, 2016 at 3:49 AM, Theo van den Heuvel wrote: > I have string variable and want to execute a function with that name. How > do I call that function? > > sub bar { say "Hi" } > my $subname = 'bar'; > > # how to call the sub whose name I have? >

Re: [perl #128831] t/spec/S16-io/eof.t is unportably assuming that /proc/1/comm exists

2016-08-03 Thread Brandon Allbery
On Wed, Aug 3, 2016 at 3:12 PM, Nicholas Clark wrote: > I don't know what file would be safer. Maybe mem? None of them. There's no guarantee that /proc exists (non-SVR4 commercial Unixes), or that it is in any way compatible with Linux's notion of /proc (FreeBSD,

Re: [perl #126976] [SEGV] on "/".IO.mkdir

2016-07-04 Thread Brandon Allbery
On Mon, Jul 4, 2016 at 6:44 PM, Zoffix Znet via RT < perl6-bugs-follo...@perl.org> wrote: > > Ticket should be closable once a test has been added to Roast. > Is it really appropriate to attempt to create such directories? I'm > hesitant to have roast touch things outside of its directory. >

Re: [perl #126976] [SEGV] on "/".IO.mkdir

2016-07-04 Thread Brandon Allbery
On Tue, Jul 5, 2016 at 12:06 AM, wrote: > It's fine to check failure modes on an existing directory we create during > testing, but I'm a definite -1 on attempting to much around with '/' The only way that would misbehave would indicate a system already corrupted beyond

Re: [perl #128520] [RFC] Consider migrating from RT

2016-07-08 Thread Brandon Allbery
On Fri, Jul 8, 2016 at 2:21 PM, Will Coleda via RT < perl6-bugs-follo...@perl.org> wrote: > The lack of progress on old tickets has little to do with the ticketing > system they are in. What sort of information are you looking for? I > regularly ping the IRC chat with summary information on

Re: [perl #128526] [BUG] You can't catch Proc::Async failing because the external program doesn't exist if you open it for writing

2016-07-03 Thread Brandon Allbery
On Sun, Jul 3, 2016 at 10:22 AM, Daniel Green wrote: > This doesn't: > > perl6 -e 'my $p; try {$p = Proc::Async.new(:w, "asdfcat"); CATCH {die "in > new"}}; my $pr; try {$pr = $p.start; CATCH {die "in start"}}; try > {await($p.write("hi\n".encode)); CATCH {die "in

Re: [perl #128965] [BUG] Pair.WHICH mishandles Scalar key

2016-08-16 Thread Brandon Allbery
On Tue, Aug 16, 2016 at 12:39 PM, Zefram wrote: > If I construct a Pair whose key is a Scalar object, Scalar objects are a leaked internal detail that aren't intended for direct use (.VAR is an avowed hack, and the likely outcome of your insistence on treating it

Re: [perl #128965] [BUG] Pair.WHICH mishandles Scalar key

2016-08-16 Thread Brandon Allbery
On Tue, Aug 16, 2016 at 4:00 PM, Zefram wrote: > That's what I think it is. I'm mystified as to what you think I think > it is. > Because of all the behaviors central to it being the implementation of a mutable value, that you have reported as bugs. They're not bugs, they are

Re: [perl #128965] [BUG] Pair.WHICH mishandles Scalar key

2016-08-16 Thread Brandon Allbery
On Tue, Aug 16, 2016 at 3:30 PM, Zefram wrote: > FWIW, I think Scalar is a good reification, and the language would > be better with it being visible, provided that everything relevant > can handle it. > It can't handle it. The implementation is precisely that needed for

Re: [perl #128965] [BUG] Pair.WHICH mishandles Scalar key

2016-08-16 Thread Brandon Allbery
On Tue, Aug 16, 2016 at 5:00 PM, Zefram wrote: > If .VAR and the Scalar class are hidden > behind a MONKEY-SEE-NO-CONTAINER pragma then I'll accept that they're > not part of the supported language. > I think .VAR can remain visible as long as the Scalar can't escape from it.

Re: [perl #128965] [BUG] Pair.WHICH mishandles Scalar key

2016-08-16 Thread Brandon Allbery
On Tue, Aug 16, 2016 at 5:11 PM, Zefram <zef...@fysh.org> wrote: > Brandon Allbery via RT wrote: > >I think .VAR can remain visible as long as the Scalar can't escape from > it. > > What would it yield if not the Scalar? That's the essence of .VAR > expressions. To

Re: [perl #128965] [BUG] Pair.WHICH mishandles Scalar key

2016-08-16 Thread Brandon Allbery
hould have its own identity but expose the value it contains without an explicit dereference. Scalar goes out of its way to not expose its own identity, which is why the only way to get one is .VAR --- and rakudo depends on this. On Tue, Aug 16, 2016 at 6:07 PM, Zefram <zef...@fysh.org> w

Re: [perl #128965] [BUG] Pair.WHICH mishandles Scalar key

2016-08-16 Thread Brandon Allbery
On Tue, Aug 16, 2016 at 4:45 PM, Elizabeth Mattijsen wrote: > But then you still haven’t defeated it, as you can do nqp::create(Scalar). But you have to go into NQP to do that; you already took off all the safeties, and whatever happens is your own fault. (Which is why

Re: [perl #128965] [BUG] Pair.WHICH mishandles Scalar key

2016-08-16 Thread Brandon Allbery
On Tue, Aug 16, 2016 at 4:37 PM, Zefram wrote: > Elizabeth Mattijsen via RT wrote: > >dd9b760 makes it impossible to create a Pair with a mutable key. > > Doesn't work. It defeats my original test case, but you're not actually > type-constraining the key, you're only removing a

Re: [perl #128984] Feature request (wontfix?): perl -c executes BEGIN and CHECK blocks

2016-08-18 Thread Brandon Allbery
On Thu, Aug 18, 2016 at 9:13 AM, Claudio wrote: > Tools like vim-syntastic and atom use 'perl6-c' (the only valid linter for > now) to report syntax errors. Because "perl6 -c" executes code (BEGIN and > CHECK blocks as documented), this is a security concern for

Re: [perl #130713] 42.expmod(-1,1) hangs

2017-02-03 Thread Brandon Allbery
On Fri, Feb 3, 2017 at 4:33 PM, Elizabeth Mattijsen < perl6-bugs-follo...@perl.org> wrote: > Assume this is a MoarVM issue, as this does not appear to be an issue on > MoarVM. ...which of those was supposed to be something else? -- brandon s allbery kf8nh sine

Re: [perl #130723] [BUG] .pick on large ranges gives unexpected results on Windows only

2017-02-06 Thread Brandon Allbery
On Mon, Feb 6, 2017 at 3:31 PM, Nicholas Clark wrote: > OK, this is a bit of guessing, and I would like to think that I've guessed > wrongly because someone else *should* have hit this before... > You'd be surprised. Verifying randomness is fairly tricky... and Perl 3 went

Re: syntax highlighting - uses other than atom?

2017-01-27 Thread Brandon Allbery
On Wed, Jan 25, 2017 at 4:00 AM, Richard Hainsworth wrote: > Lots of traffic on this group about syntax highlighting, which indicates > the work has a broad application. Or just that it's especially useful; as I understand it, this code is also used by github's syntax

Re: print to STDERR problem

2017-02-18 Thread Brandon Allbery
On Sat, Feb 18, 2017 at 10:33 PM, ToddAndMargo wrote: > am having issues writing to STDERR. I am using this as > a reference: >https://perl6.org/archive/rfc/30.html > >The p52p6 translator needs to be able to spot >instances of barewords and globs

Re: reverse of .lines?

2017-02-17 Thread Brandon Allbery
On Fri, Feb 17, 2017 at 10:26 PM, yary wrote: > On Fri, Feb 17, 2017 at 9:52 PM, ToddAndMargo > wrote: > >> @Lines = $StringFullOfLineFeeds.lines > > > @Lines = $StringFullOfLineFeeds.lines.reverse They want what Haskell calls unlines, not a reversed

  1   2   3   4   5   6   >