Skip to content

Narrow integers #6

@AntonOresten

Description

@AntonOresten

Would be cool to have a NarrowIntegers.jl package, generalizing integers to sub-byte widths like how Microfloats.jl generalizes floats.
These narrow integers could be implemented with UInt8 with a mask that gets applied after each operation Then there could be a BitPacking.jl extension that implements efficient broadcasting methods that handles overflows. See https://julialang.org/blog/2018/05/extensible-broadcast-fusion/.
Could maybe use BitIntegers.jl to do bit-manipulaton on chunks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions