[Snek] [keith-packard/snek] 5ec9b8: Add snek_global_ref

Keith Packard noreply at github.com
Mon Mar 16 22:52:18 PDT 2026


  Branch: refs/heads/dacta
  Home:   https://github.com/keith-packard/snek
  Commit: 5ec9b83c992d9a9951f76abd83fcadc87d8704a0
      https://github.com/keith-packard/snek/commit/5ec9b83c992d9a9951f76abd83fcadc87d8704a0
  Author: Keith Packard <keithp at keithp.com>
  Date:   2026-03-14 (Sat, 14 Mar 2026)

  Changed paths:
    M snek-frame.c
    M snek.h

  Log Message:
  -----------
  Add snek_global_ref

Return a reference to the storage for a global variable.

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


  Commit: 961eb7c1a6285daf7de621a74b9888ff356ad06b
      https://github.com/keith-packard/snek/commit/961eb7c1a6285daf7de621a74b9888ff356ad06b
  Author: Keith Packard <keithp at keithp.com>
  Date:   2026-03-14 (Sat, 14 Mar 2026)

  Changed paths:
    M snek-poly.c
    M snek.h

  Log Message:
  -----------
  Add snek_poly_get_string

Like snek_poly_get_float, except for strings.

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


  Commit: 7c9c28897585a0fef3072a7cd7920ee222c8aa8c
      https://github.com/keith-packard/snek/commit/7c9c28897585a0fef3072a7cd7920ee222c8aa8c
  Author: Keith Packard <keithp at keithp.com>
  Date:   2026-03-15 (Sun, 15 Mar 2026)

  Changed paths:
    M ports/posix/.gitignore
    M ports/posix/Makefile
    A ports/posix/snek-70909-test.c
    A ports/posix/snek-70909.c
    A ports/posix/snek-70909.h
    A ports/posix/snek-lego.c
    M ports/posix/snek-posix.builtin

  Log Message:
  -----------
  ports/posix: Add support for Dacta 70909 control panel

Provides for standard snek input and output primitives to
the venerable Lego Dacta 70909 control panel.

Connect them using a USB serial cable and a NULL modem adapter, then
open using the new 'lego.open' command:

> lego.open("/dev/ttyUSB0")

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


  Commit: 702be020a84ff1fa20dba2a39a4928216362b005
      https://github.com/keith-packard/snek/commit/702be020a84ff1fa20dba2a39a4928216362b005
  Author: Keith Packard <keithp at keithp.com>
  Date:   2026-03-15 (Sun, 15 Mar 2026)

  Changed paths:
    M ports/posix/snek-main.c
    M ports/posix/snek-posix.h

  Log Message:
  -----------
  ports/posix: Clean up input handling

Make snek_posix_input private to posix port.
Ensure stdout is line buffered when interactive, even if not a tty.
Trim '\n' when not using readline.

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


  Commit: 4c4f2c6a04c430d106b19cf69193772910b06853
      https://github.com/keith-packard/snek/commit/4c4f2c6a04c430d106b19cf69193772910b06853
  Author: Keith Packard <keithp at keithp.com>
  Date:   2026-03-15 (Sun, 15 Mar 2026)

  Changed paths:
    M ports/posix/snek-main.c
    M ports/posix/snek-posix.builtin

  Log Message:
  -----------
  ports/posix: Add reset

reset has an optional argument which is a filename to pass to the next
instance.

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


Compare: https://github.com/keith-packard/snek/compare/c63525e92e85...4c4f2c6a04c4

To unsubscribe from these emails, change your notification settings at https://github.com/keith-packard/snek/settings/notifications


More information about the Snek mailing list