parrotcode: Untitled | |
Contents | Language Implementations | NQP |
This is "Not Quite Perl" -- a compiler for quickly generating PIR routines from Perl6-like code. The key feature of NQP is that it's designed to be a very small compiler (as compared with, say, perl6) and is focused on being a high-level way to create transformers for Parrot (especially hll compilers). In addition, unlike perl6, NQP attempts to restrict itself to generating code that can run in Parrot without the existence of any NQP-specific runtime libraries.
One way that NQP aims to be a lighter version of Perl 6 is by avoiding syntactic sugar and "dwimminess" that isn't needed for the types of routines that are written. Sometimes this makes coding a bit more work, but it also lowers the learning curve somewhat.
This list isn't exhaustive; for now it's intended to identify the language constructs that we explicitly know will be supported
There are a large number of Perl 6 constructs and idioms that aren't supported or expected to be supported in NQP. This is by design -- the point of NQP is to provide a lightweight HLL for generating PIR subroutines while adhering to a Perl 6 syntax.
Some items not planned for NQP:
Of course, if we later decide that some item is vitally important for NQP programs, we can add it -- but for now the point is to maintain a minimal set of constructs.
|