Re: BEGIN {} question

2022-09-02 Thread ToddAndMargo via perl6-users
On 9/1/22 20:16, Andinus via perl6-users wrote: ToddAndMargo via perl6-users @ 2022-09-01 10:30 -07: On 9/1/22 00:45, Richard Hainsworth wrote: Treat the regexes as data for a program. Compile the program once. Run the regexes as often as you need. Please elucidate. That could save me

sprintf and print question

2022-09-01 Thread ToddAndMargo via perl6-users
Hi All, Is there a cleaner way to do this? $ raku -e 'print( (sprintf "%.4s", "andefghi" ) ~ "\n";)' ande I want to print the first four letter s to STDOUT. -T

Re: BEGIN {} question

2022-09-01 Thread ToddAndMargo via perl6-users
On 9/1/22 00:45, Richard Hainsworth wrote: Raku and Perl are two different languages in the same family. They evolved with different targets, perl to react quickly to internet requests, Raku to be a better programming language. This may not be the take the actual developers have, but it's what

Re: BEGIN {} question

2022-09-01 Thread ToddAndMargo via perl6-users
On 9/1/22 00:45, Richard Hainsworth wrote: Work with Raku rather than expect it to be the same as Perl. Oh I intent too! I program in Top Down. Perl 5's subroutines are a nightmare. I ADORE Perl 6's subroutines. By saying above / below, this indicates a linear view of code at the same

Re: BEGIN {} question

2022-08-30 Thread ToddAndMargo via perl6-users
On 8/30/22 13:34, Richard Hainsworth wrote: Hi Todd, Long time no see. Re your 'keeper'. There is a reason why things are called the way they are in Raku (aka Perl6). BEGIN is NOT a special subroutine. BEGIN is a phaser. And it introduces a block. Blocks are not subroutines (subs). Even

Re: Ping Larry Wall: excessive compile times

