Re: the state of the build and install instructions

2020-05-14 Thread Elizabeth Mattijsen
Personally, I always do: perl Configure.pl --gen-moar --gen-nqp --make-install > On 14 May 2020, at 22:08, Joseph Brenner wrote: > > I'm having trouble doing a build of raku from github. Could it > be the INSTALL.txt file is out-of-date? > > I was trying to build a "bleeding edge" Raku us

Re: bash "."?

2020-05-15 Thread Elizabeth Mattijsen
There will never be a Perl 6 version. > On 15 May 2020, at 19:33, ToddAndMargo via perl6-users > wrote: > > On 2020-05-15 01:43, Shlomi Fish wrote: >> Hi Todd! >> On Fri, 15 May 2020 00:26:28 -0700 >> ToddAndMargo via perl6-users wrote: >>> On 2020-05-14 23:57, Shlomi Fish wrote: The INI

Re: bash "."?

2020-05-15 Thread Elizabeth Mattijsen
There might be a Raku version > On 15 May 2020, at 20:08, ToddAndMargo via perl6-users > wrote: > > On 2020-05-15 10:37, Elizabeth Mattijsen wrote: >> There will never be a Perl 6 version. > > > what would you use in place of it?

Re: I need help with IO.e

2020-05-17 Thread Elizabeth Mattijsen
[11:50:21] you don.t need the .Bool, .e already returns a Bool [11:53:07]sometimes IO.someletter returns True of Fail, not False. Tacking .Bool on the end, means I don't have to remember which ones [11:57:23]True or Fail. Typo [11:58:21] A Failure is always false [12:03

Re: I need help sorting a list

2020-05-24 Thread Elizabeth Mattijsen
dd .sort: { m/ \d+ $/ } > On 24 May 2020, at 10:43, ToddAndMargo via perl6-users > wrote: > > Hi All, > > https://docs.raku.org/routine/sort > > I need help sorting a list. > > This is the list of values I want to sort: > > H:\MyDocsBackup\backup1 > H:\MyDocsBackup\backup2 > H:\MyDocsBackup

Re: I need help sorting a list

2020-05-24 Thread Elizabeth Mattijsen
t;>> This is what I want back: >>> >>> H:\MyDocsBackup\backup1 >>> H:\MyDocsBackup\backup2 >>> H:\MyDocsBackup\backup3 >>> H:\MyDocsBackup\backup6 >>> H:\MyDocsBackup\backup33 >>> H:\MyDocsBackup\backup126 >>> >>&g

Re: I reproduced one of the errors!

2020-05-31 Thread Elizabeth Mattijsen
I won't understand because I cannot learn to read, so I want everybody to adapt to me so that I can enforce my understanding to you > On 31 May 2020, at 20:40, Richard Hainsworth wrote: > > Probably more like: I won't understand if I don't read. > > On 31/05/2020 18:43, ToddAndMargo via perl6-

Re: perl6 with Rakudobrew

2020-06-12 Thread Elizabeth Mattijsen
It is my understanding that rakudobrew has been renamed to rakubrew: https://rakubrew.org Could the be the issue? > On 12 Jun 2020, at 14:59, Richard Hainsworth wrote: > > I ran into this error using Rakudobrew on appveyor (see after ) > > I'm new at using appveyor, so maybe my script is wron

Re: Help converting CArray[uint8] to Blob

2020-06-17 Thread Elizabeth Mattijsen
Shorter, and much more readable, I'd say: my Blob $blob = blob-from-carray($ed.data, size=>$ed.data_size); say "bindata = { now - INIT now }"; The term "now" is short for "DateTime.now.Instant" The INIT phaser is run when the program is started: it returns the value that was obtained f

Re: junctions and parenthesis

2020-06-22 Thread Elizabeth Mattijsen
BEGIN trait_mod:(&any, :tighter(&infix:<*>)); comes to mind, but that doesn't seem to do the trick. > On 22 Jun 2020, at 21:11, Tobias Boege wrote: > > On Mon, 22 Jun 2020, Joseph Brenner wrote: >> Patrick R. Michaud wrote: >> >>> The "any" function is just like any other function taking an a

Re: Rakudo+ versions quoted in the documentation

2020-07-04 Thread Elizabeth Mattijsen
Yes. Sadly we don't have a procedure for that in place yet :-( > On 4 Jul 2020, at 21:07, Parrot Raiser <1parr...@gmail.com> wrote: > > I just happened to look at the raku.org and raskudo.org download > pages, and noticed that both quote 2020.01 as the most recent > versions. > > Patrick Spek'

Re: cannot create an instance of subset type

2020-07-11 Thread Elizabeth Mattijsen
> On 10 Jul 2020, at 23:37, Brad Gilbert wrote: > I honestly think that there is an argument to be made that it shouldn't even > be possible to write a `subset` without a `where` clause. Making the "where" clause non-optional, is remarkably simple: removing a '?' However, there appear to be qui

Re: Raku version of "The top 10 tricks of Perl one-liners" ?!?

2020-07-22 Thread Elizabeth Mattijsen
Larry, good to see you here! Of course, I have some comments on your suggestions :-) > On 22 Jul 2020, at 21:14, Larry Wall wrote: >> Trick #5: -a >> >> -a turns on autosplit mode – perl will automatically split input >> lines on whitespace into the @F array. If you ever run in

Re: Any sign of a fix for the 10 second compile time?

2020-07-31 Thread Elizabeth Mattijsen
$ time raku -e '' real0m0.120s user0m0.111s sys 0m0.022s Doesn't take 10 seconds for me. > On 31 Jul 2020, at 03:45, ToddAndMargo via perl6-users > wrote: > > Hi All, > > Any sign of a fix for the 10 second compile time? > > Do you know if a bug has been opened on it so I can >

Re: "ICU - International Components for Unicode"

2020-09-24 Thread Elizabeth Mattijsen
https://www.codesections.com/blog/raku-unicode/ > On 24 Sep 2020, at 20:00, Joseph Brenner wrote: > > I'm not sure myself, but my first guess would be probably not...I > *think* Raku is doing it's own Unicode thing, and isn't using any > system ICU libraries (but I'm willing to stand corrected

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

2020-09-24 Thread Elizabeth Mattijsen
Feels like a regression worthy of a Rakudo issue > On 24 Sep 2020, at 20:26, Fernando Santagata > wrote: > > Hello, > > Since I upgraded to the last Rakudo I'am having a weird problem. I have a > module like this: > > unit class Class1; > etc. > > Then a second module: > > unit class Class

Re: "ICU - International Components for Unicode"

2020-09-25 Thread Elizabeth Mattijsen
> On 25 Sep 2020, at 04:25, Brad Gilbert wrote: > Rakudo does not use ICU > > It used to though. > > Rakudo used to run on Parrot. > Parrot used ICU for its Unicode features. Ah, the days. I do remember that in the Parrot days, any non-ASCII character in any string, would have a significant n

Re: Brace interpolation in strings creates a new scope?

2020-10-26 Thread Elizabeth Mattijsen
> On 26 Oct 2020, at 18:40, Sean McAfee wrote: > Is this the intended behavior? The doc page on quoting constructs just says > that values can be interpolated with braces, but (at least to my eyes) > doesn't suggest that this involves creating a new scope, or a new function, > or however it is

Re: Constructing a number from digits in an arbitrary base

2020-10-30 Thread Elizabeth Mattijsen
$ raku -e 'dd "g".parse-base(17)' 16 > On 30 Oct 2020, at 21:25, Sean McAfee wrote: > > I want to construct a number from its digits in some arbitrary base. That > is, to essentially do the inverse of this kind of polymod call: > > my @digits = $number.polymod($base xx *); > > I have a n

Re: Constructing a number from digits in an arbitrary base

2020-10-30 Thread Elizabeth Mattijsen
> On 30 Oct 2020, at 22:11, Sean McAfee wrote: > > Sorry, it seems I wasn't explicit enough. > > With polymod, I can get the values of digits even in large bases like 101: > > > 1234567890.polymod(101 xx *) > (46 20 26 87 11) > > Given a list of digit values like that, and the base, I

Re: Junctions wrapped in singleton lists

2020-11-18 Thread Elizabeth Mattijsen
This change of behaviour turned out to be a regression. This was fixed reported in https://github.com/rakudo/rakudo/issues/4039 and fixed with https://github.com/rakudo/rakudo/commit/3e10cc6f8a > On 18 Nov 2020, at 18:46, William Michels via perl6-users > wrote: > > user@mbook:~$ raku > Welc

Re: Missing NullPointerException

2020-12-03 Thread Elizabeth Mattijsen
Nil is really a Failure that doesn't throw. It indicates the absence of a value where there is one expected. That is why Nil doesn't throw. If you want to indicate a soft failure, you should use fail(). If the chain of methods you mention are core methods, and one of them is returning Nil, t

Re: Is the cosine page wrong?

2020-12-24 Thread Elizabeth Mattijsen
> On 24 Dec 2020, at 03:55, Matthias Peng wrote: > May I ask if there is any practical perl6 project running? For example, > homebrew by ruby, k8s by go, flask by python etc. https://raku-advent.blog/2020/12/20/day-20-a-raku-in-the-wild/ looks like a practical project to me.

Re: Is the cosine page wrong?

