Skip to content

[DISCUSS] Prototype a Base64Encoder#2452

Draft
kinkie wants to merge 2 commits into
squid-cache:masterfrom
kinkie:base64encoder
Draft

[DISCUSS] Prototype a Base64Encoder#2452
kinkie wants to merge 2 commits into
squid-cache:masterfrom
kinkie:base64encoder

Conversation

@kinkie

@kinkie kinkie commented Jun 27, 2026

Copy link
Copy Markdown
Contributor

Stemming from the converstaions in PR #2447 which focuses on
addressing a problem as narrowly as possible , here
is what I would envision a base64 encoder to look like.

It's a prototype, vibe-coded with lots of hand-holding on my side,
so please don't focus too much on the code itself, it comes with
a comprehensive unit test which is meant to showcase the API.

Does anyone see anything obviously wrong with the approach or is
it worth investing into by reviewing, polishing, writing a decoder and using it?

@yadij yadij added the M-ignored-by-merge-bots https://github.com/measurement-factory/anubis/blob/master/README.md#pull-request-labels label Jun 27, 2026
@yadij

yadij commented Jun 27, 2026

Copy link
Copy Markdown
Contributor

The only issue I see is that Squid base64 encoding is only used on buffers. So we would end up adding a stream just for the purpose of using the encoder.

@rousskov rousskov left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had already flagged this API direction as problematic before this PR was posted. Will find time to detail that claim.

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

Labels

M-ignored-by-merge-bots https://github.com/measurement-factory/anubis/blob/master/README.md#pull-request-labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants