Skip to content

Narrow integers #6

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions