NativeCall interface for a char ** argument

2016-05-25 Thread Fernando Santagata
using the wrong NativeCall mapping. Any hint? -- Fernando Santagata

Re: NativeCall interface for a char ** argument

2016-05-25 Thread Fernando Santagata
On Wed, May 25, 2016 at 6:20 PM, Brandon Allbery <allber...@gmail.com> wrote: > On Wed, May 25, 2016 at 11:50 AM, Fernando Santagata < > nando.santag...@gmail.com> wrote: > >> When I write a C program I'm able to call that function and I receive the >> strin

Re: NativeCall interface for a char ** argument

2016-05-25 Thread Fernando Santagata
On Wed, May 25, 2016 at 8:50 PM, Brandon Allbery <allber...@gmail.com> wrote: > > On Wed, May 25, 2016 at 2:41 PM, Fernando Santagata < > nando.santag...@gmail.com> wrote: > >> >> gbooleannotify_get_server_info (char **ret_name, >>

Re: Where do I need to put a pm6 file?

2016-05-01 Thread Fernando Santagata
cript. Then in > your script add: > > use lib 'lib'; > > That way you don't have to add the -l param. > On May 1, 2016 09:21, "Fernando Santagata" <nando.santag...@gmail.com> > wrote: > >> Hello, >> >> I'm trying to write a modu

Re: NativeCall interface for a char ** argument

2016-05-25 Thread Fernando Santagata
ters to C strings ( each > of unknown length). > > I don't know NativeCall, can't tell you how it should be declared, but I > hope that highlights the issue. > -- Fernando Santagata

Re: Net::SMTP attachments?

2017-03-01 Thread Fernando Santagata
ic15602.gif" >> Content-transfer-encoding: base64 >> > > > Many thanks, > -T > > -- > ~~~ > Having been erased, > The document you're seeking > Must now be retyped. > ~~~ > -- Fernando Santagata

Re: Initializing a CStruct attribute of a CStruct

2016-10-03 Thread Fernando Santagata
BUILD(uint64 :$c, test1 :$d){ $!c = $c; $!d := $d; } } my test2 $t2 .= new(:3c, d => test1.new(:1a :2b)); dd $t2; On Sat, Oct 1, 2016 at 10:34 AM, Fernando Santagata < nando.santag...@gmail.com> wrote: > Hello, > > I'm trying to do something complex (at least for me :

Initializing a CStruct attribute of a CStruct

2016-10-01 Thread Fernando Santagata
he attributes one by one... Is there a less cumbersome way to do that initialization? Thanks! -- Fernando Santagata

Re: Need dynamic variables help

2017-01-13 Thread Fernando Santagata
gt;> What am I missing? I'd like to get the one I commented >> out on line 2 working too. That gives me the following error: >> >> Use of uninitialized value of type Any in numeric context >> in block at ./env.pl6 line 2 >> Cannot convert string to number: b

Re: Need dynamic variables help

2017-01-13 Thread Fernando Santagata
; Use of uninitialized value of type Any in numeric context > in block at ./env.pl6 line 2 > Cannot convert string to number: base-10 number must begin with valid > digits or '.' in '⏏Display = ' (indicated by ⏏) > in block at ./env.pl6 line 2 > > > Many thanks, > -T > -- Fernando Santagata

Re: debugger dies on me

2016-12-05 Thread Fernando Santagata
05 12:28: >>> >>> I can see references to /home/theo/.rakudobrew which shouldn't >>>> exist >>>> if you were using Rakudo Star on its own. >>>> >>>> Looks like you have mixed up two versions. >>>> >>>> S >>>> >>> >>> -- >>> Theo van den Heuvel >>> Van den Heuvel HLT Consultancy >>> >> >> -- >> 4096R/EA75174B Steve Mynott <steve.myn...@gmail.com> >> > > -- Fernando Santagata

Re-export symbols

2016-12-30 Thread Fernando Santagata
'EXPORT'). Any idea? -- Fernando Santagata

A stricter typed variable

2017-01-07 Thread Fernando Santagata
work either: test format => 'gnutar', filter => ['gzip', 'uuencode']; because it's interpreted as a generic Array, not an Array[Str]. Thank you! -- Fernando Santagata

Re: A stricter typed variable

2017-01-07 Thread Fernando Santagata
re that as long as anyone behaves it will all run smoothly enough and I understand that using Perl6 to interface one's program to a C library is not the best use case for a high level functional language ;-) -- Fernando Santagata

