Re: Is irc.libera.chat down?

2024-04-19 Thread David Santiago
Do you have any adblocker or any extension that blocks js? If so try to disable it. You can also use a dedicated client instead of the browser: www.mirc.com (for windows) or https://hexchat.github.io/ (for windows and linux). Regards, David Santiago A sex, 19-04-2024 às 03:09 -0700, Todd

Re: Is irc.libera.chat down?

2024-04-19 Thread David Santiago
It works for me. Regards, David A sex, 19-04-2024 às 02:36 -0700, Todd Chester via perl6-users escreveu: > Hi All, > > Is >     https://kiwiirc.com/nextclient/irc.libera.chat/#raku > down? > > -T

Re: Help with %?RESOURCES variable

2023-04-17 Thread David Santiago
d > the script just uses the module. > yes, that was the case. It works inside a module. I guess i have to think differently on how to organize the code. Thanks and best regards, David Santiago

Help with %?RESOURCES variable

2023-04-17 Thread David Santiago
└── text.txt 4 directories, 3 files demanuel@archlinux test> raku -I ./lib bin/run-me Nil demanuel@archlinux test> zef install . ===> Testing: Test:ver<0.0.1>:auth:api<1> ===> Testing [OK] for Test:ver<0.0.1>:auth:api<1> ===> Installing: Test:ver<0.0.1>:auth:api<1> 1 bin/ script [run-me] installed to: /home/demanuel/.raku/bin demanuel@archlinux test> run-me Nil demanuel@archlinux test> Can someone point me what i'm doing wrong? Best regards, David Santiago

Re: Help with promises, supplies and channels.

2022-04-07 Thread David Emanuel da Costa Santiago
Thanks for the information! I opened a bug in rakudo: https://github.com/rakudo/rakudo/issues/4853 Regards, David Santiago Às 05:27 de 07/04/22, yary escreveu: For what it's worth, I'm on a mac, promise_test.raku hangs for me once in a while also. Welcome to Rakudo(tm

Re: Help with promises, supplies and channels.

2022-04-05 Thread David Emanuel da Costa Santiago
l open a bug in the github. Regards, David Santiago Às 21:37 de 05/04/22, William Michels escreveu: No problems so far. say $*VM; #add as last line, returns: moar (2021.06) On Tue, Apr 5, 2022 at 11:06 AM David Emanuel da Costa Santiago mailto:deman...@gmail.com>> wrote: Hi,

Help with promises, supplies and channels.

2022-04-05 Thread David Emanuel da Costa Santiago
doing? $ raku --version Welcome to Rakudo™ v2022.03-130-g8f7cc0847. Implementing the Raku® Programming Language v6.d. Built on MoarVM version 2022.03-13-ga3476e286. Regards, David Santiago

Re: How to use WHY on a object's method?

2022-01-17 Thread David Emanuel da Costa Santiago
Super! That's what i was looking for. Thanks! David Santiago Às 18:43 de 17/01/22, Clifton Wood escreveu: You need the method object, and you can't get that from $a.test  -- Try using the following: when X::AdHoc { say $a.^lookup('test').WHY; # TODO: This is wrong :

How to use WHY on a object's method?

2022-01-17 Thread David Emanuel da Costa Santiago
e trying A::test.WHY; ) and all failed... Regards, David Santiago

Re: XML module question?

2021-07-16 Thread David Warring
The XML::Writer module side-steps any ordering issues by directly serializing data structures to xml: $ raku -M XML::Writer -e'say XML::Writer.serialize: :wpt[ :lat<42>, :long<69>, "blah" ]' blah On Sat, Jul 17, 2021 at 4:48 AM Bruce Gray wrote: > > On Jul

Re: too many file handles

2021-03-17 Thread David Emanuel da Costa Santiago
Now my question is this: Is this a problem with the LibCurl::Easy module, where I can raise an issue. Here: https://github.com/CurtTilmes/raku-libcurl Regards, David Santiago

Re: Newsgroups

2021-03-04 Thread David Emanuel da Costa Santiago
0 tests=BAYES_00,DKIM_SIGNED, X-Zohomailclient: External I will try on anoher USP. But on farm on eternal-september, the articles seem to be missing. Maybe the groups stopped being carried Regards, David Santiago Às 22:31 de 04/03/21, William Michels escreveu: Hi David, I see the a

Newsgroups

