class/object variables

2015-04-23 Thread mt1957
L.s. The following piece of code shows that one must be careful using my or state variables in a class. They have the same behavior as an our variable if I am right. Are they all kind of global to the class/object? --- class A { my $a; has $.a; our $p; state $q; method set ($b) {

class and its object variables

2015-04-23 Thread mt1957
L.s. The following piece of code shows that one must be careful using my or state variables in a class. They have the same behavior as an our variable if I am right. Are they all kind of global to the class/object? --- class A { my $a; has $.a; our $p; state $q; method set ($b) {

Grammars

2015-04-19 Thread mt1957
L.s., I found a small problem when writing a piece of grammar. A simplified part of it is shown here; ... token tag-body { body-start ~ body-end body-text } token body-start { '[' } token body-end { ']' } token body-text { .*? ?body-end } ... I needed to do something on body-end so I

Scheduler problem with scheduled events

2015-05-02 Thread mt1957
L.s. Reading though synopsis S17 concurrency I tried the following $*SCHEDULER.cue: in=10, { say 10s later } which will deliver the string after 10 seconds. However the moar will work like hell at a 100% cpu time before and afterwards! Removing the option 'in' didn't show this problem.

Problem found with PERL6LIB environment variable (cont)

2015-06-08 Thread mt1957
ls, Also seems to go wrong for RAKUDOLIB Example (in tcsh shell); $ setenv RAKUDOLIB .:lib:/home/marcel/Software/lib/perl6/lib $ setenv PERL6LIB .:lib:/home/marcel/Software/lib/perl6/lib $ perl6 some-program.pl6 some-program.pl6 .. ===SORRY!=== Could not find Semi-xml in any of:

Problem found with PERL6LIB environment variable

2015-06-08 Thread mt1957
ls, Found another problem in the new rakudo (understood that was from 4/8). Version: 'This is perl6 version 2015.05-139-g2281689 built on MoarVM version 2015.05-49-g07fbd62' It seems that perl6 doesn't understand the environment variable PERL6LIB anymore. Example (in tcsh shell); $ setenv

panda occurrence of deprecated code message

2015-06-08 Thread mt1957
l.s. Running newest panda code on newest perl6 (This is perl6 version 2015.05-139-g2281689 built on MoarVM version 2015.05-49-g07fbd62). $ panda list ... Method for (from Any) seen at:

Re: Problem found with PERL6LIB environment variable

2015-06-08 Thread mt1957
On 06/08/2015 09:24 PM, Tobias Leich wrote: say $*DISTRO.cur-sep Hi Tobias, It returns a comma. I've used this in the path and processing is now ok. I was stuck with panda unable to do anything. As a workaround I can continue now. Hopefully this separator will be set back to ':' again.

panda seeing duplicate symbol definitions

2015-06-09 Thread mt1957
l.s. Installing the BSON module gives the following fault when it runs the tests. It fails in t/700-encodable.t as shown below $ panda install BSON ... t/100-double.t . ok t/101-binary.t . ok t/102-int.t ok t/500-native.t . ok t/600-extended.t ... ok ===SORRY!=== Merging

spectest fail

2015-06-20 Thread mt1957
l.s. Just to mention... Spectest 'S17-supply/start.t' fails on my system. $ uname -a Linux h03-fedora 3.19.8-100.fc20.x86_64 #1 SMP Tue May 12 17:08:50 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux $ perl6 -v This is perl6 version 2015.06-22-g70c5bc5 built on MoarVM version 2015.06-16-g46e941c

Re: [perl #125400] Fwd: problem pushing pairs onto an array of pairs

2015-06-15 Thread mt1957
: a = 42 # a Pair :a(42) # a named parameter I could also see going as far as making a named parameter an Enum, or a(nother) subclass of it. Liz === Begin forwarded message: Date: 13 Jun 2015 04:25:43 GMT-6 From: mt1957 mt1...@gmail.com To: perl6 users perl6-us...@perl.org

Re: Problem documentation and/or compiler

2015-06-18 Thread mt1957
Sorry I've been too fast, It's in the doc. However, why can't I assign it to a Buf with automatic coercion from utf8 to Buf which is more generic? Marcel On 06/18/2015 11:12 AM, mt1957 wrote: L.s. At http://doc.perl6.org/type/Str#method_encode it says that string encoding returns a Buf

Problem documentation and/or compiler

2015-06-18 Thread mt1957
L.s. At http://doc.perl6.org/type/Str#method_encode it says that string encoding returns a Buf. It returns a utf8 instead see repl session below. my Str $s = 'abcdef'; abcdef my Buf $b = $s.encode; Type check failed in assignment to '$b'; expected 'Buf' but got 'utf8' in block unit at

panda install problem

2015-06-17 Thread mt1957
l.s. I am having a problem installing my BSON package with panda locally. It fails when it compiles the files to moarvm using perl6 version 2015.05-186-g15c6fbf built on MoarVM version 2015.05-74-gc14339c. $ panda install . == Installing BSON from a local directory '.' == Fetching BSON ==

problem pushing pairs onto an array of pairs

2015-06-13 Thread mt1957
l.s. Can't push/unshift onto an array of pairs! Below a repl session with pushes my @p = a = 1, b = 2; a = 1 b = 2 @p.push(x=1); a = 1 b = 2 my Pair @p = a = 1, b = 2; a = 1 b = 2 @p.push(x=1); a = 1 b = 2 my Array $p = [ a = 1, b = 2]; a = 1 b = 2 $p.push(x=1); a = 1 b = 2 my

Re: problem pushing pairs onto an array of pairs

2015-06-13 Thread mt1957
have known that there was a typo or in the case below a wrong argument to the push method. Something like 'named attribute x not recognized'. Greets, Marcel On Sat, Jun 13, 2015 at 12:25 PM, mt1957 mt1...@gmail.com mailto:mt1...@gmail.com wrote: Can't push/unshift onto an array of pairs

user programming mistakes

2015-08-03 Thread mt1957
Hi, I there a way to prevent some type of mistake I now have made several times merely because the error messages are not helping me to point to the problem. Example; grammar Turtle::Grammar { rule TOP { statement* } ... rule directive { prefix-id | base } ... rule

Bug returning objects directly from called methods using some form of named arguments

2015-10-26 Thread mt1957
Two samples of code for which the problem is closely related The first problem; return MongoDB::Cursor.new( collection => self, OP_REPLY=> $OP_REPLY, criteria=> %@criteria ); Generates the error; 'Default constructor for

delegation

2015-10-07 Thread mt1957
Hi, According to synopsis 12 I could defer methods to methods in another object. The case in which one can map some name into another didn't work out. * ** **class A {** ** method say-i (Int $i ) { say "I: $i"; }** **}** ** **class B {** ** has A $.n handles { :x };** ** ** submethod BUILD {

bufs and utf8

2015-08-31 Thread mt1957
Hi, I can not do the following; my Buf $b = 'abc'.encode; Type check failed in assignment to '$b'; expected 'Buf' but got 'utf8' But I can do this; my Buf $b = 'abc'.encode ~ Buf.new(); Buf:0x<61 62 63> Does the concatenation convert utf8 into Buf? Will there be a problem when it is converted

Problem detecting identifiers in some grammar rules

2015-09-02 Thread mt1957
Problem is found in the following piece of code; 3 grammar Grammar { 4rule TOP { <.sentence>+ } 5rule sentence { ('c1'|'c2') '=' <+ dutch-chars - [aeiou]>+ } 6token dutch-chars { <[a..z]> } 7 } Grammar.parse('c1 = sdwbh') ~~ Match || say 'Matched dutch characters'; Error message

Re: [perl #126212] [BUG] SEGV on 16-bit-sized arg insertion

2015-09-29 Thread mt1957
On 09/28/2015 06:52 PM, Larry Wall (via RT) wrote: # New Ticket Created by Larry Wall # Please include the string: [perl #126212] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=126212 > 09:24 < TimToady> m: say 1, |(2 xx

Re: Bug creating objects using some form of named arguments

2015-09-29 Thread mt1957
The trouble I get at the moment is an error generared by the following piece of code return MongoDB::Cursor.new( collection => self, OP_REPLY=> $OP_REPLY, criteria=> %@criteria ); It generates the error; Default constructor for

Bug creating objects using some form of named arguments

2015-09-28 Thread mt1957
Hi Below a set of tests where all object creates are done well except for the last one using a sub or method returning the created object. class X { has Str $.a; } my X $x .= new(a => 'abc'); say "\$x = {$x.perl}"; $x .= new(:a('abc')); say "\$x = {$x.perl}"; $x .= new :a('abc'); say

Re: Bug creating objects using some form of named arguments

2015-09-28 Thread mt1957
On 09/28/2015 07:16 PM, mt1957 wrote: False alarm, had a typing error in the code so, mea culpa poli :-[ . Hi Below a set of tests where all object creates are done well except for the last one using a sub or method returning the created object. class X { has Str $.a; } my X $x .= new

type mistakes creating unhelpful error messages

2015-10-03 Thread mt1957
In great need of proper message ... I have a bad habit of writing defined/undefined(:D or :U) constraint after the variable instead of after the type before the variable in a call signature(Don't ask why ;-|). The error given is Cannot invoke this object Perl is not able to parse the

grep changes?

2015-10-02 Thread mt1957
Hi, noticed that grep doesn't accept a Match operation anymore In repl ... > grep { /\.pl6/ }, Method 'match' not found for invocant of class 'Any' Must now do explicitly match on the topic variable > grep { $_ ~~ /\.pl6/ }, (a.pl6) Is this change correct? perl6 version

Re: grep changes?

2015-10-02 Thread mt1957
at 5:12 PM mt1957 <mt1...@gmail.com <mailto:mt1...@gmail.com>> wrote: Hi, noticed that grep doesn't accept a Match operation anymore In repl ... > grep { /\.pl6/ }, Method 'match' not found for invocant of class 'Any' Must now do explicitly match on the

signatures, multi and named arguments

2015-09-26 Thread mt1957
I was wondering if the long name of sub/method/submethod also includes the named arguments to differentiate between multi's. I had problems using multi on BUILD submethods which only accept named arguments. The dispather (also with other named methods) always takes the first method of the

error message about here doc

2015-09-28 Thread mt1957
Using a heredoc and by accident adding '#' unindented, generated the following error; Asked to remove 2 spaces, but the shortest indent is 0 spaces in any trim_heredoc at gen/moar/m-Perl6-Actions.nqp:78 The here doc used was; spurt 'Sandbox/m-auth.conf', $config ~ qq:to/EOCNF/; security:

Misunderstanding when usng elems on undefined Array

2015-09-25 Thread mt1957
Found the following using Array; > my Array $a; > say $a.elems; 1 > $a.push(1) [1] > say $a.perl [1] > say $a.elems 1 > my Array $a .= new; [] > say $a.elems; 0 Seems that an uninitialized Array reports one element but pushing values on the array will define the properly. In this case it is

Use of ':' in identifiers

2016-01-06 Thread mt1957
L.s. I'am a bit confused about the use of ':' in an identifier. I've read a bit about the ':' twigil but that seems to be used at the front of the id giving it a special use. Under 'identifiers' on the syntax page I couldn't find any about it. So I am referring to things like $abc:def and

Re: Use of ':' in identifiers

2016-01-06 Thread mt1957
Hi Tobias, $foo:bar and Foo:bar are variable/package names with an colonpair appended. The entire thing is then called a longname, at least internally. Test:ver(v1) makes it clearer what it does. You $abc:def example boils down to $abd:def(True) btw. Thanks for your answer. I now found

Re: [perl #126688] bug detecting circular dependencies

2015-12-31 Thread mt1957
On 12/31/2015 06:58 AM, Dave Rolsky via RT wrote: I can confirm that this is still happening as of today's rakudo. It seems like an important bug to fix, but maybe more importantly, how are we supposed to handle circular deps? Consider a pair of classes, Tree and Node, which both need to

Re: [perl #127107] "duplicate definition of symbol grammar" using Grammar::Tracer in .pm6 file

2015-12-31 Thread mt1957
On 12/31/2015 01:47 PM, Faye (via RT) wrote: # New Ticket Created by Faye # Please include the string: [perl #127107] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=127107 > $ cat Foo.pm6 use Grammar::Tracer; $ perl6 -I. -e

lack of info in error message

2015-12-30 Thread mt1957
I get the following error; perl6 t/070-run-command.t ===SORRY!=== P6M Merging GLOBAL symbols failed: duplicate definition of symbol C-MD5-SIZE Searching for the symbol gave me exactly one location where it was defined. So the error should be more explicit in where it was first found and

Re: lack of info in error message

2015-12-30 Thread mt1957
On 12/30/2015 10:43 AM, Elizabeth Mattijsen wrote: On 30 Dec 2015, at 09:48, mt1957 <mt1...@gmail.com> wrote: I get the following error; perl6 t/070-run-command.t ===SORRY!=== P6M Merging GLOBAL symbols failed: duplicate definition of symbol C-MD5-SIZE Searching for the symbol g

thread problem

2016-01-13 Thread mt1957
L.s. I got the following error 'Tried to read() on a socket from outside its originating thread' This socket is created while in another thread using Promise and the object is retrieved using $promise.result. The weird thing is also that just a few lines before that the same socket is used

Re: [perl #127247] [BUG] Circular dependancy lock rakudo in an infinite loop

2016-01-12 Thread mt1957
On 01/12/2016 02:26 PM, Sylvain Colinet (via RT) wrote: # New Ticket Created by Sylvain Colinet # Please include the string: [perl #127247] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=127247 > Using

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

2016-05-29 Thread mt1957
On 05/29/2016 07:47 PM, Brandon Allbery via RT wrote: getent hosts > getent hosts on faulty system 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 127.0.0.1 localhost localhost.localdomain localhost6 localhost6.localdomain6 On ok system. It differs

order of input using Capture

2016-01-11 Thread mt1957
L.s. I've seen that the order of input to a Capture is not kept. Is this a bug? REPL interaction; > my Capture $c = \(a=>1,10,{w=>2},[2,3],(e=>2),(b=>3,),Buf.new(^3)) \(10, {:w(2)}, [2, 3], :e(2), (:b(3),), Buf.new(0, 1, 2), :a(1)) > for $c.list -> $item { $item.WHAT.say;} (Int) (Hash)

Re: order of input using Capture

2016-01-11 Thread mt1957
On 01/11/2016 06:58 PM, mt1957 wrote: Thanks for the information I didn't know about this detail. What about the order of input, when a call is made and a Capture created the order is preserved otherwise the arguments would be bound to the wrong values isn't it? But the example shows

panda and documentation

2016-01-11 Thread mt1957
L.s. I have written my documentation in separate pod files. How do I mention this in the META.info file and where will panda install the documentation Greetings Marcel

Re: order of input using Capture

2016-01-11 Thread mt1957
Thanks for the information I didn't know about this detail. What about the order of input, when a call is made and a Capture created the order is preserved otherwise the arguments would be bound to the wrong values isn't it? But the example shows otherwise.

Re: thread problem

2016-01-13 Thread mt1957
version 2015.12-201-g2a8ca94 built on MoarVM version 2015.12-29-g8079ca5 implementing Perl 6.c. Can you post the code that causes the issue? On Wed, Jan 13, 2016 at 4:00 AM, mt1957 <mt1...@gmail.com> wrote: L.s. I got the following error 'Tried to read() on a socket from outsi

Re: [perl #127340] no line number on error

2016-01-21 Thread mt1957
On 01/21/2016 06:35 PM, mt1957 (via RT) wrote: # New Ticket Created by mt1957 # Please include the string: [perl #127340] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=127340 > L.s. Got this error; Internal error: zer

Re: [perl #127340] no line number on error

2016-01-23 Thread mt1957
On 01/21/2016 06:44 PM, mt1957 wrote: On 01/21/2016 06:35 PM, mt1957 (via RT) wrote: # New Ticket Created by mt1957 # Please include the string: [perl #127340] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=127340 >

Re: [perl #127340] no line number on error

2016-01-23 Thread mt1957
On 01/23/2016 06:04 PM, jn...@jnthn.net via RT wrote: On Sat Jan 23 07:08:17 2016, mt1...@gmail.com wrote: On 01/21/2016 06:44 PM, mt1957 wrote: On 01/21/2016 06:35 PM, mt1957 (via RT) wrote: # New Ticket Created by mt1957 # Please include the string: [perl #127340] # in the subject line

Re: [perl #127339] problem using Duration

2016-01-22 Thread mt1957
On 01/22/2016 01:52 PM, Sam S. via RT wrote: This is the root of the problem: ➜ say ($d + 2).WHAT; (Duration) ➜ say ($d * 2).WHAT' (Num) The behavior of += and *= is just a consequence of that. Then the question remains why the multiplication results in Num if it multiplies

Re: importing code

2016-03-10 Thread mt1957
Op 10-03-16 om 20:14 schreef yary: There's "require" to load a module at runtime http://docs.perl6.org/syntax/require The $*REPO object controls how to search for modules, http://docs.perl6.org/language/5to6-perlvar mentions it. I don't know much more than that, Thanks for your answer, I've

question about Supply.act()

2016-04-28 Thread mt1957
Hi, The documentation about the method act explains that 'the given code is guaranteed to be only executed by one thread at a time'. Can I assume from this that any other thread including the main thread isn't running? I want to know if I need to guard the data with semaphores I am changing

Re: [perl #128036] Bug filling hash using $_

2016-04-30 Thread mt1957
More simplified code producing the same error; $_ = 'some message'; my Hash $h = { f1 => $_, } greetings Marcel # New Ticket Created by mt1957 # Please include the string: [perl #128036] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Tic

Re: [perl #128156] dependency errors

2016-05-24 Thread mt1957
Hi, Another symptom from the same bug. After modifying a sub module I get an error like the following; Type 'Semi-xml::Sxml' is not declared at /home/marcel/Languages/Perl6/Projects/Semi-xml/t/108-xml.t:43 --> my Semi-xml::Sxml⏏ $x .= new; Malformed my at

Re: How to capture an div 0 exception

2016-05-18 Thread mt1957
On 18-05-16 13:07, Richard Hainsworth wrote: use v6; my $d = 1; my $e = 2; my $f = 0; #my $r; my $r = 5; CATCH { # when X::AdHoc { when Exception { .Str.say; # $r = 5; .resume } } $r = try { ( $d + $e ) / $f; }; # my $r = try EVAL ' ( 1 + 2 ) /0 '; say "r is $r"; Hi

Re: How to capture an div 0 exception

2016-05-18 Thread mt1957
Hi Richard, This has something to do with lazy evaluation. It triggers the calculation when it wants to show the value in $r. So commenting out the first 'say' will error on the second with the shown response. The CATCH is not at the same scope than the second 'say' statement so there you

Re: Some proposed Perl 6 pod projects for comment

2016-05-15 Thread mt1957
Hi Tom, Pod::To::PDF == Nice to have. It could use something like p6pod2latex as an intermediate filter and then use popular LaTeX tools to generate the PDF. At the moment I am writing pod6 in separate files with the following at the top of such a file. It needs wkhtmltopdf for this

Re: Blobs and IEEE floating point

2016-04-19 Thread mt1957
Hi Timo, Thanks for the code snippets, I can use that too. There is already some code to test endianness see mail from David Warring at my question about Union. Date April 4 2016. Greetings, Marcel On 19/04/16 16:25, Elizabeth Mattijsen wrote: > I’ve been looking at nativecast, but

Re: Blobs and IEEE floating point

2016-04-20 Thread mt1957
On 19-04-16 10:21, Elizabeth Mattijsen wrote: FWIW, I’ll take PR’s for the PackUnpack distribution to make ‘f’ and ‘d’ work :-) Hi Elizabeth, For the PackUnpack distro this might come in handy... or might go in the examples corner? Done some experiments and looks well. Please check the

Re: [perl #128628] problem using semaphore with many threads

2016-07-28 Thread mt1957
On 07/28/2016 03:00 PM, Jonathan Worthington via RT wrote: On Fri, Jul 22, 2016 at 10:46 AM, mt1957 via RT < perl6-bugs-follo...@perl.org> wrote: I'm afraid the test I've created still hangs in rakudo version 2016.07.1-37-g60f256d built on MoarVM version 2016.07-3-gc01472d implementing

Re: [perl #128628] problem using semaphore with many threads

2016-07-24 Thread mt1957
On 07/21/2016 02:52 PM, jn...@jnthn.net via RT wrote: On Fri Jul 15 12:32:30 2016, mt1...@gmail.com wrote: With Rakudo version 2016.06-234-g0189851 built on MoarVM version 2016.06-9-g8fc21d5 implementing Perl 6.c on a Asus laptop running Fedora 23 I see the following happen. Running the code

Re: [perl #128655] Mixup in candidates through optimizer

2016-07-18 Thread mt1957
Hi Elizabeth, Need to mention that there was a ticket #128624 created 'Buf initialization error'. Regards, Marcel Timmerman

resource limits

2016-07-08 Thread mt1957
Hi, I am running tests with a lot of threads. I've seen that when I push it to about 200 threads, it can get into trouble when the task of the thread is large enough. Now, looking at some system monitor(atop on linux), I can see that the user time of 3 or 4 processors(of 8) soared up to 100%

Re: [perl #127339] problem using Duration

2016-08-07 Thread mt1957
On 08/06/2016 05:39 AM, Zoffix Znet via RT wrote: Then the question remains why the multiplication results in Num if it multiplies with an integer It's merely a matter that such things require addition of three extra operators per operation (e.g. Duration * Duration, Duration * Num, Num *

Re: [perl #127340] no line number on error

2016-08-07 Thread mt1957
On 08/06/2016 05:22 AM, Zoffix Znet via RT wrote: Hi, Are you able to see if the issue is still there with the latest and greatest Rakudo? I haven't seen this anymore in the code while testing. There have been so many changes in the perl6 compiler on threads since the this ticket is

Re: [perl #128628] problem using semaphore with many threads

2016-07-22 Thread mt1957
On 07/21/2016 02:52 PM, jn...@jnthn.net via RT wrote: On Fri Jul 15 12:32:30 2016, mt1...@gmail.com wrote: With Rakudo version 2016.06-234-g0189851 built on MoarVM version 2016.06-9-g8fc21d5 implementing Perl 6.c on a Asus laptop running Fedora 23 I see the following happen. Running the code

Re: [perl #130603] Test (module) fails while all tests return ok

2017-01-21 Thread mt1957
Thanks very much for the explanation, Tried the following to get the Test/TAP crying... use Test; is 1, 1, 'test 1'; say "ok 1 - pestering 1"; say "nok 5 - pestering 2"; done-testing; It then generates ok 1 - test 1 ok 1 - pestering 1 nok 5 - pestering 2 1..1 Failed -1/1 subtests Test

Re: [perl #130603] Test (module) fails while all tests return ok

2017-01-21 Thread mt1957
test should be is 1, 1, 'test 1'; say "ok 1 - pestering 1"; say "not ok 5 - pestering 2"; resulting in ok 1 - test 1 ok 1 - pestering 1 not ok 5 - pestering 2 1..1 Failed -1/1 subtests Test Summary Report --- confuse-TAP.t (Wstat: 0 Tests: 3 Failed: 1) Failed test: 5

Re: syntax highlighting - uses other than atom?

2017-01-27 Thread mt1957
On 01/25/2017 10:00 AM, Richard Hainsworth wrote: Lots of traffic on this group about syntax highlighting, which indicates the work has a broad application. I've looked at the atom-language-perl6 and the main atom site, but it all seems quite narrow: running highlighted scripts in a single

Re: [perl #130603] Test (module) fails while all tests return ok

2017-01-21 Thread mt1957
Update... I've used --merge on prove! This merges the outputs into one. Removing this option and using note for the output will give correct results ok 1 - test 1 1..1 ok 1 - pestering 1 not ok 5 - pestering 2 ok All tests successful. Files=1, Tests=1, 0 wallclock secs ( 0.03 usr 0.00 sys

Re: [perl #130603] Test (module) fails while all tests return ok

2017-01-20 Thread mt1957
Hi Will, How can it happen that a test gets hurt in this way? If I know this I could better search for the problem. Regards, Marcel On 01/20/2017 05:24 PM, Will Coleda via RT wrote: On Fri, 20 Jan 2017 06:09:00 -0800, mt1...@gmail.com wrote: Hi, Since using Log::Async in MongoDB I get

pod question

2017-03-01 Thread mt1957
Hi, Is it true that the '=for' is taken out of the pod language? I get errors when I use it. It should take the line and the next lines as a block. I've also seen that it has the same effect now when I don't use it. Regards, Marcel

Re: pod question

2017-03-01 Thread mt1957
On 03/01/2017 03:50 PM, Will Coleda wrote: Not true, '=for' is part of POD6. See below. If you're getting errors, it's helpful to reduce the example to a reasonably small bit of code that duplicates the same error; either you'll realize the issue as you remove unrelated bits of code, or you'll

Re: subset problem

2016-09-16 Thread mt1957
The files are PRECIS.pm6 and 100-precis.t in the attachment The Map definitions is at 13 and subset on line 20 of file PRECIS.pm6. Use is at method exceptions at line 172 in the same file. The error is generated on line 85 in 100-precis.t > prove -e perl6 -v t/100-precis.t t/100-precis.t ..

Re: subset problem

2016-09-16 Thread mt1957
. It works fine if the three statements are on the same line and if the program is being read from a file, so I guess it's bug of the REPL. On Fri, Sep 16, 2016 at 1:49 PM, mt1957 <mt1...@gmail.com <mailto:mt1...@gmail.com>> wrote: Hi everyone, I am trying to create a su

subset problem

2016-09-16 Thread mt1957
Hi everyone, I am trying to create a subset but get errors when used. Surely I do something wrong here or is it a bug? In REPL > my Map $p .= new(.kv.reverse); Map.new((:aa(4),:bb(5),:d(0),:f(1),:ff(6),:g(2),:h(3))) > subset pv of Str where $_ (elem) $p; (pv) > my pv $x = 'aa'; Type check

Re: small test program

2016-11-07 Thread mt1957
On 11/07/2016 04:05 AM, Mike South wrote: On Sat, Nov 5, 2016 at 1:10 PM, mt1957 <mt1...@gmail.com <mailto:mt1...@gmail.com>> wrote: Hi, I've made a small test program to run a particular test file in an infinite loop until it fails. I was investigating some race

Re: [perl #130050] placement of use statement

2016-11-08 Thread mt1957
Hi Will, It is the MongoDB distribution in the file t/Test-support.pm6. It starts with; use v6.c; use MongoDB::Client; use MongoDB::Collection; use MongoDB::Server::Control; and throws an error at line 119; 119: method get-connection ( Int :$server = 1 --> MongoDB::Client ) {

small test program

2016-11-05 Thread mt1957
Hi, I've made a small test program to run a particular test file in an infinite loop until it fails. I was investigating some race problem in BSON and the test run was successful most of the time. I got some raw fingers to repeat the commands so this is the result, simple and maybe useful

testing on appveyor

2016-11-05 Thread mt1957
Hi everyone, I wanted to share something here of my newest experience about testing on appveyor. I had pinched a configuration file for an appveyor test, because it was new for me and I am not experienced on windows. It worked for several of my modules so I was happy until I ran into a

Re: Unexpected feature

2016-10-18 Thread mt1957
On 10/17/2016 11:34 PM, Parrot Raiser wrote: I just downloaded the 2016.10 RC (into a different directory than 2016.07, in case it broke something). Testing the REPL, scrolling back through the commands continued back into the history of previous sessions with the older version. (I.e, they

Re: [perl #130114] IO::Path.resolve on windows prefixed with \

2016-11-17 Thread mt1957
On 11/16/2016 09:17 PM, Zoffix Znet via RT wrote: On Wed, 16 Nov 2016 03:01:30 -0800, mt1...@gmail.com wrote: Hi, On windows the path created by method resolve on windows is prefixed with a '\' which is wrong e.g. in project config-datalang-refine on appveyor the statement say 'Resolve:

Re: [perl #129212] problem mixing in role with multi builds

2016-10-17 Thread mt1957
Hi, Revisiting the problem using rakudo version 2016.10-31-g6ed3a68 built on MoarVM version 2016.10 implementing Perl 6.c. The issue still exist but tried to rewrite things to get it working role RR1 { submethod BUILD ( Int :$i ) { say $i // 'No i'; } } role RR2 { submethod BUILD ( Str

Re: [perl #130338] perl6 changes breaking code

2016-12-14 Thread mt1957
Hi, How did you build your Perl 6? That version number looks suspicious. You say you're on 2016.11-238-g2f502b4, but the current HEAD/nom is 2016.11-226-g1d46004, 12 commits fewer than yours. The most obvious answer is you're in possession of a time machine and are reporting bugs from the

Re: [perl #130338] perl6 changes breaking code

2016-12-14 Thread mt1957
Hi, I've rebuild rakudo from the ground up. Version I get now is 2016.11-236-g7b09bee built on MoarVM version 2016.11-41-gd2139b5 which looks better now. However, problem still exist. Can do for now with the unit package line before all use statements.

perl6 changes breaking code

2016-12-12 Thread mt1957
Hi, Recently after pulling the newest rakudo/moarvm (2016.11-238-g2f502b4 built on MoarVM version 2016.11-41-gd2139b5 implementing Perl 6.c) I saw errors in my code which compiled ok before. This is difficult to golf down because it disappears when used in another context. So better explain

Re: [perl #131168] problems when using require ::($m)

2017-04-17 Thread mt1957
I understand that the symbols must be used in the same block as the require statement. There is then still a problem, namely the difference between linux and windows. In the mean time I will try to get the usage of the functions to the block where it is required. Marcel On 17-04-17 19:12,

Re: [perl #131168] problems when using require ::($m)

2017-04-17 Thread mt1957
On 17-04-17 19:12, Zoffix Znet via RT wrote: thanks for the link, I will look into it. The code for which the windows implementation fails but not on linux, can be found here; https://github.com/MARTIMM/config-datalang-refine/blob/master/lib/Config/DataLang/Refine.pm6 the requires are at

dies-ok can return ok on everything dying

2017-04-18 Thread mt1957
Hi, I've encountered a little problem using dies-ok() from the Test module; The case was that I made an error within the block used as the first argument to dies-ok. In that particular case the perl6 compiler hurled an exception and dies-ok accepted it as an ok action which was not ok

Re: [perl #131168] problems when using require ::($m)

2017-04-17 Thread mt1957 via RT
I understand that the symbols must be used in the same block as the require statement. There is then still a problem, namely the difference between linux and windows. In the mean time I will try to get the usage of the functions to the block where it is required. Marcel > On 17-04-17 19:12,

Re: [perl #131168] problems when using require ::($m)

2017-04-17 Thread mt1957 via RT
On 17-04-17 19:12, Zoffix Znet via RT wrote: thanks for the link, I will look into it. The code for which the windows implementation fails but not on linux, can be found here; https://github.com/MARTIMM/config-datalang-refine/blob/master/lib/Config/DataLang/Refine.pm6 the requires are at line

Re: [perl #131780] [Double Free] Crash while running test

2017-07-22 Thread mt1957 via RT
On 07/22/2017 12:03 PM, Aleks-Daniel Jakimenko-Aleksejev via RT wrote: > Is there any code snippet to reproduce it? > > The backtrace mentions mongo-perl6-driver… True, its in the mongodb driver project. The test is in the attachment and it crashed around line 98 or 99. Just finished the 'Find

Re: [perl #131493] changed type of variable

2017-06-03 Thread mt1957 via RT
On 06/03/2017 11:36 AM, Aleks-Daniel Jakimenko-Aleksejev via RT wrote: > say IntStr ~~ Str > say Str ~~ IntStr False

Re: [perl #131493] changed type of variable

2017-06-03 Thread mt1957 via RT
On 06/03/2017 11:36 AM, Aleks-Daniel Jakimenko-Aleksejev via RT wrote: > sub s (Str() :$str) {say $str.WHAT}; s(:str<1>) # IntStr > sub s (Str :$str) {say $str.Str.WHAT}; s(:str<1>) # Str I think the last one is coerced explicitly. Btw I didn't know about 'Str() :$str' specification. What does

Re: [perl #131493] changed type of variable

2017-06-03 Thread mt1957 via RT
After some discussion I've understood that I have to do some homework and that this bug can be closed. Thanks Jnhtn and Araraloren for your help Regards, Marcel

Re: [perl #131242] Bug IO::Path method move

2017-05-02 Thread mt1957 via RT
Thanks very much Marcel

Re: [perl #132316] [Double Free] Crash while running program

2017-10-18 Thread mt1957 via RT
On 10/17/2017 09:27 PM, Timo Paulssen via RT wrote: > if you can, please re-compile MoarVM passing the same options that were > used before (you can find them on the first screenfuls of the Makefile > inside moarvm's source folder) to Configure.pl but also include > --debug=3 and --optimize=0.

Re: [perl #132316] [Double Free] Crash while running program

2017-10-18 Thread mt1957 via RT
@Aleks-Daniel Jakimenko-Aleksejev > How can I reproduce this issue? What code did you use? > Well, 1) Install a mongod server and start it up. Its address  might be 127.0.0.1:27017 which is the default for mongod servers. Servers can be downloaded using $ curl -O

Re: [perl #132316] AutoReply: [Double Free] Crash while running program

2017-10-31 Thread mt1957 via RT
On 10/17/2017 08:37 PM, perl6 via RT wrote: I've modified the BSON code quite a bit thanks to examples from Zoffix, crashes are gone! Also I changed the parts encoding the document due to hangups I still experienced. This was still a problem of which I thought I had fixed it, issue #20

Re: [perl #132316] [SEGV] Crash while running program (MongoDB module)

2017-10-28 Thread mt1957 via RT
Hi @Zoffix Znet Do you have any pointers or howto's to write thread-save code? Otherwise I'd remove all of the promises. It gave some other problems in the past. Regards Marcel > On Thu, 26 Oct 2017 06:04:51 -0700, alex.jakime...@gmail.com wrote: >> FWIW, when toasting I observed double free or