<div dir="ltr"><div>Hi Chris,</div><div><br></div><div>I don't have an implementation ready.</div><div>But here a start for the research: <a href="https://lemire.me/blog/2018/05/09/how-quickly-can-you-check-that-a-string-is-valid-unicode-utf-8/">https://lemire.me/blog/2018/05/09/how-quickly-can-you-check-that-a-string-is-valid-unicode-utf-8/</a></div><div>Not Smalltalk, but a few approaches.</div><div><br></div><div>Is there any chance to do vectorized computation (using SIMD registers and instructions) from Squeak? Can the JIT compiler generate such code?</div><div><br></div><div>Kind regards,</div><div>Jakob</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Am Do., 23. Jan. 2020 um 01:46 Uhr schrieb Chris Muller <<a href="mailto:ma.chris.m@gmail.com">ma.chris.m@gmail.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">For the GraphQL engine, I have to validate String inputs as being valid UTF-8.  Before researching it, I thought I'd check whether anyone has already done it and willing to share their implementation.<div><br></div><div>I see we have conversions for this, but I need the boolean response whether its valid UTF8, as fast as possible.<br><div><br></div><div>Thanks!</div><div><br></div></div></div>
<br>
</blockquote></div>