Re: Please take apart this stub line for me

2020-12-29 Thread Veesh Goldman
No. I can't imagine that what you're doing now is productive. What are you actually trying to understand by reading the source. On Wed, Dec 30, 2020, 08:47 ToddAndMargo via perl6-users < perl6-us...@perl.org> wrote: > Hi All, > > Would someone please take apart this line for me? > > > https://git

Please take apart this stub line for me

2020-12-29 Thread ToddAndMargo via perl6-users
Hi All, Would someone please take apart this line for me? https://github.com/rakudo/rakudo/blob/5df809e29cd2e7ae496a33013b27d2f7b52c7f7d/src/Perl6/bootstrap.c/BOOTSTRAP.nqp#L54 54: my stub Cool metaclass Perl6::Metamodel::ClassHOW { ... }; 2) stub 4) Perl6 5) Metamodel 6) ClassHOW 7) { ..

Re: Is the cosine page wrong?

2020-12-29 Thread ToddAndMargo via perl6-users
On 12/29/20 7:05 AM, Peter Scott wrote: On 12/28/20 11:49 PM, ToddAndMargo via perl6-users wrote: I will accept your target audience:   "Someone who already knows how to program and   uses 'Raku.'" I will also accept that the documentation is not for me or anyone else trying to learn R

Re: Help with bug

2020-12-29 Thread Tom Browder
On Tue, Dec 29, 2020 at 17:16 Elizabeth Mattijsen wrote: > Using an `await` inside a react, feels like a code smell to me. An > `await` will I suggest using 'note' for debugging instead of print or say so info is not delayed and goes straight to stderr. -Tom

Re: Help with bug

2020-12-29 Thread Elizabeth Mattijsen
Using an `await` inside a react, feels like a code smell to me. An `await` will block the `react` block from processing other messages until the `await` returns. Which feels like it is opening up a large window of dead-locking opportunities. Couldn't a whenever be used there instead? > On 29

Re: Help with bug

2020-12-29 Thread David Santiago
Às 19:12 de 29/12/20, Gianni Ceccarelli escreveu: I fear we've uncovered a hard-to-diagnose bug in ``IO::Socket::Async::SSL`` … :-( Thanks for the confirmation. Hopefully this can be used as a test case to help solve it. Best regards, David Santiago

Re: Help with bug

2020-12-29 Thread Gianni Ceccarelli
On 2020-12-29 David Santiago wrote: > i don't want it to exit, i want it to keep reading from the socket > until a "200" code happens. Sorry, I had mis-understood the protocol. I've put the code on Github so it's easier to look at it https://github.com/dakkar/raku-socket-test-from-demanuel (thos

Re: Help with bug

