Todo 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. * Fixes
  2. attribute handlers (i.e. run-time attributes)
  3. compile-time perlio layers (e.g. use open ...)
  4. compile-time re-eval groups (?{})
  5. smartmatch subrefs
  6. compile-time stash-magic delete renames to ANON
  7. use bytes AUTOLOAD handling
  8. CvOUTSIDE for ordinary subs
  9. CC backend: goto (needs test), some recursive calls fail
  10. * Features
  11. modularize (-m) for faster link times, buildcc, rperl intergration
  12. backport improvements from oldmaster:
  13. do not define symbols which are arguments of define (destructive
  14. check)
  15. store static bless packagenames
  16. run-time label lookup (fixed)
  17. skip code after BEGIN goto (usually Carp including B in some AUTOLOAD block, issue 61)
  18. type checking: Devel::TypeCheck
  19. compile time v. runtime initialisation (done):
  20. execute run-time BEGIN blocks for side-effects such as print or chdir,
  21. use and require not.
  22. save PMOPs in compiled form (5.10thr missing)
  23. selection of what to dump (done)
  24. options for cutting out line info (COP elimination) etc. (-fcop, sortcv's)
  25. shared constants: share_hek, constpv (done)
  26. check module dependencies, vs. link libs static, not via DynaLoader (done)
  27. check Bytecode op coverage in the tests, should cover all ops 0-142
  28. ByteLoader compatibility: version, platform. eventually Bytecode version
  29. portability (test with 5.6 on cygwin, partially done)
  30. check CC op coverage, add tests
  31. * Optimizations
  32. -fro-inc read-only INC paths. not the AV, run-time savepvn (done)
  33. -fno-destruct skip optree and sv destruction at all, leave it to the OS (done)
  34. collect static strings beforehand, such as GvNAMEs, COP FILENAME (for pre 5.10)
  35. and GV method names package::name. (done)
  36. proper static init of PMOP SV's (only works dynamic >= 5.10)
  37. proper static init of PVBM/FBM (done)
  38. compile-time initialisation of AvARRAYs (improved with -fav-init and
  39. -fav-init2)
  40. collapse LISTOPs to UNOPs or BASEOPs
  41. compile-time qw(), constant subs
  42. variable types: global analysis of variables, type hints etc.
  43. understand type decl and attrs
  44. my int $i; my $j : int;
  45. Devel::TypeCheck instead of magic variable _ir, ... suffices
  46. e.g. mark IVonly SV's and magic/flags change functions and
  47. optimize all op subtrees for the compiled backends to use direct ints.
  48. understand MooseX::Method::Signatures and MooseX::Lexical::Types declarations
  49. demand-loaded bytecode (leader of each basic block replaced by an op
  50. which loads in bytecode for its block)
  51. fast sub calls for CC backend
  52. tailcall optimization (entersub -> leavesub => goto)
  53. inline more small pp ops: enter, reset, stringify, ... (CC -finline-ops)