Re: Definitions: compiler vs interpreter [was: Rationale for a VM + compiler approach instead of an interpreter?]

2014-12-08 Thread Gerard ONeill
How about an interpreter interprets input directly into action (even if there is some optimization going on), while a compiler converts instructions from one set to another set to be interpreted later. Which would make perl both at the perl source level, and an interpreter at the bytecode level.

add subs from $?PACKAGE.HOW ?

2014-12-08 Thread Marc Chantreux
hello, i'm trying to ease the production of xml streams in a perl6 script so i wrote sub _attrs_str ( %attrs) { %attrs.pairs.map: { qq/{.key}={.value}/ } } multi sub tag ( Str $tag, Parcel $attrs=()) { { $tag, _attrs_str $attrs.hash }/; } multi sub tag (