News for hackers. Stuff that matters.
Re:How fast can you validate UTF-8 strings in JavaScript? by striking on Saturday January 20, 2024 @03:52PM (#39072183)
From https://github.com/websockets/utf-8-validate/tree/master/dep...

> This C++ library is part of the JavaScript package utf-8-validate. The utf-8-validate package is routinely downloaded more than a million times per week.

> If you are using Node JS (19.4.0 or better), you already have access to this function as buffer.isUtf8(input).

And at https://github.com/websockets/utf-8-validate/tree/master/dep...

> # Reference

> John Keiser, Daniel Lemire, [Validating UTF-8 In Less Than One Instruction Per Byte](https://arxiv.org/abs/2010.03090), Software: Practice & Experience 51 (5), 2021

There are no comments on this comment yet.