[Snek] [keith-packard/snek] b3dc4b: examples: import time so shuffle examples run unde...

Keith Packard noreply at github.com
Mon Mar 25 23:52:47 PDT 2019


  Branch: refs/heads/master
  Home:   https://github.com/keith-packard/snek
  Commit: b3dc4b5e92014301dc654243bfdfe0db78b036ef
      https://github.com/keith-packard/snek/commit/b3dc4b5e92014301dc654243bfdfe0db78b036ef
  Author: Keith Packard <keithp at keithp.com>
  Date:   2019-03-25 (Mon, 25 Mar 2019)

  Changed paths:
    M examples/badshuffle.py
    M examples/goodshuffle.py

  Log Message:
  -----------
  examples: import time so shuffle examples run under python3

Signed-off-by: Keith Packard <keithp at keithp.com>


  Commit: bcbb7589163eac2e1f5ca2b160e8ea427d9edb59
      https://github.com/keith-packard/snek/commit/bcbb7589163eac2e1f5ca2b160e8ea427d9edb59
  Author: Keith Packard <keithp at keithp.com>
  Date:   2019-03-25 (Mon, 25 Mar 2019)

  Changed paths:
    M snek-memory.c

  Log Message:
  -----------
  Ignore incorrect compiler warning

In some code paths, when inlining functions in snek-memory.c, the
compiler gets confused into thinking that there might be an array
bounds error in pool_addr from SNEK_OFFSET_NONE sneaking in. This
"can't" happen (and is checked when SNEK_DEBUG is enabled), but the
compiler gets confused into thinking that it might and generates a
warning at this line of code. Disable the warning as I can't think of
any code change that would make this example pass the compiler and not
generate a lot more code.

Signed-off-by: Keith Packard <keithp at keithp.com>


  Commit: be1210f84296ccbbc06b6e31ebf5e1905ecd8e69
      https://github.com/keith-packard/snek/commit/be1210f84296ccbbc06b6e31ebf5e1905ecd8e69
  Author: Keith Packard <keithp at keithp.com>
  Date:   2019-03-25 (Mon, 25 Mar 2019)

  Changed paths:
    A metro-snek/.gitignore
    M metro-snek/Makefile
    M metro-snek/ao.h
    M metro-snek/ao_adc_samd21.c
    M metro-snek/ao_arch.h
    M metro-snek/ao_arch_funcs.h
    R metro-snek/ao_boot_chain.c
    M metro-snek/ao_metro.c
    R metro-snek/ao_product.h
    M metro-snek/ao_stdio.c
    M metro-snek/ao_usb.h
    M metro-snek/ao_usb_samd21.c
    A metro-snek/make-product.py
    M metro-snek/snek_eeprom.c

  Log Message:
  -----------
  metro-snek: Clean up build

Remove a pile of unused functionality from AltOS

Signed-off-by: Keith Packard <keithp at keithp.com>


  Commit: a619e6b150bd72a9e6ee38701d06cffe89f5ff8e
      https://github.com/keith-packard/snek/commit/a619e6b150bd72a9e6ee38701d06cffe89f5ff8e
  Author: Keith Packard <keithp at keithp.com>
  Date:   2019-03-25 (Mon, 25 Mar 2019)

  Changed paths:
    M snek-duino/.gitignore

  Log Message:
  -----------
  snek-duino: Ignore built files with version numbers

Signed-off-by: Keith Packard <keithp at keithp.com>


  Commit: f5eab243f65d52dc04b9a583f8f2db988def4007
      https://github.com/keith-packard/snek/commit/f5eab243f65d52dc04b9a583f8f2db988def4007
  Author: Keith Packard <keithp at keithp.com>
  Date:   2019-03-25 (Mon, 25 Mar 2019)

  Changed paths:
    M metro-snek/Makefile
    M posix/Makefile
    M snek-builtin.py
    M snek-lex.c
    A snek-math.builtin
    A snek-math.c
    M test/Makefile
    A test/math.py

  Log Message:
  -----------
  Add math functions to posix and metro-snek builds. Add tests.

These implement most of the standard Python3 math functions, except
for math.frexp, math.fsum and math.modf

These are optional and not included in the snek-duino build

Signed-off-by: Keith Packard <keithp at keithp.com>


Compare: https://github.com/keith-packard/snek/compare/72dee96e8320...f5eab243f65d


More information about the Snek mailing list