Re: Naming a module that deals with the meta-object protocol

2019-04-08 Thread Vadim Belman
Not sure what you mean by 'leaking into CORE', but I wouldn't use Metamodel:: namespace too. My suggestion would be to use Type::SumHOW or Type::Metamodel::SumHOW. The latter is better from namespace structuring point of view unless long names disgust you. Best regards, Vadim Belman > On

Re: macOS Mojave 10.14.4, Rakudo Star 2019.03.1, zef install Ddt -> Failed to change the working directory...

2019-04-07 Thread Vadim Belman
OK] for Pod::To::Markdown:ver >>> ===> Testing: Ddt:ver<0.5.5>:auth >>> Failed to change the working directory to >>> '/var/folders/r_/lk5svb150bzf2wdvp6ct_t_cgn/T/6aGzXY88az/Foo-Bar': does >>> not exist >>> in block at t/02-

Re: Roles are fundamentally broken?

2019-01-30 Thread Vadim Belman
} > > > # cute and playful > class Puppy { > method greet { >say ""; >self!bow; > } > > method !bow { > say "Bow wow wow!" > } > } > > my $best_friend=(Puppy.new but Violinist) but Diva; > $best_friend.greet; > $best_friend.captivate($best_friend.^lookup('fiddle')); > > says > > Bow wow wow! > tais toi! > got sheet music, got rosin... > > > > I'm very happy with that behavior. Would like it to be documented. > > (And, I'll add comments to your bug tickets now) > -y Best regards, Vadim Belman

Re: Roles are fundamentally broken?

2019-01-29 Thread Vadim Belman
simple cases). I > don't really see why this should be considered as an anti pattern, although I > can certainly feel that we should probably not try to ask too much from > roles, the aim after all is to have something simpler than a class. Best regards, Vadim Belman

Re: Roles are fundamentally broken?

2019-01-29 Thread Vadim Belman
us reply: isn't it constraining for the purpose of constraining? To me Perl was always TMTOWTDI in first place. The current approach to roles contradicts this principle. Best regards, Vadim Belman

Re: Roles are fundamentally broken?

2019-01-29 Thread Vadim Belman
ot; copying don't have an > expectation that C knows the name "X", > # I only expect that C can call method f which it got from Y, and that did > work. This looks reasonable. I would suggest you commenting on the bug report. It would be useful to both the reporter and a core developer who's gonna consider the report. Best regards, Vadim Belman

Roles are fundamentally broken?

2019-01-28 Thread Vadim Belman
er! Maybe somebody could explain clearly why things are the way they are now. I would be very thankful for such information. Perhaps I need a tectonic shift in my understanding of this area. But currently roles are the only thing which really disappoints me in the language design. Best regards, Vadim Belman

Re: POD: linking to a module

2019-01-16 Thread Vadim Belman
thub.com/perl6/Pod-To-HTML/issues/55> ? > https://github.com/perl6/doc/issues/167 > <https://github.com/perl6/doc/issues/167> ? > Somewhere else? > > -- > raiph > > On Mon, Jan 14, 2019 at 1:07 AM Vadim Belman <mailto:vr...@lflat.org>> wrote: > >

Re: POD: linking to a module

2019-01-13 Thread Vadim Belman
l be the best approach for a couple of years to come. Best regards, Vadim Belman

Re: POD: linking to a module

2019-01-12 Thread Vadim Belman
in gitlab... > > Any suggestion is welcome, meanwhile. > > El sáb., 12 ene. 2019 a las 2:22, Vadim Belman ( <mailto:vr...@lflat.org>>) escribió: > Hello, > > How do I properly write a link to a module in a POD documentation? Actually, > the que

POD: linking to a module

2019-01-11 Thread Vadim Belman
Best regards, Vadim Belman

Re: Slangs: extending package_declarator problem

2018-12-26 Thread Vadim Belman
is that somehow during compilation, the MVMContext gets added to > the SC (Serialization Context) when it shouldn’t. > > Most likely Timo Paulssen or Jonathan Worthington can give you better answers. > >> On 26 Dec 2018, at 04:26, Vadim Belman wrote: >> >> Hi! >> &g

Slangs: extending package_declarator problem

2018-12-25 Thread Vadim Belman
es some extra work some of which is clearly not needed in my case; and some perhaps necessary but I don't understand it yet. Best regards, Vadim Belman

Tricks: class cloning

2018-12-22 Thread Vadim Belman
o know if there is a workaround for this? Basically, what I'm trying to achieve is could also be done by using a role as a template which could then be applied to the custom class. But roles has a few restrictions which would make them less flexible. Best regards, Vadim Belman

Re: Performance of parallel computing.

2018-12-07 Thread Vadim Belman
gave a 25% speed boost.) So > with 6 cores, 2 HT per core, I would expect a max parallel boost of 6 > * (1x +0.30x) = 7.8x - and your test is only giving half that. > > -y > Best regards, Vadim Belman

Re: Performance of parallel computing.

2018-12-07 Thread Vadim Belman
rkers5: 10.663 wallclock secs (36.983 usr 0.848 sys 37.831 cpu) @ >>> 0.094/s (n=1) >>> (warning: too few iterations for a reliable count) >>> O---O--O--O--O---O---O >>> | | s/iter | workers

Performance of parallel computing.

2018-12-06 Thread Vadim Belman
cores or, more correctly, by the number of supported threads. Proving this hypothesis wold require more time than I have on my hands right now. And not even sure if such proof ever makes sense. Best regards, Vadim Belman

LEAVE/CATCH/return weirdness

2018-12-02 Thread Vadim Belman
n this miraculous phenomenon to .map. Any other code within LEAVE, including 'for' loop, makes the whole thing to work as expected. I'm strongly convinced that what is observed is a bug. But before reporting it I'd like to make sure that there is nothing about .map that I don't know about and that m

Re: Run tests only if a module is available

2018-10-11 Thread Vadim Belman
t; > -- > Fernando Santagata Best regards, Vadim Belman

Re: metamorphosis or alchemy?

2018-09-16 Thread Vadim Belman
g/type/Rat#Type_Graph) >>>>> >>>>> say Rat ~~ Real >>>>> >>>>> True >>>>> >>>> > Your're making a box that takes a Real, then putting a Rat (that >>>>also does Real) into that box. &

Re: Rat

2018-09-16 Thread Vadim Belman
, return a Rat which >is within $epsilon of that Real's value. Fail >with X::Numeric::Real otherwise. > > And is this why I can not find a type "Rat"? Because > it is a method? > > Then why does >$ p6 'my Real $x; $x = 3.1415; dd $x;' > Rat $x = 3.1415 > say it is a type "Rat"? > > > Yours in confusion, > -T > Best regards, Vadim Belman

Re: metamorphosis or alchemy?

2018-09-16 Thread Vadim Belman
Actually, typing 'dd' in the searchbox on docs.perl6.org <http://docs.perl6.org/> gives you a long list with dd in 'Reference' section of that list. > > https://docs.perl6.org/routine/dd > 404: Page Not Found > > Search does not work either. > Best regards, Vadim Belman

Re: metamorphosis or alchemy?

2018-09-16 Thread Vadim Belman
s "yes, you've got a Rat in there". > > > > > > Why is it changing thing on the fly when I tell it not to? > I claim foul !!AA HHH !!! Best regards, Vadim Belman

Re: need p5/p6 :: help

2018-09-14 Thread Vadim Belman
spect was clear to me, but to settle things down in my mind completely: for now ordinary (not 'our') sub belongs not to the package object but to the block which belongs to that package. Is it correct way to describe things? Best regards, Vadim Belman

Re: how do I do this index in p6?

2018-09-11 Thread Vadim Belman
;Nil... it's a constant, so you have to use =:= to check for equality." > > Constants? I thought we did not have constants! Am I mixing > Perl 5 with Perl 6, again? > Best regards, Vadim Belman

Re: RFE: contains documentation

