MAIN(*magic)

2024-03-14 Thread Mark Devine
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 bit of code at the top the MAIN block, then into

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: too many file handles

2021-03-17 Thread Mark Devine
Richard, If a quick workaround is fitting, the problem can be dodged at the system level. I'll pick 8192 open files on Linux for example: /etc/security/limits.conf myuser hard nofile 8192 myuser soft nofile 8192 This doesn't address the open file count within Raku, but

IO::Socket::Async::SSL on new Linux

2020-11-27 Thread Mark Devine
Appreciation to https://github.com/jnthn for his recent update to https://github.com/jnthn/p6-io-socket-async-ssl. My lab consists of the below Linux platforms, where the starred four distributions were snagged on IO::Socket::Async::SSL, thereby holding back cro. Not tonight! CentOS

RE: just curious to know

2020-06-14 Thread Mark Devine
Radhakrishnan, I would be considered a non-developer and more of a system admin/architect. I’ve used Perl 4/5 since the 1990s with success. My opinion of Python is not particularly high, except that it is ubiquitous (like Perl 5). Ruby was not unpleasant. I’ve sampled a few others, but

RE: question about the multi in method

2020-06-08 Thread Mark Devine
Peter, I applaud your excellent assistance with Raku. Et. al. (you know the names)... Outstanding community! Mark -Original Message- From: Peter Pentchev Sent: Monday, June 8, 2020 17:13 To: perl6-users@perl.org Subject: Re: question about the multi in method On Mon, Jun 08, 2020

RE: Wrap an attribute’s ^get_value method in TWEAK