Re: Debugging and Perl6::HookGrammar

2017-04-19 Thread Fernando Santagata
the next error, which looks like the behavior of Perl6::Grammar has > changed and Perl6::HookGrammar hasn't been updated to match or something. > > I'll push the initial fix to git master today, though, hopefully someone > will figure it out > > HTH > - Timo > -- Fernando Santagata

Re: debugging modules

2017-03-10 Thread Fernando Santagata
sing Rakudo and MoarVM 2017.02. Thanks -- Fernando Santagata

Debugging and Perl6::HookGrammar

2017-04-18 Thread Fernando Santagata
-and-hookgrammar/2047968 So I tried to install directly from the sources, without using rakudobrew, but I get the same error. Any hint? -- Fernando Santagata

Nativecall and CArray

2017-05-29 Thread Fernando Santagata
l-6-nativecall-function (Which is presented as "enough rope to -hang yourself- *build a workaround* ") -- Fernando Santagata

Re: zef, zef-j, zef-m

2017-05-29 Thread Fernando Santagata
Thank you! On Mon, May 29, 2017 at 6:47 PM, Elizabeth Mattijsen <l...@dijkmat.nl> wrote: > > > On 29 May 2017, at 17:33, Fernando Santagata <nando.santag...@gmail.com> > wrote: > > > > On Mon, May 29, 2017 at 12:20 PM, Brent Laabs <bsla...@gmail.com

Re: zef, zef-j, zef-m

2017-05-29 Thread Fernando Santagata
On Mon, May 29, 2017 at 12:20 PM, Brent Laabs <bsla...@gmail.com> wrote: > > On 29 May 2017, at 11:22, Fernando Santagata <nando.santag...@gmail.com> >> wrote: >> > >> > /me sighs: NQP is still so poorly documented! >> > > Believe

Re: zef, zef-j, zef-m

2017-05-29 Thread Fernando Santagata
t noticed that in /Applications/Rakudo/share/perl6/site/bin/ I > >> have 3 copies > >> of every script. One with a -j and one with a -m at the end just as for > >> zef: > >> > >> zef > >> zef-j > >> zef-m > >> > >> The files seem to be identical. > >> > >> Why are there 3 and what is their purpose? > >> > >> Gabor > >> > > > -- Fernando Santagata

Re: Version of a Module

2017-06-28 Thread Fernando Santagata
he full meta info > from whatever installation your script was grabbed from > but i don't know what or how > -- Fernando Santagata

Re: Why can't I "write"?

2017-09-23 Thread Fernando Santagata
directions. What am >> I doing wrong? >> >> >> Many thanks, >> -T >> > > > This worked: > $Handle.print( "$DateTime\n" ); > > But I still what to know what was wrong with the > way I interpreted the manual > > -T > > -- > ~~ > Computers are like air conditioners. > They malfunction when you open windows > ~~ > -- Fernando Santagata

Re: -f ???

2017-09-29 Thread Fernando Santagata
esults of the stat() system call on POSIX-like operating systems) should > be cached. > > In other words, I think we should change the Perl 6 spec to define .f as > "exists and is a file". > > -- > Mark Montague > m...@catseye.org > -- Fernando Santagata

Re: The equivalent of Moose's "around"

2017-11-17 Thread Fernando Santagata
t;l...@dijkmat.nl> wrote: > > sub trait_mod:(\attribute, :!) is export { > > sub trait_mod:(Attribute:D \attribute, :!) is export { > > so that the trait can only be used on Attribute objects. > > > > Liz > -- Fernando Santagata

Re: The equivalent of Moose's "around"

2017-11-18 Thread Fernando Santagata
Hi Liz, Thank you and my regards to Moritz too! On Fri, Nov 17, 2017 at 11:14 PM, Elizabeth Mattijsen <l...@dijkmat.nl> wrote: > > On 17 Nov 2017, at 22:47, Elizabeth Mattijsen <l...@dijkmat.nl> wrote: > >> On 17 Nov 2017, at 20:09, Fernando Santagata <nando.santag

Re: The equivalent of Moose's "around"

2017-11-14 Thread Fernando Santagata
> to you (or more verbose, and wiser, list members)...I'm too buuusy! > > -y > > On Tue, Nov 14, 2017 at 6:51 PM, Fernando Santagata < > nando.santag...@gmail.com> wrote: > >> Hi Liz, >> >> What I need is to preprocess the value before assigning it

The equivalent of Moose's "around"

2017-11-14 Thread Fernando Santagata
} } my A $a .= new; # $a.a = 42; # This outputs an error $a.a(42); say $a.a; Any hint how to make it work as an assignment, instead of a method call? Better yet, is there a way to abstract that behavior in a role? -- Fernando Santagata