2022-08-30 Thread ToddAndMargo via perl6-users
On 8/30/22 07:45, Parrot Raiser wrote: Surely Jonathan Worthington (or one of the other people who've worked on the compiler) would be in a better position to answer this sort of question. Assuming that you write in a normal "interpreted-language" style, (i.e. gradually adding features,

Re: Ping Larry Wall: excessive compile times

2022-08-29 Thread ToddAndMargo via perl6-users
On 8/29/22 19:58, ToddAndMargo via perl6-users wrote: On 8/29/22 19:26, Brad Gilbert wrote: The Raku compiler is written in Raku (to an extent) so no it can't be toned down. I've been out of the loop for a while, but there has been work to make the compiler use a better design which should

Re: Ping Larry Wall: excessive compile times

2022-08-29 Thread ToddAndMargo via perl6-users
On 8/29/22 19:26, Brad Gilbert wrote: The Raku compiler is written in Raku (to an extent) so no it can't be toned down. I've been out of the loop for a while, but there has been work to make the compiler use a better design which should be more optimizable. Awesome.

Re: BEGIN {} question

2022-08-29 Thread ToddAndMargo via perl6-users
On 8/28/22 15:58, ToddAndMargo via perl6-users wrote: Hi All, I am thinking of using    BEGIN {} to fire up a splash screen (libnotify). Question: is what happens between the brackets isolated from the rest of the code?   If I set variable values or declare variables, are they wiped out

Re: BEGIN {} question

2022-08-29 Thread ToddAndMargo via perl6-users
On 8/29/22 13:03, ToddAndMargo via perl6-users wrote: On 8/28/22 15:58, ToddAndMargo via perl6-users wrote: Hi All, I am thinking of using     BEGIN {} to fire up a splash screen (libnotify). Question: is what happens between the brackets isolated from the rest of the code?   If I set

Re: detach?

2022-08-29 Thread ToddAndMargo via perl6-users
On 8/29/22 17:59, ToddAndMargo via perl6-users wrote: Hi All, How do I trigger and detach and external program from inside Raku?  I want the program to go off on its own and I do not want any results back from it. Many thanks, -T Figured it out with `shell` but not `run` (I want both for my

detach?

2022-08-29 Thread ToddAndMargo via perl6-users
Hi All, How do I trigger and detach and external program from inside Raku? I want the program to go off on its own and I do not want any results back from it. Many thanks, -T

Re: BEGIN {} question

2022-08-29 Thread ToddAndMargo via perl6-users
On 8/28/22 15:58, ToddAndMargo via perl6-users wrote: Hi All, I am thinking of using    BEGIN {} to fire up a splash screen (libnotify). Question: is what happens between the brackets isolated from the rest of the code?   If I set variable values or declare variables, are they wiped out

Re: exe?

2022-08-29 Thread ToddAndMargo via perl6-users
On 8/28/22 09:21, ToddAndMargo via perl6-users wrote: Hi All, Is there a way to convert a Windows Raku program to to an executable (.exe) file? Many thanks, -T My target is to create a diaglog box with GLADE that allow for certain Windows registry settings to be set by the users with a GUI

Re: Ping Larry Wall: excessive compile times

2022-08-29 Thread ToddAndMargo via perl6-users
On 8/29/22 11:50, Brad Gilbert wrote: Actually Raku is faster to compile than Perl5. If you consider all of the features it comes with. For example, in Raku everything is an object with meta features. If you add Moose or similar to Perl5 then the compile times will often take longer than the

Re: BEGIN {} question

2022-08-29 Thread ToddAndMargo via perl6-users
On 8/29/22 10:45, Tom Browder wrote: On Mon, Aug 29, 2022 at 12:31 PM ToddAndMargo via perl6-users wrote: On 8/29/22 08:41, Tom Browder wrote: ... And I think you may be surprised how much speedup you may get by using the precompiled-module "trick" for most of your 11,000-li

Re: BEGIN {} question

2022-08-29 Thread ToddAndMargo via perl6-users
On 8/29/22 08:41, Tom Browder wrote: On Mon, Aug 29, 2022 at 10:29 AM ToddAndMargo via perl6-users mailto:perl6-users@perl.org>> wrote: ... > Does the compiler make a full pass through > the code before firing off the BEGIN routine NO. And I think you may be surprised how much

Ping Larry Wall: excessive compile times

2022-08-29 Thread ToddAndMargo via perl6-users
Dear Larry Wall, Sorry for writing you directly, but I know you sometimes answer questions on this mailing list. And those answers are uniquely easy for a beginner to understand. The compile times of Perl5 and Perl6 are dramatically different. Perl 5 is literally 100 times or more faster than

Re: BEGIN {} question

2022-08-29 Thread ToddAndMargo via perl6-users
On 8/29/22 00:44, Elizabeth Mattijsen wrote: 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

Re: BEGIN {} question

2022-08-28 Thread ToddAndMargo via perl6-users
On 8/28/22 19:11, Bruce Gray wrote: On Aug 28, 2022, at 5:58 PM, ToddAndMargo via perl6-users wrote: Hi All, I am thinking of using BEGIN {} to fire up a splash screen (libnotify). Question: is what happens between the brackets isolated from the rest of the code? If I set variable

BEGIN {} question

2022-08-28 Thread ToddAndMargo via perl6-users
Hi All, I am thinking of using BEGIN {} to fire up a splash screen (libnotify). Question: is what happens between the brackets isolated from the rest of the code? If I set variable values or declare variables, are they wiped out, etc.? Many thanks, -T --

exe?

2022-08-28 Thread ToddAndMargo via perl6-users
Hi All, Is there a way to convert a Windows Raku program to to an executable (.exe) file? Many thanks, -T -- ~~ Computers are like air conditioners. They malfunction when you open windows ~~

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

2022-08-09 Thread ToddAndMargo via perl6-users
On 8/9/22 03:09, Elizabeth Mattijsen wrote: 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 . Thank you! I always had fit trying to understand Perl 5's OOP and a lot of guys tried to get me to use it.

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

2022-08-09 Thread ToddAndMargo via perl6-users
On 8/9/22 00:56, Elizabeth Mattijsen wrote: On 9 Aug 2022, at 09:24, ToddAndMargo via perl6-users wrote: 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:

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

2022-08-09 Thread ToddAndMargo via perl6-users
On 8/9/22 00:56, Elizabeth Mattijsen wrote: On 9 Aug 2022, at 09:24, ToddAndMargo via perl6-users wrote: 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:

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

2022-08-09 Thread ToddAndMargo via perl6-users
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 /opt/rakudo-pkg/share/perl6/vendor /opt/

CompUnit::Repository::Perl5 ???

2022-08-08 Thread ToddAndMargo via perl6-users
$ 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 /opt/rakudo-pkg/share/perl6/vendor /opt/rakudo-pkg/share/perl6/core CompUnit::Repository::AbsolutePath<71837872>

Re: Rakudoc - make the naming consistent

2022-07-19 Thread ToddAndMargo via perl6-users
On 7/19/22 12:00, Elizabeth Mattijsen wrote: Could it be that you have a "Foo.pm" in an "earlier" directory and a "Foo.pm6" in a later directory in the $*REPO chain? Hi Elizabeth, p6 'say $*REPO' inst#/home/todd/.raku I do not add my modules to the chain as I am ALWAYS tweaking them. I put

Re: Rakudoc - make the naming consistent

2022-07-19 Thread ToddAndMargo via perl6-users
On 7/19/22 11:13, Richard Hainsworth wrote: pm6 -> rakumod. Hi Richard, +1 on Richards naming scheme. 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

Re: Confused after consuming hashish

2022-07-07 Thread ToddAndMargo via perl6-users
On 7/6/22 19:54, rir wrote: I don't know what the free-standing '%' means; Me either. If this is your first time using associated arrays (hashes), this is my Keeper on the subject, HTH, -T 12/08/2019: Perl 6 Hashes (associative arrays): References:

Re: What is `Γäó`?

2022-07-04 Thread ToddAndMargo via perl6-users
On Fri, Jul 1, 2022 at 8:10 PM ToddAndMargo via perl6-users wrote: On Fri, Jul 1, 2022 at 7:34 PM ToddAndMargo via perl6-users mailto:perl6-users@perl.org>> wrote: Hi All, Windows 10 Pro - 21H2 RakudoMoar-2022.06.01-win-x86_64-msvc.msi > raku -v

OAuth2 ???

2022-07-01 Thread ToddAndMargo via perl6-users
Hi All, Due to Google's decision to drop what they call "less secure apps" (they are not with a hard password): https://support.google.com/accounts/answer/6010255?hl=en#zippy=%2Cif-less-secure-app-access-is-on-for-your-account Most of my customer are using gMail and g-suite, which is also

Re: What is `Γäó`?

2022-07-01 Thread ToddAndMargo via perl6-users
On Fri, Jul 1, 2022 at 7:34 PM ToddAndMargo via perl6-users mailto:perl6-users@perl.org>> wrote: Hi All, Windows 10 Pro - 21H2 RakudoMoar-2022.06.01-win-x86_64-msvc.msi > raku -v Welcome to Rakudo™ v2022.06. Implementing the Raku® Programming Lang

Re: What is `Γäó`?

2022-07-01 Thread ToddAndMargo via perl6-users
On Sat, 2 Jul 2022, at 09:34, ToddAndMargo via perl6-users wrote: Hi All, Windows 10 Pro - 21H2 RakudoMoar-2022.06.01-win-x86_64-msvc.msi > raku -v Welcome to Rakudo™ v2022.06. Implementing the Raku® Programming Language v6.d. Built on MoarVM version 2022.06. What is `™`? Inquir

What is `Γäó`?

2022-07-01 Thread ToddAndMargo via perl6-users
Hi All, Windows 10 Pro - 21H2 RakudoMoar-2022.06.01-win-x86_64-msvc.msi > raku -v Welcome to Rakudo™ v2022.06. Implementing the Raku® Programming Language v6.d. Built on MoarVM version 2022.06. What is `™`? Inquiring minds want to know. -T -- ~~

Re: encode $encoding list ???

2022-06-20 Thread ToddAndMargo via perl6-users
On 6/20/22 00:36, William Michels wrote: On Sun, Jun 19, 2022 at 11:00 PM ToddAndMargo via perl6-users mailto:perl6-users@perl.org>> wrote: On 6/19/22 21:49, William Michels via perl6-users wrote: > Hi Todd, I'm trying to follow what you're doing (below in Ter

Re: encode $encoding list ???

2022-06-20 Thread ToddAndMargo via perl6-users
On 6/19/22 23:11, Kevin Pye wrote: On Mon, 20 Jun 2022, at 15:59, ToddAndMargo via perl6-users wrote: I had to use "utf8-c8" to keep the line from crashing. Well, any of "iso-8859-1" (or "latin-1"), "windows-1251", "windows-1252" or &quo

Re: encode $encoding list ???

2022-06-20 Thread ToddAndMargo via perl6-users
251 252 67 253)» The output I actually see is: A�xFAB�xFB�xFCC�xFD If I go into /tmp and look at the file created, it contains the following single line: AúBûüCý HTH, Bill. On Sun, Jun 19, 2022 at 8:42 PM ToddAndMargo via perl6-users mailto:perl6-users@perl.org>> wrote:  >print

Re: encode $encoding list ???

2022-06-19 Thread ToddAndMargo via perl6-users
>print Buf.new(0x84, 0x73, 0x77, 0x84, 0x79).decode("utf8-c8") ~ "\n" �x84sw�x84y

Re: encode $encoding list ???

2022-06-19 Thread ToddAndMargo via perl6-users
On 6/19/22 02:30, William Michels via perl6-users wrote: On Sun, Jun 19, 2022 at 2:16 AM ToddAndMargo via perl6-users wrote: On 6/19/22 02:14, ToddAndMargo via perl6-users wrote: On Sun, Jun 19, 2022 at 12:55 AM ToddAndMargo via perl6-users wrote: Hi All, https://docs.raku.org/routine

My How To on Buffers

2022-06-19 Thread ToddAndMargo via perl6-users
Hi All, If you were wondering what I was up to, this is it. This is originally in Open Document Test (.odt) format, so I do not know how well it will translate to text. If you want the original document, I will email it to you. It is a lot pretties and you can on the Table of Contents to jump

Re: Hex string to buf question

2022-06-19 Thread ToddAndMargo via perl6-users
On 6/19/22 03:06, ToddAndMargo via perl6-users wrote: On 6/19/22 00:33, ToddAndMargo via perl6-users wrote: Hi All, I have a string:  > my Str $x = "1BB67AE85A"; 1BB67AE85A which has the hexadecimal values I want to add to a buffer:  > my buf8 $y = buf8.new($x.base(16))

Re: Hex string to buf question

2022-06-19 Thread ToddAndMargo via perl6-users
On 6/19/22 00:33, ToddAndMargo via perl6-users wrote: Hi All, I have a string: > my Str $x = "1BB67AE85A"; 1BB67AE85A which has the hexadecimal values I want to add to a buffer: > my buf8 $y = buf8.new($x.base(16)); No such method 'base' for invocant of type 'Str'. 

Re: Hex string to buf question

2022-06-19 Thread ToddAndMargo via perl6-users
On 6/19/22 00:33, ToddAndMargo via perl6-users wrote: Hi All, I have a string: > my Str $x = "1BB67AE85A"; 1BB67AE85A which has the hexadecimal values I want to add to a buffer: > my buf8 $y = buf8.new($x.base(16)); No such method 'base' for invocant of type 'Str'. 

Re: encode $encoding list ???

2022-06-19 Thread ToddAndMargo via perl6-users
On 6/19/22 02:14, ToddAndMargo via perl6-users wrote: On Sun, Jun 19, 2022 at 12:55 AM ToddAndMargo via perl6-users wrote: Hi All, https://docs.raku.org/routine/encode multi method encode(Str:D $encoding = 'utf8', :$replacement, Bool() :$translate-nl = False, :$strict) shows "

Re: encode $encoding list ???

2022-06-19 Thread ToddAndMargo via perl6-users
On Sun, Jun 19, 2022 at 12:55 AM ToddAndMargo via perl6-users wrote: Hi All, https://docs.raku.org/routine/encode multi method encode(Str:D $encoding = 'utf8', :$replacement, Bool() :$translate-nl = False, :$strict) shows "ascii" and "utf8" as possible values for

encode $encoding list ???

2022-06-19 Thread ToddAndMargo via perl6-users
Hi All, https://docs.raku.org/routine/encode multi method encode(Str:D $encoding = 'utf8', :$replacement, Bool() :$translate-nl = False, :$strict) shows "ascii" and "utf8" as possible values for "$encoding". I tool a guess and found out "utf16". Where are the rest of the values

Hex string to buf question

2022-06-19 Thread ToddAndMargo via perl6-users
Hi All, I have a string: > my Str $x = "1BB67AE85A"; 1BB67AE85A which has the hexadecimal values I want to add to a buffer: > my buf8 $y = buf8.new($x.base(16)); No such method 'base' for invocant of type 'Str'. Did you mean any of these: 'Bag', 'Date', 'Hash', 'are', 'asec', 'hash', 'take'?

Re: append to Bug question

2022-06-19 Thread ToddAndMargo via perl6-users
Typo. Should have been: append to Buf question And in my Keeper, I keep typing "bugger" instead of "buffer". Can't win.

Re: trouble returning a value from sub

2022-06-19 Thread ToddAndMargo via perl6-users
On 6/18/22 22:16, Bruce Gray wrote: On Jun 18, 2022, at 10:42 PM, ToddAndMargo via perl6-users wrote: On 6/16/22 10:10, Rick Bychowski wrote: sub MAIN($n = 20) { .say for factors($n); # Nil } I thought `MAIN` was a reserved variable. Am I missing something? MAIN has a special

Re: append to Bug question

2022-06-19 Thread ToddAndMargo via perl6-users
On 6/18/22 22:58, Bruce Gray wrote: If all you want is to append 0xBB to $y, either of these will work: $y ~= Buf.new(0xBB); $y.append(0xBB); Did not realize I could use buf new like that. Thank you! Append numbers to a buffer: > $x Buf:0x<41 42 43 44> > $x.append( 0xDD );

Re: append to Bug question

2022-06-19 Thread ToddAndMargo via perl6-users
On 6/18/22 22:58, Bruce Gray wrote: From just looking at your code, I am not clear on what you are trying to do. I am updating my Keeper on buffers. I have four of them that are a mess and I an going to consolidate them into a single .ODT (open document text) file with an index.

Re: append to Bug question

2022-06-18 Thread ToddAndMargo via perl6-users
On 6/18/22 21:13, ToddAndMargo via perl6-users wrote: Hi All, What am I doing wrong here: > my Buf $y = Buf.new( 0xFA xx 10); Buf:0x > $y ~= 0xBB.encode.Buf; Buf:0x I got three entries (31 38 37) instead of one (0xBB) Some more goofing around: > $y ~= 0xBB; Stringification

Re: append to Bug question

2022-06-18 Thread ToddAndMargo via perl6-users
On 6/18/22 22:12, ToddAndMargo via perl6-users wrote: What am I doing wrong here too? my $d = buf8.new( 0xDE..0xDB ); Buf[uint8]:0x<> Not sure why the above did not work, but this does: Presalt with swept entries: > my buf8 $e = buf8.new(0x5..0x8); Buf[uint8]:0x<05 06 07

Re: append to Bug question

2022-06-18 Thread ToddAndMargo via perl6-users
What am I doing wrong here too? my $d = buf8.new( 0xDE..0xDB ); Buf[uint8]:0x<> -- ~~ Computers are like air conditioners. They malfunction when you open windows ~~

append to Bug question

2022-06-18 Thread ToddAndMargo via perl6-users
Hi All, What am I doing wrong here: > my Buf $y = Buf.new( 0xFA xx 10); Buf:0x > $y ~= 0xBB.encode.Buf; Buf:0x I got three entries (31 38 37) instead of one (0xBB) Some more goofing around: > $y ~= 0xBB; Stringification of a Buf is not done with 'Str'. The 'decode' method should be used

Re: trouble returning a value from sub

2022-06-18 Thread ToddAndMargo via perl6-users
On 6/16/22 10:10, Rick Bychowski wrote: sub MAIN($n = 20) {    .say for factors($n); # Nil } I thought `MAIN` was a reserved variable. Am I missing something?

Glade?

2022-06-15 Thread ToddAndMargo via perl6-users
Hi All, Any you guys use Glade for user interfaces? https://glade.gnome.org/ Your thoughts on it? Or do you like something better? Many thanks, -T -- ~~ Computers are like air conditioners. They malfunction when you open windows

Re: Dual Buf and Str question

2022-06-11 Thread ToddAndMargo via perl6-users
On 6/11/22 02:28, ToddAndMargo via perl6-users wrote: On 6/9/22 22: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 that can be manipulated in two ways: 1) as a fixed length string

Re: Easier way to load a buffer?

2022-06-11 Thread ToddAndMargo via perl6-users
On 6/10/22 07:49, ToddAndMargo via perl6-users wrote: Hi All, I am looking for an easier way to load a buffer. I know about this way [4] > my Buf $b=Buf.new(0x2A, 0x54, 0xFF, 0x53); Buf:0x<2A 54 FF 53> I would like to do it on one big blast: my Buf $

BigRoot precision question

2022-06-11 Thread ToddAndMargo via perl6-users
Hi All, In the following paper on Big Root: https://newbedev.com/how-can-i-set-the-level-of-precision-for-raku-s-sqrt > use BigRoot; > BigRoot.precision = 7; > say (BigRoot.newton's-sqrt: 2;).base(10) 1.4142136 > say (BigRoot.newton's-sqrt: 2;).base(16) 1.6A09E7 That is a base(10) precision.

Re: Dual Buf and Str question

2022-06-11 Thread ToddAndMargo via perl6-users
On 6/9/22 22: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 that can be manipulated in two ways: 1) as a fixed length string (Str) 2) as a fixed length buffer (Buf) I can think

Re: Easier way to load a buffer?

2022-06-10 Thread ToddAndMargo via perl6-users
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 $b=Buf.new(0x2A, 0x54, 0xFF, 0x53); Buf:0x<2A 54 FF 53> I w

Re: Easier way to load a buffer?

2022-06-10 Thread ToddAndMargo via perl6-users
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 $b=Buf.new(0x2A, 0x54, 0xFF, 0x53); Buf:0x<2A 54 FF 53> I w

Easier way to load a buffer?

2022-06-10 Thread ToddAndMargo via perl6-users
Hi All, I am looking for an easier way to load a buffer. I know about this way [4] > my Buf $b=Buf.new(0x2A, 0x54, 0xFF, 0x53); Buf:0x<2A 54 FF 53> I would like to do it on one big blast: my Buf $b=Buf.new(0x2A54FF53A5F1D36F1CEA7E61FC37A20D54A77FE7B78); Cannot unbox 170 bit wide bigint into

tons of digits

2022-06-10 Thread ToddAndMargo via perl6-users
Hi All, I forgot how to write out a ton of digits for the square root of 2 (or any other irrational number). -T -- ~~ Computers are like air conditioners. They malfunction when you open windows ~~

Re: Dual Buf and Str question

2022-06-10 Thread ToddAndMargo via perl6-users
On 6/10/22 02:36, Elizabeth Mattijsen wrote: On 10 Jun 2022, at 11:20, ToddAndMargo via perl6-users wrote: 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

Re: Dual Buf and Str question

2022-06-10 Thread ToddAndMargo via perl6-users
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 that can be manipulated in two ways: 1) as a fixed length string (Str) 2) as a fixed length buffer (Buf) I

Dual Buf and Str question

2022-06-09 Thread ToddAndMargo via perl6-users
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 that can be manipulated in two ways: 1) as a fixed length string (Str) 2) as a fixed length buffer (Buf) I can think of ways to do this, but it would require separate

Re: The SF Perl Raku Study Group, 06/05 at 1pm PDT

2022-06-04 Thread ToddAndMargo via perl6-users
Hi Joseph, Did the issue of the extreme compile times ever get discussed? And if so, is anyone working on it? Many thanks, -T

Re: A natural opportunity for Raku?

2022-02-12 Thread ToddAndMargo via perl6-users
On 2/12/22 13:12, Parrot Raiser wrote: unfortunate tendency for "simple" languages to accrete features and morph into misshapen monsters Hi Parrot, This is probably not going to add the the knowledge of humanist, but WHEN DOES THAT STOP ME My tendency is to find what I need and ignore

Re: show all drive letters and labels

2022-02-10 Thread ToddAndMargo via perl6-users
On 2/10/22 02:25, Elizabeth Mattijsen wrote: Have you considered giving back to the community by putting this into a module (as well as the WinMessageBox and WinMount modules that it refers to, which I assume to be your private modules) and uploading it to the ecosystem? I have considered.

Re: show all drive letters and labels

2022-02-10 Thread ToddAndMargo via perl6-users
On 2/10/22 01:26, Elizabeth Mattijsen wrote: 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

Re: show all drive letters and labels

2022-02-09 Thread ToddAndMargo via perl6-users
On 2/9/22 12:18, ToddAndMargo via perl6-users wrote: 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 labels? Many thanks, -T On 2/9/22 04:05, Elizabeth Mattijsen wrote: > W

Re: show all drive letters and labels

2022-02-09 Thread ToddAndMargo via perl6-users
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 labels? Many thanks, -T On 2/9/22 04:05, Elizabeth Mattijsen wrote: > What would you use on a command-line to

show all drive letters and labels

2022-02-09 Thread ToddAndMargo via perl6-users
Hi All, Windows 7,10,11 Do we have a command/function that will show all drive letter and their labels? Many thanks, -T -- ~~ Computers are like air conditioners. They malfunction when you open windows ~~

Re: Aw: Re: Re: Latest Rakudo*

2022-02-02 Thread ToddAndMargo via perl6-users
Hi notna, I watch https://github.com/nxadm/rakudo-pkg/releases[https://github.com/nxadm/rakudo-pkg/releases][https://github.com/nxadm/rakudo-pkg/releases[https://github.com/nxadm/rakudo-pkg/releases] with a Raku program I wrote and notify and download any new ones that show up. Regex

Re: Aw: Re: Latest Rakudo*

2022-01-31 Thread ToddAndMargo via perl6-users
: "ToddAndMargo via perl6-users" An: perl6-users@perl.org Betreff: Re: Latest Rakudo* On 1/30/22 14:30, Parrot Raiser wrote: https://rakudo.org/star shows the latest Rakudo* bundle for Linux as 2021.04 - is that really the latest? Hi Parrot, This is what I show: https://github.com/nxadm/