2020-12-28 Thread Elizabeth Mattijsen
❤️ > On 28 Dec 2020, at 13:54, Richard Hainsworth wrote: > > Todd, > > Some of what you have said in this email list over the years has been very > valuable. You ask questions that get some very illuminating answers. I wrote > a Module just for you (although I' still trying to get it to work

Re: Is the cosine page wrong?

2020-12-28 Thread Elizabeth Mattijsen
gt; When one goes to make a fix, and the fixer is broken, it's a bit > recursive. Can anyone cure problem #1, so I can get to step #2? :-)* > > On 12/28/20, Elizabeth Mattijsen wrote: >> ❤️ >> >>> On 28 Dec 2020, at 13:54, Richard Hainsworth >>> wrote

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-30 Thread Elizabeth Mattijsen
Thank you for the compliment. But I was merely channeling Jonathan Worthington... :-) > On 30 Dec 2020, at 14:43, Gianni Ceccarelli wrote: > > Liz is, as usual, correct: there's no reason to wait until our write > buffers are flushed (``await $conn.print``) before ``react``ing to > what's in

Re: surprise with start

2021-01-05 Thread Elizabeth Mattijsen
If those are the only lines in your program, the program will have exited before the sleep in the start has actually passed. If you change the program to: start { sleep 1; say "done"; exit } say "working"; sleep; you should also see the "done". > On 5 Jan 2021, at 14:15, Theo van

Re: Strange behaviour in REPL

2021-01-11 Thread Elizabeth Mattijsen
Agree. That's why I did https://github.com/rakudo/rakudo/commit/d53a927331 earlier today. > On 11 Jan 2021, at 18:36, Richard Hainsworth wrote: > > I want to test for a key being defined in one hash, and if it is, then it > should be a hash, and I need the value of that second key. > > So I

Re: perl.com's registration appears to have been hijacked

2021-01-30 Thread Elizabeth Mattijsen
See also: https://log.perl.org/2021/01/perlcom-hijacked.html The site is currently hosted at https://perldotcom.perl.org > On 30 Jan 2021, at 00:07, Earl Ruby wrote: > > A glance at the domain records show the contact information is now "REDACTED > FOR PRIVACY". Prior to the change Tom Christi

Re: dimensions in a multidimensional array

2021-02-05 Thread Elizabeth Mattijsen
> On 5 Feb 2021, at 15:49, Theo van den Heuvel wrote: > I cannot seem to find an idiomatic way to get the dimensions of a > multidimensional array, > other than by looking at the size of the first row and column, with > @m[0;*].elems and @m[*;0].elems. > Am I missing something in the docs? If i

Re: Weird! When legal?

2021-02-24 Thread Elizabeth Mattijsen
$ raku -e 'class samesame { hello samesame, { say "Wosup?" } }' ===SORRY!=== Error while compiling -e Undeclared routine: hello used at line 1. Did you mean 'shell'? Are you missing a comma there? Did you intend to call the "hello" subroutine, with "samesame" and the block as parameters? If

Re: documentation of internals

2021-03-07 Thread Elizabeth Mattijsen
> On 7 Mar 2021, at 00:16, Joseph Brenner wrote: > > Is there anything like an equivalent of "man perlguts" for Raku/rakudo? > > There are things like this, but they seem to be very out-of-date: > > https://github.com/rakudo/rakudo/blob/master/docs/architecture.html That is indeed severely ou

Re: Module Documentation

2021-03-16 Thread Elizabeth Mattijsen
> On 16 Mar 2021, at 04:22, Matthew Stuckwisch wrote: > > So here's my 2¢, which will probably be followed up with some actual > development of stuff (I do put my money where my mouth is… although it might > take me a while to save up to spend it ha). Some of the minor details could, > of cou

Re: too many file handles

2021-03-17 Thread Elizabeth Mattijsen
> On 17 Mar 2021, at 18:45, Richard Hainsworth wrote: > > I have been running into this error: "Too many open files" > > Sorry for the lack of detail. The problem is that the error comes up in odd > places, so I have found it difficult to golf down into Raku program that > always fails with th

Re: too many file handles

2021-03-18 Thread Elizabeth Mattijsen
> On 17 Mar 2021, at 22:02, Richard Hainsworth wrote: > > After working at this, I finally found where it was happening, and a > work-around. > > I was checking all 517 http/s links in the documentation to see whether they > are all live (not 404 and host found). For this I was using LibCurl::

Re: Comparing Int and Num

2021-05-03 Thread Elizabeth Mattijsen
[16:37:23] i'm not subscribed to the mailing list but maybe someone who is could chime in to this thread https://www.nntp.perl.org/group/perl.perl6.users/2021/04/msg9878.html and mention that i believe the problem is in libtommath's mp_get_double and the gmp branch fixes it? > On 14 Apr 2021

Re: Buf to Str

2021-06-09 Thread Elizabeth Mattijsen
> On 9 Jun 2021, at 06:34, Paul Procacci wrote: > > Hopefully a pretty quick question > > GIven the following: > > my Buf $b .= new([72, 105, 0, 32, 97, 103, 97, 105, 110, 0]); > say $b.decode; > > I would expect this to print 'Hi'. > Instead it prints 'Hi again'. > > https://docs.raku.or

Re: Notes/Questions about Leon Timmermans's talk

