Skip to content

Learning Raku (formerly Perl 6)

  • About
  • Book
  • Downloads
  • Events
  • Participate
  • Site
  • Unresolved

Category: Numbers

Converting numbers to strings the hard way

Posted on January 9, 2018 by brian d foy

Turning numbers into strings can be a big waste of time and money. Paul Khuong wrote about this in How to Print Integers Really Fast (With Open Source AppNexus Code!). […]

Read more
Asynchronous / Numbers / Strings 2 comments

How you average numbers doesn’t matter

Posted on June 17, 2017 by brian d foy

Perl 6 averages “floating point” numbers correctly. That’s an interesting statement because it seems like it should be obvious and expected. However, people around computers long enough are used to […]

Read more
Numbers Leave a comment

Don’t use < in programming

Posted on May 21, 2017 by brian d foy

I don’t actually mean that you shouldn’t use <, but I’m playing off Don’t use the greater than sign in programming. That post from Lewellyn Falco reminded me of a […]

Read more
Numbers / Ranges One comment

As many digits as you like

Posted on April 24, 2017 by brian d foy

I was playing with arbitrary precision rational numbers in Perl 6, irrationally perhaps by playing with the natural base, e, also known as Euler’s Number. That’s a builtin value in […]

Read more
Numbers Leave a comment

Close enough

Posted on March 23, 2017 by brian d foy

Perl 6 has some amazing numerical features, including builtin complex number computations. You might never need these, but they permit a bit of math geekry that I find quite pleasing. […]

Read more
Numbers Leave a comment

Quick Tip #21: The rats in the machine

Posted on December 6, 2016 by brian d foy

Let’s think about numbers. I’ve been inserting Kickstarter messages into my Quick Tips, but this post is about Kickstarter. Or, about their mistreatment of numbers. There’s no scandal, just those […]

Read more
Kickstarter Tips / Numbers 4 comments

Quick Tip #20: Way off base

Posted on December 5, 2016 by brian d foy

Want to use numbers that are represented in something other than base 10? That’s no problem in Perl 6. Some languages throw you a bone with binary, octal, or hexadecimal […]

Read more
Command Line Program / Kickstarter Tips / Numbers 4 comments

Raku or Perl 6?

Raku used to be called Perl 6, but changed its name in October 2019. You’ll see both names here, and I’m working on updating the title of the paper book.

Learning Perl 6



Recent Posts

  • Learning Raku digital cover mock-up
  • Reducing comparison operators
  • Long Live Raku
  • Taiwanese editions of Learning Perl 6
  • Rakudo Star 2018.10 is in Chocolatey

Archives

Categories

Links

Book errata
Google Books preview
O’Reilly Media listing


Many resources have not changed the name from Perl 6 to Raku, so these resources may use either.

Raku Design Docs (dated)
Raku Docs
Learn Perl 6 in Y Minutes
Raku modules
Rosetta Code examples
Project Euler examples
Perl 6 Examples
Raku Roast (test suite examples)

Powered by WordPress and Merlin.