Skip to content

Commit

Permalink
Some small, mainly typographic, changes to the FAQ
Browse files Browse the repository at this point in the history
  • Loading branch information
JJ committed Aug 10, 2018
1 parent 257222a commit 30b4d48
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions doc/Language/faq.pod6
Expand Up @@ -868,10 +868,10 @@ to the JIT that other dynamic languages don't, we think we'll have a lot of
headroom for performance improvements.
The following crude benchmarks, with all the usual caveats about such things,
show that Perl 6 can be faster than Perl 5 for similar tasks if
the big weaponry is included; at the same time, Perl 5 can be faster
if only the bare bones are included. Similar situation can be observed
when comparing Perl 6 to other languages.
show that Perl 6 can be faster than Perl 5 for similar tasks if the big weaponry
is included, that is, if Perl 6 features are used to its full extent; at the
same time, Perl 5 can be faster if only the bare bones are included. Similar
situation can be observed when comparing Perl 6 to other languages.
Try it on your system. You may be pleasantly surprised!
Expand Down Expand Up @@ -921,17 +921,18 @@ Examples:
1;
=end code
=begin code
# A perl program which works under both perl5 (with perl -Mbigint)
# and perl6
You might want to use this program for comparing performance, too. It works
under both languages, as long as C<perl -Mbigint> is used for invocation for
Perl 5.
my ($prev, $current) = (1, 0);
=begin code
my ($prev, $current) = (1, 0);
for (0..100_000) {
($prev, $current) = ($current, $prev + $current);
}
print $current;
=end code
for (0..100_000) {
($prev, $current) = ($current, $prev + $current);
}
print $current;
=end code
=end pod

Expand Down

0 comments on commit 30b4d48

Please sign in to comment.