Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Perlito5 - update docs

  • Loading branch information...
commit dcf8c72fb8f55d411f8158cb86bafc97fbac0d8e 1 parent 6996173
@fglock authored
Showing with 21 additions and 10 deletions.
  1. +8 −0 ChangeLog
  2. +13 −10 README-perlito5-js
View
8 ChangeLog
@@ -1,11 +1,19 @@
Dev 2012-02-14
Perlito Perl 5:
+- parser optimizations
+
+- perl5 backend:
+-- use native data structures and ops
+
- javascript backend:
-- symbol tables; typeglobs
+-- scalar references; hash references
-- perlito5 calling convention is incompatible with native javascript
+ The last commit using native javascript data is "e1e3316b"
-- native javascript can be accessed with JS::inline('string')
-- reduced generated code size by 3x
+ The browser backend doesn't load the grammar compiler
Perlito Perl 6:
- mostly no changes
View
23 README-perlito5-js
@@ -16,38 +16,41 @@ Array
- native []
Scalar
-- native
+- native values
HashRef
-- TODO
-- native {} with prototype "HashRef"
+- native {} wrapped in a "HashRef" object
ArrayRef
- TODO
ScalarRef
-- TODO
-- We could probably use String/Boolean/Number (boxed types) as SCALARs
+- native value wrapped in a "ScalarRef" object
Object
-- native {} with a _class_ attribute
+- one of the reference types, with a _class_ attribute
Class
-- TODO
+- classes are stored in the CLASS global hash
+- the _class_ attribute points to the class itself
+- classes inherit from UNIVERSAL
Namespace
+- namespaces are stored in the NAMESPACE global hash
- current namespace is v__NAMESPACE
-- v__NAMESPACE inherits from CORE, which inherits from CORE::GLOBAL
-- v__NAMESPACE is a copy of the Class, but with a different inheritance
-- v__NAMESPACE and Class are updated in parallel, both when a sub is declared or when using typeglob assignment
+- Namespace inherits from CORE, which inherits from CORE::GLOBAL
+- Namespace is a copy of the Class, but with a different inheritance
+- Namespace and Class are updated in parallel, both when a sub is declared or when using typeglob assignment
Calling context ("wantarray", caller)
- TODO
Alias
- TODO
+- We could probably use String/Boolean/Number (boxed types) as SCALARs
List (eg. subroutine return value)
+- TODO
- native []
Please sign in to comment.
Something went wrong with that request. Please try again.