@@ -502,7 +502,7 @@ You can force list context with C<@( ... )> or by calling the
502
502
C < .list > method on an expression, and item context with
503
503
C < $( ... ) > or by calling the C < .item > method on an expression.
504
504
505
- See the L « I < Perl 6: Sigils, Variables, and Containers > article|https://perl6advent.wordpress.com/2017/12/02/»
505
+ See the L « I < Perl 6: Sigils, Variables, and Containers > article|https://perl6advent.wordpress.com/2017/12/02/»
506
506
to learn more.
507
507
508
508
X < |Sigils (FAQ) >
@@ -868,10 +868,10 @@ to the JIT that other dynamic languages don't, we think we'll have a lot of
868
868
headroom for performance improvements.
869
869
870
870
The following crude benchmarks, with all the usual caveats about such things,
871
- show that Perl 6 can be faster than Perl 5 for similar tasks if
872
- the big weaponry is included; at the same time, Perl 5 can be faster
873
- if only the bare bones are included. Similar situation can be observed
874
- when comparing Perl 6 to other languages.
871
+ show that Perl 6 can be faster than Perl 5 for similar tasks if the big weaponry
872
+ is included, that is, if Perl 6 features are used to its full extent; at the
873
+ same time, Perl 5 can be faster if only the bare bones are included. Similar
874
+ situation can be observed when comparing Perl 6 to other languages.
875
875
876
876
Try it on your system. You may be pleasantly surprised!
877
877
@@ -921,17 +921,18 @@ Examples:
921
921
1;
922
922
= end code
923
923
924
- = begin code
925
- # A perl program which works under both perl5 (with perl -Mbigint)
926
- # and perl6
924
+ You might want to use this program for comparing performance, too. It works
925
+ under both languages, as long as C < perl -Mbigint > is used for invocation for
926
+ Perl 5.
927
927
928
- my ($prev, $current) = (1, 0);
928
+ = begin code
929
+ my ($prev, $current) = (1, 0);
929
930
930
- for (0..100_000) {
931
- ($prev, $current) = ($current, $prev + $current);
932
- }
933
- print $current;
934
- = end code
931
+ for (0..100_000) {
932
+ ($prev, $current) = ($current, $prev + $current);
933
+ }
934
+ print $current;
935
+ = end code
935
936
936
937
= end pod
937
938
0 commit comments