2019-09-08 Thread Mark Devine
Easy for you to say... (haha) Nice! Many thanks. Mark From: Vadim Belman Sent: Sunday, September 8, 2019 21:32 To: Mark Devine Cc: perl6-users Subject: Re: Wrap an attribute’s ^get_value method in TWEAK Here is a quickly hacked together example: multi trait_mod: (Attribute:D

RE: Wrap an attribute’s ^get_value method in TWEAK

2019-09-08 Thread Mark Devine
retzel. I couldn’t even find where a role gets ‘$’, but I saw it in JSTOWE’s code so I mimicked. I need a little more broad-based help on what goes where and when. Thanks, Mark From: Vadim Belman Sent: Sunday, September 8, 2019 14:57 To: Mark Devine Cc: perl6-users Subject: Re: Wrap an attribute’s

Wrap an attribute’s ^get_value method in TWEAK

2019-09-08 Thread Mark Devine
Perl6 Community, How do I properly wrap an attribute’s ^get_value method in TWEAK? If a condition exists, I’d like to wrap all (:local) attributes so that they can do some extra work. The module that I’m working on has classes/attributes for hundreds of fields in dozens of different, big XML

RE: FW: Type name limit?

2019-08-14 Thread Mark Devine
From: yary Sent: Wednesday, August 14, 2019 17:05 To: Mark Devine Cc: perl6-users Subject: Re: FW: Type name limit? What's the simplest way to get the error- can you make a 1 or 2 line class definition that should compile but doesn't? On Wed, Aug 14, 2019, 10:27 AM Mark Devine mailto:m

Type name limit?

2019-08-13 Thread Mark Devine
This is Rakudo version 2019.07.1 built on MoarVM version 2019.07.1 implementing Perl 6.d. Is there a type “name” size limit in Perl 6/Rakudo/Moar? I’ve been making a hierarchy of classes to take in a > 4MB XML file, and I found it organized & convenient to use the names of the elements for

RE: Perl6 use cases

2018-11-05 Thread Mark Devine
N6Ghost, I use Perl 6 exclusively now for "systems" work. - SSH commands to 500 systems to gather their info using promises/supplies/channels - make Perl 6 modules for cantankerous system management utilities, then write scripts that use my .pm6 modules for various purposes

RE: Could this be any more obscure?

2018-09-28 Thread Mark Devine
I guess I’m extra impressed with esoteric linguistic references. Your replies were concise and I understood them pretty quickly. Mark From: Brandon Allbery Sent: Friday, September 28, 2018 21:51 To: Mark Devine Cc: la...@wall.org; ToddAndMargo ; perl6-users Subject: Re: Could this be any

RE: Could this be any more obscure?

2018-09-28 Thread Mark Devine
Kudos to the Benevolent Dictator! I'll have to loop over this a few times, but it's a blast... Mark -Original Message- From: Larry Wall Sent: Friday, September 28, 2018 21:28 To: ToddAndMargo Cc: perl6-users@perl.org Subject: Re: Could this be any more obscure? On Fri, Sep 28, 2018

RE: Please explain this to me

2018-09-16 Thread Mark Devine
I get it. Different angles of approach. Some methods don't make a dent with me (I.e. rote). Mark -Original Message- From: ToddAndMargo Sent: Sunday, September 16, 2018 21:42 To: perl6-users@perl.org Subject: Re: Please explain this to me On 09/16/2018 06:23 PM, Mark Devine wrote

RE: Please explain this to me

2018-09-16 Thread Mark Devine
foy, brian d. Learning Perl 6: Keeping the Easy, Hard, and Impossible Within Reach (Kindle Location 557). O'Reilly Media. Kindle Edition. Chapter 2: Binding and Assignment: "There’s an important concept here that you should learn early." [[ what follows in the most concise and understandable

RE: RFE: contains documentation

2018-09-07 Thread Mark Devine
I second that nod. Learning Perl 6 is fixing up all kinds of my errant mental models. Just what I needed. Mark From: Curt Tilmes Sent: Friday, September 7, 2018 21:25 To: Todd Chester Cc: perl6-users Subject: Re: RFE: contains documentation On Fri, Sep 7, 2018 at 8:58 PM ToddAndMargo

RE: Perl6 POSIX IEEE Std 1003.1

2018-08-14 Thread Mark Devine
POSIX IEEE Std 1003.1 Thank you. Please let me know if you miss anything and/or find any problems. For myself, I’ve hardly had any use for these modules so they’re probably undertested. Liz > On 14 Aug 2018, at 22:15, Mark Devine wrote: > > Wow. Glad I asked… > > Than

RE: Perl6 POSIX IEEE Std 1003.1

2018-08-14 Thread Mark Devine
Wow. Glad I asked… Thank you Elizabeth Mattijsen! We’ll benefit greatly from your industrious work. Mark From: JJ Merelo Sent: Tuesday, August 14, 2018 17:01 To: Mark Devine ; perl6-users Subject: Re: Perl6 POSIX IEEE Std 1003.1 Many of them are already in the ecosystem as part

Perl6 POSIX IEEE Std 1003.1

2018-08-14 Thread Mark Devine
Perl6 Users, The POSIX module in the ecosystem (https://github.com/cspencer/perl6-posix) implements a few commonly used subs from POSIX IEEE Std 1003.1 in a single file, which I found useful. I wanted to use more of these so I coded a few simple subroutines with NativeCall for my own use.

RE: return code?

2018-08-09 Thread Mark Devine
and sort out each Proc::Async’s $*OUT and $*ERR without line noise. For version 0.0.2 I hardcoded a throttle of 16 threads after graphing performance on a 4 x Linux VM – seems safe yet efficient. Criticisms & suggestions always welcome by Perl6 mentors. Thanks, Mark From: Mark Devine

RE: return code?

2018-07-28 Thread Mark Devine
Todd, I see that you’re frequently running commands in your code like me. I was looking for a reliable reusable approach for commands for a long time. I’m still learning & not quite ready to step up to contribute to the ecosystem yet (https://docs.perl6.org/language/modules.html). After

Perl 6: Protecting Intellectual Property for Commercial Code

2017-10-22 Thread Mark Devine
Perl 6 Users, [[ Bouncing off Re: who own my code? ]] This is the first of several possible spin-off questions, but here goes… Perl 6 has its public ecosystem, which will drive growth and adoption. Then there’s the commercial side, which would also drive the language from another important

RE: Perl 6 Object Construction - General Advice

2017-10-05 Thread Mark Devine
- From: Timo Paulssen [mailto:t...@wakelift.de] Sent: Thursday, October 5, 2017 13:56 To: Mark Devine <m...@markdevine.com>; perl6-users@perl.org Subject: Re: Perl 6 Object Construction - General Advice The main difference between BUILD and TWEAK is that BUILD will replace all d

Perl 6 Object Construction - General Advice

2017-09-30 Thread Mark Devine
Perl 6, I am preparing to write several classes for some Perl 6 apps I intend to craft in support of a prominent backup suite. In looking at the documentation & some of the modules published in the Perl 6 ecosystem, I’m not quite sure that I can identify the best idiomatic object construction

RE: String to array problem

2017-07-16 Thread Mark Devine
$y[3] = 'Moe Curly Larry'; > > Any words of wisdom? > > Many thanks, > -T > On 07/16/2017 05:16 PM, Mark Devine wrote: > T, > > my $x = 'ls -al "Program Files" "Moe Curly Larry"'; > ~($x ~~ m:g

RE: String to array problem

2017-07-16 Thread Mark Devine
rgo [mailto:toddandma...@zoho.com] Sent: Sunday, July 16, 2017 8:35 PM To: perl6-users <perl6-users@perl.org> Subject: Re: String to array problem On 07/16/2017 05:16 PM, Mark Devine wrote: > T, > > my $x = 'ls -al "Program Files" "Moe Curly Larry"'; my @y = ~($x ~~

RE: String to array problem

2017-07-16 Thread Mark Devine
T, my $x = 'ls -al "Program Files" "Moe Curly Larry"'; my @y = ~($x ~~ m:global/ [ '"' <-[ " ]> * '"' | \S+ ] /); Mark Devine -Original Message- From: ToddAndMargo [mailto:toddandma...@zoho.com] Sent: Sunday, July 16, 2017 7:41 PM To: perl6-use