Re: Latest Rakudo*

2022-01-31 Thread ToddAndMargo via perl6-users
On 1/30/22 14:30, Parrot Raiser wrote: https://rakudo.org/star shows the latest Rakudo* bundle for Linux as 2021.04 - is that really the latest? Hi Parrot, This is what I show: https://github.com/nxadm/rakudo-pkg/releases v2021.12 HTH, -T

Re: Removing ' characters

2022-01-10 Thread ToddAndMargo via perl6-users
On 1/10/22 07:41, Richard Hainsworth wrote: If a string is enclosed in ' characters, and I want to remove the bracketing ', how do I do it? Seems like ' is not a normal character, or is it because its not a bracketing character? Using REPL I got > my $s = '\'\'' '' > $s.subst( / \' ~ \'

Re: Merry Xmas day

2021-12-31 Thread ToddAndMargo via perl6-users
On 12/21/21 03:48, Elizabeth Mattijsen wrote: 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

Re: Windows tutorial needed (Todd?)

2021-11-07 Thread ToddAndMargo via perl6-users
On 11/6/21 18:12, Tom Browder wrote: Thanks, Todd, I’ll take a look. This is very timely since I have a captive audience (most likely all Windows ppl) at our local library next Saturday and will be mentioning Raku and Perl. Blessings, -Tom :-)

Re: Windows tutorial needed (Todd?)

2021-11-06 Thread ToddAndMargo via perl6-users
On 7/11/21 02:31, Tom Browder wrote: See https://github.com/Raku/docs issue #3913. -Tom (tbrowder) Hi Tom, I finally got around to writing your request up. I will let you look it over, modify as needed, and place in the proper location. Note that I use the

Re: how do I turn a real into and array of Integers?

2021-11-01 Thread ToddAndMargo via perl6-users
On 11/1/21 19:07, Patrick R. Michaud wrote: If you want only the first 10 digits, then: How about if I want 64 or more digits?

Re: how do I turn a real into and array of Integers?

2021-10-31 Thread ToddAndMargo via perl6-users
On 10/31/21 19:39, Sean McAfee wrote: On Sun, Oct 31, 2021 at 6:51 PM ToddAndMargo via perl6-users mailto:perl6-users@perl.org>> wrote: >> How do I get more digits out of sqrt? On 10/31/21 17:50, Kevin Pye wrote:  > You don't.  >  > sqrt is a func

Re: how do I turn a real into and array of Integers?

2021-10-31 Thread ToddAndMargo via perl6-users
How do I get more digits out of sqrt? On 10/31/21 17:50, Kevin Pye wrote: > You don't. > > sqrt is a function which acts on 64-bit floating point numbers, and there's no more meaningful digits available. If you need more precision you're on your own. Dang! I was hoping ther was some

