Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RFC]: add encoding and decoding functions in stdlib #2200

Open
3 tasks done
adityacodes30 opened this issue Apr 22, 2024 · 3 comments
Open
3 tasks done

[RFC]: add encoding and decoding functions in stdlib #2200

adityacodes30 opened this issue Apr 22, 2024 · 3 comments
Labels
Needs Discussion Needs further discussion. RFC Request for comments. Feature requests and proposed changes.

Comments

@adityacodes30
Copy link
Contributor

adityacodes30 commented Apr 22, 2024

Description

This RFC proposes to add encoding and decoding functions to stdlib and possibly support multimodal inputs such as text , jpgs and more. This will have wide ranging implications when transferring data - example when working with cv we transfer video frames encoded. I think this would be beneficial for a lot of other applications as well

Other

Seeking discussion on weather this should be done , if yes else would be looking to support

Checklist

  • I have read and understood the Code of Conduct.
  • Searched for existing issues and pull requests.
  • The issue name begins with RFC:.
@kgryte
Copy link
Member

kgryte commented Apr 22, 2024

@adityacodes30 Do you have specific examples regarding what you have in mind?

@kgryte kgryte added RFC Request for comments. Feature requests and proposed changes. Needs Discussion Needs further discussion. labels Apr 22, 2024
@adityacodes30
Copy link
Contributor Author

adityacodes30 commented Apr 22, 2024

yes , the first one that comes to mind is base64 which can be particularly useful for encoding and image data , others that I think we should support are base32 huffman encoding some binary protocols such as protobuf would be good additions as well . Radix-64 will be a good plus as well

@kgryte
Copy link
Member

kgryte commented Apr 24, 2024

@adityacodes30 Not opposed to pursuing things, but it would be good to see some concrete API proposals.

base64 encode/decode utilities could be useful; protobuf we are less likely to support. The reason for the latter is that protocol is likely to continue evolving, which thus creates a maintenance burden for us to keep up.

Open to exploring image encoders/decoders. But again, would need to see concrete proposals, as some of these are likely to be quite involved, and it is not uncommon for these functionality to be written in C, so we'd need a browser implementation strategy (e.g., JS/WASM).

I suggest following up in this issue with a few concrete suggestions, as well as links to any reference implementations/prior art.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Discussion Needs further discussion. RFC Request for comments. Feature requests and proposed changes.
Projects
None yet
Development

No branches or pull requests

2 participants