Re: Raku is removed from Debian

2024-09-08 Thread ToddAndMargo via perl6-users
On 9/8/24 02:14, Dominique Dumont wrote: And the files used to make these packages cannot be re-used much for official Debian project because they do not respect Debian packaging policies (the same policies that make Debian distribution quite solid). I asked Fedora about the same thing

Re: Raku is removed from Debian

2024-09-08 Thread Dominique Dumont
ku. And the files used to make these packages cannot be re-used much for official Debian project because they do not respect Debian packaging policies (the same policies that make Debian distribution quite solid). Anyway, thanks the pointer All the best

Re: Raku is removed from Debian

2024-09-07 Thread ToddAndMargo via perl6-users
On 9/4/24 03:25, Dominique Dumont wrote: Hello As I feared, raku was removed from Debian testing. Which means that raku will be missing in next Debian release, and probably from Ubuntu and Mint. What led to this situation ? - the last version of raku provided in Debian is 2022.12 and it does no

Re: Raku is removed from Debian

2024-09-04 Thread Dominique Dumont
On Wednesday, 4 September 2024 18:23:25 CEST Dominique Dumont wrote: > Sure, I will help you get started. Feel free to ask questions on debian- > mentors mailing list. I'm sure a lot of Debian people will also help out. I forgot the link to debian-mentors list: https://lists.debian.org/debian-m

Re: Raku is removed from Debian

2024-09-04 Thread Dominique Dumont
On Wednesday, 4 September 2024 13:28:20 CEST Will Coleda wrote: > As someone who managed a macport aeons ago, any chance you could hold my > hand through the process of getting the package updated? I'm happy to make > the code/config changes and do the actual submittal. Sure, I will help you get s

Re: Raku is removed from Debian

2024-09-04 Thread Dominique Dumont
Hi On Wednesday, 4 September 2024 17:49:28 CEST Timo Paulssen via perl6-users wrote: > Coke and myself have signed up to salsa with the user names timotimo and > coke respectively. Since you're not Debian developer (yet ? 😉), it's customary to guest a login ending with -guest. I've accepted to

Re: Raku is removed from Debian

2024-09-04 Thread Timo Paulssen via perl6-users
Hi Dominique, first of all, thank you for bringing this to our attention, and all the time you've spent on maintaining the Raku packages and debhelpers! Coke and myself have signed up to salsa with the user names timotimo and coke respectively. We* would appreciate if you give us access to

Re: Raku is removed from Debian

2024-09-04 Thread Will Coleda
Dominique - I've registered my email on the mentor site as a placeholder, at least. I assume this is something that with a little help, anyone who compiles rakudo regularly would be able to get a new release packaged at least a few times a year. As someone who managed a macport aeons ago, any cha

Re: Raku is removed from Debian

2024-09-04 Thread Dominique Dumont
On Wednesday, 4 September 2024 12:25:21 CEST Dominique Dumont wrote: > Hello > > As I feared, raku was removed from Debian testing. Which means that raku > will be missing in next Debian release, and probably from Ubuntu and Mint. > > What led to this situation ? > - the last version of raku prov

Re: Problem using precompiled Physics::Measure objects

2024-07-31 Thread Elizabeth Mattijsen
> On 31 Jul 2024, at 14:14, Kevin Pye wrote: > We'll keep looking at other ways of defining the objects, but thanks anyway. > (And sorry for increasing the RakuAST work needed.) No worries: what would help is a golf of the problem. And make that an issue in the rakudo repo. Liz

Re: Problem using precompiled Physics::Measure objects

2024-07-31 Thread Kevin Pye
On Wed, 31 Jul 2024, at 19:20, Elizabeth Mattijsen wrote: >> On 31 Jul 2024, at 06:10, Kevin Pye wrote: >> >> I am trying to build a replacement for the existing Physics::Constants >> module, but running into problems when loading the pre-compiled version. I >> want to use code like: >> >>

Re: Problem using precompiled Physics::Measure objects

2024-07-31 Thread Elizabeth Mattijsen
> On 31 Jul 2024, at 06:10, Kevin Pye wrote: > > I am trying to build a replacement for the existing Physics::Constants > module, but running into problems when loading the pre-compiled version. I > want to use code like: > > unit module Physics::Constants; > > use Physics::Unit; > use Physic

Re: PostgreSQL: Raku as a "trusted" language?

2024-06-28 Thread Darren Duncan
On 2024-05-15 12:08 p.m., William Michels via perl6-users wrote: I'm wondering if the "trusted" moniker is conferred when a (specified/bespoke) language version sufficiently sanitizes input? What you're talking about here and similar has no affect on trusted vs not. Trusted and untrusted are d

Re: PostgreSQL: Raku as a "trusted" language?

