First Perl 6 Book is Out 75
prostoalex writes "O'Reilly Publishing presented Perl 6 Essentials, the first book to be dedicated to Perl 6, at the beginning of this month. Looking at the table of contents, it hardly looks like a valid replacement for Llama or Camel books. Chapter 1 is available online. The whole book is available to Safari subscribers." I'm sure we'll review it sooner or later.
PERL is dying! (Score:3, Funny)
Re:PERL is dying! (Score:1, Offtopic)
Ummmmmmmmmm DUH! (Score:2, Informative)
Perl 6 development roadmap to nowhere (Score:2)
1. Develop VM before knowing what Perl 6 language will look like or what it requirements will be.
2. Claim VM will support all interpreted languages known to man, yet the only language that runs on it is a crippled version of Basic. The other (non Perl) languages will require custom C code defeating the point of having a VM in the first place.
3. Piss away $200K in grant money and have nothing to show for it 3 years later. Gee, why isn't an
Re:Perl 6 development roadmap to nowhere (Score:2)
That's quite funny. And Parrot's design is not random?! I guess you haven't been following their development very closely. They've changed calling conventions at least a half dozen times in the past 2 years, just to give you an example of their lack of a true design. Look how far both DotGNU and Mono have come in the same timeframe - they're
Re:Perl 6 development roadmap to nowhere (Score:2)
Perl 6 is a mistake. (Score:4, Insightful)
One of the goals of Perl 6 is to make non-trivial projects possible. That's good. The way it's being done is bad. Perl was once a lightweight, extremely flexible language. Now it's become a huge ugly monster [mozilla.org]. People wanted OO, so a nasty hack was bolted on top to allow some semblance of it. Now this nasty hack is being expanded. Sure, the code's different, but the basic form is the same. Kludge upon kludge upon kludge; I'd much rather have a nice, clean, pure language [rubycentral.com] (and not one with loads of irritating whitespace [python.org] thank you very much).
The same goes for the syntax. All the switching between $, @ and % is really irritating (ask a newbie how to get at the length of the keys array of a hash inside a hash, for example), and the changes proposed for 6 are just making this worse -- it seems that Larry, in his infinite wisdom, wants to prefix every data type with a different hard-to-type character. Perl was only designed for the three data types, and adding more is a mess.
Perl 6 is a complete rewrite, but it keeps all the mess which has accumulated over the previous versions. This is not good. Sure, my const int $var = 27; may look neat (in the same way that, say, Pascal [lysator.liu.se] does), but $var isn't entirely constant, or entirely an integer, it's just a hack which makes it sort of behave like one. The whole thing is an exercise in pseudo-computer science masturbation with little real purpose except to please the managers who dislike the one thing that makes Perl special.
On a similar note is regexes. I'm an avid fan of regular expressions simply because a nondeterministic finite automata is far more flexible than linear code. However, Larry must have been smoking that cheap $2 crack when he wrote this [perl.com]. Does he want Perl 6 to be flex [gnu.org] or something?
I won't be going on to use 6. It's a nice idea, but it's completely unnecessary. It won't make large projects any easier to manage (the language is still, at heart, an almighty hack -- an impressive one, but still a hack). It won't make OO any cleaner. It won't make development any faster. To put it bluntly, Perl scripts will still look less beautiful than our friend Mr Goatse [goatse.cx]. I'd prefer to use a language [ruby-lang.org] which has always been pure synthesis of science and engineering, not some half-baked imposter [beonex.com].
Perl 6 will be nice, but I'm guessing it will be the end of Perl. It can't do what it wants to do whilst still being based upon a nasty mess. There are now other options, which provide all of Perl's power and none of the mess. Sorry, but *BSD ^H^H^H^H Perl is dying. Larry is buggering it up the ass without lubricants, just like Shoeboy is doing to Larry's daughter.
Re:Ruby has its own design mistakes (Score:4, Informative)
That's not a "design mistake", it's just a major feature that hasn't been added yet. This will be remedied in a future version of Ruby.
A "design mistake" would be something error-prone and impossible to fix, like Python using indentation as part of the syntax.
Re:Ruby has its own design mistakes (Score:3, Interesting)
That's not a "design mistake", it's just a major feature that hasn't been added yet. This will be remedied in a future version of Ruby.
First, it hardly matters whether it is "just" a design mistake or a missing feature. If he needs the feature and it isn't available, he can't use the language. Second, Unicode tends to have all kinds of implications deep into the implementation of a language. They touch reflection, language syntax, regular expressions, file system, pickling, I/O etc. You can call it "jus
Re:Ruby has its own design mistakes (Score:1)
The problem with that is that a lot of developers like myself have grown up with Fortran -> C -> C++ -> Perl -> Java, or some similar progression. We don't have a problem matching parenthesis. In fact, any decent text editor or IDE will help us match parens and get the indents looking the way we want them
Re:Ruby has its own design mistakes (Score:2)
Actually, this is one place where I think ruby is ahead of your average scripting language currently in the
Re:Ruby has its own design mistakes (Score:2)
Actually, this is one place where I think ruby is ahead of your average scripting language currently in the not-yet-supporting-Unicode state.
What scripting language doesn't support Unicode? BASH? Python, Perl and JavaScript all do.
Re:Ruby has its own design mistakes (Score:1)
That is not a "design mistake." Python was not originally meant to be a production language, it was meant as a teaching tool and as a teaching tool it used the whitespace block delimiters/quantifiers as a way to force programming newbies to learn to write readable code.
Re:Ruby has its own design mistakes (Score:4, Informative)
Mark Erikson
Re:Ruby has its own design mistakes (Score:2)
for(2): # indented two tabs
for(3): # indented six spaces
for(4): # indented one tab
Quick quiz: Which lines are in which blocks?
Followup: How was I supposed to know that looking at the screen?
Re:Ruby has its own design mistakes (Score:2)
Unless it's new, that's not true. My first experience with python was copying a script from a webpage, putting it in a file, and getting a runtime error.
Turned out the browser had stuck five spaces in front of each line. I went through and pulled the whole text block to the left so that the leftmost line was in column 0 and it worked properly.
Maybe it has been fixed an
Re:Ruby has its own design mistakes (Score:1)
Besides, python supports both indentation block delimitation AND parentheses-like block delimiters.
just use #{ and #} (should be at the end of a line)
or you might use #[ and #]
or even # and #
Re:Ruby has its own design mistakes (Score:1)
Re:Ruby has its own design mistakes (Score:2, Insightful)
If you use tabs consistently for indentation, then it doesn't matter what you set them to, the Python code will remain valid and its meaning won't be affected.
If you mix tabs and spaces, you need to use the same tab setting as the original author anyway or the code will look like garbage.
The flip side of yo
Re:Ruby has its own design mistakes (Score:4, Insightful)
Re:Perl 6 is a mistake. (Score:2)
so you'd have:
String -> '(' String ')' |
try doing that with a regex
Re:Perl 6 is a mistake. (Score:1)
Re:Perl 6 is a mistake. (Score:2, Insightful)
So few words, so much ignorance...
Try doing that with an NFA, dumbass. An NFA cannot detect matching parentheses. A pushdown automaton can. This should be pretty obvious since your example is a grammar production of the context-free grammar style. PDAs are related to CFGs like NFAs/DFAs are related to regexes (though the relationship isn't as clean in the former case).
Regexes aren't NFAs but regexes can be used to describe an
Matching nested parens with a Perl 5 regex (Score:2)
You can in fact do this with plain old Perl 5 regexes, as follows - to quote from Jeffrey Friedl's excellent Mastering Regular Expressions, 2nd Edition, p. 328-331:
This dynamic regex matches text within an arbitrarily-nested set of nested parentheses, by recursively 'calling' the compiled regex $LevelN from within itself - the left hand condition of the alternation is the exit condition. It works in Perl 5.6 or higher, maybe even earlier -
Re:Perl 6 is a mistake. (Score:3, Interesting)
The reason for this is because if you tell the interpreter what sort of data it is, it helps the interpre
Re:Perl 6 is a mistake. (Score:1, Insightful)
So in other words, you never liked Perl all that much in the first place. I honestly don't see what's wrong with variables that include $, %, and @. It's just a way of concisely throwing in some syntactic markers to allow you to have interesting and convenient syntax in other areas. Certainly other languages have similar things; for instance, C has an array dereference operator ("[" and "]"), and nobody complains about it, even though it really is basically the same concept. And then there's the "." oper
Re:I'm just wondering... (Score:1, Troll)
Go ahead and mod me down for flaming, I'll gladly take the hit.
Mixed Company (Score:1)
Maybe there'd be more women around if you showed them a little respect.
Re:Mixed Company (Score:1, Offtopic)
Re:Mixed Company (Score:1, Offtopic)
In person, the intent and impact of a joke is tempered by other cues such that the butt of the joke can tell whether it is told "in good fun" or with intent to harass. In a forum like this one, no amount of smilies conveys those cues. The constant gay-bashing and mysog
Re:Mixed Company (Score:1, Offtopic)
>>>>>>>>>
Dude, I'm a Muslim Indian. Don't give me any crap about being a minority. Every time an article on Slashdot comes out about programmers, you get some anti-Indian people crawling out of the woodworks. However, its quite easy to distingui
Re:Mixed Company (Score:1, Offtopic)
Ok, then obviously it was wrong of me to assume that you don't know the joking from the underside. Your points about other institutional reasons for lack of women in programming are well taken. I hope my daughter develops the same thick skin as your younger brother. I still disagree with you about the nature of joking on slashdot, but thanks for discussing the situation.
Re:You must be a joy to be around (Score:1)
In a year, a woman goes from being virtually unknown to a core member of the Perl 6 design team, president of the Perl Foundation, a speaker at several conferences, and an author.
This news goes public, and the first thing a few people want to talk about is her breasts. When confronted about this, the excuses are "Oh, you're just being too sensitive", "Women like being noticed", and "If she doesn't like it, she shouldn't hang around here."
I'm sorry, but I really don't see any appreciation for Allison's
Re:I'm just wondering... (Score:3, Insightful)
Re:I'm just wondering... (haiku) (Score:1)
remove your hands from your pants
and grow the fuck up
Table of contents? (Score:3, Funny)
Wouldn't you instead need to see the cover to determine that?
not *intended* to replace the camel book (Score:5, Informative)
It's not supposed to be. Just as they have conventions for the books' color (e.g. Perl blue), O'Reilly and Associates has conventions for the titles.
* "... Essentials" means an overview of what's new.
* "Learning
* "Programming
* "... Cookbook" is a series of problems and their solutions
* "... in a Nutshell" is like a language reference
* "...: The Definitive Guide" is a combination of all four
* "... Pocket Reference" is a shorter version of the above
Re:not *intended* to replace the camel book (Score:4, Insightful)
Re:Cart Before the Horse (Score:3, Insightful)
Re:Cart Before the Horse (Score:1)
people to justify a book about ~planned~ changes
to Perl? Yikes. I really don't understand most programmers.
Why not print the O'caml book: Developing Applications with Objective Caml [inria.fr]
(the ICFP contest champ).
Book deals too much with assembly (Score:1)
Re:Book deals too much with assembly (Score:2, Informative)
OOP hasn't been decided yet. That's the next Apocalypse the design team is considering. Just about everything known about Perl syntax is in chapter 4.
There are also plenty of people who'll program Parrot or IMCC bytecodes. We're the people who are implementing Perl 6, Ruby, Python, Lua, BASIC, BF, Befunge, Scheme, Jako, Cola, Perl 5, and Perl 1 on Parrot.
If you're expecting this to be a new verison of the Camel or the Llama, you'll be disappointed. It's not. It's aimed at early adopters, people who
Chapter 3... (Score:2, Informative)
Eh? (Score:1, Troll)
Finally (Score:2)
You guys are missing the point (Score:2, Interesting)
2B | !2B == Question (Score:1)
http://www.perlmonks.org/index.pl?node=Perl%20P
Perl vs. PHP (Score:1, Troll)