Re: about binary protocol porting
Hi Jon, On Wed, 29 Dec 2021 09:31:47 +0800 Jon Smart wrote: > I plan to port a binary protocol client to perl6/raku. > I have zero experience on this. Where should I get started? > > Thanks. no experience either but try https://docs.raku.org/type/IO::Socket::INET and https://duckduckgo.com/?q=raku+sockets=v140-1=web . -- Shlomi Fish https://www.shlomifish.org/ https://shlomifishswiki.branchable.com/Self-Sufficiency/ To have bugs is human; to fix them — divine. — https://www.shlomifish.org/humour.html Please reply to list if it's a mailing list post - https://shlom.in/reply .
Re: how do I turn a real into and array of Integers?
Hi all! On Sun, 31 Oct 2021 15:14:07 +0800 Alice wrote: > Hello > > Try this one: > > use strict; > > use Data::Dumper; > > > my $x = sqrt 2; > > my @li= grep{/\d+/} split//,$x; > > > print Dumper \@li; > Or in raku: > ("" ~ sqrt(2)).comb().grep(* ne ".").map(+*) (1 4 1 4 2 1 3 5 6 2 3 7 3 0 9 5 1) > > > $ perl t1.pl > > $VAR1 = [ > > '1', > > '4', > > '1', > > '4', > > '2', > > '1', > > '3', > > '5', > > '6', > > '2', > > '3', > > '7', > > '3', > > '1' > > ]; > > > Regards > > Alice > > On Sun, Oct 31, 2021 at 2:58 PM ToddAndMargo via perl6-users < > perl6-users@perl.org> wrote: > > > 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 > > > > > > -- Shlomi Fish https://www.shlomifish.org/ https://www.shlomifish.org/open-source/projects/fortune-mod/ Summer Glau gave Richard III a horse free-of-charge and let him keep his kingdom for himself. — https://www.shlomifish.org/humour/bits/facts/Summer-Glau/ Please reply to list if it's a mailing list post - https://shlom.in/reply .
Re: List name and raku installation options
Hi Parrot! On Sun, 27 Sep 2020 13:28:20 -0400 Parrot Raiser <1parr...@gmail.com> wrote: > As I was about to post my other question, it occurred to me that > perhaps we should have a raku-users list, (and corresponding ones for > the other, formerly perl6-flavoured lists? > > And now for the actual question. I'm experimenting with installing > Raku on an ARM machine, (specifically a PineBook Pro). > Is there any way I can indicate to the download, especially "make" > that it has 6 cores with which to play. > Can you use GNU make's "-j" / "--jobs" flag: https://www.gnu.org/software/make/manual/make.html#Parallel Or did I misunderstand what you wish to achieve? > (It seemed to speed up experiments on a Raspberry Pi with an earlier > format of the download, where it was possible to change the make > command.) -- Shlomi Fish https://www.shlomifish.org/ What Makes Software Apps High Quality - https://shlom.in/sw-quality COBOL is the old Java. — https://is.gd/ClKAz5 Please reply to list if it's a mailing list post - https://shlom.in/reply .
Re: Eject flash drive in Windows?
Hi Todd! On Tue, 22 Sep 2020 20:33:47 -0700 ToddAndMargo via perl6-users wrote: > Hi All, > > Anyone write any code to eject a flash drive in Windows? > A duckduckgo search led me to this page: https://stackoverflow.com/questions/85649/safely-remove-a-usb-drive-using-the-win32-api Hope that helps! > Many thanks, > -T -- Shlomi Fish https://www.shlomifish.org/ List of Portability Libraries - https://shlom.in/port-libs Only two things are infinite: the universe, and Chuck Norris’s destruction ability. And we cannot be sure about the former thanks to the latter. — https://www.shlomifish.org/humour/bits/facts/Chuck-Norris/ Please reply to list if it's a mailing list post - https://shlom.in/reply .
Re: perl streaming framework
Hi Warren! On Wed, 15 Jul 2020 08:43:33 +0800 Warren Pang wrote: > Thank you all very much. > > I have tried to search "perl discussion" and it brings me to perl6's list > page. > Yes for data analysis we primarily use classic perl5, which is smart enough > especially the regex matching. > There are "spark streaming", "flink streaming", "storm streaming", and a > lot of others, but they don't support perl language well. > So I expect the community, either perl6 or perl5, can make that a framework. "Perl 6" is now called Raku and is not compatible with Perl 5. Regarding "the community" making something - I recall a similar request (or was it a demand?) on a Perl facebook group that we must have a https://en.wikipedia.org/wiki/Massive_open_online_course (MOOC) for Perl. As usual with FOSS, time consuming suggestions can be materialised either by investing time, or by motivating contributors using money. Otherwise, they often don't get materialised. > We can't lose the capability in big data, cloud computing, AI, ML, > streaming, these are the main features of current internet. From what I know, not everyone is doing AI (which I was told requires a relevant M.Sc and has a high barrier to entry) and "machine learning" is not the only approach to AI: https://fc-solve.shlomifish.org/faq.html#machine_learning > Everyone today writes CGI with perl? NO. > Not everyone today writes CGI scripts, or uses Perl for them, but some people still do. These include me because I prefer to use shared web hosting, where, for server side scripting, I can use either PHP (which I dislike, see: https://www.shlomifish.org/open-source/anti/php/ ) or CGI scripts (in Perl or Python or similar). So I still use two such scripts in Perl and one which I translated from Perl to Python (not because I was unhappy with the Perl code, but because I've been trying to learn Python better) along with many generated static pages and assets here: * https://www.shlomifish.org/meta/site-source/ I was once told that generated static HTML should be avoided because PHP is the present and the future, but it seems they were proven wrong too: * https://github.com/shlomif/shlomif-tech-diary/blob/master/static-site-generators--despair.md I'm not saying server-side-scripting is not useful, but generated static sites are still of utility as well. > Thanks. -- Shlomi Fish https://www.shlomifish.org/ My Photos - https://www.flickr.com/photos/shlomif/ “Stop reinventing wheels, start building space rockets.” — The motto of the Comprehensive Perl Archive Network Please reply to list if it's a mailing list post - https://shlom.in/reply .
Re: perl streaming framework
Hi Warren, On Tue, 14 Jul 2020 16:54:49 +0800 Warren Pang wrote: > Hello > > We are already using perl PDL and something similar. > The streaming framework is mainly used for real time data analysis. > Tyler from Apache Beam project has wrote a great book about streaming > system: > http://streamingsystems.net/ > So I have interest to know if there is the perl implementation for that. > I think I get the general idea. You can try bridging perl 5 to Java, Python, or whatever's APIs using the Inline::* modules such as https://metacpan.org/pod/distribution/Inline-Java/lib/Inline/Java.pod . Some of them work fairly well from my experience (caveat: I currently comaintain Inline-Ruby: https://metacpan.org/pod/distribution/Inline-Ruby/lib/Inline/Ruby.pod ) > Thank you. > > > > On Tue, Jul 14, 2020 at 3:39 PM Shlomi Fish wrote: > > > Hi Warren! > > > > Please reply to list. > > > > On Tue, 14 Jul 2020 10:34:57 +0800 > > Warren Pang wrote: > > > > > Hi > > > > > > Does perl have a stream computing framework? > > > I know Java/python have many, such as spark, flink, beam etc. > > > But I am looking for a perl alternative, since most of our team members > > > have been using perl for data analysis. > > > > > > > 1. Do you want one for Raku which was formerly known as "Perl 6" (see > > https://en.wikipedia.org/wiki/Raku_(programming_language) ) or for "perl > > 5"? > > > > 2. What do you mean by "stream computing framework"? Is there a > > wikipedia/etc. > > page for them? > > > > 3. Can you link to some examples? > > > > 4. Do you mean something like http://pdl.perl.org/ (or numpy for python)? > > > > > > > Thank you. > > > > > > > > -- > > > > Shlomi Fish https://www.shlomifish.org/ > > Why I Love Perl - https://shlom.in/joy-of-perl > > > > The reason the Messiah has not come yet, is because Chuck Norris keeps > > finding > > faults in God’s plan for his coming. > > — https://www.shlomifish.org/humour/bits/facts/Chuck-Norris/ > > > > Please reply to list if it's a mailing list post - https://shlom.in/reply > > . > > -- Shlomi Fish https://www.shlomifish.org/ https://youtu.be/GoEn1YfYTBM - Tiffany Alvord - “Fall Together” Selina: How may I be of service? Alan: Well, according to the Codex, we’re supposed to be slain by you. — https://www.shlomifish.org/humour/Selina-Mandrake/ Please reply to list if it's a mailing list post - https://shlom.in/reply .
Re: perl streaming framework
Hi Warren! Please reply to list. On Tue, 14 Jul 2020 10:34:57 +0800 Warren Pang wrote: > Hi > > Does perl have a stream computing framework? > I know Java/python have many, such as spark, flink, beam etc. > But I am looking for a perl alternative, since most of our team members > have been using perl for data analysis. > 1. Do you want one for Raku which was formerly known as "Perl 6" (see https://en.wikipedia.org/wiki/Raku_(programming_language) ) or for "perl 5"? 2. What do you mean by "stream computing framework"? Is there a wikipedia/etc. page for them? 3. Can you link to some examples? 4. Do you mean something like http://pdl.perl.org/ (or numpy for python)? > Thank you. -- Shlomi Fish https://www.shlomifish.org/ Why I Love Perl - https://shlom.in/joy-of-perl The reason the Messiah has not come yet, is because Chuck Norris keeps finding faults in God’s plan for his coming. — https://www.shlomifish.org/humour/bits/facts/Chuck-Norris/ Please reply to list if it's a mailing list post - https://shlom.in/reply .
Re: bash "."?
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 formats have no official (ISO/etc.) standard, and there are many > > variations of them. See, for example, the various options that > > https://metacpan.org/pod/Config::IniFiles accepts (note that I comaintain > > it now). > > > >> I will be playing with them shortly. I really want > >> to see how CONFIG handles section titles. > >> > >> Thank you! > >> > >> -T > > # zef install Config::IniFiles > ===> Searching for: Config::IniFiles > No candidates found matching identity: Config::IniFiles > Sorry for the confusion, but https://metacpan.org/pod/Config::IniFiles is a Perl 5 module. I have no plans of translating it to Raku, but it may be accessible using a Perl5 <-> bridge. I just linked to it to illustrate the point of how there are many variations on the theme of inifiles. > > :'( :'( :'( -- Shlomi Fish https://www.shlomifish.org/ Freecell Solver - https://fc-solve.shlomifish.org/ Writing a BitKeeper replacement is probably easier at this point than getting its license changed. — Matt Mackall (who ended up writing a BitKeeper replacement) Please reply to list if it's a mailing list post - https://shlom.in/reply .
Re: bash "."?
Hi Todd! On Thu, 14 May 2020 14:40:49 -0700 ToddAndMargo via perl6-users wrote: > On 2020-05-14 08:22, Peter Pentchev wrote: > > On Thu, May 14, 2020 at 04:39:18AM -0700, ToddAndMargo via perl6-users > > wrote: > >> On 2020-05-13 22:27, Bruce Gray wrote: > >>> > >>> > >>>> On May 13, 2020, at 9:37 PM, ToddAndMargo via perl6-users > >>>> wrote: > >>>> > >>>> Hi All, > >>>> > >>>> Do we have anything like Bash's "." statement where > >>>> we can read in a bunch of values from a .cfg file? > >>>> (I think it is called "include", but I am not sure.) > >>>> > >>>> . /etc/sysconfig/network-scripts/ifcfg-br0 > >>>> > >>>> which populates these (and other) variables > >>>> > >>>> DEVICE=br0 > >>>> TYPE=Bridge > >>>> ONBOOT=yes > >>>> USERCTL=yes > >>>> DELAY=0 > >>>> NM_CONTROLLED=yes > >>>> BOOTPROTO=none > >>>> PREFIX=24 > >>>> ... > >>>> > >>>> Many thanks, > >>>> -T > >>> > >>> Hi Todd, > >>> > >>> FYI, the `.` Bash command is also called `source`, which is easier to > >>> search on the Web, and clearer in email: https://ss64.com/bash/source.html > >>> > >>> The closest equivalent in Raku is: > >>> https://docs.raku.org/routine/EVALFILE > >>> , which could be used for config data like so: > >>> $ cat a.dat > >>> $foo = "bar"; > >>> $baz = "quxx"; > >>> > >>> $ perl6 -e 'our ($foo, $baz); EVALFILE "a.dat"; .say for $foo, > >>> $baz;' bar > >>> quxx > >>> > >>> , but please do not use it for this purpose. > >>> > >>> EVALFILE is in all-caps to show that it might be dangerous and not for > >>> general use; it is “grep-able evil”, and could eval any valid Raku code, > >>> even evil things like `run “rm -rf /“`. > >>> > >>> IMHO, Bash's `source`-style of loading variables pollutes the main > >>> namespace and causes hard-to-debug “action at a distance”. In Raku (or > >>> any other dynamic language), the use of some kind of Config module is > >>> safer and cleaner: https://modules.raku.org/t/CONFIG > >>> https://github.com/raku-community-modules/perl6-Config-JSON > >>> https://github.com/Skarsnik/perl6-config-simple > >>> https://metacpan.org/pod/Config::Tiny > >>> > >>> For example: > >>> > >>> $ cat config.json > >>> { > >>> "baz": "quxx", > >>> "foo": "bar” > >>> } > >>> $ perl6 -e 'use Config::JSON; my %c; %c{$_} = jconf($_) for ; > >>> say %c{$_} for ;' bar > >>> quxx > >>> > >>> $ cat b.dat > >>> foo = bar > >>> baz = quxx > >>> $ perl6 -e 'use Config::Tiny:from; my $conf = > >>> Config::Tiny.read("b.dat"); .say for $conf<_>' bar > >>> quxx > >>> > >>> > >>> — > >>> Hope this helps, > >>> Bruce Gray (Util of PerlMonks) > >> > >> > >> Hi Bruce, > >> > >> I looked at the first two links above. Neither showed > >> the format of the data being read. But you did. Is > >> there some reason why the two links did not show the format? > > > > Well, they do both say they read .ini-style files. I think that they > > will both be able to read simple key=value files like the network > > definition sysconfig ones on RedHat-style systems that you seem to want. > > Keep in mind that the shell probably interprets a bit more, so some > > configuration-reading modules may e.g. return the quotes around the > > value or something like that; take them for a spin and see. > > Also, it's almost certain that these modules will not be able to help if > > the files that you read make use of the fact that the shell performs > > variable expansion: they will not be able to expand other variables in > > lines like: > > > > KEYFILE="/etc/keys/$HOSTNAME.key" > > > > or something like that. > > > > If you come across files like that, you may have to write your own > > parser. > > > > For some general information on ini-like files, see > > https://en.wikipedia.org/wiki/INI_file > > > > G'luck, > > Peter > > > > Hi Peter, > > That was extremely helpful! I never realized INI > files were standardized. > The INI formats have no official (ISO/etc.) standard, and there are many variations of them. See, for example, the various options that https://metacpan.org/pod/Config::IniFiles accepts (note that I comaintain it now). > I will be playing with them shortly. I really want > to see how CONFIG handles section titles. > > Thank you! > > -T -- Shlomi Fish https://www.shlomifish.org/ Funny Anti-Terrorism Story - https://shlom.in/enemy Summer Glau showed Kermit the Frog how easy it can be to be green. — https://www.shlomifish.org/humour/bits/facts/Summer-Glau/ Please reply to list if it's a mailing list post - https://shlom.in/reply .
Re: Dropbox and IO?
On Tue, 7 Apr 2020 11:29:18 -0500 Stephen Wilcoxon wrote: > Dropbox on Windows is a real directory. It is just monitored by the > Dropbox software and files (or possibly pieces - not sure) are uploaded and > downloaded when necessary to keep them in sync with the server. > Thanks for the investigation and info, Stephen! > On Tue, Apr 7, 2020 at 2:40 AM Simon Proctor > wrote: > > > Ok I don't have access to my windows box until this evening. I'm mostly > > used to using Dropbox on a Linux box where it's just a folder. > > > > Sorry for my mistake. > > > > On Tue, 7 Apr 2020 at 07:51, Shlomi Fish wrote: > > > >> Hi Simon, > >> > >> On Tue, 7 Apr 2020 06:55:00 +0100 > >> Simon Proctor wrote: > >> > >> > Don't see why not, Dropbox is just a folder that you should be able to > >> > access as normal. > >> > > >> > >> Is it a higher-level folder or a bona-fide filesystem direcory: > >> > >> https://en.wikipedia.org/wiki/Directory_(computing)#Folder_metaphor > >> > >> If it is not visible to the filesystem, one may need higher level APIs > >> other > >> than fopen ( https://en.cppreference.com/w/c/io/fopen ) and friends. > >> > >> > On Tue, 7 Apr 2020, 02:22 ToddAndMargo via perl6-users, < > >> > perl6-users@perl.org> wrote: > >> > > >> > > Hi All, > >> > > > >> > > Do any of you using Windows and Dropbox know > >> > > if Raku's file IO utilities can both read > >> > > and write to a Drop Box drive? > >> > > > >> > > Many thanks, > >> > > -T > >> > > > >> > >> > >> > >> -- > >> > >> Shlomi Fish https://www.shlomifish.org/ > >> https://www.shlomifish.org/open-source/resources/tech-tips/ > >> > >> How many “one-liners” do I actually write? I don’t know; maybe a couple > >> dozen > >> a day. But I guess I must be unusual, because as we all know, AWK was a > >> complete failure and vanished into obscurity since it didn’t address > >> anyone’s > >> real needs. (That was sarcasm.) — “Twelve Views of Mark Jason Dominus” > >> > >> Please reply to list if it's a mailing list post - https://shlom.in/reply > >> . > >> > > > > > > -- > > Simon Proctor > > Cognoscite aliquid novum cotidie > > > > http://www.khanate.co.uk/ > > -- Shlomi Fish https://www.shlomifish.org/ List of Portability Libraries - https://shlom.in/port-libs Chuck Norris can become root on OpenBSD. By using nothing but /bin/echo. (By: ZadYree and Shlomi Fish) — https://www.shlomifish.org/humour/bits/facts/Chuck-Norris/ Please reply to list if it's a mailing list post - https://shlom.in/reply .
Re: How to read a web page?
Hi Todd! On Tue, 7 Apr 2020 02:15:13 -0700 ToddAndMargo via perl6-users wrote: > How do I read (download) a web page? get? See https://github.com/raku-community-modules/raku-lwp-simple and https://github.com/shlomif/Freenode-programming-channel-FAQ/blob/master/FAQ_with_ToC__generated.md#how-can-i-write-code-to-perform-operations-on-web-sites-for-me-that-otherwise-should-be-done-manually . Note that there are many file types and formats that can be found on the WWW and downloaded using HTTP/HTTPS. -- Shlomi Fish https://www.shlomifish.org/ NSA Factoids - https://www.shlomifish.org/humour/bits/facts/NSA/ Barth's Distinction: There are two types of people: those who divide people into two types, and those who don't. — via fortune-mod. Please reply to list if it's a mailing list post - https://shlom.in/reply .
Re: Dropbox and IO?
Hi Simon, On Tue, 7 Apr 2020 06:55:00 +0100 Simon Proctor wrote: > Don't see why not, Dropbox is just a folder that you should be able to > access as normal. > Is it a higher-level folder or a bona-fide filesystem direcory: https://en.wikipedia.org/wiki/Directory_(computing)#Folder_metaphor If it is not visible to the filesystem, one may need higher level APIs other than fopen ( https://en.cppreference.com/w/c/io/fopen ) and friends. > On Tue, 7 Apr 2020, 02:22 ToddAndMargo via perl6-users, < > perl6-users@perl.org> wrote: > > > Hi All, > > > > Do any of you using Windows and Dropbox know > > if Raku's file IO utilities can both read > > and write to a Drop Box drive? > > > > Many thanks, > > -T > > -- Shlomi Fish https://www.shlomifish.org/ https://www.shlomifish.org/open-source/resources/tech-tips/ How many “one-liners” do I actually write? I don’t know; maybe a couple dozen a day. But I guess I must be unusual, because as we all know, AWK was a complete failure and vanished into obscurity since it didn’t address anyone’s real needs. (That was sarcasm.) — “Twelve Views of Mark Jason Dominus” Please reply to list if it's a mailing list post - https://shlom.in/reply .
Re: irrational nubmer?
Hi Todd! On Wed, 26 Feb 2020 12:32:57 -0800 ToddAndMargo via perl6-users wrote: > On 2020-02-26 12:14, Tobias Boege wrote: > > On Wed, 26 Feb 2020, ToddAndMargo via perl6-users wrote: > >>>> $ p6 'say (99/70).base-repeating();' > >>>> (1.4 142857) > >>>> > >>>> means that 142857 also repeats (it does not), but > >>>> that it is best it can figure out with the precision > >>>> it has? > >>>> > >>> > >>> What are you talking about? It does repeat. I suggest you take a piece > >>> of paper and compute the decimal digits of 99/70 by hand until you are > >>> convinced that it is 1.4 and then an endless stream of 142857 repeating. > >> > >> I used gnome calculator to 20 digits: > >> 665857/470832 > >> 1.41421356237468991063 > >> Sorry. Not seeing any repeating patterns. > >> > > > > Todd, you were asking about 99/70, so I answered you about 99/70. > > I even quoted it. Now you come with 665857/470832. For that number, > > you will see the repetition after about 580 decimal digits. > > > >> Here is NAS doing it to 1 million digits (they have too > >> much time on their hands): > >> https://apod.nasa.gov/htmltest/gifcity/sqrt2.1mil > >> No repeats. > >> > >> So why does base-repeating tell me there is a repeating > >> pattern when there is not? > >> > > > > Sigh. We already settled that Rat and Num in Raku are rational numbers > > and that √2 is an irrational number. So what can you definitely not apply > > the base-repeating method to in Raku? -- The honest value of √2. > > > > NASA apparently computed the first million digits of √2 and you see no > > repeated digits. Good. In fact a real number is irrational if and only > > if its decimal expansion has no repeating pattern. You can view this as > > a reason for why they are not super easy to deal with on a computer. > > > > But that has nothing to do with the numbers we looked at above. Those were > > obviously rational numbers. They were obviously different from √2 because > > that number is not rational -- and we were looking at rational numbers. > > We were looking at rational numbers close to √2. What makes you think that > > NASA computing digits of the number √2 has any bearing on the correctness > > of `(99/70).base-repeating`? Because √2 and 99/70 are obviously not the > > same number. > > > > We are not working out the decimal expansion of √2. We are working out > > decimal expansions of rational numbers close to, but different from, √2. > > Even though they are close, structural properties of the expansions, > > like the existence of a repeating pattern, are radically different. > > > >> Ah ha, 99/70 does have a repeat: > >> 1.4142857 142857 142857 1 > >> > >> Maybe 665857/470832 I just do not go out enough digits to > >> see a repeat. > >> > >> √2 does not repeat though, but I am thinking that > >> I am stretching the poor machines abilities a bit too far > >> and that is where the repeat comes from > >> > >> $ p6 'say sqrt(2).Rat.base-repeating();' > >>>> (1.4 > >>>> 14213197969543147208121827411167512690355329949238578680203045685279187817258883248730964467005076) > >>>> > >> > >> So, with the technology on hand, the approximation of √2 > >> does have a repeating pattern of > >> > >> 14213197969543147208121827411167512690355329949238578680203045685279187817258883248730964467005076 > >> > >> (And in engineering terms, is meaningless) > >> > > > > Yes, √2 has no repeating decimal pattern and the repetition returned to > > you is the one of the rational approximation to √2 that Raku computed > > when you asked for `sqrt(2).Rat`. > > > > (Somehow it seems like you understood halfway through writing your > > response but decided to keep the first half anyway. I don't know why.) > > > >>>> And what are the unboxing rules for (665857/470832)? > >>>> > >>> > >>> No idea what you mean. > >> > >> When is <665857/470832> unboxed to a Real number to > >> operate on it? Or is it never unboxed? > >> > > > > I'm no boxing expert, but I know that Rat has high-level arithmetic > > defined for it and there is no native rational type to unbox to. > > That would have to go through N
Re: My keeper on IO
Hi Todd, On Sat, 29 Feb 2020 18:05:42 -0800 ToddAndMargo via perl6-users wrote: > Hi All, > > I have written a keep on file IO. I have it open > whenever I am doing IO. It is very useful. > > It is 173 line long, so I won't flood the mailing > list with it, but if anyone want to see it, > I will eMail it to you. > There are other options for sharing files online - pastesites, github, etc: https://github.com/shlomif/how-to-share-code-online Note that it'd be preferable for it to be licensed under a free cultural work licence: * https://creativecommons.org/share-your-work/public-domain/freeworks/ * https://github.com/shlomif/Freenode-programming-channel-FAQ/blob/master/FAQ_with_ToC__generated.md#i-want-to-release-my-code---which-open-source-licence-should-i-use Thanks! > :-) > > -T -- Shlomi Fish https://www.shlomifish.org/ First stop for Perl beginners - https://perl-begin.org/ HP/UX is not a UNIX, and AIX is even less of it than that. — An Israeli Open Source Software Enthusiast. Please reply to list if it's a mailing list post - http://shlom.in/reply .
Re: perl6 vs ruby
Hi Kristopher, welcome aboard. On Sat, 29 Feb 2020 15:14:15 +0800 Kristopher wrote: > Hello, > > This is Kristopher from Japan. > We have ruby language, which I have been using on work for years. > Now I take a rough watch on perl6 language. > Can you tell me what are the main difference between perl6 and ruby? I presume there are many differences between them. Perhaps you should peruse this doc: https://docs.perl6.org/language/rb-nutshell . > Is perl6 good at BIO? > do you mean https://en.wikipedia.org/wiki/Bioinformatics ? > Thank you. -- Shlomi Fish https://www.shlomifish.org/ https://www.shlomifish.org/humour/bits/New-versions-of-the-GPL/ Chuck Norris had a problem so he decided to use regular expressions. Now, all the World’s problems are solved. — http://www.shlomifish.org/humour/bits/facts/Chuck-Norris/ Please reply to list if it's a mailing list post - http://shlom.in/reply .
Re: irrational nubmer?
On Thu, 20 Feb 2020 16:27:27 -0800 William Michels wrote: > On Thu, Feb 20, 2020 at 2:25 PM ToddAndMargo via perl6-users > wrote: > > > > On 2020-02-19 23:21, Shlomi Fish wrote: > > > Hi Paul, > > > > > > > > Well, it is not unthinkable that a > > > https://en.wikipedia.org/wiki/Computer_algebra_system (CAS)-like system > > > will be able to tell that the abstract number sqrt(2) is irrational, as > > > well as some derivative numbers such as 3 + sqrt(2). E.g: > > > > Hi Shlomi, > > > > Those "academic exercises" where enterprising college > > students run pi out to a bazillion digits to see if they > > can find a repeating patterns came up with some > > way of handling an "unbounded" number. A "Real" (Cap R) > > perhaps? > > > > -T > > You can identify repeating patterns in decimal fractions using the > method "base-repeating": > > mbook:~ homedir$ perl6 -e 'say (1/7).base-repeating();' > (0. 142857) > mbook:~ homedir$ perl6 -e 'say (1/7).base-repeating(10);' > (0. 142857) > mbook:~ homedir$ perl6 -e 'say (1/7).base-repeating(10).perl;' > ("0.", "142857") > mbook:~ homedir$ perl6 -e 'say (5/2).base-repeating(10).perl;' > ("2.5", "") > mbook:~ homedir$ > > According to the Raku docs, "If no repetition occurs, the second > string is empty... ." > And the docs say: "The precision for determining the repeating group > is limited to 1000 characters, above that, the second string is ???." > https://docs.raku.org/type/Rational#method_base-repeating > > HTH, Bill. > > PS For those following along at home--unless it's been added since > Rakudo 2019.07--I don't see the "is_irrational()" function in the Raku > language referred to by Shlomi Fish. Or maybe I/we was/were to > understand that there isn't an "is_irrational()" function in the Raku > language as of yet. > Hi, just for the record - I was not talking about Raku, just about a hypothetical language with CAS-like capabilities (see https://en.wikipedia.org/wiki/Computer_algebra_system ) that would be able to do it. I was just using Raku-like syntax for familiarity. I am aware that the functionality is not built in in Raku. > https://stackoverflow.com/questions/42302488/identify-a-irrational-or-complex-number > https://mathoverflow.net/questions/91915/detecting-recognizing-irrational-number-by-computers > https://reference.wolfram.com/language/guide/ContinuedFractionsAndRationalApproximations.html > https://www.wolframalpha.com/examples/mathematics/numbers/irrational-numbers/ > https://www.wolframalpha.com/examples/mathematics/number-theory/continued-fractions/
Re: irrational nubmer?
Hi Paul, On Thu, 20 Feb 2020 00:22:34 -0500 Paul Procacci wrote: > If you wouldn't mind, please stop referring things as being "magical". > There's nothing magical about Raku/Perl6 other than the devs that put in > their time to give you that perception. > They are to be commended for their time and effort. > > Also, being condescending as in "he gave up" is uncalled for. > > It's an IMPOSSIBILITY using today's technology to tell you whether a number > is irrationalperiod. Well, it is not unthinkable that a https://en.wikipedia.org/wiki/Computer_algebra_system (CAS)-like system will be able to tell that the abstract number sqrt(2) is irrational, as well as some derivative numbers such as 3 + sqrt(2). E.g: ``` > my $num = sqrt(2); > say $num.is_irrational() True ``` It won't be able to give its exact value, but may still be able to reason about it. -- Shlomi Fish https://www.shlomifish.org/ Perl Elems to Avoid - https://perl-begin.org/tutorials/bad-elements/ The cool thing about Vim is — you find something interesting with every typo. — Su‐Shee on Freenode’s #perl . Please reply to list if it's a mailing list post - http://shlom.in/reply .
Re: How do I contact the moderator?
Hi Todd, On Mon, 10 Feb 2020 19:25:50 -0800 ToddAndMargo via perl6-users wrote: > Hi All, > > I have been getting a strange eMail on this group. > How do I contact the moderator to check and see > if it is a scam? > I think you should send an email to perl6-users-ow...@perl.org . > Many thanks, > -T -- Shlomi Fish https://www.shlomifish.org/ https://github.com/shlomif/Freenode-programming-channel-FAQ Khisanth =~ s/must sleep/must give Botje all my money/ . — Freenode’s #perl Please reply to list if it's a mailing list post - http://shlom.in/reply .
Re: My Windows Modules
Hi Todd! On Mon, 20 Jan 2020 22:20:29 -0800 ToddAndMargo via perl6-users wrote: > Hi All, > > I have my Win API modules to the point I > like them now. I will be a few months > before I get them up on GIT. > You should already be using version control (git, likely): https://github.com/shlomif/Freenode-programming-channel-FAQ/blob/master/FAQ_with_ToC__generated.md#what-are-some-best-practices-in-programming-that-i-should-adopt (short URL - https://is.gd/kUMG3s ) > If anyone wants to look at them now, I will > vpaste.net them for you. > I will only look at them if they are FOSS: https://github.com/shlomif/Freenode-programming-channel-FAQ/blob/master/FAQ_with_ToC__generated.md#i-want-to-release-my-code---which-open-source-licence-should-i-use (short URL - https://is.gd/1gzZB6 ) Regards, Shlomi > :-) > > -T -- Shlomi Fish https://www.shlomifish.org/ “So, who the hell is Qoheleth?” - https://shlom.in/qoheleth JATFM == “Just answer the fabulous man” Please reply to list if it's a mailing list post - http://shlom.in/reply .
Re: Once again - You say one thing and do another Re: Bug to report: cardinal called an integer
Hi Todd, On Fri, 17 Jan 2020 04:06:10 -0800 Todd Chester via perl6-users wrote: > On 2020-01-17 00:12, Veesh Goldman wrote: > > he's finally looked into making pull requests. > > Do you have a link to the pull requests for > the documentation? I'd like to add some examples > to a few pages. See https://github.com/Raku/doc/pulls . Good luck! -- Shlomi Fish https://www.shlomifish.org/ https://github.com/shlomif/shlomif-computer-settings/ - my dotfiles There’s no point in keeping an idea to yourself since there’s a 10 to 1 chance that somebody already has it and will share it before you. — http://www.shlomifish.org/humour.html Please reply to list if it's a mailing list post - http://shlom.in/reply .
Re: Stack Exchange
Hi, On Tue, 24 Dec 2019 15:24:56 +0300 İsmail Arılık wrote: > I intentionally sent previous email to you because I thought it is > unrelated with the original post and didn't want to bother other guys. I see. In that case the sensible thing to do is to write "[sent in private]" so I'll know it is intentional see: https://www.shlomifish.org/meta/FAQ/#reply_to_list > > I am looking your essays, thanks a lot. > Thanks! Feel free to let me know what you think. > Shlomi Fish , 24 Ara 2019 Sal, 15:01 tarihinde şunu > yazdı: > > > On Tue, 24 Dec 2019 14:33:28 +0300 > > İsmail Arılık wrote: > > > > > Thanks but Christmas is not a holiday for us. =) > > > > > > > Hi Ismail! You can try making "reply to all" the default. > > > > Anyway, we don't celebrate Christmas but we celebrate > > https://en.wikipedia.org/wiki/Hanukkah (being Jewish and all). > > > > BTW, regarding this gh repo of yours - > > https://github.com/it-is-enough/what-is-good-software - you may be > > interested > > in these essays i wrote: > > > > * > > https://www.shlomifish.org/philosophy/computers/high-quality-software/rev2/ > > > > * > > > > https://github.com/shlomif/shlomi-fish-homepage/blob/master/lib/notes/quality-software--followup-2018.md > > > > Regards, > > > > Shlomi > > > > > Shlomi Fish , 24 Ara 2019 Sal, 14:25 tarihinde > > şunu > > > yazdı: > > > > > > > On Tue, 24 Dec 2019 13:39:26 +0300 > > > > İsmail Arılık wrote: > > > > > > > > > Hi Shlomi, it is not an issue now. =) > > > > > > > > > > > > > Thanks for the quick fix! Happy holidays. > > > > > > > > > Shlomi Fish , 24 Ara 2019 Sal, 13:29 > > tarihinde > > > > şunu > > > > > yazdı: > > > > > > > > > > > Hi Ismail! > > > > > > > > > > > > When trying to access your homepage in your signature: > > > > > > https://ismailarilik.com/ I got this 404: > > > > > > > > > > > > « > > > > > > > > > > > > 404 > > > > > > > > > > > > There isn't a GitHub Pages site here. > > > > > > > > > > > > If you're trying to publish one, read the full documentation to > > learn > > > > how > > > > > > to > > > > > > set up GitHub Pages for your repository, organization, or user > > account. > > > > > > GitHub > > > > > > Status — @githubstatus > > > > > > > > > > > > » > > > > > > > > > > > > Please restore your site. > > > > > > > > > > > > Regards, > > > > > > > > > > > > Shlomi > > > > > > > > > > > > On Tue, 24 Dec 2019 11:00:44 +0300 > > > > > > İsmail Arılık wrote: > > > > > > > > > > > > > From: İsmail Arılık > > > > > > > To: ToddAndMargo > > > > > > > Cc: perl6-users@perl.org > > > > > > > Subject: Re: Stack Exchange > > > > > > > Date: Tue, 24 Dec 2019 11:00:44 +0300 > > > > > > > > > > > > > > Sorry, I have noticed that I clicked "Answer" button instead of > > > > "Answer > > > > > > > All" button and my email was only sent to ToddAndMargo. I am > > writing > > > > a > > > > > > copy > > > > > > > of my email below: > > > > > > > > > > > > > > > The issues you mentioned is actually called community > > moderation > > > > and > > > > > > is > > > > > > > one of the most useful features of SO. It is the secret of > > clean, > > > > precise > > > > > > > and pointed posts and answers. And this provides higher ranking > > in > > > > the > > > > > > > search engine indices. > > > > > > > > > > > > > > > I can recommend you to look at Reddit, Hacker News and Quora > > as > > > > > > > alternatives. > > > > > > > > > &
Re: Stack Exchange
On Tue, 24 Dec 2019 14:33:28 +0300 İsmail Arılık wrote: > Thanks but Christmas is not a holiday for us. =) > Hi Ismail! You can try making "reply to all" the default. Anyway, we don't celebrate Christmas but we celebrate https://en.wikipedia.org/wiki/Hanukkah (being Jewish and all). BTW, regarding this gh repo of yours - https://github.com/it-is-enough/what-is-good-software - you may be interested in these essays i wrote: * https://www.shlomifish.org/philosophy/computers/high-quality-software/rev2/ * https://github.com/shlomif/shlomi-fish-homepage/blob/master/lib/notes/quality-software--followup-2018.md Regards, Shlomi > Shlomi Fish , 24 Ara 2019 Sal, 14:25 tarihinde şunu > yazdı: > > > On Tue, 24 Dec 2019 13:39:26 +0300 > > İsmail Arılık wrote: > > > > > Hi Shlomi, it is not an issue now. =) > > > > > > > Thanks for the quick fix! Happy holidays. > > > > > Shlomi Fish , 24 Ara 2019 Sal, 13:29 tarihinde > > şunu > > > yazdı: > > > > > > > Hi Ismail! > > > > > > > > When trying to access your homepage in your signature: > > > > https://ismailarilik.com/ I got this 404: > > > > > > > > « > > > > > > > > 404 > > > > > > > > There isn't a GitHub Pages site here. > > > > > > > > If you're trying to publish one, read the full documentation to learn > > how > > > > to > > > > set up GitHub Pages for your repository, organization, or user account. > > > > GitHub > > > > Status — @githubstatus > > > > > > > > » > > > > > > > > Please restore your site. > > > > > > > > Regards, > > > > > > > > Shlomi > > > > > > > > On Tue, 24 Dec 2019 11:00:44 +0300 > > > > İsmail Arılık wrote: > > > > > > > > > From: İsmail Arılık > > > > > To: ToddAndMargo > > > > > Cc: perl6-users@perl.org > > > > > Subject: Re: Stack Exchange > > > > > Date: Tue, 24 Dec 2019 11:00:44 +0300 > > > > > > > > > > Sorry, I have noticed that I clicked "Answer" button instead of > > "Answer > > > > > All" button and my email was only sent to ToddAndMargo. I am writing > > a > > > > copy > > > > > of my email below: > > > > > > > > > > > The issues you mentioned is actually called community moderation > > and > > > > is > > > > > one of the most useful features of SO. It is the secret of clean, > > precise > > > > > and pointed posts and answers. And this provides higher ranking in > > the > > > > > search engine indices. > > > > > > > > > > > I can recommend you to look at Reddit, Hacker News and Quora as > > > > > alternatives. > > > > > > > > > > ToddAndMargo via perl6-users , 24 Ara 2019 > > Sal, > > > > 03:20 > > > > > tarihinde şunu yazdı: > > > > > > > > > > > On 2019-12-23 16:01, ToddAndMargo via perl6-users wrote: > > > > > > > it is not correcting my grammar > > > > > > > that I find offensive > > > > > > > > > > > > > > > > > > And it is not just your grammar. One of > > > > > > the censors took out "Many thanks -T". Now > > > > > > that is just being frivolous. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > > > Shlomi Fish https://www.shlomifish.org/ > > > > Optimising Code for Speed - https://shlom.in/optimise > > > > > > > > * Backward compatibility is your worst enemy. > > > > * Backward compatibility is your users’ best friend. > > > > — http://www.shlomifish.org/humour/fortunes/osp_rules.html > > > > > > > > Please reply to list if it's a mailing list post - > > http://shlom.in/reply . > > > > > > > > > > > > > > > > > > -- > > > > Shlomi Fish https://www.shlomifish.org/ > > My Aphorisms - https://www.shlomifish.org/humour.html > > > > I before E, except after C. We live in a weird society. > > — Source unknown, via Nadav Har’El. > > > > Please reply to list if it's a mailing list post - http://shlom.in/reply . > > > > -- Shlomi Fish https://www.shlomifish.org/ List of Graphics Apps - https://shlom.in/graphics Chuck Norris killed the fat lady before she could sing. — http://www.shlomifish.org/humour/bits/facts/Chuck-Norris/ Please reply to list if it's a mailing list post - http://shlom.in/reply .
Re: Stack Exchange
On Tue, 24 Dec 2019 13:39:26 +0300 İsmail Arılık wrote: > Hi Shlomi, it is not an issue now. =) > Thanks for the quick fix! Happy holidays. > Shlomi Fish , 24 Ara 2019 Sal, 13:29 tarihinde şunu > yazdı: > > > Hi Ismail! > > > > When trying to access your homepage in your signature: > > https://ismailarilik.com/ I got this 404: > > > > « > > > > 404 > > > > There isn't a GitHub Pages site here. > > > > If you're trying to publish one, read the full documentation to learn how > > to > > set up GitHub Pages for your repository, organization, or user account. > > GitHub > > Status — @githubstatus > > > > » > > > > Please restore your site. > > > > Regards, > > > > Shlomi > > > > On Tue, 24 Dec 2019 11:00:44 +0300 > > İsmail Arılık wrote: > > > > > From: İsmail Arılık > > > To: ToddAndMargo > > > Cc: perl6-users@perl.org > > > Subject: Re: Stack Exchange > > > Date: Tue, 24 Dec 2019 11:00:44 +0300 > > > > > > Sorry, I have noticed that I clicked "Answer" button instead of "Answer > > > All" button and my email was only sent to ToddAndMargo. I am writing a > > copy > > > of my email below: > > > > > > > The issues you mentioned is actually called community moderation and > > is > > > one of the most useful features of SO. It is the secret of clean, precise > > > and pointed posts and answers. And this provides higher ranking in the > > > search engine indices. > > > > > > > I can recommend you to look at Reddit, Hacker News and Quora as > > > alternatives. > > > > > > ToddAndMargo via perl6-users , 24 Ara 2019 Sal, > > 03:20 > > > tarihinde şunu yazdı: > > > > > > > On 2019-12-23 16:01, ToddAndMargo via perl6-users wrote: > > > > > it is not correcting my grammar > > > > > that I find offensive > > > > > > > > > > > > And it is not just your grammar. One of > > > > the censors took out "Many thanks -T". Now > > > > that is just being frivolous. > > > > > > > > > > > > > > > > > > -- > > > > Shlomi Fish https://www.shlomifish.org/ > > Optimising Code for Speed - https://shlom.in/optimise > > > > * Backward compatibility is your worst enemy. > > * Backward compatibility is your users’ best friend. > > — http://www.shlomifish.org/humour/fortunes/osp_rules.html > > > > Please reply to list if it's a mailing list post - http://shlom.in/reply . > > > > -- Shlomi Fish https://www.shlomifish.org/ My Aphorisms - https://www.shlomifish.org/humour.html I before E, except after C. We live in a weird society. — Source unknown, via Nadav Har’El. Please reply to list if it's a mailing list post - http://shlom.in/reply .
Re: [ please ] request for perl machine learning utils development
Hi, [resending] On Wed, 28 Aug 2019 16:47:10 +0800 Cloud Cache wrote: > Hi Elizabeth, > > Thanks for the encouragement. > I am not good at low level system development, just using the high-level > API from tensorflow/keras etc. > So I hope there should have perl's framework appearing. > See https://www.shlomifish.org/philosophy/psychology/elephant-in-the-circus/ - some people seriously underestimate their own potential. You should also read http://catb.org/~esr/writings/cathedral-bazaar/ which still has some solid advice. That put aside, given all the hype about machine learning, it seems that a new https://en.wikipedia.org/wiki/AI_winter is forthcoming. I agree with Liz that requests-for-implementations tend to linger on until someone volunteers the time or makes a money offer. As Hillel put it: https://www.brainyquote.com/quotes/rabbi_hillel_173085 > regards. > > > on 2019/8/28 16:39, Elizabeth Mattijsen wrote: > >> On 28 Aug 2019, at 08:23, Cloud Cache wrote: > >> Perl is for big data. Many operators in banks use perl to analyse data > >> stuff. Many programmers in big companies use perl to do statistics from > >> all kinds of logs. > >> > >> For me, I use perl everyday, for data gathering, data cleaning etc. I > >> pretty like its Regex and flexibility for text parsing. > >> > >> But there is no mainstream machine learning frameworks by perl. > >> I have to write codes with other languages and other frameworks to run ML > >> tasks. > >> > >> Will please perl6 developers take part focus on development of ML tools > >> and frameworks? > > > > Why don't you become a Perl 6 developer and work on that? Than you can be > > sure it will have the interface and behaviour that you want! > > > > > >> I think there are many other perl people around the world expect this > >> capability. > > > > If there were more people actually working on this, we would actually have > > that capability. > > > > > > > > Liz
Re: while(<>){...} analog?
On Sat, 3 Aug 2019 00:05:20 -0700 William Michels wrote: > Dear Shlomi, Thank you for that StackOverflow link! --Bill. > You're welcome. Thanks for replying to the list. -- - Shlomi Fish http://www.shlomifish.org/ https://github.com/shlomif/shlomif-computer-settings/ - my dotfiles Chuck Norris wrote a complete Perl 6 implementation in a day, but then destroyed all evidence with his bare hands, so no‐one will know his secrets. — http://www.shlomifish.org/humour/bits/facts/Chuck-Norris/ Please reply to list if it's a mailing list post - http://shlom.in/reply .
Re: while(<>){...} analog?
mple_echo lines.txt > > > > >cat lines.txt | simple_echo > > > > > > > > > > The perl5 version would probably be: > > > > > > > > > > #!/usr/bin/env perl > > > > > while(<>){ > > > > > print; > > > > > } > > > > > > > > > > The perl6 version would be something like: > > > > > > > > > > #!/usr/bin/env perl6 > > > > > use v6; > > > > > for lines() { > > > > > say $_; > > > > > } > > > > > > > > > > > > > > > The kind of thing I was playing with was: > > > > > > > > > > #!/usr/bin/env perl6 > > > > > use v6; > > > > > my @lines = $*ARGFILES.IO.lines; > > > > > say @lines; > > > > > > > > > > That works for lines from a file, but not from standard input, and > > > > > the error message isn't tremendously helpful: > > > > > > > > > > No such method 'lines' for invocant of type 'IO::Special' > > > > > > > > > > > > > > > > > > > > > > > > > On 7/28/19, Bruce Gray wrote: > > > > > > > > > > > > > > > > > >> On Jul 28, 2019, at 6:20 PM, Joseph Brenner > > > > > >> wrote: > > > > > >> > > > > > >> I was just wondering if there's some direct analog in perl6 to the > > > > > >> perl5 construct: > > > > > >> > > > > > >> while(<>){ ... } > > > > > >> > > > > > >> If I'm planning on passing a filename on the command-line, I can > > > > > >> just get it out of $*ARGFILES easily enough, but what if I also > > > > > >> wanted it to work on lines passed in via standard input? > > > > > > > > > > > > > > > > > > `lines` , as a sub instead of a method, and no arguments. > > > > > > > > > > > > See: https://docs.perl6.org/routine/lines#(Cool)_routine_lines > > > > > > Without any arguments, sub lines operates on $*ARGFILES, > > > > > > which defaults to $*IN in the absence of any filenames. > > > > > > > > > > > > For example: > > > > > > perl6 -e 'say .join("\t") for lines().rotor(4);' > > > > > > path/to/file.txt > > > > > > > > > > > > Hmmm. I would expect that to be in the Perl 5 to Perl 6 Migration > > > > > > Guides, but I do not see it there. > > > > > > > > > > > > — > > > > > > Hope this helps, > > > > > > Bruce Gray (Util of PerlMonks) > > > > > > > > > > > > -- - Shlomi Fish http://www.shlomifish.org/ List of Graphics Apps - http://shlom.in/graphics The most exciting phrase to hear in science, the one that heralds new discoveries, is not “Eureka!” (I found it!) but “That's funny…”. — https://en.wikiquote.org/wiki/Isaac_Asimov [Attributed] Please reply to list if it's a mailing list post - http://shlom.in/reply .
Re: Start reading at a specific index?
On Sat, 2 Feb 2019 01:08:39 -0800 ToddAndMargo via perl6-users wrote: > Hi All, > > Is there a way to modify this to start reading at > a specific index? And include how many bytes (300) > to read as well? > > my $FileHandle = open( $FileName, :bin, :ro ); > my Buf $BinaryFile = $FileHandle.read( 300 ); > > Many thanks, > -T See https://docs.perl6.org/routine/seek . -- ----- Shlomi Fish http://www.shlomifish.org/ http://is.gd/i5eMQd - Emma Watson’s Interview for a Software Dev Job Q2: Busy people are unproductive. We are very productive and so we’re never busy. — http://www.shlomifish.org/humour/Star-Trek/We-the-Living-Dead/ Please reply to list if it's a mailing list post - http://shlom.in/reply .
Re: [DFW.pm] Sad News
Wow, that is sad. I remember talking to him (as "PerlJam") on IRC and just remembered his long absence yesterday. He was a fun person to chat with. RIP. I'll see what I can do about adopting some of his modules and donating to his family. Regards, Shlomi Fish P.S: there are some excerpts of IRC conversations with him (and with other people) here if anyone is interested - https://www.shlomifish.org/humour/fortunes/sharp-perl.html . On Tue, 8 Jan 2019 10:42:11 -0600 Bruce Gray wrote: > > Begin forwarded message: > > > > From: Matthew Musgrove via DFW-pm > > Subject: [DFW.pm] Sad News > > Date: January 7, 2019 at 3:03:16 PM CST > > To: corpuschristi...@pm.org, hous...@houston.pm.org, aus...@pm.org, > > dfw...@pm.org Cc: Matthew Musgrove > > Reply-To: Dallas/Ft Worth Perl Mongers > > > > Texas Perl Mongers, > > > > It is with deep sadness that I inform you all that Jonathon "Scott" Duff > > passed away peacefully on December 28, 2018. If you actively use one of his > > CPAN modules I encourage you to adopt it. https://metacpan.org/author/DUFF > > <https://metacpan.org/author/DUFF> > > > > For those of you who knew Scott, you know flowers were not his thing. He > > would much more have preferred funding for his children's education... and > > steak and potatoes. If you would like to make a donation to the family, > > feel free to send them to https://www.gofundme.com/team-save-our-scott > > <https://www.gofundme.com/team-save-our-scott> or: > > > > P.O. Box 821092 > > North Richland Hills, TX 76182 > > > > Also, could *one* person please forward this email to the Perl6 and CPAN > > mailing lists as I have not done so. > > > > Thanks, > > Matthew Musgrove > > > > ___ > > DFW-pm mailing list > > dfw...@pm.org > > https://mail.pm.org/mailman/listinfo/dfw-pm > -- - Shlomi Fish http://www.shlomifish.org/ List of Text Editors and IDEs - http://shlom.in/IDEs
Re: Appropriate last words
Hi all, On Mon, 3 Sep 2018 11:09:35 -0700 Larry Wall wrote: > On Mon, Sep 03, 2018 at 11:45:58AM -0500, Stephen Wilcoxon wrote: > : Why the change in die handling between Perl 5 and 6? Suppressing line > : numbers with newline was very handy. Alternatively, adding some sort of > : directive would be more straight-forward (at least for Perl 5 users moving > : to Perl 6). > > Well, we did take Perl 5 users into account quite a lot, since many of > us came from that direction, and we hope more will come in the future. > > On the other hand, language design is all tradeoffs, and every time you > add a low-powered feature (or keep one, in this case), you raise the > barrier to entry for folks coming from other cultures, and you waste > mindspace remembering things that don't buy you much. For similar > reasons, <> changed to lines() and all the magic rules about which > variables are local to a loop went away. Likewise, a lot of the arcane > knowledge of how a given function behaves in scalar or list context went > away, mostly by splitting them into distinct operators that are easier > to read and document. Of course, the tradeoff is that that are then > more operators. > > So, sure, you could argue that we've just substituted one kind of arcane > knowledge for another, but at least you can justify something like > > exit note “Phooey”; > > by mere function composition without appealing to the authority of > a particular paragraph in the manual. And of course you could also > compose your own function if the situation ever rises more than once in > your program. > > my = ∘ eep “Phooey”; > > In the specific case of this feature, one could also argue that putting > that much semantic weight on the final character of the string is > violating some kind of end-weight or one-pass principle, forcing a kind > of mental time-travel for the reader, if not for the compiler. > > Anyway, don't be a language designer if you want to make everyone happy > all the time. :-) > > Well, actually, you can want it, just don't expect it... :-) > I agree and I wrote about it here back in 2011 - https://shlomif-tech.livejournal.com/57811.html ("Your Programming Language Must Suck"). I also concentrate links to the more general theme of why one can never please everyone here: http://shlomifishswiki.branchable.com/Never_Try_to_Please_Everyone/ . Regards, Shlomi > Larry -- - Shlomi Fish http://www.shlomifish.org/ http://www.shlomifish.org/humour/ways_to_do_it.html All Chuck Norris has to do is *look* at Perl code and it interprets itself out of fear and respect. — DrForr — http://www.shlomifish.org/humour/bits/facts/Chuck-Norris/ Please reply to list if it's a mailing list post - http://shlom.in/reply .
Re: An interesting math formula to share
Hi Todd! On Tue, 10 Jul 2018 02:02:45 -0700 ToddAndMargo wrote: > Hi All, > > Remembering from my school days, a famous mathematician > whose name I forget came up with a formula as a kid > that made math history. > See https://en.wikipedia.org/wiki/Arithmetic_progression . They tell this story about https://en.wikipedia.org/wiki/Carl_Friedrich_Gauss - see http://www.coolmath.com/algebra/19-sequences-series/06-gauss-problem-arithmetic-series-01 , but the formula for that predates him by many centuries. > As it transpires, when in school, they disciplined him by > making his count all the number from 1 to some large > number. It took him only a few minutes. They thought > he cheated, so they sent him back with an even larger > number to add up. Same couple of minutes. Blew his > teacher's minds every number they gave him. > > Seems he had discovered that if you laid the number > out forward, then reverse underneath > > N=5 > > 1 + 2 + 3 + 4 + 5 = 15 > 5 + 4 + 3 + 2 + 1 = 15 > - > 6 6 6 6 6 = 30 > > If you add the columns, you always got N+1 and N times. > And that make the formula > > 1+2+3..N = (N+1)*N/2 > > I always have fun recreating this formula from the > forward and reverse tables added as columns. > > So feed the following an integer and have fun! > > Yup. He blew his teacher's mind! > > -T > > > $ echo "5" | p6 'my $N=slurp(); say $N*($N+1)/2;' > 15 > > $ echo "6" | p6 'my $N=slurp(); say $N*($N+1)/2;' > 21 > > $ echo "100" | p6 'my $N=slurp(); say $N*($N+1)/2;' > 5050 -- - Shlomi Fish http://www.shlomifish.org/ Chuck Norris/etc. Facts - http://www.shlomifish.org/humour/bits/facts/ I’d love to change the world, but they won’t give me the source code. — Unknown Please reply to list if it's a mailing list post - http://shlom.in/reply .
Re: Need help converting from Perl 5
Hi Todd, On Sun, 13 May 2018 22:07:59 -0700 ToddAndMargo <toddandma...@zoho.com> wrote: > On 05/13/2018 09:41 PM, ToddAndMargo wrote: > > Hi All, > > > > I can't not remember what I did in Perl 5 here and > > am not having a good time converting it to Perl 6. > > > > $ perl -e 'my $A="44.rc0"; if ($A ~~ /(^[0-9,.,a,b,rc]+$)/ ) {print > > "$1\n";} else {print "\$A = <$A>\n"}' > > > > 44.rc0 > > > > The actual code is: > > if ( $Line2 ~~ /(^[0-9,.]+$)/ ) { push ( @WebVersions, $Line2 ); } > > > > The actual data looks like: > > > > $Line2 = 6.0.1 > > $Line2 = 6.0.2 > > $Line2 = 6.0 > > $Line2 = 6.0b1 > > $Line2 = 6.0b2 > > $Line2 = 6.0b3 > > $Line2 = 6.0b4 > > $Line2 = 6.0b5 > > $Line2 = 60.0 > > $Line2 = 60.0b10 > > $Line2 = 60.0b11 > > $Line2 = 60.0b12 > > > > I am trying to exclude things that look like: > > > > $Line2 = bonecho > > $Line2 = custom-updates > > $Line2 = deerpark > > $Line2 = devpreview > > $Line2 = granparadiso > > $Line2 = latest-beta > > $Line2 = latest-esr > > > > > > Many thanks, > > -T > > perl6.org is down by the way. > https://docs.perl6.org/type.html and https://perl6.org/ seem fine from here now - please try again. > Is this right? > > perl6 -e 'my $A="44.rc20"; if $A ~~ m/( \d**1..4 "." ( "a" | "b" | "rc" > ) .*$ ) / {say "$0";} else {say "no match";}' > > 44.rc20 > > > -- - Shlomi Fish http://www.shlomifish.org/ Best Introductory Programming Language - http://shlom.in/intro-lang *Harry*: Yes, it is obvious that this pig is the most beautiful person for miles. *Miss Piggy*: Indeed. Candice Swanepoel ain’t got nothing on… Moi! — http://is.gd/zsmond Please reply to list if it's a mailing list post - http://shlom.in/reply .
Fw: awk?
Begin forwarded message: Date: Fri, 13 Apr 2018 13:31:12 +0300 From: Shlomi Fish <shlo...@shlomifish.org> To: perl6-users@perl.org Subject: Re: awk? Hi Todd, On Fri, 13 Apr 2018 03:00:22 -0700 ToddAndMargo <toddandma...@zoho.com> wrote: > echo "total kB 1804482980 112" | awk '{print $4}') shlomif[Perl6]:$trunk$ echo "total kB 1804482980 112" | perl6 -n -e 'say .split(/\s+/)[3]' 2980 shlomif[Perl6]:$trunk$ echo "total kB 1804482980 112" | awk '{print $4}' 2980 See https://docs.perl6.org/language/5to6-nutshell#-a and http://perldoc.perl.org/perlrun.html .
Re: awk?
Hi Todd, On Fri, 13 Apr 2018 03:00:22 -0700 ToddAndMargo <toddandma...@zoho.com> wrote: > echo "total kB 1804482980 112" | awk '{print $4}') shlomif[Perl6]:$trunk$ echo "total kB 1804482980 112" | perl6 -n -e 'say .split(/\s+/)[3]' 2980 shlomif[Perl6]:$trunk$ echo "total kB 1804482980 112" | awk '{print $4}' 2980 See https://docs.perl6.org/language/5to6-nutshell#-a and http://perldoc.perl.org/perlrun.html . -- --------- Shlomi Fish http://www.shlomifish.org/ What does “Zionism” mean? - http://shlom.in/def-zionism Gödel’s Incompleteness Theorem is about to be replaced by the [Clarissa] Darling “Like, Totally!” Completeness Theorem. — http://www.shlomifish.org/humour/bits/facts/Clarissa/ Please reply to list if it's a mailing list post - http://shlom.in/reply .
Re: SDL 2 code to put into a module
On Thu, 9 Nov 2017 07:04:35 +0100 The Holy Ghost <holygh...@yellowcouch.org> wrote: > On Wed, Nov 08, 2017 at 12:14:41PM +0200, Shlomi Fish wrote: > > Hi Holly, > > > > That put aside, the README has trailing space and its grammar is bad. > > Perhaps see this link for some inspiration and insights: > > The trailing spaces are gone now. > Thanks! Please consider adding checks against their presence to the test suite and the https://en.wikipedia.org/wiki/Continuous_integration system. Also, please try to fix the grammar/punctuation/etc. there, because like I said I was unable to discern the precise original meaning. Regards, Shlomi > Best regards, > Holly -- ----- Shlomi Fish http://www.shlomifish.org/ http://www.shlomifish.org/humour/Summerschool-at-the-NSA/ Trust in God, but tie your camel. — http://en.wikipedia.org/wiki/God_helps_those_who_help_themselves Please reply to list if it's a mailing list post - http://shlom.in/reply .
Re: SDL 2 code to put into a module
Hi Johan, On Thu, 9 Nov 2017 09:59:12 +0100 The Holy Ghost <holygh...@yellowcouch.org> wrote: > On Thu, Nov 09, 2017 at 10:23:46AM +0200, Shlomi Fish wrote: > > > > Regarding the grammar, I wanted to send a pull-req, but unfortunately I > > found that I usually couldn't figure out the original intention. See for > > youreself - > > https://github.com/shlomif/holly6src/blob/master/Holly6Game/README . Sorry > > for not mentioning it earlier. > > About the pull request, I see you're interested in my HollyGame things, > there's a repository at the same user with the original perl 5 code in it, > https://github.com/theholyghost/hollysrc you can > also find my Wycadia and Ultima8 programs derived from the game kit in there. > > If you want to port them, Perl5::Inline or write your own, be my guest. > Thanks for the update. I forked the repo hoping to fix the README, and do not have an immediate use for this code. I'll keep your offer in mind, however. > Best Regards, > Johan -- ----- Shlomi Fish http://www.shlomifish.org/ Parody of "The Fountainhead" - http://shlom.in/towtf SMG: It was 1997-1998ish, Buffy started airing. So one day a group of yeshivah pupils arrived to the studios saying they have some numereological insights from the Jewish bible, about what will happen in Sunnydale next. — http://www.shlomifish.org/humour/Summerschool-at-the-NSA/ Please reply to list if it's a mailing list post - http://shlom.in/reply .
Re: SDL 2 code to put into a module
Hi Liz, On Wed, 8 Nov 2017 12:59:16 +0100 Elizabeth Mattijsen <l...@dijkmat.nl> wrote: > Shlomi, > > perhaps The Holy Ghost takes Pull Requests? Just saying "grammar is bad” is > a bit meagre, and just posting a link to a tl;dr document is not really > helping. Fixing cases of what you consider to be bad grammar, would be more > helpful, I think. The link was to a section there (an anchor) which is relatively short and contains several links to other documents. Also see http://www.robcottingham.ca/cartoon/archive/tldr/ . Regarding the grammar, I wanted to send a pull-req, but unfortunately I found that I usually couldn't figure out the original intention. See for youreself - https://github.com/shlomif/holly6src/blob/master/Holly6Game/README . Sorry for not mentioning it earlier. Regards, Shlomi > > > Kind regards, > > Liz > ======= > > On 8 Nov 2017, at 11:14, Shlomi Fish <shlo...@shlomifish.org> wrote: > > > > Hi Holly, > > > > On Wed, 8 Nov 2017 10:38:08 +0100 > > The Holy Ghost <holygh...@yellowcouch.org> wrote: > > > >> Hello, > >> > >> On Tue, Nov 07, 2017 at 07:11:32PM +0200, Shlomi Fish wrote: > >>> > >>> thanks for your contribution. > >>> > >>> 1. Does it have a > >>> http://perl-begin.org/tutorials/bad-elements/#version_control repo? > >>> > >>> 2. See > >>> http://www.catb.org/esr/writings/homesteading/homesteading/ar01s13.html . > >>> > >> > >> I've put my game kit code on github, so you can follow it there, it > >> compiles now, the adress is : https://github.com/theholyghost/holly6src > >> > >> Thanks for helping out, > >> Holly > > > > Thanks! > > > > That put aside, the README has trailing space and its grammar is bad. > > Perhaps see this link for some inspiration and insights: > > > > https://github.com/shlomif/Freenode-programming-channel-FAQ/blob/master/FAQ.mdwn#what-are-some-best-practices-in-programming-that-i-should-adopt > > > > Regards, > > > > Shlomi > > > > > > > > -- > > - > > Shlomi Fish http://www.shlomifish.org/ > > Beginners Site for the Vim text editor - http://vim.begin-site.org/ > > > > He had found a Nutri-Matic machine which had provided him with a plastic cup > > filled with a liquid that was almost, but not quite, entirely unlike tea. > >— https://en.wikiquote.org/wiki/The_Hitchhiker%27s_Guide_to_the_Galaxy > > > > Please reply to list if it's a mailing list post - http://shlom.in/reply . -- - Shlomi Fish http://www.shlomifish.org/ Parody of "The Fountainhead" - http://shlom.in/towtf If you have to ask what Jazz is, you'll never know. — Attributed to https://en.wikiquote.org/wiki/Louis_Armstrong Please reply to list if it's a mailing list post - http://shlom.in/reply .
Re: SDL 2 code to put into a module
Hi Holly, On Wed, 8 Nov 2017 10:38:08 +0100 The Holy Ghost <holygh...@yellowcouch.org> wrote: > Hello, > > On Tue, Nov 07, 2017 at 07:11:32PM +0200, Shlomi Fish wrote: > > > > thanks for your contribution. > > > > 1. Does it have a > > http://perl-begin.org/tutorials/bad-elements/#version_control repo? > > > > 2. See > > http://www.catb.org/esr/writings/homesteading/homesteading/ar01s13.html . > > I've put my game kit code on github, so you can follow it there, it compiles > now, the adress is : https://github.com/theholyghost/holly6src > > Thanks for helping out, > Holly Thanks! That put aside, the README has trailing space and its grammar is bad. Perhaps see this link for some inspiration and insights: https://github.com/shlomif/Freenode-programming-channel-FAQ/blob/master/FAQ.mdwn#what-are-some-best-practices-in-programming-that-i-should-adopt Regards, Shlomi -- - Shlomi Fish http://www.shlomifish.org/ Beginners Site for the Vim text editor - http://vim.begin-site.org/ He had found a Nutri-Matic machine which had provided him with a plastic cup filled with a liquid that was almost, but not quite, entirely unlike tea. — https://en.wikiquote.org/wiki/The_Hitchhiker%27s_Guide_to_the_Galaxy Please reply to list if it's a mailing list post - http://shlom.in/reply .
Re: SDL 2 code to put into a module
On Tue, 7 Nov 2017 11:17:42 +0100 The Holy Ghost <holygh...@yellowcouch.org> wrote: > Hi, > > I am but a perl6 newbie and perl archwizard but I placed my module for a 2D > gamekit at > http://gomez.yellowcouch.org/holly6src-1.3.tar.gz > > It can be extended for 3D games later on. > hi, thanks for your contribution. 1. Does it have a http://perl-begin.org/tutorials/bad-elements/#version_control repo? 2. See http://www.catb.org/esr/writings/homesteading/homesteading/ar01s13.html . Regards, Shlomi > Best regards, > Holly -- ----- Shlomi Fish http://www.shlomifish.org/ Humanity - Parody of Modern Life - http://shlom.in/humanity Nobody expects the Randal Schwartz condition! — David Fetter Please reply to list if it's a mailing list post - http://shlom.in/reply .
Re: Anyone want me eMail and download interface for curl?
Hi, On Sat, 4 Nov 2017 14:02:35 -0700 ToddAndMargo <toddandma...@zoho.com> wrote: > On 11/04/2017 02:19 AM, Shlomi Fish wrote: > > Hi, > > > > On Fri, 3 Nov 2017 14:38:05 -0700 > > ToddAndMargo <toddandma...@zoho.com> wrote: > > > >> On 11/03/2017 02:34 AM, Shlomi Fish wrote: > >>>because i believe that > >>> otherwise viewing such encumbered code may taint one's future software dev > >>> work. > >> > >> What do you mean by the above line? > >> > > > > See the discussion at > > https://slashdot.org/story/04/02/12/2114228/windows-2000-windows-nt-4-source-code-leaks > > . > > > >> > >> Thank you for the heads up. > >> > >> Also, I do frequently post modules I have written. > >> Should I stop the practice? > > > > Not if you explicitly place them under a FOSS licence. > > > > > Hi Shlomi, > > I am looking at your link to FOSS: > https://en.wikipedia.org/wiki/Free_and_open-source_software > It sound perfect. > > I am not seeing how to actually register something as FOSS. > Do I need a lawyer? (I can not afford that kind of stuff.) > No, see http://choosealicense.com/ . Regards, Shlomi > Many thanks, > -T > -- - Shlomi Fish http://www.shlomifish.org/ http://www.shlomifish.org/humour/bits/facts/Summer-Glau/ Jessica on the phone: Sel, you’re getting strange lately, but you are becoming more amusing in the process. — http://www.shlomifish.org/humour/Selina-Mandrake/ Please reply to list if it's a mailing list post - http://shlom.in/reply .
Re: Anyone want me eMail and download interface for curl?
Hi Todd, On Fri, 3 Nov 2017 00:47:09 -0700 Todd Chester <toddandma...@zoho.com> wrote: > Hi All, > > Without going into the reasons why, I was forced to write a > module that interfaces curl for Perl 6. The module will > > 1) download a web page > > 2) download a file from the web and will properly follow redirects > > 3) will create proper eMail headers and send an eMail. It > will auto sense html and enter the proper content header. > It will also handle one attachment. It supports supports > ssl and port 465 and 587. > > It was a real "adventure" to write. I had to learn how to > properly create eMail headers -- the thing you do not see > on your eMail. Amongst and ton of other things. I took > me about two months to create. It works slick too > > If anyone wants this module and helper modules, let me > know and I will attach it here with a vpaste. > > I am offering this as you guys gave me a lot of help > both here and on the chat line. > > -T please don't share this program unless it is licensed under an approved https://en.wikipedia.org/wiki/Free_and_open-source_software licence (see https://www.gnu.org/licenses/license-list.html ) because i believe that otherwise viewing such encumbered code may taint one's future software dev work. Regards, Shlomi Fish -- - Shlomi Fish http://www.shlomifish.org/ http://www.shlomifish.org/humour/Summerschool-at-the-NSA/ My Commodore 64 is suffering from slowness and insufficiency of memory, and its display device is grievously short of pixels. Can anybody help? — Omer Zak Please reply to list if it's a mailing list post - http://shlom.in/reply .
Fw: Perl 6: Protecting Intellectual Property for Commercial Code
Please reply to list if it's a mailing list post - http://shlom.in/reply . Begin forwarded message: Date: Thu, 26 Oct 2017 07:43:43 -0700 From: James Ellis Osborne III <jamesel...@twee.se> To: Shlomi Fish <shlo...@shlomifish.org> Subject: Re: Perl 6: Protecting Intellectual Property for Commercial Code As another aside (That's mostly what I got) can I point out the first 72 bytes of the output generated by the ifort.exe FORTRAN compiler as a model for considering why we should or shouldn't have executable code options available to the common feller on any platform On Oct 26, 2017 5:19 AM, "Shlomi Fish" <shlo...@shlomifish.org> wrote: > On Mon, 23 Oct 2017 10:57:20 -0700 > James Ellis Osborne III <jamesel...@twee.se> wrote: > > > This particular app was .pyd files locked with calls to a C dll. Source > > code is reconstructable but for an app of more than a few thousand lines > > it's highly unlikely anyone is going to go rebuilding it all. > > > > If your goal is to defeat all forms of piracy, you're surely out of luck > > but if your goal is to generate code that cannot be modified in place and > > has a commercial license then there are certainly options. My particular > > model is parallel-mode diffie-hellman.. it's easily extendable to perl 6 > > thanks to native arbitrary precision support but in my opinion it's a > > hugely different thing to be able to open the file & remove a line of > > readable source vs JMP or decompile/recompile steps.. obfuscation is > > unnaceptable for commercial sale for the same reason. > > > > I see. > > -- > - > Shlomi Fish http://www.shlomifish.org/ > My Aphorisms - http://www.shlomifish.org/humour.html > > Chuck Norris taught God how to create the universe. > — http://www.shlomifish.org/humour/bits/facts/Chuck-Norris/ > > Please reply to list if it's a mailing list post - http://shlom.in/reply . > -- - Shlomi Fish http://www.shlomifish.org/ Beginners Site for the Vim text editor - http://vim.begin-site.org/ The Knights Who Say “Ni” once said “Ni” to Chuck Norris. They are now no longer The Knights Who Say “Ni”. — http://www.shlomifish.org/humour/bits/facts/Chuck-Norris/ Please reply to list if it's a mailing list post - http://shlom.in/reply . As another aside (That's mostly what I got) can I point out the first 72 bytes of the output generated by the ifort.exe FORTRAN compiler as a model for considering why we should or shouldn't have executable code options available to the common feller on any platformOn Oct 26, 2017 5:19 AM, "Shlomi Fish" <shlo...@shlomifish.org> wrote:On Mon, 23 Oct 2017 10:57:20 -0700 James Ellis Osborne III <jamesel...@twee.se> wrote: > This particular app was .pyd files locked with calls to a C dll. Source > code is reconstructable but for an app of more than a few thousand lines > it's highly unlikely anyone is going to go rebuilding it all. > > If your goal is to defeat all forms of piracy, you're surely out of luck > but if your goal is to generate code that cannot be modified in place and > has a commercial license then there are certainly options. My particular > model is parallel-mode diffie-hellman.. it's easily extendable to perl 6 > thanks to native arbitrary precision support but in my opinion it's a > hugely different thing to be able to open the file & remove a line of > readable source vs JMP or decompile/recompile steps.. obfuscation is > unnaceptable for commercial sale for the same reason. > I see. -- - Shlomi Fish http://www.shlomifish.org/ My Aphorisms - http://www.shlomifish.org/humour.html Chuck Norris taught God how to create the universe. — http://www.shlomifish.org/humour/bits/facts/Chuck-Norris/ Please reply to list if it's a mailing list post - http://shlom.in/reply .
Re: Perl 6: Protecting Intellectual Property for Commercial Code
On Mon, 23 Oct 2017 10:57:20 -0700 James Ellis Osborne III <jamesel...@twee.se> wrote: > This particular app was .pyd files locked with calls to a C dll. Source > code is reconstructable but for an app of more than a few thousand lines > it's highly unlikely anyone is going to go rebuilding it all. > > If your goal is to defeat all forms of piracy, you're surely out of luck > but if your goal is to generate code that cannot be modified in place and > has a commercial license then there are certainly options. My particular > model is parallel-mode diffie-hellman.. it's easily extendable to perl 6 > thanks to native arbitrary precision support but in my opinion it's a > hugely different thing to be able to open the file & remove a line of > readable source vs JMP or decompile/recompile steps.. obfuscation is > unnaceptable for commercial sale for the same reason. > I see. -- ----- Shlomi Fish http://www.shlomifish.org/ My Aphorisms - http://www.shlomifish.org/humour.html Chuck Norris taught God how to create the universe. — http://www.shlomifish.org/humour/bits/facts/Chuck-Norris/ Please reply to list if it's a mailing list post - http://shlom.in/reply .
Re: Perl 6: Protecting Intellectual Property for Commercial Code
Hi James, On Mon, 23 Oct 2017 07:19:34 -0700 James Ellis Osborne III <jamesel...@twee.se> wrote: > Is compilation to bytecode still a todo feature? I managed to get a > solution supporting compilation, serial-based locking, & license expiration > delivered in Python last month for the nuclear industry.. Bytecode > compilation is a hard requirement though if you don't want someone easily > ripping out the license check & don't want to spend the effort building > useability features into the serial calls. > Since Python is a symbolic language, it is relatively easy to reconstruct the original python source code from the *.pyc files. See http://shlomif-tech.livejournal.com/39732.html (which was linked in one of my links). -- --------- Shlomi Fish http://www.shlomifish.org/ http://ccmixter.org/files/destinazione_altrove/49997 - “Paint The Sky” Joel’s Generalisation: If it happens to you, it happens to everybody. (Or: It’s never only you.) — Based on http://www.joelonsoftware.com/news/20020402.html Please reply to list if it's a mailing list post - http://shlom.in/reply .
Re: Perl 6: Protecting Intellectual Property for Commercial Code
Hi Mark, On Sun, 22 Oct 2017 22:37:31 + Mark Devine <m...@markdevine.com> wrote: > 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 angle. I believe in a balance of public sharing and private > enterprise. > > I am interested in packaging some of my long-term Perl 6 > projects/scripts/apps/frameworks into some kind of relocatable object form > (binary) that cannot be easily altered or trivially reverse engineered. Put > another way, I sometimes would prefer not to sell source code to my > customers, but rather some form of compiled package that can’t easily be > diddled by a SysAdmin. If I create code for a particular commercial domain > over years, then I want to get compensated for it and not have it be diluted > with copy-cats one week after I release it. Certainly some of the generic > libraries that I create in the future can be modularized for the Perl 6 > ecosystem and I’ll push those eventually, but the really specialized > domain-specific code that fills a commercial void & that I will commit years > to maintaining, I’d like to offer a commercial license, key-protect, sell > subscriptions, etc. > > Again, I’m very interested in contributing to the ecosystem when possible. I > still need to grow past baby/teenager Perl 6, and I’ll get there soon. But > after creating something targeted only for customer purchase/subscription, > what tools are available in the Perl 6 toolbox? I saw something for the Java > back-end (to .jar), but not much else. > > Is there a Perl 6 roadmap that might mention compiling Perl 6 modules/scripts > into something atomic, binary, & relocatable? Or preferably the capability > to compile only specific Perl 6 modules, requiring an existing Perl 6 on the > target host? > Please see https://github.com/shlomif/Freenode-programming-channel-FAQ/blob/master/FAQ.mdwn#how-do-i-hideobscureencrypt-my-source-code-to-prevent-end-users-from-learning-how-it-works . Regarding "Intellectual Property", see https://www.linux.com/news/why-term-intellectual-property-seductive-mirage and http://ericsink.com/articles/Intellectual_Property.html . -- - Shlomi Fish http://www.shlomifish.org/ Best Introductory Programming Language - http://shlom.in/intro-lang I’m worser at superlatives. And I don’t ever use no double negatives. — James at War, “Bad Grammar”: http://www.youtube.com/watch?v=Mj6QqCH7g0Q Please reply to list if it's a mailing list post - http://shlom.in/reply .
Re: bash and pm6 question
Hi Todd, On Wed, 20 Sep 2017 23:22:41 -0700 ToddAndMargo <toddandma...@zoho.com> wrote: > Hi All, > > Can I call a pm6 directly from bash or do I > need to call a pl6 that calls the pm6? > why not use "perl6 -e"? Regards, Shlomi > > Many thanks, > -T > -- --------- Shlomi Fish http://www.shlomifish.org/ NSA Factoids - http://www.shlomifish.org/humour/bits/facts/NSA/ Selina: How may I be of service? Alan: Well, according to the Codex, we’re supposed to be slain by you. — http://www.shlomifish.org/humour/Selina-Mandrake/
Perl 6 Speed Revelation
Hi all! Some time ago I solved this problem - https://projecteuler.net/problem=343 - using a relatively slow pypy3 program (see https://github.com/shlomif/project-euler/blob/master/project-euler/343/euler_343_v1.py ). After gaining access to the problem's forum, I found a faster way to solve it in PARI/GP there - https://github.com/shlomif/project-euler/blob/master/project-euler/343/euler_343_v2.gp and translated it into perl 5 + bash - https://github.com/shlomif/project-euler/blob/master/project-euler/343/euler_343_v2.bash . It uses https://en.wikipedia.org/wiki/Factor_(Unix) which is written in optimised C. Now, after I translated the program to Pure Perl 6 - https://github.com/shlomif/perl6-examples/blob/shlomif--euler343/categories/euler/prob343-shlomif.p6 , the perl 6 version ran very slowly. I bugged the people on freenode about it until someone there translated the shell version to use perl 6 instead of p5, and said it performed roughly as well. This gave me an idea to try an equivalent perl 5 version - see https://github.com/shlomif/project-euler/blob/master/project-euler/343/prob343-shlomif.pl and it ran at a comparable, slow, speed as the perl 6 version. So to sum up: 1. GNU factor is really fast. 2. When it comes to factorisation, perl 5 and perl 6 are slower and run at a comparable speed. I apologise for the noise I caused. Regards, Shlomi -- - Shlomi Fish http://www.shlomifish.org/ Emma Watson Factoids - http://shlom.in/emwatson-facts Wikipedia has a page about everything including the http://en.wikipedia.org/wiki/Kitchen_sink . — http://www.shlomifish.org/humour.html Please reply to list if it's a mailing list post - http://shlom.in/reply .
Re: remove spaces?
On Thu, 18 May 2017 00:56:42 -0700 ToddAndMargo <toddandma...@zoho.com> wrote: > On 05/18/2017 12:22 AM, ToddAndMargo wrote: > > Hi All, > > > > Any of you guys have a favorite way to remove all > > spaces from a string? (Otherwise I will use a regex.) > > > > > > Many thanks, > > -T > > > > > > I like this. Any objections to it? > > perl6 -e 'my $x="1234,5678"; $x ~~ tr/ //; say $x;' > 1234,5678 > > There are other whitespace characters in ASCII and in unicode than just ' ' (or '\x20') - \t, \v, \n, etc. How do you wish to handle them? -- - Shlomi Fish http://www.shlomifish.org/ What Makes Software Apps High Quality - http://shlom.in/sw-quality The Blues Brothers are on a mission from God. God is on a mission from Chuck Norris. — http://www.shlomifish.org/humour/bits/facts/Chuck-Norris/ Please reply to list if it's a mailing list post - http://shlom.in/reply .
Re: write string requires an object with REPR MVMOSHandle
On Wed, 29 Mar 2017 12:10:15 +0200 Timo Paulssenwrote: > As part of the IOwesome grant, zoffix is going to fix this error. It's > what you get when you try to write to or read from or do anything with a > closed IO::Handle. > > When you use "LEAVE:" you're just declaring a label called "LEAVE". > There are no labels with special function, so your code is equivalent to > > sub save { > my $fh = open('data.txt', :w); > ohai: $fh.close; > $fh.print("hello\n"); > } > > so you're opening the file, closing the file, then writing to it. That > can't work, of course, but the error is also clearly LTA. > Hi Timo! What does "LTA" stand for in this context? One thing I learned is to avoid acronyms as much as possible. Regards, Shlomi > HTH > - Timo
Re: Perl 6 docs
On Sat, 25 Mar 2017 16:49:04 +0100 Gabor Szabowrote: > https://github.com/perl6/doc/issues/1257 Thanks for clarifying!
Re: program/script question
Hi Todd, On Sat, 4 Mar 2017 19:23:07 -0800 ToddAndMargo <toddandma...@zoho.com> wrote: > Hi All, > > This is one of those really dumb questions, but can I call > what I write in Perl a "program" or a "script"? Or, does > it even matter? > > Many thanks, > -T > Please see: * https://github.com/shlomif/Freenode-programming-channel-FAQ/blob/master/FAQ.mdwn#what-is-the-difference-between-scripting-languages-such-as-perl-php-python-or-ruby-and-industrial-strength-languages-such-as-c-c-java-and-c * https://github.com/shlomif/Freenode-programming-channel-FAQ/blob/master/FAQ.mdwn#what-do-you-think-about-interpreted-vs-compiled-languages Note that I have written most of that page. Regards, Shlomi Fish
Re: per 5 converter?
On Mon, 13 Feb 2017 09:40:32 -0500 Parrot Raiser <1parr...@gmail.com> wrote: > On 2/12/17, Brandon Allbery <allber...@gmail.com> wrote: > > > > Translators are infamous for producing gobbledygook no self-respecting > > programmer would write > > > > But unfortunately, far too many programmers do. :-)* “ Trading was mentioned in the brochure. The main trade that was carried out was in the skins of the NowWhattian boghog but it wasn't a very successful one because no one in their right minds would want to buy a NowWhattian boghog skin. The trade only hung on by its fingernails because there was always a significant number of people in the Galaxy who were not in their right minds. ” From https://en.wikipedia.org/wiki/Mostly_Harmless . ;-) Regards, Shlomi Fish
Re: per 5 converter?
[Resending because the email did not arrive to the list. E-mail has sadly become unreliable.] Hi T, On Sat, 11 Feb 2017 22:47:10 -0800 ToddAndMargo <toddandma...@zoho.com> wrote: > Hi All, > > I know I asked this once before and I had though I'd written it > down, but do you have any favorite Perl5 to Per6 converters? > There's https://github.com/fglock/Perlito but it's incomplete, and may not generate idiomatic or too performant code. I recall trying to use it to compile Perl 5 to JavaScript and after I went to a lot of effort in either fixing Perlito itself or adapting my code for it to be more compatible with it, it was executed slower by Node.js than the Perl 5 original. Regards, Shlomi Fish > Many thanks, > -T >
Re: unsubsribe
Hi Rene, for information about how to unsubscribe from perl6-users, please see this page: http://lists.perl.org/list/perl6-users.html sorry to see you go, and good luck in the future! -- Shlomi Fish On Tue, 13 Sep 2016 23:41:17 + (UTC) Rene Bourgoin via perl6-users <perl6-users@perl.org> wrote: > -- ----- Shlomi Fish http://www.shlomifish.org/ It takes Summer Glau exactly a minute to write a rebuttal like in xkcd: “Venting”, and she would sign it as Chuck Norris. — http://www.shlomifish.org/humour/bits/facts/Summer-Glau/ Please reply to list if it's a mailing list post
Re: Two topics not found in docs search: 'constant' and 'heredocs'.
Hi Tom! On Mon, 4 Apr 2016 06:20:36 -0500 Tom Browderwrote: > The declarator "constant" is found here: > > http://doc.perl6.org/language/5to6-nutshell#constant > > And "Heredocs" are discussed here: > > http://doc.perl6.org/language/quoting#Heredocs%3A_%3Ato > > but neither is listed when doing a search. > How are you searching exactly? With which command/which URL? -- Shlomi > And how does one make a phrase or term searchable in the docs anyway? > > Thanks. > > Best regards, > > -Tom