2024-05-15 Thread JJ Merelo
El mié, 15 may 2024 a las 21:08, William Michels () escribió: > Thanks for your response, JJ. > > I'm wondering if the "trusted" moniker is conferred when a > (specified/bespoke) language version sufficiently sanitizes input? > Not only that, also output to the filesystem and network. > > If so,

Re: PostgreSQL: Raku as a "trusted" language?

2024-05-15 Thread William Michels via perl6-users
Thanks for your response, JJ. I'm wondering if the "trusted" moniker is conferred when a (specified/bespoke) language version sufficiently sanitizes input? If so, your Unicode::Security module would seem to be right on the mark: https://raku.land/zef:jjmerelo/Unicode::Security https://github.c

Re: Array remove duplicates question

2024-05-06 Thread ToddAndMargo via perl6-users
On 5/6/24 05:45, yary wrote: I thought you wanted them sorted also? [1] > (8,7,6,7,5,4,2,1).unique (8 7 6 5 4 2 1) [2] > (8,7,6,7,5,4,2,1).unique.sort (1 2 4 5 6 7 8) -y Hi Yary, Not in this instance. But the the command is really sweet. Thank you! This time I am going the extract IP add

Re: Array remove duplicates question

2024-05-06 Thread yary
I thought you wanted them sorted also? [1] > (8,7,6,7,5,4,2,1).unique (8 7 6 5 4 2 1) [2] > (8,7,6,7,5,4,2,1).unique.sort (1 2 4 5 6 7 8) -y On Mon, May 6, 2024 at 6:15 AM ToddAndMargo via perl6-users < perl6-us...@perl.org> wrote: > On 5/6/24 03:07, ToddAndMargo via perl6-users wrote: > > >

Re: Array remove duplicates question

2024-05-06 Thread ToddAndMargo via perl6-users
On 5/6/24 03:07, ToddAndMargo via perl6-users wrote: On 6 May 2024, at 04:35, ToddAndMargo via perl6-users wrote: Hi All, I have thought of how to do it and pretty sure it would work, but just in case Raku have one of those sweet utilities, does Raku have a utility that will take an array a

Re: Array remove duplicates question

2024-05-06 Thread ToddAndMargo via perl6-users
On 6 May 2024, at 04:35, ToddAndMargo via perl6-users wrote: Hi All, I have thought of how to do it and pretty sure it would work, but just in case Raku have one of those sweet utilities, does Raku have a utility that will take an array and remove all the duplicates and rearrange the cells

Re: Array remove duplicates question

2024-05-06 Thread Elizabeth Mattijsen
$ raku -e 'my @a = 1,2,3,6,7,1,2,8; @a .= unique; say @a' [1 2 3 6 7 8] https://docs.raku.org/type/Any#method_unique > On 6 May 2024, at 04:35, ToddAndMargo via perl6-users > wrote: > > Hi All, > > I have thought of how to do it and pretty sure > it would work, but just in case Raku have one

Re: Need regex ^? help

2024-05-06 Thread ToddAndMargo via perl6-users
This is what I have so far. my $x=" 1.2.3.4:12345 "; $x = $x.trim; $x~~s/(.*'.') .*/$0$(Q[0/24])/; say "<$x>"; <1.2.3.0/24> It works. Is there a way to petty it up with ^ and $ ?

Re: Need regex ^? help

2024-04-29 Thread ToddAndMargo via perl6-users
On 4/29/24 17:57, Patrick R. Michaud wrote: Perhaps not really what you're intending, but here's how I'd start: $ raku -e 'my $x="1.2.3.4"; $x ~~ s!\d+$!0/24!; say $x;' 1.2.3.0/24 The pattern part of the substitution matches all of the digits at the end of the string (\d+$), then rep

Re: Need regex ^? help

2024-04-29 Thread Patrick R. Michaud
Perhaps not really what you're intending, but here's how I'd start: $ raku -e 'my $x="1.2.3.4"; $x ~~ s!\d+$!0/24!; say $x;' 1.2.3.0/24 The pattern part of the substitution matches all of the digits at the end of the string (\d+$), then replaces them with the string "0/24". Everything p

Re: Need regex ^? help

2024-04-29 Thread ToddAndMargo via perl6-users
On 4/29/24 17:42, ToddAndMargo via perl6-users wrote: Hi All, I thought I understood ^ and ? used in a regex'es, but I don't. ^ means from the beginning and ? from the end. I am trying to put together an example of how to use them: I have    1.2.3.4 I want    1.2.3.0/24 So Far I have (no

Re: Is irc.libera.chat down?

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

Re: Is irc.libera.chat down?

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

Re: Is irc.libera.chat down?

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

Re: Is irc.libera.chat down?

2024-04-19 Thread Todd Chester via perl6-users
A sex, 19-04-2024 às 02:36 -0700, Todd Chester via perl6-users escreveu: Hi All, Is     https://kiwiirc.com/nextclient/irc.libera.chat/#raku down? -T On 4/19/24 03:03, David Santiago wrote: > > It works for me. > > Regards, > David > Hi David, The circle just goes round and round and aft

Re: Is irc.libera.chat down?

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

Re: need native call help

2024-04-19 Thread Todd Chester via perl6-users
On 4/18/24 04:50, yary wrote: I did a lot of very deep windows programming in my previous job and reminding me that I would always use the 8.3 short name for file operations! dir /x will get it for you. Must be API called for it also. Probably only works on local volumes not network rounded

Re: need native call help

2024-04-18 Thread yary
I did a lot of very deep windows programming in my previous job and reminding me that I would always use the 8.3 short name for file operations! dir /x will get it for you. Must be API called for it also. Probably only works on local volumes not network rounded ones. Just a guess. I've run into pr

Re: need native call help

2024-04-17 Thread ToddAndMargo via perl6-users
On 4/17/24 19:10, William Michels via perl6-users wrote: Hi Todd, Here are a few U&L StackExchange answers that I wrote using Raku's `unlink`: https://unix.stackexchange.com/questions/459521/how-to-truncate-file-to-maximum-number-of-characters-not-bytes/751267#751267 https://unix.stackexchange

Re: need native call help

2024-04-17 Thread William Michels via perl6-users
Hi Todd, Here are a few U&L StackExchange answers that I wrote using Raku's `unlink`: https://unix.stackexchange.com/questions/459521/how-to-truncate-file-to-maximum-number-of-characters-not-bytes/751267#751267 https://unix.stackexchange.com/questions/749558/remove-exact-line-from-file-if-prese

Re: need native call help

2024-04-17 Thread ToddAndMargo via perl6-users
On 4/17/24 05:52, yary wrote: From unlink's documentation: If the file to be deleted does not exist, the routine treats it as success. So trying to delete a file that isn't there, doesn't have an error, which is kind of neat, but that is a difference from native delete. -y Hi Yary, Not t

Re: need native call help

2024-04-17 Thread ToddAndMargo via perl6-users
On 4/17/24 05:52, yary wrote: From unlink's documentation: If the file to be deleted does not exist, the routine treats it as success. So trying to delete a file that isn't there, doesn't have an error, which is kind of neat, but that is a difference from native delete. -y Hi Yary, Not

Re: need native call help

2024-04-17 Thread ToddAndMargo via perl6-users
On 4/17/24 05:50, yary wrote: What does the windows native delete do which you need, that raku's unlink doesn't have? without unlink $FileName { say "Could not delete $FileName:", .exception.message }; -y Hi Yary, This is Windows we are dealing with. It is a kluge. I have had unlink fail

Re: PostgreSQL: Raku as a "trusted" language?

2024-04-17 Thread JJ Merelo
>From what I'm seeing, my impression is that you need to create a specific version, possibly with Pg bindings, to become either trusted or untrusted; there's no Trusted "node" (or bun, for that matter), but a "v8js" version of JavaScript. Any PL (procedural language) version of the language would

Re: need native call help

2024-04-17 Thread yary
>From unlink's documentation: If the file to be deleted does not exist, the routine treats it as success. So trying to delete a file that isn't there, doesn't have an error, which is kind of neat, but that is a difference from native delete. -y On Wed, Apr 17, 2024 at 8:50 AM yary wrote: >

Re: need native call help

2024-04-17 Thread yary
What does the windows native delete do which you need, that raku's unlink doesn't have? without unlink $FileName { say "Could not delete $FileName:", .exception.message }; -y On Wed, Apr 17, 2024 at 2:29 AM ToddAndMargo via perl6-users < perl6-us...@perl.org> wrote: > On 4/16/24 23:25, ToddAnd

Re: need native call help

2024-04-16 Thread ToddAndMargo via perl6-users
On 4/16/24 23:25, ToddAndMargo via perl6-users wrote: `\\>\` should have been `\\?\`

Re: need native call help

2024-04-16 Thread ToddAndMargo via perl6-users
On 4/16/24 20:57, ToddAndMargo via perl6-users wrote:    $LongName = $FileName;    if $FileName.chars >= MAX_PATH  { $LongName = Q[\\?\] ~ $FileName; } What the about is all about is that MAX_PATH, which limits the file name to 260 characters, can go up to 32,767 wide characters, prepend "\\

Re: need native call help

2024-04-16 Thread ToddAndMargo via perl6-users
On 4/16/24 18:43, ToddAndMargo via perl6-users wrote: On 4/16/24 01:21, ToddAndMargo via perl6-users wrote: Hi All, Windows 11 It has been so long that I have done one of these that my brain is seizing. https://learn.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-deletefilea C++ B

Re: need native call help

2024-04-16 Thread ToddAndMargo via perl6-users
On 4/16/24 01:21, ToddAndMargo via perl6-users wrote: Hi All, Windows 11 It has been so long that I have done one of these that my brain is seizing. https://learn.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-deletefilea C++ BOOL DeleteFileA(   [in] LPCSTR lpFileName ); Would s

Re: I need sorting help

2024-03-16 Thread ToddAndMargo via perl6-users
On 3/2/24 05:13, Elizabeth Mattijsen wrote: $ raku -e '.say for .sort(*.split(/\d+/, :kv).map({ (try .Numeric) // $_}).List) afoo2 afoo12 On 2 Mar 2024, at 07:26, ToddAndMargo via perl6-users wrote: Hi All, @Sorted_List = @Sorted_List.sort: { .comb(/ \d+ | \D+ /) .map({ .Int // .self })}

Re: MAIN(*magic)

2024-03-15 Thread Bruce Gray
> On Mar 14, 2024, at 21:57, Mark Devine wrote: > > Rakoons, > > I keep running into a space with Raku where it would be nice to have some > magic to reduce boilerplate. I often make roles & classes with interface > options that flow from a consuming script’s MAIN arguments, then the first

Re: MAIN(*magic)

2024-03-15 Thread Elizabeth Mattijsen
> On 15 Mar 2024, at 03:57, Mark Devine wrote: > > Rakoons, > I keep running into a space with Raku where it would be nice to have some > magic to reduce boilerplate. I often make roles & classes with interface > options that flow from a consuming script’s MAIN arguments, then the first > bi

Re: I need sorting help

2024-03-09 Thread Ralph Mellor
On Sat, Mar 9, 2024 at 7:52 PM yary wrote: > how to sort by alpha & numeric segments (b3b, a1a, c20c) => (a1a, b3b, c2c) Ahhh. D'oh. Thanks! 💚 Now I see what was required, or at least think I do: .sort: {m:g/ \d+{make +$/} | \D+{make ~$/} /».made} That does what was meant, right? -- love, r

Re: I need sorting help

2024-03-09 Thread yary
Using my quick-intuition, are these methods sorting on the earliest number withing the string, ignoring the non-digits? $ raku -e '.say for .sort: {m/ \d+ /.Int}' $ raku -e '.say for .sort: +*.match: / \d+ /' let's see $ raku -e '.say for .sort: {m/ \d+ /.Int}' it1 does2 not3 matter10 what20 the

Re: The SF Perl Raku Study Group, 04/10 at 1pm Pacific Time

2024-03-07 Thread Joseph Brenner
And this: > March 10th, 2024 1pm in California, 9pm in the UK Should've read "8pm in the UK". On 3/7/24, Joseph Brenner wrote: > Note: Here in the US, we are about to "spring ahead" one mooorre time, > and the 1pm I'm referring to is an hour earlier than many of you expect. > >"It's becom

Re: I need sorting help

2024-03-07 Thread Ralph Mellor
On Tue, Mar 5, 2024 at 7:01 AM ToddAndMargo via perl6-users wrote: > >> $ raku -e '.say for .sort(*.split(/\d+/, :kv).map({ > >> (try .Numeric) // $_}).List)' > >> > >> Yippee! > > raku -e '.say for .sort: { .comb(/ \d+ | \D+ /).map({ > > .Int // .self }).cache };' > > Awesome! Now I have two

Re: pint: Elizabeth, sort list???

2024-03-07 Thread Marc Chantreux
hello, > ==> sort({ | map { +$_ // $_ }, .split: /\d+/, :v }) ==> say() ok … so I'm lost but I'm not even curious to understand why (because of my lack of interest for the ==> operator :)) regards marc -- Marc Chantreux Pôle CESAR (Calcul et services avancés à la recherche) Université de Stra

Re: pint: Elizabeth, sort list???

2024-03-07 Thread Fernando Santagata
Hi Marc, This works: ==> sort({ | map { +$_ // $_ }, .split: /\d+/, :v }) ==> say() As the documentation says here https://docs.raku.org/routine/%3D%3D%26gt%3B The precedence is very loose so you will need to use parentheses to assign the result On Thu, Mar 7, 2024 at 8:37 AM Marc Chantreux

Re: pint: Elizabeth, sort list???

2024-03-07 Thread Marc Chantreux
hello, > How would you write that expression using the feed operator? I tried < afoo12 afoo2 > ==> {.sort: { | map { +$_ // $_ }, .split: /\d+/, :v }} ==> {map &say} and the error message is really interesting Only routine calls or variables that can '.append' m

Re: pint: Elizabeth, sort list???

2024-03-06 Thread Jim Bollinger
Hi Elizabeth! How would you write that expression using the feed operator? Thanks, Shimon > On Mar 3, 2024, at 7:22 AM, Elizabeth Mattijsen wrote: > >> On 3 Mar 2024, at 03:32, ToddAndMargo via perl6-users >> wrote: >> >>> On 3/2/24 05:13, Elizabeth Mattijsen wrote: .sort(*.split(/\d+

Re: pint: Elizabeth, sort list???

2024-03-05 Thread Marc Chantreux
Hi rakoons, On Sun, Mar 03, 2024 at 01:22:45PM +0100, Elizabeth Mattijsen wrote: > Actually, the expression can be refined a bit: > > say .sort(*.split(/\d+/, :v).map({ (try .Int) // $_}).List) Which is gorgeous! thanks for that. I read the documentation which is clear about all the magic in acti

Re: I need sorting help

2024-03-04 Thread ToddAndMargo via perl6-users
On 3/4/24 23:01, ToddAndMargo via perl6-users wrote: No I have Sould have been Now I have

Re: I need sorting help

2024-03-04 Thread ToddAndMargo via perl6-users
On 3/4/24 22:09, Bruce Gray wrote: On Mar 4, 2024, at 15:55, ToddAndMargo via perl6-users wrote: --snip-- $ raku -e '.say for .sort(*.split(/\d+/, :kv).map({ (try .Numeric) // $_}).List)' bk1 bk2 bk10 bk34 Yippee! tony@rn6:/home/linuxutil1$ raku -e '.say for .sort: { .comb(/ \d+ |

Re: I need sorting help

2024-03-04 Thread Bruce Gray
> On Mar 4, 2024, at 15:55, ToddAndMargo via perl6-users > wrote: --snip-- > $ raku -e '.say for .sort(*.split(/\d+/, :kv).map({ (try > .Numeric) // $_}).List)' > bk1 > bk2 > bk10 > bk34 > > Yippee! > > > tony@rn6:/home/linuxutil1$ raku -e '.say for .sort: { > .comb(/ \d+ | \D+ /) .map

Re: I need sorting help

2024-03-04 Thread ToddAndMargo via perl6-users
On 3/4/24 13:55, ToddAndMargo via perl6-users wrote: On 3/4/24 12:40, Ralph Mellor wrote: On Sat, Mar 2, 2024 at 6:26 AM ToddAndMargo via perl6-users wrote: @Sorted_List = @Sorted_List.sort: { .comb(/ \d+ | \D+ /) .map({ .Int // .self })}; In case another answer is helpful... First, a sim

Re: I need sorting help

2024-03-04 Thread ToddAndMargo via perl6-users
On 3/4/24 12:40, Ralph Mellor wrote: On Sat, Mar 2, 2024 at 6:26 AM ToddAndMargo via perl6-users wrote: @Sorted_List = @Sorted_List.sort: { .comb(/ \d+ | \D+ /) .map({ .Int // .self })}; In case another answer is helpful... First, a simplified sort that produces the same result as your cod

Re: I need sorting help

2024-03-04 Thread Ralph Mellor
> @Sorted_List .= sort: *.match: / \d+ /; > ... > @Sorted_List .= sort: +*.match: / \d+ /; Or perhaps easier to understand: @Sorted_List .= sort: {m/ \d+ /.Str} vs @Sorted_List .= sort: {m/ \d+ /.Int} love, raiph

Re: I need sorting help

2024-03-04 Thread Ralph Mellor
On Sat, Mar 2, 2024 at 6:26 AM ToddAndMargo via perl6-users wrote: > > @Sorted_List = @Sorted_List.sort: { .comb(/ \d+ | \D+ /) .map({ .Int // .self > })}; In case another answer is helpful... First, a simplified sort that produces the same result as your code above: @Sorted_List .= sort: *.ma

Re: missing block

2024-03-03 Thread ToddAndMargo via perl6-users
On 3/3/24 04:25, Elizabeth Mattijsen wrote: On 3 Mar 2024, at 05:12, ToddAndMargo via perl6-users wrote: $ raku -I./ -c CobianWrapper.pl6 Missing block at /home/CDs/Windows/NtUtil/CobianWrapper.pl6:1000 1000 is the last line in my code. I presume by "block" they mean something like "]" or "}"

Re: pint: Elizabeth, sort list???

2024-03-03 Thread Elizabeth Mattijsen
> On 3 Mar 2024, at 03:32, ToddAndMargo via perl6-users > wrote: > >> On 3/2/24 05:13, Elizabeth Mattijsen wrote: >>> .sort(*.split(/\d+/, :kv).map({ (try .Numeric) // $_}).List) > >> Hi Elizabeth, >> It works perfectly. Thank you! >> I have no idea why, I will ask you in another post > Would

Re: missing block

2024-03-02 Thread ToddAndMargo via perl6-users
On 3/2/24 20:12, ToddAndMargo via perl6-users wrote: Hi All, $ raku -I./ -c CobianWrapper.pl6 Missing block at /home/CDs/Windows/NtUtil/CobianWrapper.pl6:1000 1000 is the last line in my code.  I presume by "block" they mean something like "]" or "}" Do I really have to read 1000 lines of code

Re: pint: Elizabeth, sort list???

2024-03-02 Thread ToddAndMargo via perl6-users
On 3/2/24 19:14, Clifton Wood wrote: .sort(*.split(/\d+/, :kv).map({ (try .Numeric) // $_}).List) Can you take apart the above for me?

Re: ping: Elizabeth, sort list???

2024-03-02 Thread ToddAndMargo via perl6-users
Sorry, that was suppose to be "ping: not "pint:

Re: pint: Elizabeth, sort list???

2024-03-02 Thread Clifton Wood
https://gist.github.com/Xliff/286f1359e40d192d724ed9b900354015 On Sat, Mar 2, 2024 at 9:32 PM ToddAndMargo via perl6-users < perl6-us...@perl.org> wrote: > > On 3/2/24 05:13, Elizabeth Mattijsen wrote: > >> .sort(*.split(/\d+/, :kv).map({ (try .Numeric) // > $_}).List) > > > Hi Elizabeth, > > > >

Re: I need sorting help

2024-03-02 Thread Clifton Wood
Easy multisort! my @h = ( { name => "albert", age => 40, size => 2 }, { }, { ); # ({age => 40, name => albert, size => 2} {age => 69, name => albert, size => 3} {age => 22, name => andy, size => 3}) On Sat, Mar 2, 2024 at 9:29 PM ToddAndMargo via perl6-users < perl6-us...@perl.org> wrote:

Re: I need sorting help

2024-03-02 Thread ToddAndMargo via perl6-users
On 3/2/24 05:13, Elizabeth Mattijsen wrote: .sort(*.split(/\d+/, :kv).map({ (try .Numeric) // $_}).List) Hi Elizabeth, It works perfectly. Thank you! I have no idea why, I will ask you in another post -T

RE: I need sorting help

2024-03-02 Thread Mark Devine
Elizabeth, I have been looking for that one to sort operating system devices. Exceptional timing! Thanks, Mark Devine (202) 878-1500 -Original Message- From: Elizabeth Mattijsen Sent: Saturday, March 2, 2024 8:14 AM To: ToddAndMargo via perl6-users Subject: Re: I need sorting help

Re: I need sorting help

2024-03-02 Thread Elizabeth Mattijsen
$ raku -e '.say for .sort(*.split(/\d+/, :kv).map({ (try .Numeric) // $_}).List) afoo2 afoo12 > On 2 Mar 2024, at 07:26, ToddAndMargo via perl6-users > wrote: > > Hi All, > > @Sorted_List = @Sorted_List.sort: { .comb(/ \d+ | \D+ /) .map({ .Int // .self > })}; > > gives me > > Element [0

Re: disable coercing?

2024-02-26 Thread ToddAndMargo via perl6-users
On 2/25/24 17:45, Joseph Brenner wrote: Would this trick help? You can define a "subset" that restricts values to the uint16 range: my subset FussyUint16 of Int where 0 ..^ 2¹⁶; my FussyUint16 $x; $x = -1; ## Type check failed in assignment to $x; expected FussyUint16 bu

Re: disable coercing?

2024-02-25 Thread Joseph Brenner
Would this trick help? You can define a "subset" that restricts values to the uint16 range: my subset FussyUint16 of Int where 0 ..^ 2¹⁶; my FussyUint16 $x; $x = -1; ## Type check failed in assignment to $x; expected FussyUint16 but got Int (-1)

Re: pm6 naming convention

2024-02-12 Thread ToddAndMargo via perl6-users
On 2/12/24 15:04, Will Coleda wrote: On Mon, Feb 12, 2024 at 5:32 PM ToddAndMargo via perl6-users mailto:perl6-us...@perl.org>> wrote: On 2/12/24 14:29, ToddAndMargo via perl6-users wrote: >>> On Mon, Feb 12, 2024 at 3:24 PM ToddAndMargo via perl6-users >>> mailto:perl6-us...@p

Re: pm6 naming convention

2024-02-12 Thread ToddAndMargo via perl6-users
On 2/12/24 15:04, Will Coleda wrote: Pull requests welcome, and if you have any specific notes about searches that aren't working for you, please report them on https://github.com/Raku/doc/issues . You can click on the edit icon on that doc page to easily su

Re: pm6 naming convention

2024-02-12 Thread Will Coleda
On Mon, Feb 12, 2024 at 5:32 PM ToddAndMargo via perl6-users < perl6-us...@perl.org> wrote: > On 2/12/24 14:29, ToddAndMargo via perl6-users wrote: > >>> On Mon, Feb 12, 2024 at 3:24 PM ToddAndMargo via perl6-users > >>> mailto:perl6-us...@perl.org>> wrote: > >> > >>> Has .pl6 been renamed too

Re: pm6 naming convention

2024-02-12 Thread ToddAndMargo via perl6-users
On 2/12/24 14:29, ToddAndMargo via perl6-users wrote: On Mon, Feb 12, 2024 at 3:24 PM ToddAndMargo via perl6-users mailto:perl6-us...@perl.org>> wrote:     Has .pl6 been renamed too? On 2/12/24 12:37, Will Coleda wrote: > Please see: https://docs.raku.org/language/filename-extensions >

Re: pm6 naming convention

2024-02-12 Thread ToddAndMargo via perl6-users
On Mon, Feb 12, 2024 at 3:24 PM ToddAndMargo via perl6-users mailto:perl6-us...@perl.org>> wrote: Has .pl6 been renamed too? On 2/12/24 12:37, Will Coleda wrote: > Please see: https://docs.raku.org/language/filename-extensions > > Than

Re: pm6 naming convention

2024-02-12 Thread Will Coleda
Please see: https://docs.raku.org/language/filename-extensions On Mon, Feb 12, 2024 at 3:24 PM ToddAndMargo via perl6-users < perl6-us...@perl.org> wrote: > > >> On 12 Feb 2024, at 20:34, ToddAndMargo via perl6-users < > perl6-us...@perl.org> wrote: > >> > >> > On 6 Feb 2024, at 18:08, ToddA

Re: pm6 naming convention

2024-02-12 Thread ToddAndMargo via perl6-users
On 12 Feb 2024, at 20:34, ToddAndMargo via perl6-users wrote: On 6 Feb 2024, at 18:08, ToddAndMargo via perl6-users wrote: Hi All, I use AnyDesk for remoter customer support. Work rather well. The file transfer portion, which I adore, posts a Microsoft Office Publisher Icon (a big on

Re: pm6 naming convention

2024-02-12 Thread Elizabeth Mattijsen
It's been marked as DEPRECATED since 2023.12 I believe. > On 12 Feb 2024, at 20:34, ToddAndMargo via perl6-users > wrote: > > >>> On 6 Feb 2024, at 18:08, ToddAndMargo via perl6-users >>> wrote: >>> >>> Hi All, >>> >>> I use AnyDesk for remoter customer support. Work rather well. >>> >>>

Re: pm6 naming convention

2024-02-12 Thread ToddAndMargo via perl6-users
On 6 Feb 2024, at 18:08, ToddAndMargo via perl6-users wrote: Hi All, I use AnyDesk for remoter customer support. Work rather well. The file transfer portion, which I adore, posts a Microsoft Office Publisher Icon (a big one) when it hits a .pm6 modules. Is there a different naming conven

Re: pm6 naming convention

2024-02-12 Thread Elizabeth Mattijsen
.rakumod > On 6 Feb 2024, at 18:08, ToddAndMargo via perl6-users > wrote: > > Hi All, > > I use AnyDesk for remoter customer support. Work rather well. > > The file transfer portion, which I adore, posts a Microsoft > Office Publisher Icon (a big one) when it hits a .pm6 modules. > > Is the

Re: who call raku?

2024-02-10 Thread ToddAndMargo via perl6-users
On 2/10/24 16:01, ToddAndMargo via perl6-users wrote: On 2/10/24 15:26, Marc Chantreux wrote: On Thu, Feb 08, 2024 at 02:25:00PM -0800, ToddAndMargo via perl6-users wrote: Actually, I am looking for the name of the calling program: Cobian, Task manager, deamon, etc.. linux centric anwser: ra

Re: who call raku?

2024-02-10 Thread ToddAndMargo via perl6-users
On 2/10/24 15:26, Marc Chantreux wrote: On Thu, Feb 08, 2024 at 02:25:00PM -0800, ToddAndMargo via perl6-users wrote: Actually, I am looking for the name of the calling program: Cobian, Task manager, deamon, etc.. linux centric anwser: raku -e 'say "/proc/{"/proc/$*PID/stat".IO.words[3]}/comm

Re: who call raku?

2024-02-10 Thread Marc Chantreux
On Thu, Feb 08, 2024 at 02:25:00PM -0800, ToddAndMargo via perl6-users wrote: > Actually, I am looking for the name of the calling program: > Cobian, Task manager, deamon, etc.. linux centric anwser: raku -e 'say "/proc/{"/proc/$*PID/stat".IO.words[3]}/comm".IO.lines[0]' hth -- Marc Chantreux

Re: disable coercing?

2024-02-10 Thread ToddAndMargo via perl6-users
On 2/10/24 02:41, Elizabeth Mattijsen wrote: On 10 Feb 2024, at 08:56, ToddAndMargo via perl6-users wrote: Hi All, Is there a switch to tell Raku to bomb out with a type mismatch rather than coercing the following? my uint16 $x = -1 65535 No, this is intentional behaviour on native integ

Re: disable coercing?

2024-02-10 Thread Elizabeth Mattijsen
> On 10 Feb 2024, at 08:56, ToddAndMargo via perl6-users > wrote: > > Hi All, > > Is there a switch to tell Raku to bomb out with a > type mismatch rather than coercing the following? > > > my uint16 $x = -1 > 65535 No, this is intentional behaviour on native integers. Note that you can incr

Re: who call raku?

2024-02-08 Thread ToddAndMargo via perl6-users
On 2/8/24 14:25, ToddAndMargo via perl6-users wrote: On 2/8/24 13:19, Bruce Gray wrote: On Feb 8, 2024, at 15:12, ToddAndMargo via perl6-users wrote: Hi All, Is there one of those fancy system variables that will tell me who called/started raku? Ooops. I should have said "what called"

Re: Session ID

2024-02-08 Thread ToddAndMargo via perl6-users
On 2/6/24 17:50, ToddAndMargo via perl6-users wrote: Hi All Windows 10 and 11 Does Raku have a system call that will tell me my "session ID"? Many thanks, -T So far what I have come up with is a system call to "wmic": >raku -e "sleep 14" >wmic process where "name='raku.exe'" get ProcessID

Re: who call raku?

2024-02-08 Thread ToddAndMargo via perl6-users
On 2/8/24 13:19, Bruce Gray wrote: On Feb 8, 2024, at 15:12, ToddAndMargo via perl6-users wrote: Hi All, Is there one of those fancy system variables that will tell me who called/started raku? raku -e 'say $*USER' bruce Actually, I am looking for the name of the calling progr

Re: who call raku?

2024-02-08 Thread Bruce Gray
> On Feb 8, 2024, at 15:12, ToddAndMargo via perl6-users > wrote: > > Hi All, > > Is there one of those fancy system variables that will > tell me who called/started raku? raku -e 'say $*USER' bruce -- Hope this helps, Bruce Gray (Util of Perlmonks)

Re: -c question

2024-02-06 Thread ToddAndMargo via perl6-users
On 2/6/24 09:03, Bruce Gray wrote: On Feb 6, 2024, at 10:52, ToddAndMargo via perl6-users wrote: On 6 Feb 2024, at 00:39, ToddAndMargo via perl6-users wrote: Hi All, Is there a way to syntax a module? Sort of like the "-c" option on main programs? Many thanks, -T On 2/6/24 01:34, E

Re: -c question

2024-02-06 Thread ToddAndMargo via perl6-users
On 6 Feb 2024, at 17:52, ToddAndMargo via perl6-users wrote: On 6 Feb 2024, at 00:39, ToddAndMargo via perl6-users wrote: Hi All, Is there a way to syntax a module? Sort of like the "-c" option on main programs? Many thanks, -T On 2/6/24 01:34, Elizabeth Mattijsen wrote: $ raku -c

Re: -c question

2024-02-06 Thread Bruce Gray
> On Feb 6, 2024, at 10:52, ToddAndMargo via perl6-users > wrote: > >>> On 6 Feb 2024, at 00:39, ToddAndMargo via perl6-users >>> wrote: >>> >>> Hi All, >>> >>> Is there a way to syntax a module? Sort of like the "-c" >>> option on main programs? >>> >>> Many thanks, >>> -T > > On 2/6/

Re: -c question

2024-02-06 Thread Elizabeth Mattijsen
Do you have some "use lib 'foo'" setting in your program? If so, use that on the command-line, e.g.: $ raku -Ifoo -c bar.rakumod > On 6 Feb 2024, at 17:52, ToddAndMargo via perl6-users > wrote: > >>> On 6 Feb 2024, at 00:39, ToddAndMargo via perl6-users >>> wrote: >>> >>> Hi All, >>>

Re: -c question

2024-02-06 Thread ToddAndMargo via perl6-users
On 6 Feb 2024, at 00:39, ToddAndMargo via perl6-users wrote: Hi All, Is there a way to syntax a module? Sort of like the "-c" option on main programs? Many thanks, -T On 2/6/24 01:34, Elizabeth Mattijsen wrote: > $ raku -c foo.rakumod > Syntax OK > $ raku -c WinMessageBox.pm6 ===SORRY!===

Re: -c question

2024-02-06 Thread Elizabeth Mattijsen
$ raku -c foo.rakumod Syntax OK > On 6 Feb 2024, at 00:39, ToddAndMargo via perl6-users > wrote: > > Hi All, > > Is there a way to syntax a module? Sort of like the "-c" > option on main programs? > > Many thanks, > -T > > > > -- > ~~ > Computers are l

Re: IO::Socket::INET timeout?

2024-01-21 Thread Paul Procacci
On Sat, Jan 20, 2024 at 5:02 PM William Michels wrote: > Hi Paul, > > Did you get any resolution on this? I've only found these links: > > https://docs.raku.org/type/IO/Socket/INET > > > https://stackoverflow.com/questions/72639883/how-to-deal-with-exceptions-in-iosocketinet > > I imagine a solut

  1   2   3   4   5   6   7   8   9   10   >