Re: ftp client yet?

2021-10-28 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 Ralph Mellor
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. It's *much* easier to write a `use`

Re: Primitive benchmark comparison (parsing LDIF)

2021-10-28 Thread Norman Gaywood
On Fri, 29 Oct 2021 at 09:14, Norman Gaywood wrote: > > Might have to test this example again on 2021.10 (not easy for me). > I mean, test again on 2021.9 to see if there was a regex speed up in 2021.10 -- Norman Gaywood, Computer Systems Officer School of Science and Technology University of

Re: Primitive benchmark comparison (parsing LDIF)

2021-10-28 Thread Norman Gaywood
On Fri, 29 Oct 2021 at 00:46, yary wrote: > A small thing to begin with in the regex m/ ^ (@attributes) ':' \s (.+) > $ /; > m/ ^ (@attributes) ': ' (.*) $ /; > Yes, nice cleanup. Thanks. > Next, how about adding a 2nd regex test similar to the "split" that also > relies on User ignoring unkn

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 th

Re: Primitive benchmark comparison (parsing LDIF)

2021-10-28 Thread yary
A small thing to begin with in the regex m/ ^ (@attributes) ':' \s (.+) $ /; All the string examples use the literal ': ' colon+space, so how about making the regex more consistent? And also allowing the empty string as a value, which the string examples allow. m/ ^ (@attributes) ': ' (.*) $ /;