Saturday, March 14, 2020

Digest for comp.programming.threads@googlegroups.com - 4 updates in 3 topics

aminer68@gmail.com: Mar 13 03:49PM -0700

Hello,
 
 
About Perl6 called Raku..
 
I am also programming with Perl6 called Raku, it is the next Perl,
and i think it is better and more powerful than Python, read
about its performance here:
 
https://perlcon.eu/talk/80
 
 
And read about the next Perl6 called Raku in its official website here:
 
https://raku.org/
 
 
 
Thank you,
Amine Moulay Ramdane,.
Bonita Montero <Bonita.Montero@gmail.com>: Mar 14 08:02AM +0100

> https://perlcon.eu/talk/80
> And read about the next Perl6 called Raku in its official website here:
> https://raku.org/
 
Perl is dead and will never be reanimated.
aminer68@gmail.com: Mar 13 04:24PM -0700

Hello,
 
 
More about Perl6 that is called Raku..
 
I am also programming in Perl and Perl6 that is called Raku,
and i have bought the following book about Raku that is really good,
and i am reading it fast and understanding it fast because i am
an experienced programmer specialized in parallel programming and synchonization algorithms, and i have just noticed by reading this book
that Raku is really powerful, and i think it is much better and much more powerful than Python, so i think it is the future, so you have to take a look at this book of Perl6 that is called Raku:
 
 
https://www.packtpub.com/application-development/perl-6-deep-dive
 
 
 
Thank you,
Amine Moulay Ramdane.
aminer68@gmail.com: Mar 13 01:55PM -0700

Hello,
 
 
Yet more about Python and Perl..
 
 
When we compare Python to Perl, Python has provided the following:
 
- Exceptions
 
- A built-in object model
 
- Support for named parameters
 
 
So here is how to do Object Oriented Exception Handling in Perl:
 
https://www.perl.com/pub/2002/11/14/exception.html/
 
And here is the new subroutine signatures in Perl:
 
https://www.effectiveperlprogramming.com/2015/04/use-v5-20-subroutine-signatures/
 
And you can in Perl set a property or a method of a class to be private or public by the following Perl methodoly, read my following program to notice it:
 
 
================================================
 
package class_A;
 
my $private_method = sub { #_{
 
#
# Declaring a private method. The method apparantly can not be called
# from outside this package.
#
 
my $self = shift;
$self->echo("private_method was called");
 
}; #_}
 
sub new { #_{
 
my $class = shift;
my $self = {};
bless $self, $class;
return $self;
 
} #_}
 
sub public_method {
my $self = shift;
 
$self->echo("public_method was called, going to call private method");
 
# Call private method.
$self->$private_method();
}
 
sub echo { #_{
my $self = shift;
my $text = shift;
 
print "$text\n";
 
} #_}
 
 
1;
 
------
 
#!/usr/bin/perl
use warnings;
use strict;
use class_A;
 
my $ca = class_A->new();
$ca->public_method();
 
=============================================================
 
 
And here is also why Python is not good: Python has a global interpreter lock, but Perl threads can execute in parallel, read this:
 
What is the Python Global Interpreter Lock (GIL)?
 
https://realpython.com/python-gil/
 
 
And RPerl compiler for Perl is here..
 
I also use Perl, so here is an interesting new website about RPerl and Perl:
 
http://perlcommunity.org/#performance
 
And about Perl in 2020: Is It Still Worth Learning Now?
 
Read more here:
 
https://somedudesays.com/2020/02/perl-in-2020-is-it-still-worth-learning/
 
 
Thank you,
Amine Moulay Ramdane.
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to comp.programming.threads+unsubscribe@googlegroups.com.

No comments: