Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Quansight
    @quansightai_twitter
    [Hameer Abbasi] This was part of the reason I wanted dispatching not just on arrays, but dtypes and ufuncs as well.
    Quansight
    @quansightai_twitter
    [XND] There are no events this week
    Quansight
    @quansightai_twitter
    [Hameer Abbasi] @stefan.krah Will you be available to meet sometime soon? The window for getting ndtypes/xnd/gumath into NumPy is really closing.
    Quansight
    @quansightai_twitter
    [Ralf Gommers] is it really? I'm looking forward to the first thing to be put on paper by Sebastian. that's a nice point for discussion - right now it's really hard to follow. A draft NEP is the point where there's a design to discuss / compare with.
    [Ralf Gommers] that said, +1 for having this conversation of course:)
    Quansight
    @quansightai_twitter
    [Stefan Krah] @habbasi Indeed, I should be focusing more on XND again. I'll start today. :)
    Quansight
    @quansightai_twitter
    [Hameer Abbasi] I had a few ideas/suggestions.
    Quansight
    @quansightai_twitter
    [Sameer Deshmukh] @stefan.krah can you please explain why the XND#serialize function is an instance method and not a class method like that in NDT? For me its quite counter intuitive to see that it modifies self according to the value of the serialized string that it is passed. Might it not be better to implement it as a class method?
    Quansight
    @quansightai_twitter

    [Stefan Krah] Do you mean deserialize? It is a class method:

    "deserialize", (PyCFunction)pyxnd_deserialize, METH_O|METH_CLASS, NULL },

    In Python you can also call class methods from instances, but the instance is not modified:

    >>> x = Decimal("1.23")
    >>> y = x.from_float(100)
    >>> x
    Decimal('1.23')
    >>> y
    Decimal('100')
    Quansight
    @quansightai_twitter
    [Stefan Krah] The proper way (IMO) of course is to call via the type:
    >>> Decimal.from_float(100)
    Decimal('100')
    Quansight
    @quansightai_twitter
    [Stefan Krah] In the tests, of course, I use x.deserialize(b) out of laziness. :)
    Quansight
    @quansightai_twitter

    [Sameer Deshmukh] @stefan.krah question about NDT object deallocation:
    You said that reducing the refcount of a NDT object 0 via ndt_decref is supposed to be the only way of deallocating an NDT struct.

    However in the python code I can see that you simply point to the default PyObject_del for the deletion (without decreasing refcount). Can you please explain why this is so?

    [Sameer Deshmukh] How does the NDT object get deallocated safely even without reducing refcount?
    Quansight
    @quansightai_twitter

    [Stefan Krah] .tp_free = PyObject_Del is just the counterpart to self = (NdtObject *)type->tp_alloc(type, 0)

    It allocates and frees the *Python object structure*.

    .tp_dealloc = (destructor) ndtype_dealloc is the part that deallocates the ndt struct by calling ndt_decref().

    Quansight
    @quansightai_twitter
    [XND] There are no events this week
    Quansight
    @quansightai_twitter
    [XND] There are no events this week
    Quansight
    @quansightai_twitter
    [Ralf Gommers] Sebastian Berg just shared first rough draft of the designs for extensible dtypes in NumPy (https://hackmd.io/kxuh15QGSjueEKft5SaMug) and related changes in ufunc dispatching (https://hackmd.io/y7ghitUtRQaMyaHFGe-ueQ)
    Quansight
    @quansightai_twitter
    [XND] There are no events this week
    Quansight
    @quansightai_twitter
    [Travis Oliphant] The stdlib authors are going to be looking at xnd.io for ideas as they continue to develop the library. https://github.com/stdlib-js/stdlib
    [Travis Oliphant] Some of them may reach out to xnd devs
    Quansight
    @quansightai_twitter
    [XND] There are no events this week
    Quansight
    @quansightai_twitter
    [XND] There are no events this week
    Quansight
    @quansightai_twitter
    Quansight
    @quansightai_twitter
    [Michael Eaton] Should the purple word be “instances” or “instance”
    Quansight
    @quansightai_twitter
    [XND] There are no events this week
    Quansight
    @quansightai_twitter
    [Sameer Deshmukh] Is there any way of documenting gumath kernels functions within Python/Ruby/other language binding?
    Quansight
    @quansightai_twitter
    [Hameer Abbasi] @sameer.deshmukh xnd-docs is the repo.
    Quansight
    @quansightai_twitter
    [XND] There are no events this week
    Quansight
    @quansightai_twitter
    [XND] There are no events this week
    Quansight
    @quansightai_twitter
    [XND] There are no events this week
    Quansight
    @quansightai_twitter
    [XND] There are no events this week
    Sylvain Corlay
    @SylvainCorlay
    Hello
    Is xnd currently maintained / actively worked on?
    Quansight
    @quansightai_twitter
    [Pearu Peterson] Yes. That said, there is indeed apparent inactivity as the core developers are busy with other projects.
    Sylvain Corlay
    @SylvainCorlay
    are you guys connection through another client than gitter? is this forwarded to another medium?
    Quansight
    @quansightai_twitter
    [Ralf Gommers] Maybe should have posted this blog post also here: https://labs.quansight.org/blog/2019/09/ruby-wrappers-for-the-xnd-project/. @Sameer Deshmukh has been busy updating xnd-ruby and has future plans for XND in the Ruby community.
    [Ralf Gommers] Yes, it’s mirrored between Gitter and Slack
    Sylvain Corlay
    @SylvainCorlay
    Ah ok, thanks Ralf
    Quansight
    @quansightai_twitter
    [Ralf Gommers] Is there a particular reason you ask Sylvain? Or just wondering based on GitHub (in)activity?
    Sylvain Corlay
    @SylvainCorlay

    Is there a particular reason you ask Sylvain?

    Not really. xnd came up in the conversation and we checked the GH repository.

    Quansight
    @quansightai_twitter
    [XND] There are no events this week
    Quansight
    @quansightai_twitter
    [XND] There are no events this week
    Quansight
    @quansightai_twitter
    [XND] There are no events this week
    Quansight
    @quansightai_twitter
    [XND] There are no events this week
    Quansight
    @quansightai_twitter
    [XND] There are no events this week
    Quansight
    @quansightai_twitter
    [XND] There are no events this week
    Quansight
    @quansightai_twitter
    [XND] There are no events this week
    Stefan Krah
    @skrah
    @SylvainCorlay Yes, it is maintained. I got caught up in the absurd housing market in Berlin, I'll be back soon.
    Quansight
    @quansightai_twitter
    [XND] There are no events this week
    Quansight
    @quansightai_twitter
    [XND] There are no events this week