Re: how do I turn a real into and array of Integers?

2021-10-31 Thread ToddAndMargo via perl6-users
On 10/31/21 16:42, ToddAndMargo via perl6-users wrote: On 10/31/21 11:20, Sean McAfee wrote: On Sun, Oct 31, 2021 at 9:08 AM Andinus via perl6-users mailto:perl6-users@perl.org>> wrote:     put 2.sqrt.comb.grep(*.Int)>>.Int[^10].raku # 10 digits comb takes an argument that

Re: how do I turn a real into and array of Integers?

2021-10-31 Thread ToddAndMargo via perl6-users
On 10/31/21 11:20, Sean McAfee wrote: On Sun, Oct 31, 2021 at 9:08 AM Andinus via perl6-users mailto:perl6-users@perl.org>> wrote:     put 2.sqrt.comb.grep(*.Int)>>.Int[^10].raku # 10 digits comb takes an argument that can save you a method call:     2.sqrt.comb.grep(*.Int)   ==>    

Re: how do I turn a real into and array of Integers?

2021-10-31 Thread ToddAndMargo via perl6-users
On 10/31/21 01:43, Shlomi Fish wrote: ("" ~ sqrt(2)).comb().grep(* ne ".").map(+*) (1 4 1 4 2 1 3 5 6 2 3 7 3 0 9 5 1) Cool! my Int @x = ("" ~ sqrt(2)).comb().grep(* ne ".").map(+*) [1 4 1 4 2 1 3 5 6 2 3 7 3 0 9 5 1] Is there a way to set how many digits I get?

how do I turn a real into and array of Integers?

