I start to post the entries of "Python/numpy porting to Perl" in DEV Community
I start to post the entries of "Python/numpy porting to Perl" in DEV Community.
I start to post the entries of "Python/numpy porting to Perl" in DEV Community.
use Class::Plain; role Some::Role { method foo { ... } method bar { ... } } class Some::Class : does(Some::Role) { method foo { ... } # baz is wrapped in the …
Class::Plain provides a class syntax for the hash-based Perl OO.
use Class::Plain; class Point { field x; field y; method new : common { my $self = $class->SUPER::new(@_); $self->{x} //= 0; $self->{y} //= 0; return $self; } method move { my ($x, $y) = @_; $self->{x} += $x; $self->{y} += $y; } method describe { print "A point at ($self->{x}, $self->{y})\n"; } } my $point = Point->new(x => 5, y => 10); $point->describe;
In…
How does SPVM resolve the problems of Perl numeric operations?
I hear Perl have the problems of numeric operation.
I realized this problems, and try to resolve them using SPVM. (SPVM is yet experimental release).
SPVM is a programing language to provide fast static-typed numeric operation and array operations into Perl.
I'm writing SPVM Language Specification now.
Do you want to use static typed numeric arra…
I introduce the progress of the new class feature of Perl. If you are interested in the progress of the new class feature of Perl, please see the following topics.
Pre-PR Preview of `use feature 'class'`
leonerd/perl5/feature-class | Github
In the current spec, the new…
I'm Perl Programmer. I LOVE Perl. I want to contribute Perl community and Perl users.