github.com/mary-ext/atcut…
github.com/mary-ext/atcut…
Congrats to @jasnell.me on advancing Typed Array Concatenation to Stage 1 at TC39 today 🎉
It aims to improve the performance of this concat operation compared to userland libraries.
Congrats to @jasnell.me on advancing Typed Array Concatenation to Stage 1 at TC39 today 🎉
It aims to improve the performance of this concat operation compared to userland libraries.
Given that utf8 code units are bytes, we figured that the best move was to run with that. All languages can do byte indexing.
Given that utf8 code units are bytes, we figured that the best move was to run with that. All languages can do byte indexing.
Congrats to @jasnell.me on advancing Typed Array Find Within to Stage 1 at TC39 today 🎉
It aims to provide a native indexOf operations for Typed Arrays.
docs.google.com/presentation...
Congrats to @jasnell.me on advancing Typed Array Find Within to Stage 1 at TC39 today 🎉
It aims to provide a native indexOf operations for Typed Arrays.
docs.google.com/presentation...
But ATProto facet offsets are *bytes*, so encode the string to UTF-8 using (TextEncoder().encode(text)) then calc the start+end offsets from the Uint8Array.
But ATProto facet offsets are *bytes*, so encode the string to UTF-8 using (TextEncoder().encode(text)) then calc the start+end offsets from the Uint8Array.
All in the critical path, naturally.
All in the critical path, naturally.
summarized in this gist:
gist.github.com/WebReflectio...
summarized in this gist:
gist.github.com/WebReflectio...
also ported deno's webidl implementation
also ported deno's webidl implementation
github.com/suchipi/yava...
Highlights:
- ES2020 -> ES2023
- Improved top-level await support
- Added TextEncoder/TextDecoder
- Added import attribute support
- exec/Worker improvements on Windows
- Bytecode (de)serializer improvements.
- FreeBSD support added
github.com/suchipi/yava...
Highlights:
- ES2020 -> ES2023
- Improved top-level await support
- Added TextEncoder/TextDecoder
- Added import attribute support
- exec/Worker improvements on Windows
- Bytecode (de)serializer improvements.
- FreeBSD support added
- console, fs, process, path, Buffer, URL, EventEmitter, TextEncoder/TextDecoder
- Both callback and Promise APIs work setTimeout, setInterval, async/await
- Proper exception handling with stack traces
- console, fs, process, path, Buffer, URL, EventEmitter, TextEncoder/TextDecoder
- Both callback and Promise APIs work setTimeout, setInterval, async/await
- Proper exception handling with stack traces
https://developer.mozilla.org/en-US/docs/Web/API/TextEncoder/encoding
The TextEncoder.encoding read-only property returns a string containing the name of the encoding algorithm used by the specific encoder.
#webdev
https://developer.mozilla.org/en-US/docs/Web/API/TextEncoder/encoding
The TextEncoder.encoding read-only property returns a string containing the name of the encoding algorithm used by the specific encoder.
#webdev
https://developer.mozilla.org/en-US/docs/Web/API/TextEncoder/encoding
The TextEncoder.encoding read-only property returns a string containing the name of the encoding algorithm used by the specific encoder.
#webdev
https://developer.mozilla.org/en-US/docs/Web/API/TextEncoder/encoding
The TextEncoder.encoding read-only property returns a string containing the name of the encoding algorithm used by the specific encoder.
#webdev
its so dumb that TextDecoder supports non-utf8 encodings and TextEncoder doesn't
its so dumb that TextDecoder supports non-utf8 encodings and TextEncoder doesn't