problems

Discussions about problems with the current C Api (by capi-workgroup)

Problems Alternatives

Similar projects and alternatives to problems

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better problems alternative or higher similarity.

problems reviews and mentions

Posts with mentions or reviews of problems. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-07-29.
  • No-GIL mode coming for Python
    7 projects | news.ycombinator.com | 29 Jul 2023
    > Does that stay true once the GIL turns back on?

    In the current nogil implementation, AFAICS, it seems the GIL can't be turned back on so there is no answer yet.

    Theoretically, you could have a one-off operation which fixes all objects when the GIL is turned on. However, there's no way to get all objects in Python. gc.get_objects() only returns tracked objects, and there is no way to list untracked objects.

    It seems, three fields are exposed on every CPython object in the stable ABI, any change which affects their offsets will break the stable ABI. https://github.com/capi-workgroup/problems/issues/4#issuecom...

    > I'm not following why this affects ABI compatibility, sorry.

    True, PyType_FromSpec can set tp_alloc to a wrapper function which papers over the difference in what the "allocfunc" should initialise the memory to.

    Re performance - merging the change is the only way people will actually start targeting nogil.

  • Just `PyTuple_Pack` or also `PyTuple_New` and `PyTuple_SetItem`?
    2 projects | /r/pygolo | 4 Jul 2023
    PyTuple_New creates a tuple of the given length, each element must be initialized with PyTuple_SetItem. Therefore the tuple remains half-baked until all the elements are initialized, which is not good (see https://github.com/capi-workgroup/problems/issues/56).

Stats

Basic problems repo stats
2
18
6.8
7 months ago

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com