2018-09-07 Thread Vadim Belman
the documentation. > > > Thank you for the book recommendation. I don't do well with > books. I can't stay awake. Head hits the table. > I have to just go and write what I need. Then I learn. Best regards, Vadim Belman

Re: date conversions?

2018-09-07 Thread Vadim Belman
/routine/Date > does not seem to enlighten me. > > Many thanks, > -T > > > -- > ~~ > Computers are like air conditioners. > They malfunction when you open windows > ~~ > Best regards, Vadim Belman

Re: use Moo:from;

2018-09-06 Thread Vadim Belman
nly related to method inheritance. > Oops, correction: "get_value() is unlikely to be inherited". Sorry. Best regards, Vadim Belman

Re: use Moo:from;

2018-09-06 Thread Vadim Belman
; > sub build-a( $self ) { note "Build A Called"; sleep 1; 5 } > sub build-b( $self ) { note "Build B Called"; sleep 2; 10 } > > has $.a is lazy[]; > has $.b is lazy[]; > } > > my $t = Test.new(); > > say $t.perl; > > On W

Re: use Moo:from;

2018-09-05 Thread Vadim Belman
if not > call a block it's given when first read from. This gets round the issue of if > we want to set it to Any. > > I *think* this will work. The stuff I've been doing with Trait::Env would > point that way. > Best regards, Vadim Belman

Re: Is Proxy a first class part of P6 or not?

2018-09-05 Thread Vadim Belman
t; point of having a metamodel is for this sort of thing. Whatever I managed to trace down in the core, there is no single point of entrance for fetch/store of a value. Best regards, Vadim Belman

Re: How to shield users from side effects of applying an attribute trait for a Moo like trigger

2018-09-05 Thread Vadim Belman
cause what is important about it is that it is executed after its attribute is set. Current implementation of lvalue subs doesn't allow this kind of trick. Best regards, Vadim Belman

Re: Introducing P6 into a P5 user environment

2018-09-05 Thread Vadim Belman
ummary, I believe that if you keep a positive, practical and persistent > (multi year) focus on bringing P6 into the mix with a P5 environment, P6 > leaders will or at least should have your back. > > I'm curious to hear whether this is of interest to you or others. > > -- > raiph Best regards, Vadim Belman

Re: DefiniteHOW and SubsetHOW don't support named parameters

2018-09-05 Thread Vadim Belman
t; performance penalty for passing on named arguments so if there's no good > reason for supporting them then core code generally doesn't.) Even more > weakly, I would have thought the same logic applies to the others you've > mentioned. > > Can you provide a use case in which an example

Re: WATs (Array[Str] vs Array and list vs scalar assignment)

2018-09-05 Thread Vadim Belman
ot much new to me in the article. Though knowing a concept and having it imprinted into fingertips are somewhat different things. Would take months of learning... > > I'm happy to dialog here about any of this stuff help clear up your mental > models (and mine). So I am. Thanks for sharing the thoughts! Best regards, Vadim Belman

Re: Is Proxy a first class part of P6 or not?

2018-09-05 Thread Vadim Belman
you and/or your company and get them added to roast, the suite of > tests that officially define P6, you can directly and formally influence > prioritizing of attention to P6's and Rakudo's capabilities and bugs. This is something I never thought about. Would get back to the idea after finishing the current project. Best regards, Vadim Belman

Re: use Moo:from;

2018-09-05 Thread Vadim Belman
t; > If you have, I can't help but wonder what you made of it and why you ruled > out using Moo features in P6 via :from. > > So in summary I'm anxious to hear whether you tried :from and found it > wanting; or we just failed to adequately bring your attention to it; or you > rejected it from the get go based on your understanding of its relevance (or > rather irrelevance) to your situation. > > -- > raiph Best regards, Vadim Belman

Coercion/type checking: manually reproduce Perl6 standards

2018-09-01 Thread Vadim Belman
Combined with classes with FALLBACK this may cause some unwanted side-effects. Shall it be reported as a bug? (BTW, quick grepping has also found RolePunning, MethodDelegation with potentially same problem). Best regards, Vadim Belman