fix codetest failure - ASSERT_ARGS does not have a ; after and
[parrot.git] / docs / faq.pod
blobefec72ca168179473a1356b501cbc6565b787796
1 # Copyright (C) 2001-2007, Parrot Foundation.
2 # $Id$
4 =head1 NAME
6 docs/faq.pod - Parrot FAQ
8 =head1 GENERAL QUESTIONS
10 =head2 What is Parrot?
12 Parrot is a virtual machine for dynamic languages such as PHP, Perl, Python,
13 Ruby, Scheme, Tcl, etc. It compiles and executes bytecode, but is also designed
14 to act as an interpreter.
16 =head2 Why did you call it "Parrot"?
18 The name "Parrot" started with Simon Cozens's April Fool's Joke
19 (L<http://www.perl.com/pub/a/2001/04/01/parrot.htm>) where Larry Wall and Guido
20 van Rossum announced the merger of the Perl and Python languages.
22 A year later, when we were looking for a name for our virtual machine that
23 could run both Perl and Python, it seemed like a perfect fit.
25 =head2 Is Parrot the same as Perl 6?
27 No. Perl 6 is just one of the languages that will run on Parrot. For
28 information about Perl 6 on Parrot (a.k.a Rakudo), see L<languages/perl6/>.
30 =head2 Can I use Parrot today?
32 Yes.
34 Although Parrot is currently still under development, Parrot has been usable for
35 a long time. The primary way to use Parrot is to write Parrot Intermediate
36 Representation (PIR), described in L<PDD19|docs/pdds/pdd19_pir.pod>.
37 PIR is a high-level assembly language. See the L<examples> directory.
39 =head2 When can I expect to use Parrot with a I<real> programming language?
41 While the languages that are shipped with our pre-release versions of
42 parrot are in varying states of development, many of them are quite
43 functional. See L<https://trac.parrot.org/parrot/wiki/Languages>
44 for information about the various languages that are targeting parrot.
46 =head2 What language is Parrot written in?
48 While much of the build system currently uses perl 5.8.0, the parrot
49 runtime is C89.
51 =head2 Why register-based and not stack-based?
53 Stack-based virtual machines and interpreters (JVM, .NET, Perl5, etc) are
54 both common and successful. However, register-based implementations give
55 us a number of benefits: Less code needed to manipulate the stack
56 frequently, access to decades of optimization for register-based hardware,
57 and a minimization of stack overflow security problems. For many
58 programmers, our register architecture just I<feels> more normal than
59 doing everything on a stack too.
61 =head2 Why aren't you using external tool or library I<X>?
63 The most common issues are:
65 =over 4
67 =item License compatibility
69 Parrot uses the Artistic License 2.0, which is compatible with
70 the GNU GPL. This means you can combine Parrot with GPL'ed code.
72 =item Platform compatibility
74 Parrot has to work on most of Perl 5's platforms, as well as a few of its own.
75 Perl 5 runs on eighty platforms; Parrot must run on Unix, Windows, Mac OS (X
76 and Classic), VMS, Crays, Windows CE, and Palm OS, just to name a few.  Among
77 its processor architectures will be x86, SPARC, Alpha, IA-64, ARM, and 68x00
78 (Palms and old Macs).  If something doesn't work on all of these, we can't use
79 it in core Parrot.
81 =back
83 =cut