Re: The equivalent of Moose's "around"

2017-11-14 Thread Fernando Santagata
> > > > -y > > On Tue, Nov 14, 2017 at 7:09 PM, Elizabeth Mattijsen <l...@dijkmat.nl> > wrote: > >> This might it then: >> >> class A { >> has $!a; # $.a if you want to be able to assign with .new >> method a() { >> Proxy

Re: The equivalent of Moose's "around"

2017-11-16 Thread Fernando Santagata
$a = A.new; > $a.a = 77; > dd $a.a; # 154 > > > On 14 Nov 2017, at 18:51, Fernando Santagata <nando.santag...@gmail.com> > wrote: > > > > Hi Liz, > > > > What I need is to preprocess the value before assigning it to an > attribute. > > &g

Re: Forcing a Positional role

2017-10-28 Thread Fernando Santagata
the array as a private variable? > > On Sat, 28 Oct 2017, 8:41 pm Fernando Santagata, < > nando.santag...@gmail.com> wrote: > >> Hello Simon, >> Thank you for your reply. >> >> I would use an array if I hadn't the constraint that in a NativeCall >> cl

Re: Forcing a Positional role

2017-10-28 Thread Fernando Santagata
ASS:D: $index) is rw { >> my $a = A.^attributes(:local)[$index]; >> Proxy.new( >> FETCH => method () { $a.get_value(self) }, >> STORE => method ($value) { $a.set_value(self, $value) } >> ); >> } >> } >> >> sub MAIN >> { >> my A $a .= new; >> $a.a0 = 0; >> $a.a1 = 1; >> say $a[0]; >> say $a[1]; >> say $a[2]; >> $a[0] = 42; >> say $a[0]; >> } >> >> But this program just hangs. >> When run in the debugger I get this: >> >> >>> LOADING Proxy.p6 >> + Exception Thrown >> | Died >> + Proxy.p6 (25 - 29) >> | } >> | >> | sub MAIN >> | { >> | my A $a .= new; >> >> I'm clueless here. >> What am I doing wrong? >> Can anyone help? >> >> Thank you! >> >> -- >> Fernando Santagata >> > -- Fernando Santagata

Re: Forcing a Positional role

2017-10-29 Thread Fernando Santagata
N-POS method. Now what's left for me to understand is why the implementation with the Proxy object hangs without any error message. -- Fernando Santagata

Re: need s/ help

2018-05-01 Thread Fernando Santagata
the last three letters of a string >> >> $ perl6 -e 'my $x="abcabcabc"; $x ~~ s/"a.*"$/xyz/; say $x;' >> abcabcabc >> >> I want abcabcxyz >> >> And, in real life, only the "a" will be a know letter. >> Everything else will vary. And the "a" will repeat a lot. >> I am only interested in changing the last "a" and everything >> that comes after it. >> >> Many thanks, >> -T >> > -- Fernando Santagata

Re: need <-[x]> help

2018-05-03 Thread Fernando Santagata
ot;,"","999"]; say > "$x";$x~~s:g/\"(.)<-[,]>/ inches($0)/; say "$x";' > > "44","7" ab","","999" > inches(4)inches(,)7inches( )binches(,)inches(,)999" > > desired output: > "44","7 inches ab","","999" > > Many thanks, > -T > > next step, ignoring the quote at the end of the line. > -- Fernando Santagata

Forcing a Positional role