2021-06-09 Thread Elizabeth Mattijsen
> On 9 Jun 2021, at 12:48, Marc Chantreux wrote: > > hello, > > I just saw this and it's very good > > https://www.youtube.com/watch?v=elalwvfmYgk > > The features he picked are indeed things i really like in raku > and i learned some interesting details. Other details are still > bugging me s

Re: array and class question

2021-07-04 Thread Elizabeth Mattijsen
my $x = UupDumpClass.new; > On 4 Jul 2021, at 12:36, ToddAndMargo via perl6-users > wrote: > > Hi All, > > What I am doing wrong here? > > > class UupDumpClass { has @.arry is rw; } > (UupDumpClass) > > > my $x = UupDumpClass; > (UupDumpClass) > > > $x.arry[0] = "zero"; > Cannot look up att

Re: use lib and locations in a variable

2021-07-11 Thread Elizabeth Mattijsen
> On 11 Jul 2021, at 01:11, Joseph Brenner wrote: > > I want my test files to be able to find the modules they're testing > just using their relative locations, given the usual layout of "lib" > and "t" locations in parallel inside the project directory. > > I find that while this works: > >

Re: use lib and locations in a variable

2021-07-11 Thread Elizabeth Mattijsen
> On 12 Jul 2021, at 00:54, ToddAndMargo via perl6-users > wrote: > I want the full stinkin' path, not a dot. ".".IO.full-stinkin-path; ah, no, that should be: ".".IO.absolute

Re: use lib and locations in a variable

2021-07-13 Thread Elizabeth Mattijsen
> On 13 Jul 2021, at 19:07, Joseph Brenner wrote: > Bruce Gray points out "constant" works also: > > constant $lib_loc = $*PROGRAM.parent.add('../lib'); Yup. constant $foo = 42; is basically short for: BEGIN my $foo := 42

Re: Why does .new initialize?

2021-07-19 Thread Elizabeth Mattijsen
> On 19 Jul 2021, at 05:49, Peter Scott wrote: > > I'm curious as to why Rat.new initializes instead of leaving as undefined: > > > $*RAKU > Raku (6.d) > > my Rat $p > (Rat) > > put $p > Use of uninitialized value $p of type Rat in string context. > Methods .^name, .raku, .gist, or .say can be u

Re: Depreciated code????

2021-07-27 Thread Elizabeth Mattijsen
Read the error message! "/home/linuxutil/p6lib/RunNoShellLib.pm6 (RunNoShellLib), line 148" What does that line say? > On 27 Jul 2021, at 02:29, ToddAndMargo via perl6-users > wrote: > > On 7/26/21 5:21 PM, ToddAndMargo via perl6-users wrote: >> Hi All, >> $ raku -v >> Welcome to 𝐑𝐚𝐤𝐮𝐝𝐨™ v202

Re: Depreciated code????

2021-07-27 Thread Elizabeth Mattijsen
f deprecated code >>>> adapted, so that this message will disappear! >>>> 148: ( $ReturnStr, $ReturnErr, $RtnCode ) = RunNoShellAll( $RunString, >>>> True, False, True ); >>>> Confused, >>>> -T > > >>> On 27

Re: ^mro_unhidden

2021-08-21 Thread Elizabeth Mattijsen
> On 21 Aug 2021, at 20:03, Joseph Brenner wrote: > > Given and example like this: > > class A {} > class B is A {} > class D is B {} > > say D.^parents(); # ((B) (A)) > say D.^parents( :all ); # ((B) (A) (Any) (Mu)) > > So, I conclude that Any and Mu are "hidden" as far as ^parents is co

Re: can u suggest a beginner book for perl6?

2021-09-29 Thread Elizabeth Mattijsen
Perhaps Think Raku: https://greenteapress.com/wp/think-perl-6/ ? > On 29 Sep 2021, at 14:18, Walt CH wrote: > > I have some ruby programming experience, and some JS. > can you suggest a book for newbie of perl6? > > Thanks

Re: junctions with given/when

2021-11-05 Thread Elizabeth Mattijsen
If this pull request is merged: https://github.com/rakudo/rakudo/pull/4620 you will get a deprecation notice at the end of your program of the locations in your code that need changing. Liz > On 5 Nov 2021, at 19:54, Joseph Brenner wrote: > > Yes, this feels like natural Raku code to a lo

Re: Delegation

2021-11-26 Thread Elizabeth Mattijsen
You mean like: say &infix:<+>(has 42,137); # 179 ?? If so, by referring to its full name :-) > On 26 Nov 2021, at 15:07, rir wrote: > > Is it possible to to delegate plain or overridden operators? If so, > what does the syntax look like? > > Rob

Re: Delegation

2021-11-26 Thread Elizabeth Mattijsen
:30, rir wrote: > > Wow, that was a surprise. Thanks. > > But I was on this path: > >class Not-really-real { >has Real $value handles &infix:<=>; >} > > Rob > > > On Fri, Nov 26, 2021 at 03:15:32PM +0100, Elizabeth Matt

Re: Phasers Suggestions

2021-12-12 Thread Elizabeth Mattijsen
I suggest making this a problem-solving issue: https://github.com/raku/problem-solving > On 11 Dec 2021, at 05:48, Timothy Nelson wrote: > > Hi all. > > I've been lurking on this list for years (and once won an "oldest resurrected > conversation" award). I've loved Raku conceptually since

Re: Date.new("2024-02-29").later( :1year)

2021-12-13 Thread Elizabeth Mattijsen
> On 13 Dec 2021, at 05:23, rir wrote: > > > REPL says: >> Date.new("2024-02-29").later( :1year); >2025-02-28 > > Is the following some standard? I'm not sure... Basically when moving by month / year, it just basically moves that field in the date, and then checks for validity of the res

Re: Merry Xmas day

2021-12-21 Thread Elizabeth Mattijsen
Planned are: - more optimizations based on new-disp - the RakuAST branch will land, bringing better composability and full-blown macros - the next language version will be released: probably called "6.e" Non-core developments I see: - support for Raku Ecosystem Archive integrated into zef - IRC

Re: is 'use v6' still a thing?

2021-12-28 Thread Elizabeth Mattijsen
Personally, I don't add it anywhere anymore. Especially in files with the .raku, .rakumod and .rakutest extensions :-) > On 28 Dec 2021, at 17:59, Marc Chantreux wrote: > > hello people, > > long time ago, there was this 'use v6' line so perl should be v6 and > still run v5.* things. > > I j

Re: file format extensions

2021-12-30 Thread Elizabeth Mattijsen
+1 from me. Shouldn't that be a .rakudoc file ? :-) > On 30 Dec 2021, at 12:20, Richard Hainsworth wrote: > > I'm revising how I name files that are included in my modules. With the name > change to Raku, the file extensions also changed for script and module files. > > In addition Jonathan

Re: Should I start learning Perl?

2022-01-01 Thread Elizabeth Mattijsen
If you're looking for Perl, you're probably on the wrong mailing list: I suggest you try "perl.beginners". > On 1 Jan 2022, at 10:42, Turritopsis Dohrnii Teo En Ming > wrote: > > Subject: Should I start learning Perl? > > Good day from Singapore, > > I am thinking of learning Perl. May I kno

Re: probably worth a bug report ?

2022-01-02 Thread Elizabeth Mattijsen
Maybe first explain why the error: When you specify a Pair as such as an argument, it is interpreted as a *named* argument. $ raku -e 'sub a(|c) { dd c }; a b => 42' \(:b(42)) So thus you can see why the error is thrown: you passed 0 positional arguments to the subroutine, and it neve

Re: show all drive letters and labels

2022-02-09 Thread Elizabeth Mattijsen
What would you use on a command-line to get that information? Then look at https://docs.raku.org/routine/run Liz > On 9 Feb 2022, at 12:37, ToddAndMargo via perl6-users > wrote: > > Hi All, > > Windows 7,10,11 > > Do we have a command/function that will show all drive > letter and their lab

Re: show all drive letters and labels

2022-02-10 Thread Elizabeth Mattijsen
> So I was really hoping for a built in system32 call. > I really, really don't care for the the trouble > associated with using the "C" interface to call > system 32 dll's, but I may have to. One of the things that Raku tries to do, is to be ignorant about the underlying OS. Having a system32 D

Re: show all drive letters and labels

2022-02-10 Thread Elizabeth Mattijsen
> On 10 Feb 2022, at 11:10, ToddAndMargo via perl6-users > wrote: > That is an interesting module. I am not sure what > I would use it for though. Maybe in the future. > It is a method of find out what a drive is. > > What I was after was finding the drive letter that > corresponded to a logic

Re: coercion

2022-02-11 Thread Elizabeth Mattijsen
It is being tested in Roast, so I'd say it's not really that experimental anymore :-) > On 11 Feb 2022, at 15:20, Marcel Timmerman wrote: > > Hi, > > I stumbled over a discussion between Raku developers on > "Raku/proplem-solving" issue 227 "Coercion reconsidered and unified" and I > saw so

Re: Help with promises, supplies and channels.

2022-04-07 Thread Elizabeth Mattijsen
Fixed with https://github.com/rakudo/rakudo/commit/5658f4da07b44d492a3d35d57fa76939822d2c66 Thanks for the report! > On 7 Apr 2022, at 11:28, David Emanuel da Costa Santiago > wrote: > > > Thanks for the information! > > I opened a bug in rakudo: > > https://github.com/rakudo/rakudo/issues

Re: Dual Buf and Str question

2022-06-10 Thread Elizabeth Mattijsen
Perhaps https://raku.land/zef:raku-community-modules/Pythonic::Str is what you're after? > On 10 Jun 2022, at 07:54, ToddAndMargo via perl6-users > wrote: > > Hi All, > > I can easily get away with this in Modula2, but > how can I do this with Raku? > > I wish to create a single variable th

Re: Dual Buf and Str question

2022-06-10 Thread Elizabeth Mattijsen
I can think of ways to do this, but it would >>> require separate variable and conversions routines >>> back and forth. >>> >>> Any words of Raku wisdom? >>> >>> Many thanks, >>> -T > > On 6/10/22 01:23, Elizabeth Mattijsen wrote: >&

Re: Easier way to load a buffer?

2022-06-10 Thread Elizabeth Mattijsen
> On 10 Jun 2022, at 22:47, ToddAndMargo via perl6-users > wrote: > >>> On Fri, 10 Jun 2022 at 15:49, ToddAndMargo via perl6-users >>> mailto:perl6-users@perl.org>> wrote: >>>Hi All, >>>I am looking for an easier way to load a buffer. >>>I know about this way >>>[4] > my Buf

Re: Easier way to load a buffer?

2022-06-10 Thread Elizabeth Mattijsen
> On 10 Jun 2022, at 23:28, ToddAndMargo via perl6-users > wrote: > >>> On Fri, 10 Jun 2022 at 15:49, ToddAndMargo via perl6-users >>> mailto:perl6-users@perl.org>> wrote: >>>Hi All, >>>I am looking for an easier way to load a buffer. >>>I know about this way >>>[4] > my Buf

Re: Using fez

2022-07-10 Thread Elizabeth Mattijsen
> On 10 Jul 2022, at 17:38, Richard Hainsworth wrote: > I have begun uploading modules to fez. Good to hear! If that is a module that was on the p6c ecosystem before, please let me know, so that we can remove it from the p6c ecosystem. > Suppose a module is in active development. And I have v

Re: Using fez

2022-07-10 Thread Elizabeth Mattijsen
Ah, indeed I did. Using App::Mi6 is so ingrained in me (and before that "cpan-upload"), that it is hard for me to imagine any other situation :-) Liz > On 10 Jul 2022, at 21:41, Vadim Belman wrote: > > Hi, > > Liz has probably missed the point of your question. Yes, you must do fez > uplo

Re: Using fez

2022-07-12 Thread Elizabeth Mattijsen
That is correct. > On 12 Jul 2022, at 03:52, Darren Duncan wrote: > > On 2022-07-10 10:56 a.m., Elizabeth Mattijsen wrote: >> Fez (aka https://360.zef.pm) will provide *all* versions. > > The above url just displays a big data structure when visiting it in a web > b

Re: Rakudoc - make the naming consistent

2022-07-19 Thread Elizabeth Mattijsen
> On 19 Jul 2022, at 20:49, ToddAndMargo via perl6-users > wrote: > As an aside, Raku still reads my Perl 5 ".pm" > modules before reading my Raku ".pm6" modules. > Raku default to ".pm" before ".pm6". The > compiler wags its finger at me a lot! > > So I have to segregate my ".pm6" modules > in

Re: something between run and qx() ?

2022-08-04 Thread Elizabeth Mattijsen
> On 4 Aug 2022, at 10:35, Marc Chantreux wrote: > > hello people, > > I found myself choosing between > > raku -e ' > (run :out, < > dpkg-query -f ${db-fsys:Files} -W gnuplot* > > ).out>>.lines>>.trim>>.grep(*.IO.f)>>.say' > > and > > raku -e ' > qx< >

Re: something between run and qx() ?

2022-08-04 Thread Elizabeth Mattijsen
> On 4 Aug 2022, at 14:38, Marc Chantreux wrote: > It would be nice to define a backtrick operator (like in rc) so we > could write > > my @installed-files = > grep *.IO.f, > map *.trim, > `< dpkg-query -f ${db-fsys:Files} -W gnuplot* >; > > insead

Re: CompUnit::Repository::Perl5 ???

2022-08-08 Thread Elizabeth Mattijsen
So that you can transparently say "use DBI:from" > On 9 Aug 2022, at 06:19, ToddAndMargo via perl6-users > wrote: > > $ raku -Msigpipe -e 'loop { say "y"}' | sed 3q > ===SORRY!=== Error while compiling -e > Could not find sigpipe in: >/home/tony/.raku >/opt/rakudo-pkg/share/perl6/site >

Re: CompUnit::Repository::Perl5 ???

2022-08-09 Thread Elizabeth Mattijsen
gt;>>CompUnit::Repository::NQP<63797000> >>>CompUnit::Repository::Perl5<63797040> >>> at -e:1 >>> >>> >>> Why are we looking in perl 5? > > > On 8/8/22 23:52, Elizabeth Mattijsen wrote: > > So that you can tran

Re: CompUnit::Repository::Perl5 ???

2022-08-09 Thread Elizabeth Mattijsen
Good chance it will if: a. that works in plain Perl b. you have Inline::Perl5 installed c. you do "use Net::FTP:from" d. you change -> to . > On 9 Aug 2022, at 11:46, ToddAndMargo via perl6-users > wrote: > > On 8/9/22 00:56, Elizabeth Mattijsen wrote: &g

Re: I can't 'zef uninstall' old versions of modules anymore

2022-08-09 Thread Elizabeth Mattijsen
> On 9 Aug 2022, at 13:53, Fernando Santagata wrote: > > Hello, > > I'm trying to uninstall old versions of some modules; it looks like it's > working but in reality it isn't. For example, but it's not limited to just > this module: > > $ zef list --installed|grep CBOR > ===> Found via /opt/r

Re: I can't 'zef uninstall' old versions of modules anymore

2022-08-09 Thread Elizabeth Mattijsen
> On 9 Aug 2022, at 15:10, Fernando Santagata wrote: > > On Tue, Aug 9, 2022 at 2:13 PM Elizabeth Mattijsen wrote: > > On 9 Aug 2022, at 13:53, Fernando Santagata > > wrote: > > > > Hello, > > > > I'm trying to uninstall old versions of

Re: BEGIN {} question

2022-08-29 Thread Elizabeth Mattijsen
> Question, would BEGIN go at the top or the bottom > of my code? Seems the compiler would hit it first > at the top, but I do not know if it makes a full > pass of everything before firing off the BEGIN. BEGIN runs at *compile* time. This means that anything before the BEGIN statement in the co

Re: Ping Larry Wall: excessive compile times

2022-08-29 Thread Elizabeth Mattijsen
> Since you wrote both Perl 5 and Perl 6, is there some > reason beyond my limited understanding of how these > things work as to why your Perl 5 is so much faster to > compile that your Perl 6? You clearly understand the situation! What can I say? Ah, I know. *PLONK* Liz

Re: BEGIN {} question

2022-09-02 Thread Elizabeth Mattijsen
. > > The guys on the chat line said this is normal > as `BEGIN` runs a compile time How short *is* your memory? > From: Elizabeth Mattijsen > Subject: Re: BEGIN {} question > Date: 29 August 2022 at 09:44:30 CEST > To: ToddAndMargo via perl6-users > >> Question, wo

Re: Using Inline::Python

2022-09-09 Thread Elizabeth Mattijsen
To rule out any REPL artefacts, do you see the same thing if you put the code in a script and run the script? > On 9 Sep 2022, at 20:17, Sean McAfee wrote: > > Hello-- > > I recently started playing around with PySpark. It soon occurred to me that > it would be a lot more fun to work in Raku

Re: Using Inline::Python

2022-09-09 Thread Elizabeth Mattijsen
mention, this is on a somewhat old version of Raku, 2021.04. But > then, Inline::Python seems to be mostly even older. > > > On Fri, Sep 9, 2022 at 11:35 AM Elizabeth Mattijsen wrote: > To rule out any REPL artefacts, do you see the same thing if you put the code > in a script a

Re: Using Inline::Python

2022-09-09 Thread Elizabeth Mattijsen
a native unsigned integer"). It looks like this > somewhat old but unaddressed open issue: > https://github.com/niner/Inline-Python/issues/44. There was a suggestion to > add --force-test to override. I tried that and returned to the previous > status quo: empty array, "insta

Re: JPEG meta-data timestamps

2022-10-08 Thread Elizabeth Mattijsen
Are there any in Perl? If so, maybe you can use them with Inline::Perl5 ? > On 8 Oct 2022, at 22:20, rir wrote: > > Are there any Raku modules for extracting meta-data from > JPEG files? I have looked but not found. > > At this point, I just want to extract dates to re-timestamp > the files.

Re: Problem defining factorial operator in .rakumod file

2022-10-14 Thread Elizabeth Mattijsen
I cannot reproduce: % cat lib/A.rakumod sub postfix: ($n) is export { when $n == 0 {return 1} default {$n * ($n - 1)!} } % raku -e 'use lib "lib"; use A; say 42!' 14050061177528798985431426062445115699363840 % raku -v Welcome to Rakudo™ v2022.07-64-gce1af0fa0. Implementing the Rak

Re: Problem defining factorial operator in .rakumod file

2022-10-14 Thread Elizabeth Mattijsen
> On 14 Oct 2022, at 20:35, Joseph Polanik wrote: > Each of these results is correct. So, the problem remains that some subs are > not found when invoked either from a test script or from the REPL. > > Is there some cache that I must clear when changing a .rakumod file to > prevent my system fr

Re: Problem defining factorial operator in .rakumod file

2022-10-14 Thread Elizabeth Mattijsen
> On 14 Oct 2022, at 21:15, Joseph Polanik wrote: > Actually, I did create a factorial() sub, but that didn't get me out of my > present predicament. It works as expected when invoked from the command line. > However, when invoked from a test script (or the REPL) the error message is > "Undecla

Re: Problem defining factorial operator in .rakumod file

2022-10-14 Thread Elizabeth Mattijsen
> On 14 Oct 2022, at 22:05, Joseph Polanik wrote: > > On 10/14/22 3:38 PM, Elizabeth Mattijsen wrote: >>> On 14 Oct 2022, at 21:15, Joseph Polanik wrote: >>> Actually, I did create a factorial() sub, but that didn't get me out of my >>> prese

Re: Problem defining factorial operator in .rakumod file

2022-10-14 Thread Elizabeth Mattijsen
> On 14 Oct 2022, at 22:23, Joseph Polanik wrote: > > On 10/14/22 4:15 PM, Elizabeth Mattijsen wrote: > >> The script Run/run_SequenceHelper.raku contains only the following lines >>> use lib '~/Documents/myRaku/gitHub/SequenceHelper/lib'; >>> us

Re: how do I do a literal string in the target of a regex?

2022-10-29 Thread Elizabeth Mattijsen
$ echo "a/b/c/d" | raku -ne 'say .subst("/", Q/\\\/, :g)' > On 29 Oct 2022, at 22:02, ToddAndMargo via perl6-users > wrote: > > Hi All, > > I am trying to change > > / > > into > > \\\ > > This works: > > > $ echo "a/b/c/d" | raku -ne 'my $x=$_; $x~~s:g|$(Q[/])|\\|;print $x ~

Re: how do I do a literal string in the target of a regex?

2022-10-29 Thread Elizabeth Mattijsen
quot;' >>> a\\\b\\\c\\\d >>> >>> >>> But this does not: >>> >>> $ echo "a/b/c/d" | raku -ne 'my $x=$_; $x~~s:g|$(Q[/])|Q[\\\]|;print $x ~ >>> "\n"' >>> aQ[\]bQ[\]cQ[\]d >>> >>

Re: regex: how to I pick out items in the middle?

2022-10-30 Thread Elizabeth Mattijsen
> Which brings me back to the other of my criticisms > of the documentation. The examples are high level > users showing off their skills making for a totally > useless example for beginners. They should show a > simple example and then work up to the show off stuff. On that note, OOC, what do

Re: What is this "\t"?

2022-11-29 Thread Elizabeth Mattijsen
Perhaps it would make sense to export these to a separate Gnome::Constants module? > On 29 Nov 2022, at 15:05, Marcel Timmerman wrote: > > On 29-11-2022 10:13, Francis Grizzly Smit wrote: > > Hi Francis, >> >> Personally I never use \name are I hate how it looks, and so far I have >> never n

Re: $/ not always set after a regex match?

2022-12-28 Thread Elizabeth Mattijsen
This isn't specific to the REPL: $ raku -e 'say 1 ... /9/; say $/' (1 2 3 4 5 6 7 8 9) Nil I can only assume that the sequence has its own scope for $/, and thus isn't visible outside of it. Liz > On 28 Dec 2022, at 16:47, Sean McAfee wrote: > > In a fresh 2022.12 Raku REPL, when the endpoi

Re: $/ not always set after a regex match?

2022-12-28 Thread Elizabeth Mattijsen
t; The * ~~ "trick" sets $/ in these cases too. > > > On Wed, Dec 28, 2022 at 12:01 PM Elizabeth Mattijsen wrote: > This isn't specific to the REPL: > > $ raku -e 'say 1 ... /9/; say $/' > (1 2 3 4 5 6 7 8 9) > Nil > > I can only assume t

Re: $/ not always set after a regex match?

2022-12-28 Thread Elizabeth Mattijsen
lliam Michels wrote: > > Doesn't it have to? At least for the following case? > > [0] > #REPL > Nil > [0] > say $/.Str if 9 ~~ /9/; > 9 > > Best regards. --B > > On Wed, Dec 28, 2022, 09:49 Elizabeth Mattijsen wrote: > That's because i

Re: $/ not always set after a regex match?

2022-12-30 Thread Elizabeth Mattijsen
> implemented in details, but most likely the regex is processed inside the > sequence iterator which owns the $/ used by the regex eventually. > > Best regards, > Vadim Belman > >> On Dec 28, 2022, at 12:49 PM, Elizabeth Mattijsen wrote: >> >> That's

Re: `lines.contains( / \h / )` returning True for input strings not containing horizonal whitespace

2023-01-28 Thread Elizabeth Mattijsen
lines.contains... is really short for: lines.Str.contains... Do you then understand what's going on? > On 28 Jan 2023, at 21:41, William Michels via perl6-users > wrote: > > Some more examples: > > ~$ raku -e 'put "1\n2\n3";' | raku -e 'lines.contains(/ \h /).put;' > True > ~$ raku -e 'put

Re: Upcoming documentation meetings

2023-02-01 Thread Elizabeth Mattijsen
> On 2 Feb 2023, at 00:53, Ralph Mellor wrote: > I looked at Jitsi when vrurg suggested it for their Core class. > It required an international phone call. ??? I've never had to make *any* phone call to be able to use Jitsi. And the RSC uses it every 2 weeks or so. Liz

  1   2   3   4   >