9 Jun 2021 |
@annevk:mozilla.org | Luca Casonato: there's variants of base64 (see also Infra) so that's something that needs solving too | 12:46:31 |
@annevk:mozilla.org | Luca Casonato: apart from what Andreu Botella (he/they) said it also ends up being a mismatch with the terms; text encode is string -> bytes, but base64 encode is bytes -> string | 12:48:09 |
Luca Casonato | Makes sense. I’ll write up a little doc on the problem | 13:01:53 |
Luca Casonato | Started on a little proposal: https://github.com/lucacasonato/proposal-binary-encoding. Probably not great though - don't really know what the standard practice for new proposals is though. Are there some recent pre-standardization WHATWG proposals out there to look at? | 19:12:45 |
10 Jun 2021 |
@annevk:mozilla.org | Luca Casonato: that looks pretty great; one thing that can help with things like this is a comparison with other programming languages; also curious if we need streaming (guess not, but might be worth calling out in a FAQ or some such) | 07:19:35 |
| Lindsey Carlile joined the room. | 07:34:51 |
Luca Casonato | annevk Thanks for the feedback! I'll add an FAQ, and a section on other languages' implementations. There is a comment about streaming in the doc - I think the best way to implement streaming would be a seperate BinaryEncoderStream / BinaryDecoderStream akin to the text encoders. | 07:40:52 |
Luca Casonato | But maybe a synchronous capable streaming API would make sense too? That could be added via a stream: true in an options bag to encode / decode / decodeInto . | 07:42:06 |
Luca Casonato | Anyway - will put tjhese comments into an issue and link to it from the FAQ. | 07:42:27 |
Luca Casonato | annevk FAQ and language/environment comparison added. | 09:30:06 |
@annevk:mozilla.org | Luca Casonato: I'd also ask MattiasBuelens and ricea for review | 12:08:07 |
tabatkins | fwiw, isn't base64-encode still bytes -> bytes? The output bytes are chosen to be displayable as ASCII, but it's not "text"; there's no codepoints involved. | 16:26:34 |
tabatkins | (You wouldn't then encode base64 "text" as utf-16, for example.) | 16:26:50 |
jgraham | That seems technically true, but the usual use case for base64 is where you need a Text type (e.g. for JSON). So thinking of it as a bytes -> Text transformation fits the use cases better | 16:38:26 |
jgraham | (and if the whole payload including the base64 part was then going to be encoded as UTF-16 that's what you'd do, not embed the base64 bytes directly in a UTF-16 message) | 16:40:36 |
11 Jun 2021 |
zcorpan | Anyone feel like reviewing https://github.com/html5lib/html5lib-tests/pull/135 ? Sam Sneddon [:gsnedders] ? | 08:22:31 |
Ms2ger | What do you need? An "OK, zcorpan wrote it, it's probably fine", or an "I checked the spec and it says this is correct"? | 08:34:45 |
zcorpan | I sometimes make mistakes 🤷 | 08:36:44 |
zcorpan | case in point: https://github.com/whatwg/html/pull/6455 | 08:39:59 |
jgraham | "No, look, I am sometimes wrong, and I've got a bug report to prove it" | 09:19:59 |
zcorpan | LOL | 09:20:23 |
Jake Archibald | People discovering target="_blank" made me feel so old https://css-tricks.com/targetblank/ | 10:14:51 |
wanderview | Redacted or Malformed Event | 18:17:48 |
| muffinkiller joined the room. | 20:14:18 |
12 Jun 2021 |
| csarven joined the room. | 06:31:13 |
13 Jun 2021 |
EveryOS | In reply to @jgraham_:matrix.org "No, look, I am sometimes wrong, and I've got a bug report to prove it" I swear, I'm only a human! Nothing more special! | 20:44:27 |
EveryOS | In reply to @jgraham_:matrix.org "No, look, I am sometimes wrong, and I've got a bug report to prove it" * "I swear, I'm only a human! Nothing more special!" | 20:44:38 |
14 Jun 2021 |
| Domenic joined the room. | 01:06:57 |
| Domenic set a profile picture. | 01:07:56 |
| Chung Cheng Chuang joined the room. | 02:25:34 |