whatwg / sg

A place to raise issues with the WHATWG Steering Group
https://whatwg.org/policies
Other
64 stars 39 forks source link

New standard: Compression Streams #231

Closed saschanaz closed 4 months ago

saschanaz commented 6 months ago

Following https://github.com/WICG/compression/issues/32, I propose standardizing Compression Streams API in WHATWG. It's an API that allows compressing and decompressing BufferSource types using a set of the most common compression algorithms (gzip/deflate/deflate-raw) in browsers through Stream API.

@ricea is the editor and I'm helping him for the transition.

compression sounds like a good short name, matching the current short name in WICG.

One open question that is blocking me from writing a full workstream proposal is that whether this matches in the existing Streams workstream. The current scope looks explicitly limited to low level stream API:

https://github.com/whatwg/sg/blob/ab9abf930e84ed83770ce4daa3a0aacd56c897de/db.json#L436

But @ricea is also an editor in Streams spec, so it may still make sense to have a common workstream?

annevk commented 6 months ago

Hey @saschanaz, thanks for raising this!

This is something we need the entire @whatwg/sg to chime in on. From my perspective it can reasonably be considered in scope of the Streams Workstream and thus not require a new one. Our next meeting is April 23, but I'll see if I can get everyone to comment here before then.

annevk commented 5 months ago

Apologies for the delay, the meeting got canceled as people are/have been traveling. The next meeting is scheduled for May 7. Hopefully people find some time to comment before then though as I don't really think there's anything controversial here.

diekus commented 5 months ago

At Microsoft we are supportive of having this work in WHATWG, if the current editors and the other SG members are ok with this.

cwilso commented 5 months ago

OK with me.

tantek commented 5 months ago

@github.com/annevk’s proposal in https://github.com/whatwg/sg/issues/231#issuecomment-2046559430 to add Compression Streams to the Streams Workstream is OK with me.

(Originally published at: https://tantek.com/2024/128/t1/)

annevk commented 5 months ago

@saschanaz @ricea the SG reached agreement as you can tell.

https://github.com/whatwg/meta/blob/main/NEW-STANDARD.md has a checklist you can follow to add a new WHATWG standard. @domenic, @foolip, and I can help out as needed (@domenic or @foolip will have to help with step 1.i and 3; I'm happy to help with the remainder).

yoavweiss commented 4 months ago

Yay! Let me know when the old repo needs to be archived and/or have redirects put in place.

annevk commented 4 months ago

I think it would be ideal to move the repository wholesale into the WHATWG, via @domenic / @foolip / I as intermediary (I believe it cannot be transferred directly). Should probably wait until @saschanaz and @ricea have had a chance to go through the checklist.

yoavweiss commented 4 months ago

Yeah, that would work as well, but I believe we'd need someone with owner access to both orgs. Maybe @cwilso has that?

foolip commented 4 months ago

Transferring directly would be ideal for redirects. (I'm not sure if GitHub would simplify a A→B→C redirect to A→C.)

annevk commented 4 months ago

@yoavweiss the people I listed have the necessary access on the WHATWG side. As in, you transfer it to one of domenic/foolip/annevk and they transfer it again. That should work and is how we did this before.

saschanaz commented 4 months ago

Alright, for https://github.com/whatwg/meta/blob/main/NEW-STANDARD.md, the shortname would be compression as it already is in WICG.

2 would be fun 😅 any idea what should it look like? I can only imagine WinZip-like icon, and adobe stock has something like this.

image

annevk commented 4 months ago

https://www.svgrepo.com/svg/238546/compress is under CC0 and seems reasonable enough. Up to you though. @saschanaz are you willing to PR db.json as well?

saschanaz commented 4 months ago

Before having an actual repo transferred? If that's okay then yes.

annevk commented 4 months ago

Yeah that's fine. We won't merge until we have everything in order, but the more that's ready the easier it'll be to do the final administrative bits.

foolip commented 4 months ago

I now have transferred the repo using temporary WICG powers granted by @yoavweiss. I didn't give any teams access and haven't done anything else.

annevk commented 4 months ago

What needs to happen still: