1. 14 Mar, 2015 1 commit
  2. 11 Mar, 2015 1 commit
  3. 03 Mar, 2015 1 commit
  4. 27 Feb, 2015 1 commit
    • Paul Sokolovsky's avatar
      objarray: Implement array slice assignment. · cefcbb22
      Paul Sokolovsky authored
      This is rarely used feature which takes enough code to implement, so is
      controlled by MICROPY_PY_ARRAY_SLICE_ASSIGN config setting, default off.
      But otherwise it may be useful, as allows to update arbitrary-sized data
      buffers in-place.
      Slice is yet to implement, and actually, slice assignment implemented in
      such a way that RHS of assignment should be array of the exact same item
      typecode as LHS. CPython has it more relaxed, where RHS can be any sequence
      of compatible types (e.g. it's possible to assign list of int's to a
      bytearray slice).
      Overall, when all "slice write" features are implemented, it may cost ~1KB
      of code.
  5. 23 Feb, 2015 1 commit
  6. 22 Feb, 2015 1 commit
  7. 08 Feb, 2015 1 commit
  8. 30 Jan, 2015 1 commit
  9. 20 Jan, 2015 1 commit
  10. 15 Jan, 2015 1 commit
    • Paul Sokolovsky's avatar
      pyexec: Add event-driven variant pyexec_friendly_repl(). · 87bc8e2b
      Paul Sokolovsky authored
      pyexec_friendly_repl_process_char() and friends, useful for ports which
      integrate into existing cooperative multitasking system.
      Unlike readline() refactor before, this was implemented in less formal,
      trial&error process, minor functionality regressions are still known
      (like soft&hard reset support). So, original loop-based pyexec_friendly_repl()
      is left intact, specific implementation selectable by config setting.
  11. 14 Jan, 2015 1 commit
  12. 11 Jan, 2015 1 commit
    • Damien George's avatar
      py: Add MICROPY_QSTR_BYTES_IN_LEN config option, defaulting to 1. · 95836f84
      Damien George authored
      This new config option sets how many fixed-number-of-bytes to use to
      store the length of each qstr.  Previously this was hard coded to 2,
      but, as per issue #1056, this is considered overkill since no-one
      needs identifiers longer than 255 bytes.
      With this patch the number of bytes for the length is configurable, and
      defaults to 1 byte.  The configuration option filters through to the
      makeqstrdata.py script.
      Code size savings going from 2 to 1 byte:
      - unix x64 down by 592 bytes
      - stmhal down by 1148 bytes
      - bare-arm down by 284 bytes
      Also has RAM savings, and will be slightly more efficient in execution.
  13. 10 Jan, 2015 1 commit
  14. 09 Jan, 2015 2 commits
  15. 07 Jan, 2015 2 commits
    • Damien George's avatar
      py: Add option to cache map lookup results in bytecode. · 7ee91cf8
      Damien George authored
      This is a simple optimisation inspired by JITing technology: we cache in
      the bytecode (using 1 byte) the offset of the last successful lookup in
      a map. This allows us next time round to check in that location in the
      hash table (mp_map_t) for the desired entry, and if it's there use that
      entry straight away.  Otherwise fallback to a normal map lookup.
      Works for LOAD_NAME, LOAD_GLOBAL, LOAD_ATTR and STORE_ATTR opcodes.
      On a few tests it gives >90% cache hit and greatly improves speed of
      Disabled by default.  Enabled for unix and stmhal ports.
    • Damien George's avatar
      py: Put all global state together in state structures. · b4b10fd3
      Damien George authored
      This patch consolidates all global variables in py/ core into one place,
      in a global structure.  Root pointers are all located together to make
      GC tracing easier and more efficient.
  16. 01 Jan, 2015 2 commits
  17. 29 Dec, 2014 1 commit
  18. 28 Dec, 2014 1 commit
  19. 19 Dec, 2014 1 commit
  20. 09 Dec, 2014 1 commit
    • Damien George's avatar
      py: Allow builtins to be overridden. · 78d702c3
      Damien George authored
      This patch adds a configuration option (MICROPY_CAN_OVERRIDE_BUILTINS)
      which, when enabled, allows to override all names within the builtins
      module.  A builtins override dict is created the first time the user
      assigns to a name in the builtins model, and then that dict is searched
      first on subsequent lookups.  Note that this implementation doesn't
      allow deleting of names.
      This patch also does some refactoring of builtins code, creating the
      modbuiltins.c file.
      Addresses issue #959.
  21. 29 Nov, 2014 1 commit
  22. 22 Nov, 2014 1 commit
  23. 06 Nov, 2014 1 commit
  24. 05 Nov, 2014 1 commit
  25. 04 Nov, 2014 1 commit
  26. 29 Oct, 2014 1 commit
  27. 25 Oct, 2014 1 commit
  28. 23 Oct, 2014 1 commit
  29. 22 Oct, 2014 1 commit
  30. 15 Oct, 2014 1 commit
  31. 13 Oct, 2014 1 commit
  32. 12 Oct, 2014 2 commits
    • Paul Sokolovsky's avatar
      moduzlib: Integrate into the system. · 34162872
      Paul Sokolovsky authored
    • Damien George's avatar
      py: Add module weak link support. · c14a8166
      Damien George authored
      With this patch a port can enable module weak link support and provide
      a dict of qstr->module mapping.  This mapping is looked up only if an
      import fails to find the requested module in the filesystem.
      This allows to have the builtin module named, eg, usocket, and provide
      a weak link of "socket" to the same module, but this weak link can be
      overridden if a file by the name "socket.py" is found in the import
  33. 11 Oct, 2014 1 commit
  34. 06 Oct, 2014 2 commits
  35. 17 Sep, 2014 1 commit