2021-03-04 Thread David Emanuel da Costa Santiago
Hi! This mailing list isn't being synchronized with the newsgroup perl.perl6.users anymore. The latest message i got was on 2020-08-31. The rest of the perl6 newsgroups aren't being synchronized as well. Is NNTP deprecated? Best regards, David Santiago

Re: ^methods doesn't show all methods

2021-02-16 Thread David Warring
aku roll total values) Which does seem to include associative methods - David On Wed, Feb 17, 2021 at 8:25 AM Joseph Brenner wrote: > Set objects have Associative methods: > > my $s = set 2, 4, 6; > say $s.keys; # (4 2 6) > > But I don't see them in the list from .

Re: Nested `whenever` (was Re: Help with bug)

2021-01-05 Thread David Emanuel da Costa Santiago
gram hangs > without printing anything, because there's a race between the main > process and the ``start``ed one, so all the ``$outer.emit`` happen Don't you mean the $outer.send ? > before the ``react / whenever`` can tap, and ``$done-with-outer`` > never gets kept. Using

Re: for and ^ question

2021-01-01 Thread David Santiago
> for .1^...5 {print "$_\n";} 1.1 2.1 3.1 4.1 both still increments by 1 What am I doing wrong? do this if you want to increment by 0.1: say $_ for {0.1+$_}...^5 Best regards, David Santiago

Re: Help with bug

2020-12-30 Thread David Santiago
Thanks for the explanation! A December 30, 2020 3:28:24 PM UTC, Gianni Ceccarelli escreveu: >On 2020-12-30 David Santiago wrote: >> Thanks! It's indeed much clearer. However i have a question, why the >> react on line 24? >> >> The react there isn't r

Re: Help with bug

2020-12-30 Thread David Santiago
Às 14:43 de 30/12/20, Gianni Ceccarelli escreveu: David: please look at my version of your code, I really think it's clearer and simpler to work with, without the explicit ``.tap`` and ``.then`` (ok, I have a few ``.then``, but they're for debugging, they don't affect the actual

Re: Help with bug

2020-12-30 Thread David Santiago
}else { done; } } } } } } }, done=>{say "[$consumer] DONE!";}); And it still hangs from time to time. Best regards, David Santiago

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 David Santiago
200 OK code Host Like you said it looks like it's getting stuck in a react, but why? :-| Regards, David Santiago

Help with bug

2020-12-29 Thread David Santiago
nt script (raku client.raku) raku --version: Welcome to Rakudo(tm) v2020.12-5-g3beb71cc9. Implementing the Raku(tm) programming language v6.d. Built on MoarVM version 2020.12-7-g6bf54d784. Thank you, David Santiago #!/usr/bin/env perl6 use IO::Socket::Async::SSL; sub MAIN() { my $counter

Re: How to unbuffer $*IN

2020-09-27 Thread David Santiago
Às 21:35 de 26/09/20, Gianni Ceccarelli escreveu: On 2020-09-26 David Santiago wrote: I'm trying to capture key presses in the terminal and according to raku's documentation i need to have $*IN unbuffered. You have to tell the terminal to stop buffering (AFAIK Raku doesn't bu

How to unbuffer $*IN

2020-09-26 Thread David Santiago
Hi! I'm trying to capture key presses in the terminal and according to raku's documentation i need to have $*IN unbuffered. Can someone point me in the right direction on how to do that? Best regards, David Santiago

Re: Help converting CArray[uint8] to Blob

2020-06-17 Thread David Santiago
secs. That's quite an improvement! Thank you so much. Best regards, David Santiago Ralph Mellor escreveu no dia quarta, 17/06/2020 à(s) 11:57: > > > Unfortunately, i get the error "Error > > X::AdHoc+{X::Await::Died}+{X::React::Died}: Don't know how many > ele

Re: Help converting CArray[uint8] to Blob

2020-06-17 Thread David Santiago
new: $ed.data[^$ed.data_size]; which takes slightly more than 1 sec: Bindata in 1.1679568 Btw, the size of the $ed.data_size is 750K. Regards. David Santiago Ralph Mellor escreveu no dia terça, 16/06/2020 à(s) 23:08: > > > my Data $ed = await $yenc_promise; > > The promise must

Re: Help converting CArray[uint8] to Blob

2020-06-16 Thread David Santiago
Bindata in {DateTime.now.Instant - $init3}"; Bindata in 1.1250962 :-( Curt Tilmes escreveu no dia terça, 16/06/2020 à(s) 21:40: > > On Tue, Jun 16, 2020 at 5:18 PM David Santiago wrote: > > my uint8 @data = $ed.data[0..$ed.data_size-1].Array; > > my Blob $bindata = Blob[uint8].new(@data)

Help converting CArray[uint8] to Blob

2020-06-16 Thread David Santiago
ata in 0.4428602 Total = 3.6717681 Bindata in 0.2877211 Total = 3.7541319 extracting in 3.88532646 extracting in 3.72995056 extracting in 3.90478574 Bindata in 0.16822032 Total = 4.0554652 Bindata in 0.15585004 Total = 3.90223033 Best regards, David Santiago

Re: I need help with Config:INI

2020-05-30 Thread David Santiago
Hope this helps :-) Basically the %hash variable contains another hash, and with spaces in keys you cannot use them with "<>" use Config; use Config::INI; my Str $IniFile = slurp "config.ini"; my %hash = Config::INI::parse($IniFile); dd %hash; print "\n"; for %hash.kv -> $section_name, %secti

Re: Help with grammar

2020-05-23 Thread David Santiago
Thank you all for your replies. I was able to fix it and better understanding grammars :-) Regards, David Santiago Patrick R. Michaud escreveu no dia quinta, 21/05/2020 à(s) 21:05: > > On Thu, May 21, 2020 at 08:40:08PM +, David Santiago wrote: > > Can someone explain me wh

Help with grammar

2020-05-21 Thread David Santiago
* MATCH "keep-alive\n" | | crlf | | * FAIL | * FAIL * FAIL Nil It matches the request line's newline but not the headers. Best regards, David Santiago test.raku Description: Binary data

Re: NativeCall questions

2020-05-08 Thread David Santiago
Thanks for the information! Have a great weekend! Best regards, David Santiago Tobias Boege escreveu no dia sexta, 8/05/2020 à(s) 15:52: > > On Fri, 08 May 2020, David Santiago wrote: > > I also noticed that although my data string is defined as > > CArray[uint8], when i loop

Re: NativeCall questions

2020-05-08 Thread David Santiago
I also noticed that although my data string is defined as CArray[uint8], when i loop through the array, the values are signed ints: say $_ for $ed.data[0..10]; output: -98 -110 -109 -99 74 -109 -99 74 -105 -93 74 Is it possible to not "sign" them? Regards, David Santiago C

Re: NativeCall questions

2020-05-08 Thread David Santiago
od list at /usr/share/perl6/core/sources/8660F65A7B3492675BB3B2058DB30E411A4C4E54 (NativeCall::Types) line 226 in sub MAIN at bin/uints.p6 line 15 in block at bin/uints.p6 line 3 I can access without problems $ed.crc32 [1] - if i change the data type to str i get the error: "String corruption detected: bad storage type" Best regards, David Santiago

NativeCall questions

2020-05-08 Thread David Santiago
ku bin/uints.p6' terminated by signal SIGSEGV (Address boundary error)" Why? How do i fix it? Also the read method from the IO::Handle returns a Buf. I would like to pass it directly to my C function. Is there any change in the C/raku code i should do? The data field from class EncodedData is type "str". Should it be CArray[uint8] instead? Best regards, David Santiago

Re: Question about Blob and Buf

2020-02-11 Thread David Santiago
Hi Timo, Thanks for the answer: > the liskov substitution principle I didn't knew about this principle. I'm now going down the rabbit hole. Is this always the case for all the derived classes in Raku? Best regards, David Santiago Timo Paulssen escreveu no dia terça, 11/02/20

Re: Question about Blob and Buf

2020-02-11 Thread David Santiago
Awesome explanation! Thank you! BTW, > my Blob $read = Buf.new; Is it creating either a Blob or a Buf? Regards, David Santiago -- Sent from my Android device with K-9 Mail. Please excuse my brevity.

Re: Question about Blob and Buf

2020-02-11 Thread David Santiago
ot strings: you need to >>>> decode them to concatenate it to a string. If what you want is to >>>> concatenate the buffer, probably ,= will work (not sure about this, would >>>> have to check), or any other operator that works on Positionals. >>>> &g

Question about Blob and Buf

2020-02-11 Thread David Santiago
A 11 de fevereiro de 2020 10:47:34 CET, David Santiago escreveu: >A 11 de fevereiro de 2020 09:46:06 CET, David Santiago >escreveu: >> >>Hi! >> >>Can someone explain me why this doesn't work: >> >>my Blob $read; >>$read ~= $socket.read(10

Re: Substr behaviour with CRLF

2020-02-10 Thread David Santiago
Thanks for the help. I do agree with Paul that something should be mentioned in the substr documentation. David Santiago -- Sent from my Android device with K-9 Mail. Please excuse my brevity.

Re: Substr behaviour with CRLF

2020-02-10 Thread David Santiago
A 10 de fevereiro de 2020 16:57:55 CET, David Santiago escreveu: > > >Hi! > >Is there a way to change the the following behaviour, so it considers \r\n as >two characters when using substr, instead of one? > >On raku version 2019.11 > >> "1234\r\n". s

Substr behaviour with CRLF

2020-02-10 Thread David Santiago
Hi! Is there a way to change the the following behaviour, so it considers \r\n as two characters when using substr, instead of one? On raku version 2019.11 > "1234\r\n". substr(*-4) 4 78 > "1234\r\n". substr(*-4).ords() (52 13 10 55 56) Best regards, David

Re: GIT PR Help

2020-01-17 Thread David Santiago
need to do and so. You then just commit the new changes and push them to your repo in git and the pr is updated. This is just one of many workflows possible with git. Let me know if you have questions Regards, David -- Sent from my Android device with K-9 Mail. Please excuse my brevity.

Re: How to process command line options

2020-01-06 Thread David Santiago
raku --layout='unusual' --layout='1+kk' apt Usage: bin/script.raku --layout= ... apartment --layout= ...Apartment layout. Values accepted: 1+kk,2+kk,...,5+kk, 6+, studio, unusual Unfortunately I'm unable to find any example in google on how to do this. I guess i will

How to process command line options

2020-01-05 Thread David Santiago
on several times? Changing the parameter from $layout to @layout doesn't work. Best regards, David Santiago

Re: Is LibraryMake still current?

2019-12-22 Thread David Warring
Hi Fernando, I'm still in the habit of using LibraryMake. E.g. for https://github.com/p6-xml/LibXML-raku released in this last few months. Regards, David On Sun, Dec 22, 2019 at 7:47 AM Fernando Santagata < nando.santag...@gmail.com> wrote: > Hello, > > What can I use to

Re: perl6's new name?

2019-08-13 Thread David Christensen
; was properly applied and "Perl 6" is correct. From a practical standpoint, there is too much water under the bridge. Name changes need to be done up front (Ruby was done properly in this regard). David

Re: perl6's new name?

2019-08-13 Thread David E.
Perl family (for those that care), while still conveying that it is, for all intents and purposes, a new language. -David On Tue, Aug 13, 2019 at 1:21 AM BELOSCAR Christian < christian.belos...@gmail.com> wrote: > Camelia : Excellent idea Eliza, I totally agree with yours arguments and >

Re: perl6's new name?

2019-08-12 Thread David Green
e of action is chosen, and I don’t see what that reason is. -David

[perl #131666] NativeCall MoarVM panic

2019-04-29 Thread David Warring via RT
Can confirm this is still current behaviour with Rakudo 2019. I have came across exactly the same issue and found this ticket. I've noticed, If I change the example to catch exceptions. It then runs: sub start-element($, $elem, $attr) { say "open $elem".indent($depth * 4);

Re: Why so slow

2019-04-28 Thread David Christensen
On 4/27/19 10:40 PM, David Christensen wrote: I suggested that he install the official package: https://rakudo.org/files The Rakudo site is degraded: "Currently, rakudo.org is being served from a back-up server that doesn't have the download files." I had previo

Re: Why so slow

2019-04-28 Thread David Christensen
is cached?), but requires JavaScript to be explicitly enabled on macOS. David

Re: Why so slow

2019-04-28 Thread David Christensen
helps - Timo Yes, very useful -- thank you. :-) (I do not seem to have a man page for Perl 6, but 'perl6 --help' gives a brief overview of those options.) The only drawback is that the HTML profile reports require JavaScript and a live Internet connection to function. David

Re: Why so slow

2019-04-27 Thread David Christensen
.org/files What is your operating system? What is your Perl 6? Is there a way to run Perl 6 with debugging, logging, profiling, etc., enabled, so that the user can see what Perl 6 is doing and how long it takes? David

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

2019-04-07 Thread David Christensen
6 квіт. 2019 р. о 22:28 David Christensen пише: perl6-users: I have: macOS Mojave Version 10.14.4 MacBook Pro (Retina, 15-inch, 2015) Today, I downloaded and installed: https://rakudo.org/latest/star/macos into my normal user account per the built-in instructions

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

2019-04-06 Thread David Christensen
t:ver<0.5.5>:auth Aborting due to test failure: Ddt:ver<0.5.5>:auth (use --force-test to override) 2019-04-06 19:20:45 dpchrist@Davids-MBP ~ $ zef --version v0.7.1 Suggestions? David

Re: Fastest way to convert from a Buf to a Str?

2019-02-03 Thread David Warring
Are all characters in the range 0-255, ie latin-1 characters? You could then try: my $str = $buf.decode("latin-1"); There's one potential issue if your data could contain DOS end of lines ("\r\n"), which will get translated to a single logical "\n" in the dec

Re: Could this be any more obscure?

2018-10-05 Thread David Green
at makes nobody happy.  It seems likely to me that you're looking for example-based documentation that is organised very differently from docs.perl6.  What about Moritz's *Perl 6 Fundamentals*, "A Primer with Examples, Projects, and Case Studies"? https://www.apress.com/gp/book/9781484228982 Is this something that better fits the way you think? -David

Re: bitwise paper?

2018-10-05 Thread David Green
, etc., which are now junctions... and yes, there is https://docs.perl6.org/type/Junction for those who dare!). -David P.S. Actually, the search returns: https://docs.perl6.org/language/operators#index-entry-Numeric_bitwise_AND_operator ...instead of the correct fragment: "#infix_+&"

Re: bitwise paper?

2018-10-05 Thread David Green
to plain "&", "|", etc., which are now junctions... and yes, there is https://docs.perl6.org/type/Junction for those who dare!). -David P.S. Actually, the search returns: https://docs.perl6.org/language/operators#index-entry-Numeric_bitwise_AND_operator ...instead of the correct fragment: "#infix_+&"

Re: Could this be any more obscure?

2018-10-05 Thread David Green
at makes nobody happy.  It seems likely to me that you're looking for example-based documentation that is organised very differently from docs.perl6.  What about Moritz's *Perl 6 Fundamentals*, "A Primer with Examples, Projects, and Case Studies"? https://www.apress.com/gp/book/9781484228982 Is this something that better fits the way you think? -David

Re: Could this be any more obscure?

2018-10-05 Thread David Green
tor >>term++  postfix >>(term)  circumfix >>term1[term2]    postcircumfix So it's a postfix operator and circumfix operator put together: *after* one term, and *around* the other term. -David

Re: Feedback requested on playlist of 200 Perl 6 videos

2018-10-03 Thread David Green
but it is indeed there! (Dunno why I didn't see it before, my brain was probably expecting "presentations" or "videos" and scanned right past the *Screencasts* section.) -David

Re: Could this be any more obscure?

2018-10-02 Thread David Green
at makes nobody happy.  It seems likely to me that you're looking for example-based documentation that is organised very differently from docs.perl6.  What about Moritz's *Perl 6 Fundamentals*, "A Primer with Examples, Projects, and Case Studies"? https://www.apress.com/gp/book/9781484228982 Is this something that better fits the way you think? -David

Re: bitwise paper?

2018-10-02 Thread David Green
to plain "&", "|", etc., which are now junctions... and yes, there is https://docs.perl6.org/type/Junction for those who dare!). -David P.S. Actually, the search returns: https://docs.perl6.org/language/operators#index-entry-Numeric_bitwise_AND_operator ...instead of the correct fragment: "#infix_+&" -- is that generated automatically?

Re: Could this be any more obscure?

2018-10-02 Thread David Green
at makes nobody happy.  It seems likely to me that you're looking for example-based documentation that is organised very differently from docs.perl6.  What about Moritz's *Perl 6 Fundamentals*, "A Primer with Examples, Projects, and Case Studies"? https://www.apress.com/gp/book/9781484228982 Is this something that better fits the way you think? -David

[perl #131919] [RFC] Returning Failure from failed P6-level .parse

2018-08-06 Thread David Warring via RT
On Mon, 21 Aug 2017 07:38:56 -0700, alex.jakime...@gmail.com wrote: > It was removed completely for 2017.08 release. > > Rakudo commit: > https://github.com/rakudo/rakudo/commit/465d91abdfda038cb7feda35f7966be4ec39acf3 > Discussion: https://irclog.perlgeek.de/perl6-dev/2017-08-21#i_15048995 > On 2

Re: Memory leak with NativeCall

2018-01-23 Thread David E.
om/rakudo/rakudo . > > Thank you! > > > On 22 Jan 2018, at 01:24, David E. wrote: > > > > I'm not certain where to report this (ie: rakudo vs MoarVM), so I'm > starting here. > > > > After some experimentation, I finally traced down a segfault I&#

Re: Memory leak with NativeCall

2018-01-22 Thread David E.
7;ve been sick lately and I am on heavy > antihistamines, so I could just have medicine head. > > Here's the document I'm drawing this guess from: https://docs.perl6.org/ > language/nativecall#Function_arguments > > On Jan 21, 2018, at 19:24, David E. wrote: > > I

Memory leak with NativeCall

2018-01-21 Thread David E.
that it has something to do with the callback, maybe with the C-string conversion. Please advise, thanks, -David test_memleak.pl6: use v6; use NativeCall; constant LIB_DTEST = 'libtestlib.so'; sub dtest_log_init(&dt_csv_log (Str)) is native(LIB_DTEST) {*}; sub test_cb() is nat

Re: [perl #132226] AutoReply: "impossible" undefined value in concurrent ENTER phasers

2017-11-10 Thread David Lowe via RT
This crash still occurs with rakudo 2017.10. On Thu, Oct 5, 2017 at 9:38 PM, perl6 via RT wrote: > Greetings, > > This message has been automatically generated in response to the > creation of a trouble ticket regarding: > ""impossible" undefined value in concurrent ENTER phasers", > a s

Re: [perl #132225] AutoReply: segmentation fault while concurrently updating SetHash

2017-11-10 Thread David Lowe via RT
This crash still occurs with rakudo 2017.10. On Thu, Oct 5, 2017 at 9:10 PM, perl6 via RT wrote: > Greetings, > > This message has been automatically generated in response to the > creation of a trouble ticket regarding: > "segmentation fault while concurrently updating SetHash", > a sum

Re: [perl #132226] AutoReply: "impossible" undefined value in concurrent ENTER phasers

2017-11-10 Thread David Lowe
This crash still occurs with rakudo 2017.10. On Thu, Oct 5, 2017 at 9:38 PM, perl6 via RT wrote: > Greetings, > > This message has been automatically generated in response to the > creation of a trouble ticket regarding: > ""impossible" undefined value in concurrent ENTER phasers", > a s

Re: [perl #132225] AutoReply: segmentation fault while concurrently updating SetHash

2017-11-10 Thread David Lowe
This crash still occurs with rakudo 2017.10. On Thu, Oct 5, 2017 at 9:10 PM, perl6 via RT wrote: > Greetings, > > This message has been automatically generated in response to the > creation of a trouble ticket regarding: > "segmentation fault while concurrently updating SetHash", > a sum

[perl #128000] [NativeCall] Feature Request: Pointer Arithmetic

2017-10-11 Thread David Warring via RT
Thanks Salvador, Now in Rakudo core https://github.com/rakudo/rakudo/commit/3ca6554fdd8ff91da5423e85d4a2b7d309949531 On Tue, 03 Oct 2017 10:41:41 -0700, david.warring wrote: > On Tue, 26 Apr 2016 15:24:57 -0700, sortiz wrote: > > Hi David, > > > > Can you give a try to N

Re: [perl #132222] [BUG] 'HAS' Embedded C-Structs not working as documented

2017-10-05 Thread David Warring via RT
Thanks for that. As a worka-around Rakudo seems to do a better job, if I give it a helping hand viz a TWEAK method: use NativeCall; class Point is repr('CStruct') { has uint8 $.x; has uint8 $.y; } class MyStruct2 is repr('CStruct') { HAS Point $.point; # <-- embedded has int8 $.f

Re: [perl #132222] [BUG] 'HAS' Embedded C-Structs not working as documented

2017-10-05 Thread David Warring
Thanks for that. As a worka-around Rakudo seems to do a better job, if I give it a helping hand viz a TWEAK method: use NativeCall; class Point is repr('CStruct') { has uint8 $.x; has uint8 $.y; } class MyStruct2 is repr('CStruct') { HAS Point $.point; # <-- embedded has int8 $.f

[perl #128000] [NativeCall] Feature Request: Pointer Arithmetic

2017-10-03 Thread David Warring via RT
On Tue, 26 Apr 2016 15:24:57 -0700, sortiz wrote: > Hi David, > > Can you give a try to NativeHelpers::Pointer, part of NativeHelpers::Blob? > > When well tested I plan push it to core. > > Regards. > > Salvador Ortiz. Hi Salvador, That looks. OK. Can it go straight into core?

[perl #132073] [BUG] isa method errors when called on a subset type object

2017-09-20 Thread David Warring via RT
ne remaining todo test for the subset of a subset case, ie: > > subset S of Int; subset S2 of S; say S2.isa(S) > > On Sun, Sep 17, 2017 at 6:34 AM, David Warring > > wrote: > > > After that commit: subset S of Int; S.isa(True) returns true as > > expected. &g

Re: [perl #132073] [BUG] isa method errors when called on a subset type object

2017-09-16 Thread David Warring via RT
Tests added with roast commit https://github.com/perl6/roast/commit/d776a06e52c35d6cbb7b7bbade7b7a15b97ecff8 One remaining todo test for the subset of a subset case, ie: subset S of Int; subset S2 of S; say S2.isa(S) On Sun, Sep 17, 2017 at 6:34 AM, David Warring wrote: > After that com

Re: [perl #132073] [BUG] isa method errors when called on a subset type object

2017-09-16 Thread David Warring
Tests added with roast commit https://github.com/perl6/roast/commit/d776a06e52c35d6cbb7b7bbade7b7a15b97ecff8 One remaining todo test for the subset of a subset case, ie: subset S of Int; subset S2 of S; say S2.isa(S) On Sun, Sep 17, 2017 at 6:34 AM, David Warring wrote: > After that com

Re: [perl #132073] [BUG] isa method errors when called on a subset type object

2017-09-16 Thread David Warring
After that commit: subset S of Int; S.isa(True) returns true as expected. I've noticed a quibble with subset of a subset: perl6 -e'subset S of Int; subset S2 of S; say S2.isa(S)' False Should be True. On Sun, Sep 17, 2017 at 3:17 AM, Aleks-Daniel Jakimenko-Aleksejev via RT < perl6-bugs-follo...

Re: [perl #132073] [BUG] isa method errors when called on a subset type object

2017-09-16 Thread David Warring via RT
After that commit: subset S of Int; S.isa(True) returns true as expected. I've noticed a quibble with subset of a subset: perl6 -e'subset S of Int; subset S2 of S; say S2.isa(S)' False Should be True. On Sun, Sep 17, 2017 at 3:17 AM, Aleks-Daniel Jakimenko-Aleksejev via RT < perl6-bugs-follo...

Re: [perl #132042] [BUG] rakudo hangs while concurrently walking trees

2017-09-06 Thread J . David Lowe
> On Sep 6, 2017, at 1:57 PM, Elizabeth Mattijsen via RT > wrote: > > >> On 6 Sep 2017, at 22:46, J . David Lowe (via RT) >> wrote: >> >> # New Ticket Created by J . David Lowe >> # Please include the string: [perl #132042] >> # in the

Re: [perl #132042] [BUG] rakudo hangs while concurrently walking trees

2017-09-06 Thread J . David Lowe via RT
> On Sep 6, 2017, at 1:57 PM, Elizabeth Mattijsen via RT > wrote: > > >> On 6 Sep 2017, at 22:46, J . David Lowe (via RT) >> wrote: >> >> # New Ticket Created by J . David Lowe >> # Please include the string: [perl #132042] >> # in the

Re: [perl #131983] [BUG] mixin thread safety

2017-08-29 Thread J . David Lowe via RT
"monkey patch", and would be good to be warned if it isn't a safe thing to do. I'm fine with closing this as a duplicate. > On Aug 29, 2017, at 7:32 AM, Sam S. via RT > wrote: > > @David > > I think this is not a thread safety issue, but rather a result of

Re: [perl #131983] [BUG] mixin thread safety

2017-08-29 Thread J . David Lowe
"monkey patch", and would be good to be warned if it isn't a safe thing to do. I'm fine with closing this as a duplicate. > On Aug 29, 2017, at 7:32 AM, Sam S. via RT > wrote: > > @David > > I think this is not a thread safety issue, but rather a result of

Re: [perl #131965] Shaped arrays can't have zero size

2017-08-27 Thread David Warring via RT
#x27;s the rare, but possible case of an xref section with zero entries xref 0 0 (I've encountered real-world PDF's like this). The attached grammar/actions attempted to handle it as an array of shape [0;3], but wont work on current Rakudo. Just my preferred solution for the above case.

Re: [perl #131965] Shaped arrays can't have zero size

2017-08-27 Thread David Warring
#x27;s the rare, but possible case of an xref section with zero entries xref 0 0 (I've encountered real-world PDF's like this). The attached grammar/actions attempted to handle it as an array of shape [0;3], but wont work on current Rakudo. Just my preferred solution for the above case.

Re: Are 64 bit natives universally available?

2017-08-27 Thread David Warring
Thanks Liz, I just had a momentary concern that they might not be available on Win32 or other 32 bit platforms. Roast confirms that they're available everywhere as well. Thanks, David On Mon, Aug 28, 2017 at 9:08 AM, Elizabeth Mattijsen wrote: > They have been available since Christma

Are 64 bit natives universally available?

2017-08-27 Thread David Warring
Quick question. I just want to doublle check that int64, uint64 are universally available via Perl 6, before introducing them into modules. e.g. % perl6 -e'my uint64 $n = 99; say $n' 99 - David

Re: Bi-directional communication with another process

2017-07-27 Thread David Warring
Thanks Timo, A Proc::Async example, after reading the doco. Agree, that't better, even for the simple case :-) - David my $proc = Proc::Async.new('sh', '-c', 'for x in `seq 1 1` ; do echo "o$x"; echo "e$x" 1>&2; done'); # subs

Re: Bi-directional communication with another process

2017-07-27 Thread David Warring
;s looking defunct and Parrot specifc. Are we missing a working 'select' call? - David On Fri, Jul 28, 2017 at 12:04 PM, Brandon Allbery wrote: > On Thu, Jul 27, 2017 at 7:49 PM, Norman Gaywood > wrote: > >> my $input = q:to/EOS/; >> line of text >> another li

Re: ding!

2017-05-31 Thread David Warring
Does printing an ASCII BEL character do what you want? perl6 -e'print "\x7"' On Thu, Jun 1, 2017 at 3:23 PM, ToddAndMargo wrote: > Hi All, > > Does Perl 6 have a build in "ding" sound, or do I > need to make a system call (which I do all > the time in bash script)? > > Many thanks, > -T > > --

[perl #131174] [NYI] Atrribute Introspect shape

2017-04-19 Thread David Warring via RT
I've added a fudged test to S12-introspection/attributes.t that the container shape is as declared; not a Whatever. On Wed, 19 Apr 2017 03:14:35 -0700, c...@zoffix.com wrote: > On Tue, 18 Apr 2017 20:34:15 -0700, david.warring wrote: > > AFAIK there's currently no way of introspecting the shape of

Re: [perl #131112] [BUG] Regression Missing serialize REPR function for REPR VMHash (Rakudo::Internals::IterationSet)

2017-04-06 Thread David Warring
Without the guff, sorry: david@X346:~$ perl6 -v This is Rakudo version 2017.03-128-g87fe800 built on MoarVM version 2017.03-87-g5d73bf4 implementing Perl 6.c. david@X346:~$ echo "class Tst { constant X = set < x y >; }" > Tst.pm david@X346:~$ perl6 -I . -M Tst ===SORRY!=== Mis

Re: [perl #130512] Proc::Async STDIN isn't handled correctly for all apps

2017-01-20 Thread David E.
he "ssh -t -t" approach seems to be the best workaround until somebody develops a true Expect module for Perl6, or extends Proc::Async to support PTYs. On Tue, Jan 17, 2017 at 3:41 PM, Brandon Allbery via RT < perl6-bugs-follo...@perl.org> wrote: > On Wed, Jan 4, 2017 a

Re: [perl #129907] [BUG] interaction of class FALLBACK methods and safe method calls (.?)

2016-10-19 Thread David Warring
; is $obj.bar, 69, 'dynamic method - direct call'; is $obj.?bar, 69, 'dynamic method - safe call'; dies-ok {$obj.unknown}, 'direct call - unknown method dies'; lives-ok {$obj.?unknown}, 'safe call - unknown method lives'; } Based on some code I

[perl #121940] [@LARRY] say True but False # should be 'True' (advent2010-day19)

2016-08-09 Thread David Warring via RT
The behavious still seems the same: % perl6 --v This is Rakudo version 2016.07.1-135-g77724b2 built on MoarVM version 2016.07-16-g85b6537 implementing Perl 6.c. % perl6 -e'my $s = False but True; say $s; say $s.so;' True True This is inconsistent with: % perl6 -e'my $s = 0 but True; say $s; say

Re: Union

2016-04-12 Thread David Warring
pretty close to the metal. Should be fast, but the same dangers and caveats apply, to doing this directly in C. - David On Tue, Apr 12, 2016 at 6:51 PM, JuhiMarcel LangbroekTimmerman < mt195...@gmail.com> wrote: > Hi David, > > Thanks very much for your code, I will try it when I get

  1   2   3   4   5   6   7   8   9   10   >