Skip to content

Consider a byte[] primitive. #4

@crdrost

Description

@crdrost

At least in the HTTP context which I am expecting to build up, a byte array primitive would make some sense if we had some sort of "upload a file with multer" experience lined up. It's also helpful in crypto APIs like nermal.

Challenges:

  • If this framework applies to frontends it cannot reference Buffer explicitly, so that leaves UInt8Array, is that acceptable?
  • Does deno have a third mutually inconsistent byte[] type?
  • Do I even really want to do this given that at USEng generally the file is some 200+MB PDF or 100MB gzip file containing gigs of JSON? Reading those straight into memory is a Bad Idea, you really want to pass everything through a stream, and a stream just requires a file path which is a string which is a text.

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