2017-10-28 Thread Fernando Santagata
hangs. When run in the debugger I get this: >>> LOADING Proxy.p6 + Exception Thrown | Died + Proxy.p6 (25 - 29) | } | | sub MAIN | { | my A $a .= new; I'm clueless here. What am I doing wrong? Can anyone help? Thank you! -- Fernando Santagata

Re: Introspection

2018-08-29 Thread Fernando Santagata
method, but haven't managed to produce an effective > search string for an example of its use. > -- Fernando Santagata

Re: Using HashBags

2018-04-07 Thread Fernando Santagata
>> ["FV", 2], ["JF", 2], ["MM", 2], ["MPu", 2], ["MM", 2], ["FE", 2], ["FV", >> 2], ["MPu", 2], ["JP", 2], ["JP", 2], ["JF", 4]] >> > > my %docents; > for @rows -> @row { > %docents{ @row[0] } += @row[1]; > } > > dd %docents; > > Output: Hash %docents = {:FE(4), :FV(8), :JF(9), :JP(8), :MM(8), :MPu(8)} >> > > --- > > As I understand it, this would better be achieved with the Bag or BagHash > type. What would be the easy way? > > Thanks! > -- > (≧∇≦) Mimosinnet (Linux User: #463211) > -- Fernando Santagata

Re: awk?

2018-04-13 Thread Fernando Santagata
ing “Like, Totally!” Completeness Theorem. > — http://www.shlomifish.org/humour/bits/facts/Clarissa/ > > Please reply to list if it's a mailing list post - http://shlom.in/reply . > -- Fernando Santagata

Blob - what am I missing?

2018-04-17 Thread Fernando Santagata
at line 1 > my Blob $b1 .= new; Blob:0x<> > $b1.WHAT (Blob) > $b1.bytes 0 Apparently allocate() doesn't return a "newly created Blob object," or am I missing something? (using 2018.03) -- Fernando Santagata

Re: Blob - what am I missing?

2018-04-17 Thread Fernando Santagata
Thanks! On Tue, Apr 17, 2018 at 11:03 AM, JJ Merelo <jjmer...@gmail.com> wrote: > > > 2018-04-17 10:50 GMT+02:00 Fernando Santagata <nando.santag...@gmail.com>: > >> Hi, >> I'm experimenting with Blob(s) and I'm under the impression that

Re: Debating on writing Editline bindings

2018-03-30 Thread Fernando Santagata
ve to install > any additional libraries to use the REPL more comfortably. Would this be > worthwhile writing? It fills a pretty narrow niche for users and I'm not > sure how useful it would be to have. > > -- Fernando Santagata

Re: CPAN and p6c

2018-03-25 Thread Fernando Santagata
Thanks, I'm doing that. On Fri, Mar 23, 2018 at 5:26 PM, Tom Browder <tom.brow...@gmail.com> wrote: > > On Fri, Mar 23, 2018 at 10:36 Fernando Santagata < > nando.santag...@gmail.com> wrote: > >> Hello *, >> >> It seems that the p6c ecosystem is soon to

CPAN and p6c

2018-03-23 Thread Fernando Santagata
works? Thanks -- Fernando Santagata

Run tests only if a module is available

2018-10-11 Thread Fernando Santagata
Hello, I wish to run some tests on one module of mine only if there's a certain third-party module available during installation. Before I concocted something horrid using try/catch in the INIT phaser, is there any gentle way to do this? Thanks! -- Fernando Santagata

Re: Run tests only if a module is available

2018-10-12 Thread Fernando Santagata
module is installed and loading > it if it is: > > https://rakudo.org/post/lexical-require-upgrade-info > > Hope that helps! > - Timo > On 11/10/2018 19:08, Fernando Santagata wrote: > > Hello, > > I wish to run some tests on one module of mine only if there's a certain > th

Re: Nesting pod6 formatting codes

2018-11-06 Thread Fernando Santagata
sion < v2018.09» > > > On Tue, Nov 6, 2018 at 6:38 AM Fernando Santagata > wrote: > > > > Hi, > > > > Here: > > > > https://docs.perl6.org/language/pod#Formatting_codes > > > > I read this: > > > >> Formatting co

Nesting pod6 formatting codes

2018-11-06 Thread Fernando Santagata
; v2018.09 > instead of $*PERL.compiler.version < v2018.09 Did I misunderstand the whole nesting thing? Is there any other way to include a '<' character inside a formatting code? Thank you! -- Fernando Santagata

Re: eof ?

2018-10-09 Thread Fernando Santagata
https://docs.perl6.org/routine/lines > > seems pretty straight forward. > > > > Question: How do I tell when I when I have > > reached the EOF (End Of File)? > > > > Many thanks, > > -T > > Please expand the question to include `read` and `readchars`. > -- Fernando Santagata

Re: A problem with native CArrays

2018-10-01 Thread Fernando Santagata
quot;9", while changing the '+' with a '*' it > generates an error, as it should: > > > > Cannot resolve caller Numeric(NativeCall::Types::CArray[int32]: ); none > of these signatures match: > > (Mu:U \v: *%_) > > > > Is this a bug, an inconsistency, or a necessary evil? > > > > -- > > Fernando Santagata >

Re: A problem with native CArrays

2018-09-30 Thread Fernando Santagata
to the Perl 6 type system or it's just a bug. On Sun, Sep 30, 2018, 12:27 JJ Merelo wrote: > This works: > > my int32 $a = 3; my int32 $b = 7; say $a * $b # OUTPUT: «21␤» > > El dom., 30 sept. 2018 a las 11:28, Fernando Santagata (< > nando.santag...@gmail.com>) es

Re: Information about Perl 6 internals

2018-09-21 Thread Fernando Santagata
hu, Sep 20, 2018 at 6:51 PM Curt Tilmes wrote: > I haven't seen many responses to this yet. I am by no means a > MoarVM/NQP/Rakudo internals expert, speaking only as a developer on top of > those things, not inside them. > > On Sun, Sep 16, 2018 at 8:12 AM Fernando Santagata < > n

How to use sub/method 'dir'

2018-11-24 Thread Fernando Santagata
ehavior is different: > my @dirs = dir('.', test => { .IO.d }) [".".IO "a".IO "..".IO] Now I can see the directory 'a'. If I descend a level, doing a 'cd a', the behavior is consistent with what I see at the previous level. I'm confused. I'm using version 2018.10. -- Fernando Santagata

Re: How to use sub/method 'dir'

2018-11-25 Thread Fernando Santagata
ot;), i.e. > "anything except . and ..". > > I'm not sure why using { .IO.d } as the test would not give you b, though. > Can you check what "a/b".IO.d outputs? Maybe that can give us a clue. > > HTH > - Timo > On 24/11/2018 22:18, Fernando Santagata wrote: >

Re: How to use sub/method 'dir'

2018-11-25 Thread Fernando Santagata
To further clarify, what I did to prepare this test is: mkdir -p test/a/b cd test echo > a/c On Sun, Nov 25, 2018 at 11:11 AM Fernando Santagata < nando.santag...@gmail.com> wrote: > Here's output of 'a/b'.IO.d from the REPL: > > > 'a/b'.IO.d > True > > On Sun

Re: How to use sub/method 'dir'

2018-11-26 Thread Fernando Santagata
operators, so defaulting to IO is probably more useful than defaulting to Str. -- Fernando Santagata

Re: How to use sub/method 'dir'

2018-11-27 Thread Fernando Santagata
: > > On Mon, Nov 26, 2018 at 19:26 Trey Harris wrote: > >> >> >> On Mon, Nov 26, 2018 at 04:56 Fernando Santagata < >> nando.santag...@gmail.com> wrote: >> >>> On Sun, Nov 25, 2018 at 5:34 PM Brad Gilbert wrote: >>> >>>

Is this a bug?

2018-09-16 Thread Fernando Santagata
sion 2018.08 built on MoarVM version 2018.08 -- Fernando Santagata

Information about Perl 6 internals

2018-09-16 Thread Fernando Santagata
into pointing to a stretch of previously allocated memory, how does Perl 6 allocate memory? Does it already use the SIMD alignment? Since I'm here :-) will Perl 6 ever support a native type mirroring the __float128 quadruple-precision type provided by gcc? Thank you! -- Fernando Santagata

Re: Is this a bug?

2018-09-16 Thread Fernando Santagata
Should I report this here: https://github.com/rakudo/rakudo/ or there's a specific location for the REPL? On Sun, Sep 16, 2018 at 2:28 PM Elizabeth Mattijsen wrote: > Definitely a bug. Which seems to be limited to the REPL only, fortunately. > > > On 16 Sep 2018, at 12:57, Fernan

Re: how do I do this index in p6?

2018-09-12 Thread Fernando Santagata
t; > > Scope is lexical: > > constant where = "outer"; > > say where; { > > constant where = "inner"; > > say where; > > } > > say where; > > > -- Fernando Santagata

Travis-CI

2019-02-26 Thread Fernando Santagata
dm/rakudo-pkg/releases) which the script uses to install Perl 6 in the container. -- Fernando Santagata

Re: Travis-CI

2019-02-26 Thread Fernando Santagata
On Tue, Feb 26, 2019 at 1:49 PM JJ Merelo wrote: > Hi, > > El mar., 26 feb. 2019 a las 11:34, Fernando Santagata (< > nando.santag...@gmail.com>) escribió: > >> Hello, >> >> Today I stumbled upon this article: >> >> https://blog.steve.fi/exp

Re: valid values?

2019-03-03 Thread Fernando Santagata
her at run time. -- Fernando Santagata

Re: valid values?

2019-03-03 Thread Fernando Santagata
teger can only > have certain predefined values? > > Many thanks, > -T > > -- > ~~~ > Having been erased, > The document you're seeking > Must now be retyped. > ~~~ > -- Fernando Santagata

Re: Short term Zef fix

2019-04-30 Thread Fernando Santagata
> Cognoscite aliquid novum cotidie >> >> http://www.khanate.co.uk/ >> >> > > -- > Simon Proctor > Cognoscite aliquid novum cotidie > > http://www.khanate.co.uk/ > -- Fernando Santagata

Re: Short term Zef fix

2019-04-30 Thread Fernando Santagata
ect as not everything is in CPAN but it should help. > > -- > Simon Proctor > Cognoscite aliquid novum cotidie > > http://www.khanate.co.uk/ > -- Fernando Santagata

Re: FatRat's falling back to Num's

2019-04-19 Thread Fernando Santagata
gt; worked OK. So my question is really not how to compute pi's digits, but > more this: why are the above computations falling from FatRat to Num after > a while, and is there something to do to keep FatRat calculation all the > way? > > Thanks to anyone who would be able to shed light on this. > > > > > > > > > -- Fernando Santagata

Re: 11.01 in binary

2019-09-03 Thread Fernando Santagata
>>> Hi All, > >>> > >>> How would I print out what a 32 real value of > >>> 11.01 (base 10) looks like in its raw > >>> binary form (ones and zeros)? > >>> > >>> Many thanks, > &

Re: 11.01 in binary

2019-09-03 Thread Fernando Santagata
zeros)? > > Many thanks, > -T > -- Fernando Santagata

Re: [ please ] request for perl machine learning utils development

2019-08-29 Thread Fernando Santagata
have the interface and behaviour that you want! > > > > > >> I think there are many other perl people around the world expect this > capability. > > > > If there were more people actually working on this, we would actually > have that capability. > > > > > > > > Liz > > > -- Fernando Santagata

Re: zef uninstall .

2019-09-04 Thread Fernando Santagata
t; > nuke [RootDir | TempDir | StoreDir] > Deletes all paths in the specific configuration directory > > nuke [site | home] > Deletes all paths that are rooted in the prefix of the matching > CompUnit::Repository name > > # uninstall all modules > $ zef nuke site home

zef uninstall .

2019-09-04 Thread Fernando Santagata
t pre-push hook. So far my pre-push script is just: zef install . --force-install but now I'm thinking that it's not enough and I'd like to uninstall the current module and then re-install it. To do that I need a way to uninstall an "anonymous" module, something along the lines of &qu

Re: zef uninstall .

2019-09-04 Thread Fernando Santagata
On Wed, Sep 4, 2019 at 4:07 PM Tom Browder wrote: > On Wed, Sep 4, 2019 at 05:53 Fernando Santagata > wrote: > >> >> On Wed, Sep 4, 2019 at 12:21 PM William Michels >> wrote: >> >>> Hi Fernando, I'm not sure I understand. Is this for module >>&

Re: I need array of hashes help

2019-12-03 Thread Fernando Santagata
@y.kv -> $I, $J { say "Index $I $J $J" }; say "elements " ~ > @y.elems;' > > Index 0 aa bb > Index 1 AA BB > elements 2 > > > But I still have to figure out how to > > @y[0]={a=>"aa",b=>"bb"} > > $ p6 'my @y[0]={a=>"aa",b=>"bb"}; push @y, {a=>"AA",b=>"BB"}; for @y.kv > -> $I, $J { say "Index $I $J $J" }; say "elements " ~ @y.elems;' > Illegal dimension in shape: 0. All dimensions must be integers bigger than > 0 >in block at -e line 1 > -- Fernando Santagata

Re: How do I do literal quotes in a regex?

2019-12-09 Thread Fernando Santagata
On Mon, Dec 9, 2019 at 9:38 AM Fernando Santagata wrote: > It can be used this way: > > $ raku -e'say „Hello!“' > Hello! > But it must be used with that closing quote '“' (U+201C); it cannot be > used paired with itself: > There's another quotation mark that can be used

Re: How do I do literal quotes in a regex?

2019-12-09 Thread Fernando Santagata
fficult to interpret and remember. -- Fernando Santagata

Re: Fwd: Raku, docs, help [was: Re: vulgar?]

2019-12-10 Thread Fernando Santagata
ly, really deserve to be thanked. A lot. -- Fernando Santagata

Re: modules and subsets

2019-12-13 Thread Fernando Santagata
On Fri, Dec 13, 2019 at 6:48 AM Todd Chester via perl6-users < perl6-users@perl.org> wrote: > On 2019-12-12 00:22, Fernando Santagata wrote: > > On Thu, Dec 12, 2019 at 3:46 AM Todd Chester > <mailto:toddandma...@zoho.com>> wrote: > > Can I export any other va

Re: modules and subsets

2019-12-12 Thread Fernando Santagata
On Thu, Dec 12, 2019 at 3:46 AM Todd Chester wrote: > On 2019-12-11 10:22, Fernando Santagata wrote: > > File test.pm6 > > > > unit module test; > > subset PosInt of Int is export where * > 0; > > > > > > File test.p6 > > > >

Re: modules and subsets

2019-12-11 Thread Fernando Santagata
y are "our": https://docs.perl6.org/language/classtut > > Subsets... well I don't know. I would say they are package scoped by > default, same as classes. > > JJ > -- Fernando Santagata

Re: hash and print question

2019-12-05 Thread Fernando Santagata
%x<<$y >>.base(16) > > or I get the finger wagged at me. > > Ambiguous use of >>; use » instead to mean hyper, or > insert whitespace before >> to mean a quote terminator > (or use different delimiters?) > > Is there a better way to write: > say %x<<$y >>.base(16) > > Many thanks, > -T > -- Fernando Santagata

Re: How do I do literal quotes in a regex?

2019-12-08 Thread Fernando Santagata
'abccd' ~~ / [abc]+ d / > > Nil > > > > > 'abccd' ~~ / abc+ d / > > abccd > > > > > 'abccd abcABCabcd' ~~ / :i 'abc'+ d / > > abcABCabcd > > > 'abccd abcABCabcd' ~~ / :i [abc]+ d / > > abcABCabcd > > > > Note that '…' in a regex behaves like '…' outside of one, as well as "…" > > behaving like "…" and 「…」 behaving like 「…」 > > Hi Brad, > >That was above and beyond! Thank you! > > my $x = Q[\:\\::]; ( my $y = $x ) ~~ s/ 「\\」 /x/; say $y > \:x:: > > What is the easiest way to get those weird brackets in Fedora31? > > -T > -- Fernando Santagata

Is LibraryMake still current?

2019-12-21 Thread Fernando Santagata
Hello, What can I use to help building native code for a Raku module? Is LibraryMake still the preferred method or there's something else to use nowadays? Thanks! -- Fernando Santagata

Re: Is LibraryMake still current?

2019-12-23 Thread Fernando Santagata
useful! Happy holidays! On Mon, Dec 23, 2019 at 3:28 AM David Warring wrote: > 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

Re: Is LibraryMake still current?

2019-12-24 Thread Fernando Santagata
…and the App::Mi6 author just released an updated version that deals well with the new naming scheme! Thank you! On Mon, Dec 23, 2019 at 4:51 PM Fernando Santagata < nando.santag...@gmail.com> wrote: > I hope that zef tests a distribution using both .t and .rakutest > extensi

Re: Is LibraryMake still current?

2019-12-23 Thread Fernando Santagata
As an aside, I deplore the practice of identifying the language of a > > directly executable program in the top level. It means that any change > > to the language used means lying to the world, (which destroys the > > point) or hunting down and changing every script or other caller to > > reflect the new situation. > -- Fernando Santagata

Re: looking for good project to learn perl6

2019-12-08 Thread Fernando Santagata
at 1:52 AM Tom Browder wrote: > >> On Sun, Dec 8, 2019 at 10:38 AM Fernando Santagata >> wrote: >> > >> > Hello, >> > I started writing a raw interface to Tensorflow, but I stopped for >> various reasons [¹]. If anyone wants to work o

Re: Perl6 vs Julia

2019-12-08 Thread Fernando Santagata
and start publish the "work in progress" on the CPAN, so other people will know that there's someone working on it. PRs will be welcome ;-) On Sun, Dec 8, 2019 at 7:41 PM Tom Blackwood wrote: > Nice! Thanks for letting me know. > > On Mon, Dec 9, 2019 at 12:21 AM Fernando Santaga

Re: implicit type change

2019-12-08 Thread Fernando Santagata
ersion from > unsigned to signed integer and it is not possible to use positive > numbers only, afterwards. > > Regards, > Marcel > -- Fernando Santagata

Re: Perl6 vs Julia

2019-12-08 Thread Fernando Santagata
t;>> https://en.wikipedia.org/wiki/Julia_(programming_language) >>> >>> It says it is also influenced by perl language. >>> >>> Regards >>> >> >> >> -- >> JJ >> > -- Fernando Santagata

Re: looking for good project to learn perl6

2019-12-08 Thread Fernando Santagata
eck it out! >> > >> > On Fri, Dec 6, 2019 at 5:50 PM JJ Merelo wrote: >> >> >> >> Try something in the most wanted repo: >> https://github.com/perl6/perl6-most-wanted/blob/master/most-wanted/modules.md >> That way you will learn _and_ help the community. >> >> >> >> El vie., 6 dic. 2019 a las 8:11, Tom Blackwood () >> escribió: >> >>> >> >>> Hello >> >>> >> >>> My team most time developed with ruby language. >> >>> These recent days we took time reading the book Learning Perl 6. >> >>> Then we consider to take an actual project to learn more deeply. >> >>> What project do you suggest for us to get involve into? >> >>> >> >>> Regards, >> >>> Tom >> >> >> >> >> >> >> >> -- >> >> JJ >> > -- Fernando Santagata

Re: Raku -npe command line usage

2020-05-08 Thread Fernando Santagata
f the "-ne" one-liner > > flag, using "-e" and "for lines()" instead. I also used grep instead > > of smart-matching: > > > > perl6 -e 'my @i; for lines() {if .grep(/^WARN/) -> ($s) > > {@i.push($s)};}; .say for @i.sort;' > > > > Note: the "-> ($s)" section where I store grepped matches comes from a > > Jonathan Worthington answer found here (thanks Jonathan!): > > > > > stackoverflow.com/questions/58982745/raku-one-line-expression-to-capture-group-from-string > > > > I certainly would be interested to learn if there's a phaser solution > > to this problem (and I also have a sneaking suspicion that Supply > > might be useful here... ). > > > > HTH, Bill. > -- Fernando Santagata

Re: Is LibraryMake still current?

2020-03-18 Thread Fernando Santagata
. 'zef build' works flawlessly and so does Mi6, which OTOH can't deal with LibraryMake. HTH On Sat, Dec 21, 2019 at 7:41 PM Fernando Santagata < nando.santag...@gmail.com> wrote: > Hello, > > What can I use to help building native code for a Raku module? > Is LibraryMake s

Re: Raku -npe command line usage

2020-05-08 Thread Fernando Santagata
On Fri, May 8, 2020 at 6:10 PM Fernando Santagata wrote: > raku -e'lines() ==> grep(/^WARN/) ==> sort() ==> reduce({$^a ~ "\n" ~ > $^b}) ==> say()' sample.log > and the reduce call can be written more compactly: reduce({"$^a\n$^b"}) -- Fernando Santagata

Re: pod6 and markdown

2020-09-02 Thread Fernando Santagata
d > > On 02/09/2020 03:02, Vadim Belman wrote: > > Unfortunately, neither rendered constraints nor image insertions are > implemented yet. Or it is so up to my knowledge, at least. I miss these > features too sometimes. > > > > Best regards, > > Vadim Belman > &g

pod6 and markdown

2020-08-31 Thread Fernando Santagata
some text to just one renderer, or to insert a figure or picture in a pod6 file? -- Fernando Santagata

New type Stash for Block is not a mixin type

2020-09-24 Thread Fernando Santagata
ng version 2020.07. -- Fernando Santagata

Re: New type Stash for Block is not a mixin type

2020-09-26 Thread Fernando Santagata
Thank you, I'll see if I can concoct a self-contained example in order to open an issue. On Thu, Sep 24, 2020, 20:13 Elizabeth Mattijsen wrote: > Feels like a regression worthy of a Rakudo issue > > > On 24 Sep 2020, at 20:26, Fernando Santagata > wrote: > > > > Hell

Re: New type Stash for Block is not a mixin type

2020-09-28 Thread Fernando Santagata
It seems that Rakudo 2020.09 solved the regression problem! On Sat, Sep 26, 2020 at 10:01 AM Fernando Santagata < nando.santag...@gmail.com> wrote: > Thank you, I'll see if I can concoct a self-contained example in order to > open an issue. > > On Thu, Sep 24, 2020, 20:13 E

  1   2   >