Commit 7b72d418 authored by Kirill Smelkov's avatar Kirill Smelkov

pygolang v0.1

parent 08dc5d10
Pipeline #19472 passed with stage
in 0 seconds
Pygolang change history
-----------------------
0.1 (2022-01-26)
~~~~~~~~~~~~~~~~
- Add `os.signal` package that provides signal handing via nogil channels. This
allows to build concurrent systems without limitation of Python's standard
`signal` module: signal delivery is not delayed, potentially indefinitely, if
main thread is blocked or is busy doing any non-Python work (`commit 1`__, 2__, 3__, `example usage`__).
__ https://lab.nexedi.com/nexedi/pygolang/commit/1fad944d
__ https://lab.nexedi.com/nexedi/pygolang/commit/ce507f4e
__ https://lab.nexedi.com/nexedi/pygolang/commit/e18adbab
__ https://lab.nexedi.com/nexedi/nxdtest/merge_requests/16
- Add C++ API for IO. (`commit 1`__, 2__, 3__, 4__, 5__, 6__).
__ https://lab.nexedi.com/nexedi/pygolang/commit/3a838d24
__ https://lab.nexedi.com/nexedi/pygolang/commit/3a131a51
__ https://lab.nexedi.com/nexedi/pygolang/commit/c2471014
__ https://lab.nexedi.com/nexedi/pygolang/commit/d358fa75
__ https://lab.nexedi.com/nexedi/pygolang/commit/4690460b
__ https://lab.nexedi.com/nexedi/pygolang/commit/2a35ef5b
- Fix segmentation-fault crashes on unhandled panic with gevent backend (commit__, `greenlet bug`__).
__ https://lab.nexedi.com/nexedi/pygolang/commit/07cae4e9
__ https://github.com/python-greenlet/greenlet/pull/285
- Fix `print(qq(·))` crash on Python2 (commit__).
__ https://lab.nexedi.com/nexedi/pygolang/commit/08dc5d10
0.0.9 (2021-12-08)
~~~~~~~~~~~~~~~~~~
......@@ -21,7 +53,7 @@ Pygolang change history
__ https://lab.nexedi.com/nexedi/pygolang/commit/78b4b41c
- More fixes for `gpython` to be compatible with CPython in how it handles
program on stdin, interactive session and __main__ module setup (`commit 1`__, 2__, 3__, 4__, 5__).
program on stdin, interactive session and `__main__` module setup (`commit 1`__, 2__, 3__, 4__, 5__).
__ https://lab.nexedi.com/nexedi/pygolang/commit/6cc4bf32
__ https://lab.nexedi.com/nexedi/pygolang/commit/22fb559a
......
......@@ -445,6 +445,13 @@ handle concurrency in structured ways:
__ https://lab.nexedi.com/nexedi/pygolang/tree/master/golang/time.py
__ https://lab.nexedi.com/nexedi/pygolang/tree/master/golang/_time.pxd
- |golang.os.signal|_ (py__, pyx__) provides signal handling via channels.
.. |golang.os.signal| replace:: `golang.os.signal`
.. _golang.os.signal: https://lab.nexedi.com/nexedi/pygolang/tree/master/golang/os/signal.h
__ https://lab.nexedi.com/nexedi/pygolang/tree/master/golang/os/signal.py
__ https://lab.nexedi.com/nexedi/pygolang/tree/master/golang/os/_signal.pxd
.. [*] See `Go Concurrency Patterns: Context`__ for overview.
......
# -*- coding: utf-8 -*-
# Copyright (C) 2018-2020 Nexedi SA and Contributors.
# Copyright (C) 2018-2022 Nexedi SA and Contributors.
# Kirill Smelkov <kirr@nexedi.com>
#
# This program is free software: you can Use, Study, Modify and Redistribute
......@@ -33,7 +33,7 @@ See also package golang.pyx which provides similar functionality for Cython nogi
from __future__ import print_function, absolute_import
__version__ = "0.0.9"
__version__ = "0.1"
__all__ = ['go', 'chan', 'select', 'default', 'nilchan', 'defer', 'panic',
'recover', 'func', 'error', 'b', 'u', 'gimport']
......
# -*- coding: utf-8 -*-
# cython: language_level=2
# Copyright (C) 2019-2020 Nexedi SA and Contributors.
# Copyright (C) 2019-2022 Nexedi SA and Contributors.
# Kirill Smelkov <kirr@nexedi.com>
#
# This program is free software: you can Use, Study, Modify and Redistribute
......@@ -32,7 +32,7 @@ from cpython cimport PyObject, Py_INCREF, Py_DECREF
from libcpp.cast cimport static_cast, dynamic_cast
# _frompyx indicates that a constructur is called from pyx code
# _frompyx indicates that a constructor is called from pyx code
cdef object _frompyx = object()
# _newPyCtx creates new PyContext wrapping ctx.
......
......@@ -27,7 +27,7 @@ from __future__ import print_function, absolute_import
#
# On POSIX, for example, Python uses sem_init(process-private) + sem_post/sem_wait.
#
# Similarly PyThread_start_new_thread - Python's C function function to create
# Similarly PyThread_start_new_thread - Python's C function to create
# new thread - does not depend on GIL. On POSIX, for example, it is small
# wrapper around pthread_create.
#
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment