Build Date: Sat Sep 30 22:50:17 2023 UTC
how do you love someone who has peoples' heads chopped off?
-- rotten elf
Larry Wall Unveils Perl 6.0.0
2015-10-06 11:32:33
The first thing he did was thank Craigslist "for sponsoring me these last few years". On October 5th, 2015 Larry Wall addressed a crowd of geeks at San Francisco's Exploratorium, saying he couldn't properly express his gratitude to Craigslist. Then he acknowledged how long the development arc had been for Perl 6. "As the old joke goes, Perl 6 is coming out this Christmas." Only this time, he meant it.
Larry has a soft, cheerful voice, and an unflaggingly positive attitude. "To the nay-sayers: thank you for saying nay. It was a tremendous motivator. We couldn't have done it without you." And then for the rest of the audience, the former linguist said, "We did it. For some definition of 'we', and 'did', and 'it'." To underscore the point, he put up a slide that said "Here."
"Any questions?"
Someone from the audience jokingly alluded to The Lord of the Rings. ("Does one simply build Perl 6? It's not like Mordor?") But Larry was more interested in demonstrating how the new language would "carry forward the high ideals of the Perl community." He joked that a top priority now was fixing bugs that could be mistaken for features. And then we saw a lot of things that were exotic and new.
$++; | # An anonymous state variable, # for very fast loops |
gather and take | # A control structure for creating lists # without an intermediate temp variable |
loop {} | # Looks like an alternate syntax # for creating a loop |
react { whenever } | # Code runs when a condition is met. # Larry actually demonstrated this by # triggering the react block just by # typing an echo command |
One of the most impressive things Larry demonstrated was the sequence operator, and Perl 6's ability to intuit sequences.
say 1, 2, 4 ... 2**32
This correctly produced a nice tidy list of just 32 values -- rather than the 4,294,967,296 you might expect. (Larry later told an audience member that he "really liked" this capability, and when someone asked how it's implemented, he said "Go read the code!")
And he also dazzled the audience by calling methods on integers. "Everything is an object. But only if you want it to be..."
say Int.^methods
say Array.HOW.^name
With a nod to Douglas Adams, Larry said "42 is a very important number," then showed the audience what would happen if you called integer methods on the number 42.
say 42.WHAT
say 42.^methods
"Pretty much everything is a reference, if you scratch it," he said later. (One web site notes that in Perl 6, "everything that can be held in a variable is an object, and objects are passed by reference everywhere....")
Larry talked quite a bit about meta-programming -- the ability to write your own grammar, defining bits of syntax and extending the language on your own. "We really make no distinctions between built-in and user-defined," he said at one point. Defining a new "infix" operator has an eminently reasonable syntax -- something like:
sub infix:
And any op in square brackets becomes a list operator.
say [+] <3, 1, 4> x ** 2
It took me a second to process Larry's statement that "Any infix operator can be replaced by itself in square brackets..." Later someone asked, "In a world of user-defined operators everywhere, how do you define precedence?" And Larry pulled out is tighter() and is looser(), noting that Perl 6 even has customizable precedence levels. "You can add an infinite number..."
But Larry was especially proud of Perl's ability to drop down into other languages. ("This is why we say all languages are really just dialects of Perl 6...") Python and Lua are even included in the Inline library. And Larry pointed out a new library that adds Ruby-esque rules, so exclamation points and question marks can be used at the end of identifiers. ("If that's what it takes to make Ruby programmers happy...")
He touted many other cool features of Perl 6. (Concurrency. Roles. "Lazy lists," which don't calculate their values until required...) There's even an improved handling of smart quotes. And he promised that soon we'd see something called native shift arrays. "But things you can feed into a high-speed processor to do matrix manipulations is already built in." There's also a new syntax in Perl 6 which lets you perform smart matching. (Finally, there's a way to stop non-identical strings from matching just because they have the same numerical value.)
say "+123.0" ~~ 123 ;
By comparison, a regular expression is just "a degenerated way" of doing a smart match -- doing character-by-character analysis instead of checking for actual equivalence.
There was a moment in the presentation when it seemed like Perl 6 may be the language that Larry had always wanted to write. "My wife observes that when we did Perl 5, we had to incorporate a lot of recognizable culture," he told the audience. "But with Perl 6, we now have street cred to design things the way they ought to be. The hardest thing is waiting for the right person to come along, who understands how to implement it. If we'd shipped any time in the last 15 years, we might thoroughly regret it now."
Larry concluded by taking questions from the audience, which drew out some more interesting comments on the same theme. ("We've been trying very hard for the last 10 years to underpromise and over perform.") But my favorite part was when he alluded to the old joke about development -- that you can choose any two of the follow three attributes: fast, good, and cheap.
"We're an open source project. By definition, we're cheap. We chose good over fast."
T O P S T O R I E S
Gary Busey definitely involved in a hit and run accident
Gary Busey was definitely involved in a hit-and-run accident, but won't face any charges because he's rich and famous. (More...)
Gary Busey allegedly involved in Malibu hit-and-run
"Sir! You hit my car! I need your information!" the woman yelled at Gary Busey driving a battered Volvo station wagon before he sped off. (More...)
Health and Human Services officials spend a year on pot
After a yearlong, comprehensive, thorough, complete investigation into the effects of marijuana usage, Health and Human Services (HHS) officials recommended that it be moved from Schedule I of the Controlled Substances Act to Schedule III, meaning that the HHS no longer considers cannabis to be a drug with high abuse potential and no medical value. (More...)
If you've ever wondered what actual bullshit looks like, just check the back side of Lee Meyers' decommissioned police cruiser. Lee chopped the top of the passenger side of the car off so he could take his full-grown Watusi bull, named Howdy Doody, for joy rides around his home town of Neligh, Nebraska. Since the car doesn't have bathroom facilities Howdy Doody just craps all over the back and side of the car whenever he feels the need to let one go. (More...)
Self-righteous assholes block highway to Burning Man
A group of self-righteous assholes converted exactly zero people to their cause by blocking the highway to Burning Man this week. The group, which used a flimsy trailer, some lengths of chain, and a few folding chairs to block the road, put up signs including "Burners of the World Unite," but none of the burners stopped in traffic wanted to unite with them for anything. (More...)
How much force does it take to pull out nose hair?
Have you ever pulled out a nose hair and felt like part of your brain came with it? Have your eyes watered from the extreme pain? Did you wonder how much force it took? Would you pull out 50 more hairs afterwards, using precise measuring instruments, to determine the answer IN THE NAME OF SCIENCE? (More...)
C L A S S I C P I G D O G
Datelined "Historic Mariposa," the fateful press release came in like an angry wind, announcing the release of a self-produced album, "Ordinary Hero," by occasional Pigdog contributor Thom Stark, in the language and tone of a Major Event, setting off a brief firestorm around the pigdog mailing list. (More...)
The Deep Dark Underbelly of the Star Wars Myth, or Ramayana Remembered
It's a fact: Star Wars is a blatant plagiarism of an ancient Asian legend, and the long lines of devout Star Wars freaks are really unscrupulous Asian copyright busters. From Indonesia to Thailand to Nepal, videos are available for sale or rent before they're even released in the US and UK due to this nerdy camcorder-clutching bunch. (More...)
It's not like I have a heroin problem, see. I'm just a self-indulgent brat who likes to live beyond her means. When I zip down to my corner Money Mart for a little cash-till-payday loan, I'm really not planning to spend it on drugs. I'll spend it on sushi. Seventy bucks of interest for a two-week $400 loan is perfectly reasonable, if you really need that hamachi. (More...)
40 Acres, a Mule, and a Crummy 90-Second Spot on Weekend Update
Consider the plight of the Black Man. The Black Man on "Saturday Night Live," I mean. Has there ever been a more pathetic thing than a token unredeemed for 28 years? Where is the NAACP when you really need them? (More...)
A Day in the Life of a Beverotologist
It was starting to look like a very boring Saturday, trapped as I was in the suburban wastelands of the outer Bay Area, so I called my Able Assistant (AA) and proposed that we perform some Spocktail field tests. For some time I've been working on creating the quintessential cinematic beverage and even tho' SMRL does most of its testing during nocturnal hours, this seemed an opportune time to roll up the sleeves of our labcoats and get some science done. While the beverotology creation tested this day (The Neurotoxin) must be deemed a success, this article focuses more the journey of the experimenters, rather then the science of beverotology. (More...)
Poor Metallica. All they want is to continue to put out the same weak "Heavy Metal" they've been churning out since the "And Justice For All" days? and make gooey wads of cash in the process. The problem is, people aren't buying their bound for the heavy metal scrap heap, over-produced, uninspired, tired crap. And let's face it, their various commercial endorsements won't pay for the lifestyle they've become comfortably accustomed to. Resorting to lawsuits makes perfect sense, when you need spending money. But just one lawsuit isn't going to pay their bills. So, to aid Metallica, I've composed an open letter to the boys in the band, with suggestions as to whom else they might sic their lapdog lawyers on... (More...)