2021-10-31 Thread ToddAndMargo via perl6-users
Hi All, Without going into why (it is a secret), how do I turn > my $x = sqrt 2 1.4142135623730951 into an array of integers? @y[0] = 1 @y[1] = 4 @y[2] = 1 @y[3] = 4 @y[4] = 2 @y[5] = 1 etc. Many thanks, -T

Re: ftp client yet?

2021-10-31 Thread ToddAndMargo via perl6-users
On 10/30/21 19:08, Ralph Mellor wrote: I don't understand what you are thinking. Hi Ralph, That is because I have not made myself clear enough. Or maybe you are trying to expand to something greater than I am asking. That is a hazard when dealing with mensches that love to be helpful: scope

Re: ftp client yet?

2021-10-30 Thread ToddAndMargo via perl6-users
On 10/30/21 10:52, chohag via perl6-users wrote: ToddAndMargo via perl6-users writes: On 10/30/21 02:23, chohag via perl6-users wrote: Which part of the machinery around 'use' and ':from' is not Raku? That is Raku. The code it calls is not. I am trying to convert the code it calls to Raku

Re: ftp client yet?

2021-10-30 Thread ToddAndMargo via perl6-users
On 10/30/21 02:23, chohag via perl6-users wrote: ToddAndMargo via perl6-users writes: On 10/29/21 18:42, Ralph Mellor wrote: Hi Raiph, I was trying to get the whole thing in Raku. the "from perl 5" is cool stuff for sure, but I would still be maintaining 90% of the code in

Re: ftp client yet?

2021-10-29 Thread ToddAndMargo via perl6-users
On 10/29/21 18:42, Ralph Mellor wrote: On Fri, Oct 29, 2021 at 7:11 AM ToddAndMargo via perl6-users wrote: Which gets back to my original question, which was is there good FTP support from Raku yet? The answer you got from me was: 1. Install Perl's Net::FTP. 2. Write `use Net::FTP:from

Re: I need a better regex with a literal in it

2021-10-29 Thread ToddAndMargo via perl6-users
On 10/25/21 21:31, Ralph Mellor wrote: ``` $x ~~ s/ $( Q[;";] ) // 「;";」 I did not understand the first time. Now I do! Thank you! > my Str $x=Q[;':";]; ;':"; > $x~~ s/ $( Q[:"] ) //; 「:"」 > say $x ;'; >

Re: ftp client yet?

2021-10-29 Thread ToddAndMargo via perl6-users
On 10/28/21 21:43, Ralph Mellor wrote: On Thu, Oct 28, 2021 at 7:40 PM ToddAndMargo via perl6-users wrote: You would not happen to know how I could directly write to FTP myself with Raku? Yes. 1. Install a library that implements FTP. 2. Use it. The RFC for FTP is pretty easy to follow

Re: ftp client yet?

2021-10-28 Thread ToddAndMargo via perl6-users
On 10/27/21 05:19, Ralph Mellor wrote: On 10/25/21 22:21, Ralph Mellor wrote: You should be aiming to end up being able to write something like the following three line Raku program: use lib:from 'dir-where-your-new-module-is'; use your-new-module:from; RmdirAndLoop 'junk', 1, 3; And when

Re: ftp client yet?

2021-10-26 Thread ToddAndMargo via perl6-users
On 10/25/21 22:21, Ralph Mellor wrote: This is what the more complicated stuff I am doing. You can also use *your* Perl code in your Raku code. Just turn your Perl code into a module, making sure to make "public" whatever the module should make public, then `use` it in your Raku code. You

Re: I need a better regex with a literal in it

2021-10-24 Thread ToddAndMargo via perl6-users
On 10/24/21 19:09, Ralph Mellor wrote: Wish I had a Q[;;;] expression inside a regex You can put any Raku code that produces a string into a regex by using the syntax `$(code)`. So this displays `True`: ``` say so Q[ / ;;; ^&%%$$ ] ~~ / $( Q[ / ;;; ^&%%$$ ] ) / ``` as does: ``` my $string

Re: I need a better regex with a literal in it

2021-10-23 Thread ToddAndMargo via perl6-users
On 10/23/21 21:31, Francis Grizzly Smit wrote: On 24/10/2021 12:59, ToddAndMargo via perl6-users wrote: On 10/23/21 18:03, Bruce Gray wrote: As to your "null string", I am glad that you resolved your problem, but I cannot get this code to hang: $NewRev ~~ s/ ^ .*? ('Relea

<    1   2   3   4   5   6   7   8   9   10   >