Skip to content

Just-in-time compilation for custom types #8

@kc9jud

Description

@kc9jud

This looks like a really nice library. Looking at #7, it seems like the one place where there's room for improvement is handling types. Is it possible to look into just-in-time model for generating/compiling the C++ into a Python module? It would be something like PyTorch's torch.utils.cpp_extension.load. This would allow key and value to be any NumPy type simply by generating an instantiation of the template with an appropriate std::array<std::byte, N> template parameter where N is the size of the dtype.

One place I could see this being a problem is with #2 -- is that problem just because of the number of types, or is it intrinsic to compiling even one type?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions