News for hackers. Stuff that matters.
Re:Why Did I Choose Perl When Building Crowdtilt? by UncleOxidant on Friday August 31, 2012 @06:08PM (#4461894)
"As far as I know, Perl is one of the only languages that can evolve via 3rd party modules."

Ummm... What?!

There's a long tradition creating DSLs in the Ruby community. Lisp/Scheme/Clojure have macros. OCaml has campl4. I'm sure there are many others.

Re:Why Did I Choose Perl When Building Crowdtilt? by singingfish on Friday August 31, 2012 @06:41PM (#4461989)
Not the same thing. DSLs are not the same as extending the functionality of the interpreter. And it's basically the flexibility of perl as a procedural/functional/declarative/OO language (i.e. lack of assumptions of how you want to work) with its roots in practical natural linguistics (as opposed to theoretical as with lisp) that makes this possible. Yes, that does mean coding with some discipline (Perl::Critic and Moose & friends helps here), and some things are more of a pain in the arse than with a more opinionated language, but it seems a reasonable trade off to me.
Re:Why Did I Choose Perl When Building Crowdtilt? by chromatic on Friday August 31, 2012 @06:44PM (#4462001)
I'll give you macros, but if you define DSLs as "chained methods", many languages have DSL supports. The author's talking about Perl's support for mangling the language itself through third party modules.
Re:Why Did I Choose Perl When Building Crowdtilt? by rb2k_ on Friday August 31, 2012 @07:45PM (#4462174)
What does Perl have in that regard that Ruby hasn't? Ruby also has open classes and you can chain and modify any of the base classes, be it "String" or "Object".

I don't know anything like "MooseX", but that might be because Ruby actually has a somewhat working object system.

Re:Why Did I Choose Perl When Building Crowdtilt? by chromatic on Friday August 31, 2012 @07:54PM (#4462190)
Perl lets you add new language keywords which take effect during the parse phase.
Re:Why Did I Choose Perl When Building Crowdtilt? by klibertp on Friday August 31, 2012 @10:34PM (#4462493)
So, basically, Perl has macros? REAL macros? Like, say, in Lisps? Could I, for example, make fully inlined merge sort, as demonstrated a couple days ago here by a post from Racket blog? Now I'm curious.
Re:Why Did I Choose Perl When Building Crowdtilt? by btilly on Saturday September 01, 2012 @12:40AM (#4462670)
Sort of. Perl has support for something like reader macros. See http://search.cpan.org/~zefram/Devel-Declare-0.006011/lib/De... for details.

One could, in theory, build something like Lisp macros using it, but I don't think that anyone has.

Re:Why Did I Choose Perl When Building Crowdtilt? by chromatic on Saturday September 01, 2012 @01:28AM (#4462739)
Perl 5's parser manipulation doesn't go as far as manipulating an AST, yet. I would like that, but Lisps still have a strong advantage there.
Re:Why Did I Choose Perl When Building Crowdtilt? by UncleOxidant on Sunday September 02, 2012 @08:43PM (#4468679)
Sure, but the intent of the author seems to be to say that the language can be molded in ways that make it easy to apply in specific domains. Whether that's with macros or with a DSL-ish approach you're pretty much achieving the same end result. Ruby's blocks make it fairly easy to create DSLs that look like you've actually changed the underlying language in some way - Rails makes heavy use of these features, for example.
Re:Why Did I Choose Perl When Building Crowdtilt? by knighthacker on Friday August 31, 2012 @07:23PM (#4462116)
Exactly. MooseX::Declare is a good example.