2020-12-29 Thread David Santiago
Hi! Gianni Ceccarelli wrote: if $line ~~ /^340/ { await $conn.print("[$consumer]: value $val\r\n"); } else { done; } Notice that if the client receives a 340, it sends stuff back to the server, and *does not exit*. You may want to add a ``done`` after that `

Re: Is the cosine page wrong?

2020-12-29 Thread Peter Scott
On 12/28/20 11:49 PM, ToddAndMargo via perl6-users wrote: I will accept your target audience:   "Someone who already knows how to program and   uses 'Raku.'" I will also accept that the documentation is not for me or anyone else trying to learn Raku. We explained that there are two t

Re: Help with bug

2020-12-29 Thread Gianni Ceccarelli
On 2020-12-29 David Santiago wrote: > I need some help in debugging my script. Sometimes it hangs and i > don't know why. I'm pretty sure it hangs in the inner ``react``:: if $line ~~ /^340/ { await $conn.print("[$consumer]: value $val\r\n"); } else { done; } Notice

Re: Is the cosine page wrong?

2020-12-29 Thread ToddAndMargo via perl6-users
On 12/29/20 3:51 AM, Richard Hainsworth wrote: What it is would be what you stated previously:       "Reference is written for a person who already       knows how to program and who uses Raku" This is taken out of context. I said the Raku community has come to a consensus that

Re: Checking for nil return

2020-12-29 Thread Ruud H.G. van Tol
Basically, never mix error-state and return-value. Rather use a different channel/dimension for each. And any value itself can have special state too, like "absence" and (via its type) "has-default". On that docs-page, my stomach protested against the Nil/default pairing. Now I need to thin

Re: Help with bug

2020-12-29 Thread ToddAndMargo via perl6-users
On 12/29/20 4:37 AM, David Santiago wrote: Hi! I need some help in debugging my script. Sometimes it hangs and i don't know why. Hi David, I do not know if it will help you, but in my longer programs I have found that "say" will print out the prior valuies of things and generally drove me n

Help with bug

2020-12-29 Thread David Santiago
Hi! I need some help in debugging my script. Sometimes it hangs and i don't know why. There's a channel with all the values, and then i create N promises to take a value from the channel and to write it to a socket. (one producer with multiple consumers) I'm attaching two scripts (client

Re: Is the cosine page wrong?

2020-12-29 Thread Richard Hainsworth
See inline below On Tue, Dec 29, 2020, 09:54 ToddAndMargo via perl6-users < perl6-us...@perl.org> wrote: > On 12/29/20 1:12 AM, Richard Hainsworth wrote: > > Hi Richard, > > > > When deciding to write a technical article, the > > VERY FIRST thing you have to do is determine > > you

Re: Continuous testing

2020-12-29 Thread Marcel Timmerman
Maybe not the proper thread, ... but may be nice to know or even helpful ... Using native integers I did not know which integer to choose when a C type int was specified in a function signature. It is known that, depending on processor or compiler, an int could have 16 or 32 bits size and a lo

Re: Continuous testing

2020-12-29 Thread Marcel Timmerman
On 12/23/20 7:45 PM, JJ Merelo wrote: You can probably use AppVeyor. It's got good support for Windows, although you'll have to write for it specifically. This one seems to use it, for instance https://github.com/MARTIMM/gnome-native Hi Richard, JJ i

Re: Is the cosine page wrong?

2020-12-29 Thread ToddAndMargo via perl6-users
On 12/29/20 1:12 AM, Richard Hainsworth wrote: Hi Richard, When deciding to write a technical article, the VERY FIRST thing you have to do is determine your TARGET AUDIENCE. In a single sentence, please state for me what you believe the TARGET AUDIENCE is for the doc

Re: Is the cosine page wrong?

2020-12-29 Thread Richard Hainsworth
On Tue, Dec 29, 2020, 06:57 ToddAndMargo via perl6-users < perl6-us...@perl.org> wrote: > On 12/28/20 4:54 AM, Richard Hainsworth wrote: > > So please take what I say now as a plea for you to adapt a little, > > > > > No set of documentation standards will please everyone - that's life. > > Even

Re: Is the cosine page wrong?

2020-12-29 Thread ToddAndMargo via perl6-users
On 12/29/20 12:10 AM, Francis Grizzly Smit wrote: I assume what you need is a set of tutorials for beginners try https://www.google.com/search?channel=fs&client=ubuntu&q=raku+programming++for+beginners and hope for the best I guess. sorry I cannot help more just now Hi Francis, I find this on

Re: Is the cosine page wrong?

2020-12-29 Thread Francis Grizzly Smit
On 29/12/2020 19:10, Francis Grizzly Smit wrote: On 29/12/2020 18:49, ToddAndMargo via perl6-users wrote: On 12/28/20 11:29 PM, Peter Scott wrote: On 12/28/20 10:57 PM, ToddAndMargo via perl6-users wrote: On 12/28/20 4:54 AM, Richard Hainsworth wrote: So please take what I say now as a plea f

Re: Is the cosine page wrong?

2020-12-29 Thread Francis Grizzly Smit
On 29/12/2020 18:49, ToddAndMargo via perl6-users wrote: On 12/28/20 11:29 PM, Peter Scott wrote: On 12/28/20 10:57 PM, ToddAndMargo via perl6-users wrote: On 12/28/20 4:54 AM, Richard Hainsworth wrote: So please take what I say now as a plea for you to adapt a little, not to get pissed off wi