Re: [perl #122289] [BUG] unexpected behaviour during EVAL()

2017-12-04 Thread Kamil Kułaga
;> LOADING EVAL_2 > > + Uncaught Exception > > | Cannot invoke this object (REPR: Null, cs = 0) > > + /home/kamil/dev/lacuna-cookbuk/bin/lacunacookbuk_client (23 - 27) > > | BodyBuilder.process_all_bodies; > > | } else { > > | BodyBuilder.read; > > | } > > | for @todo -> $willdo { > > > q > > - Run END blocks (y/N)? > > > > $ perl6 --version > > This is perl6 version 2014.06-118-gb25b868 built on MoarVM version > > 2014.06-63-g0fb638b > > -- Pozdrawiam Kamil Kułaga

Re: [perl #128154] [BUG] Cannot use qqx in rakudo star on windows7

2018-07-12 Thread Kamil Kułaga
Will it work fine for utf-16 users? On Wed, Jul 11, 2018 at 11:16 AM Steve Mynott via RT wrote: > > Maybe the Windows port of rakudo should set this automatically on startup? > On Wed, 11 Jul 2018 at 10:08, Kamil Kułaga via RT > wrote: > > > > I found resolution. It

Unusual use of x string repetition operator

2014-02-10 Thread Kamil Kułaga
S. perl6 --version This is perl6 version 2014.01 built on parrot 5.9.0 revision 0 -- Regards Kamil Kułaga

Re: Unusual use of x string repetition operator

2014-02-10 Thread Kamil Kułaga
Hi, Array stringification to "1 2" mislead me that something more complicated comes around. Thanks for fast reply On Mon, Feb 10, 2014 at 2:29 PM, Tobias Leich wrote: > Hi > Am 10.02.2014 14:19, schrieb Kamil Kułaga: >> Hi, >> >> I've played wit

Re: Unusual use of x string repetition operator

2014-02-10 Thread Kamil Kułaga
2|12|12|12|12|12|12|12|12␤» > > Am 10.02.2014 14:42, schrieb Kamil Kułaga: >> Hi, >> >> Array stringification to "1 2" mislead me that something more >> complicated comes around. >> >> Thanks for fast reply >> >> On Mon, Feb 10, 2014 at 2:

Unusual use of x string repetition operator

2014-02-10 Thread Kamil Kułaga
rl6 --version This is perl6 version 2014.01 built on parrot 5.9.0 revision 0 -- Regards Kamil Kułaga

Problems importing JSON::RPC::Client while in lib instead of bin

2014-04-30 Thread Kamil Kułaga
kamil@perl6:~/dev/sandbox$ perl6 notfail.pl kamil@perl6:~/dev/sandbox$ -- Pozdrawiam Kamil Kułaga

Re: [perl #121804] AutoReply: [BUG]Array of Hash conversion and type check error and unexpected conversion to pair

2014-05-06 Thread Kamil Kułaga
ting:8473 > in method BUILDALL at src/gen/m-CORE.setting:939 > in method bless at src/gen/m-CORE.setting:858 > in method new at src/gen/m-CORE.setting:843 > in any return_error at src/vm/moar/Perl6/Ops.nqp:598 > in sub x at /home/kamil/dev/sandbox/HashKing.pl:8 > in block at /home/kamil/dev/sandbox/HashKing.pl:15 > > $ perl6-p ~/dev/sandbox/HashKing.pl > (Hash) > Type check failed for return value; expected 'Array[Hash]' but got > 'Array[Hash]' > in sub y at /home/kamil/dev/sandbox/HashKing.pl:27 > in block at /home/kamil/dev/sandbox/HashKing.pl:30 > > > -- > Pozdrawiam > > Kamil Kułaga > -- Pozdrawiam Kamil Kułaga

[perl #121804] [BUG]Array of Hash conversion and type check error and unexpected conversion to pair

2014-05-06 Thread Kamil Kułaga
# New Ticket Created by "Kamil Kułaga" # Please include the string: [perl #121804] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=121804 > Hi, I found some hash issues on moar and parrot perl6-p --version

[perl #121811] [BUG] $*EXECUTABLE filled wrong on parrot

2014-05-07 Thread Kamil Kułaga
# New Ticket Created by "Kamil Kułaga" # Please include the string: [perl #121811] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=121811 > $*EXECUTABLE contains right path on moar but on parrot it is pwd+bas

Does perl have ensue override?

2014-05-15 Thread Kamil Kułaga
cuts out deprecated method and there is no reason to implement them any longer. -- Pozdrawiam Kamil Kułaga

Re: Does perl have ensue override?

2014-05-19 Thread Kamil Kułaga
enz wrote: > Hi Kamil, > > > On 05/15/2014 07:48 PM, Kamil Kułaga wrote: >> >> Is there any ordinary way (not something like getting list of methods >> from base class) to ensure we are overriding method? >> >> Java has @Override annotation that that causes

Re: Does perl have ensue override?

2014-05-20 Thread Kamil Kułaga
emulate .^can. > > I'll see if anybody in #perl6 (IRC) has a good idea... > > Cheers, > Moritz > > On 19.05.2014 14:52, Kamil Kułaga wrote: >> Hi Moritz, >> >> I've tried to adapt Your gist to something else but I've realized that >> it does

Is passing excess parameters while creating object legal?

2014-05-25 Thread Kamil Kułaga
eaks only about type objects: (It is allowed to pass type objects that don't correspond to any parent class.) -- Pozdrawiam Kamil Kułaga

Re: Is passing excess parameters while creating object legal?

2014-05-28 Thread Kamil Kułaga
some other cases may be a great idea. On Tue, May 27, 2014 at 9:04 PM, Tadeusz Sośnierz wrote: > On 05/25/2014 09:50 AM, Kamil Kułaga wrote: >> >> Hi, >> >> My question is about passing parameters to .new method that do not >> correspond to any field in class. This e

Rewrite using map? Trasformation array into hash of hash

2014-06-13 Thread Kamil Kułaga
27;, b=>'33'), A.new(a=>'w', b=>'44'), A.new(a=>'v', b=>'55') ); my %hash; for @array -> $elem { %hash{$elem.a}{$elem.b} =$elem; } say %hash.perl; Can it? -- Pozdrawiam Kamil Kułaga

Re: Rewrite using map? Trasformation array into hash of hash

2014-06-13 Thread Kamil Kułaga
t;'33'), > A.new(a=>'w', b=>'44'), > A.new(a=>'v', b=>'55'); > > say @array.map({ .a => .b => $_ }) > > OUTPUT«"a" => "11" => A.new(a => "a", b => &

Re: Rewrite using map? Trasformation array into hash of hash

2014-06-13 Thread Kamil Kułaga
33'), A.new(a=>'w', b=>'44'), A.new(a=>'v', b=>'55'); my %h = @array.map({ my $var = .a; $var => %(@array.grep({.a eq $var}).map({.b => $_})) }); say %h.perl; my %hash; for @array -> $elem { %hash{$ele

Re: Rewrite using map? Trasformation array into hash of hash

2014-06-13 Thread Kamil Kułaga
'w', b=>'44'), A.new(a=>'v', b=>'55'); my %h = categorize({map {[.a , .b]}, $_},@array); say %h<22>.perl; my %hash; for @array -> $elem { %hash{$elem.a}{$elem.b} =$elem; } say "Reference\n" ~ %hash<22>.perl; On Fr

Re: Rewrite using map? Trasformation array into hash of hash

2014-06-14 Thread Kamil Kułaga
Dear Timo. So .categorize and .classify wil always end with list on leaves of produced tree? Ok I can live with that :) On Sat, Jun 14, 2014 at 12:30 PM, wrote: > Dear Kamil, > > > On 06/13/2014 10:24 PM, Kamil Kułaga wrote: >> my %h = categorize({map {[.a , .b]}, $_},@array

Code execution during compilation

2014-06-14 Thread Kamil Kułaga
27;m alive Is this expected or subject to change? -- Pozdrawiam Kamil Kułaga

Re: Code execution during compilation

2014-06-14 Thread Kamil Kułaga
Of course ment perl6 --target=pir --output=o.pir funnyrole.pl but with same effect On Sun, Jun 15, 2014 at 2:31 AM, Kamil Kułaga wrote: > Hi, > > I got amazed little bit when this code: > class A { > method wow{say "I'm alive"} > } > &

Re: Code execution during compilation

2014-06-15 Thread Kamil Kułaga
, but in your example, 'class B > does Xx' runs at compile time, so the two are roughly equivalent). > > Cheers, > Moritz > > On 06/15/2014 02:31 AM, Kamil Kułaga wrote: >> Hi, >> >> I got amazed little bit when this code: >> class A { >>

Re: Code execution during compilation

2014-06-16 Thread Kamil Kułaga
I found it myself this won't work because when using multiple files and pir compilation INIT / END block parent class will be executed anyway. Is there way to postone to runtime class attribute without doing it manually? On Sun, Jun 15, 2014 at 10:34 PM, Kamil Kułaga wrote: > Ok, >

Diffrence between is and does in scope of overriding multi methods

2014-06-27 Thread Kamil Kułaga
z(Any $a) {say "Class Y"} } say Y.new.xyz(1); $ perl6 tst.pl Class Y True It is hard to google such common words like is and does :) -- Pozdrawiam Kamil Kułaga

Re: Diffrence between is and does in scope of overriding multi methods

2014-06-27 Thread Kamil Kułaga
un 27, 2014 at 3:25 PM, Timo Paulssen wrote: > On 27/06/14 10:07, Kamil Kułaga wrote: >> >> Hi, >> >> I would like to ask for help in understanding difference between this >> code: >> >> use v6; >> >> role X { >> multi me

[perl #122226] [BUG] Cannot invoke null object on moar while compiling or using JSON::RPC

2014-07-04 Thread Kamil Kułaga
# New Ticket Created by "Kamil Kułaga" # Please include the string: [perl #16] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=16 > Discussion: http://irclog.perlgeek.de/moarvm/2014-07-04 It worked o

[perl #122289] [BUG] unexpected behaviour during EVAL()

2014-07-14 Thread Kamil Kułaga
# New Ticket Created by "Kamil Kułaga" # Please include the string: [perl #122289] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=122289 > Evaling objects won't work if code that eval was preompiled inde

Orphaned module Form

2014-09-08 Thread Kamil Kułaga
question is: Shall https://github.com/perl6 community adopt it or maybe someone should fork it and change link in https://github.com/perl6/ecosystem/blob/master/META.list? -- Pozdrawiam Kamil Kułaga

Re: Getting startes with Perl6 / Rakudo Star / MoarVM

2014-09-11 Thread Kamil Kułaga
a "getting started" guide? > > I want to check if some of my scripts work with Perl 6. > > Best regards, > Alex -- Pozdrawiam Kamil Kułaga

Re: Favorite (Xe|E)macs mode script for Perl 6?

2015-04-05 Thread Kamil Kułaga
it. > > Thanks. > > Best, > > ~Tom -- Pozdrawiam Kamil Kułaga

UDP suport in rakudo

2015-06-18 Thread Kamil Kułaga
Hi, Is it possible to listen UDP port with perl6? IO::Socket::INET seems to be TCP only -- Pozdrawiam Kamil Kułaga

Re: UDP suport in rakudo

2015-06-18 Thread Kamil Kułaga
I will observe this branch then. I wanted to write an app listening to snmp and I'don't know what will be required yet. Thanks for info :-) On Thu, Jun 18, 2015 at 2:39 PM, Timo Paulssen wrote: > > On 06/18/2015 09:47 AM, Kamil Kułaga wrote: >> Hi, >> >> Is i

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

2015-08-12 Thread Kamil Kułaga
a better introduction in my modest > draft tutorial on converting Perl 5 to Perl 6 code at the Perl Monastery. I > am comfortable with the example code I use there (which is not currently > intended to showcase new features), but I am getting several comments on why > one should even bother with Perl 6? -- Pozdrawiam Kamil Kułaga

[perl #126485] Rat becomes Num

2015-10-29 Thread Kamil Kułaga
# New Ticket Created by "Kamil Kułaga" # Please include the string: [perl #126485] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=126485 > I've tried to substitute numeric with Rat (and the switch to FatRa

Adding doc on the fly during --doc

2015-11-07 Thread Kamil Kułaga
Hi, I know design allows to alter pod building during DOC INIT and DOC BEGIN phases I'm curious is it possible display undocumented things as it had doc? I would find it useful to display all public stuff from class as part of doc. -- Regards Kamil Kułaga

[perl #126634] Enums pollute type information

2015-11-13 Thread Kamil Kułaga
# New Ticket Created by "Kamil Kułaga" # Please include the string: [perl #126634] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=126634 > I got very often this bug when instead of real type I have two dimensio

[perl #126654] [POD] Formatting codes does not work inside declarator blocks

2015-11-16 Thread Kamil Kułaga
# New Ticket Created by "Kamil Kułaga" # Please include the string: [perl #126654] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=126654 > Examples in spec http://design.perl6.org/S26.html#Declarator_blocks conta

Re: Workaround for Perl 5's __DATA__

2016-01-18 Thread Kamil Kułaga
lah2 > =end DATA > > Then: > > for $=DATA.lines -> $line { > # process a line > } > > but I get this message: > > Pod variable @=DATA not yet implemented. Sorry. > > Is there any workaround for this other than putting the data in an array? > > Thanks. > > Best regards, > > -Tom -- Pozdrawiam Kamil Kułaga

[perl #128154] Cannot use qqx in rakudo star on windows7

2016-05-16 Thread Kamil Kułaga
# New Ticket Created by "Kamil Kułaga" # Please include the string: [perl #128154] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=128154 > $ perl6 -v This is Rakudo version 2016.04 built on MoarVM version 2016.04

Re: Observations from a C++/Python developer that never used Perl5

2016-09-08 Thread Kamil Kułaga
in most cases explain best whether you want class or role. I generally use classes for data and roles for code because I like to separate data form implementation. I hurt a lot of times while was trying to do java programming with perl6 then I realized roles are not interfaces and code is not compiled in static language sense. -- Regards Kamil Kułaga

Re: [perl #122289] [BUG] unexpected behaviour during EVAL()

2017-12-04 Thread Kamil Kułaga via RT
;> LOADING EVAL_2 > > + Uncaught Exception > > | Cannot invoke this object (REPR: Null, cs = 0) > > + /home/kamil/dev/lacuna-cookbuk/bin/lacunacookbuk_client (23 - 27) > > | BodyBuilder.process_all_bodies; > > | } else { > > | BodyBuilder.read; > > | } > > | for @todo -> $willdo { > > > q > > - Run END blocks (y/N)? > > > > $ perl6 --version > > This is perl6 version 2014.06-118-gb25b868 built on MoarVM version > > 2014.06-63-g0fb638b > > -- Pozdrawiam Kamil Kułaga

[perl #128154] [BUG] Cannot use qqx in rakudo star on windows7

2018-07-11 Thread Kamil Kułaga via RT
I found resolution. It looks like it is problem windows locale issue than perl itself. Running command chcp utf8 Makes work just fine. Default is 852. I'm very supprised because I use unicode encoding all the the time and never had such issue. For me it would be better to detect if codepa

Re: [perl #128154] [BUG] Cannot use qqx in rakudo star on windows7

2018-07-12 Thread Kamil Kułaga via RT
Will it work fine for utf-16 users? On Wed, Jul 11, 2018 at 11:16 AM Steve Mynott via RT wrote: > > Maybe the Windows port of rakudo should set this automatically on startup? > On Wed, 11 Jul 2018 at 10:08, Kamil Kułaga via RT > wrote: > > > > I found resolution. It