logoalt Hacker News

Converting an Integer to a Decimal String in Under Two Nanoseconds

58 pointsby mpweiherlast Tuesday at 3:43 PM25 commentsview on HN

Comments

Nokinsidetoday at 9:35 AM

Sounds familiar. If one of the authors Lemire? Of course.

SIMD-accelerated integer-to-string conversion https://lemire.me/blog/2026/05/18/simd-accelerated-integer-t...

Other speedy things:

On-Demand JSON: A Better Way to Parse Documents? https://lemire.me/en/publication/arxiv231217149/

Parsing Millions of URLs per Second https://lemire.me/en/publication/arxiv231110533/

Transcoding Unicode Characters with AVX-512 Instructions https://lemire.me/en/publication/arxiv221205098/

childintimetoday at 11:05 AM

What will be the lifetime of AVX512? There have been many similar extensions before it. So it's a great result, but heavily marked by the target platform. I have the hope that RISC-V vector extensions will prove to be the more durable substrate to develop on, and a result there would be much more relevant for the future.

show 4 replies
xliitoday at 8:14 AM

I wonder if this can be categorized as galactic algorithm. I can't imagine systems where bulk of processing goes into integer to decimal string conversion but maybe there are such.

https://en.wikipedia.org/wiki/Galactic_algorithm

show 4 replies
Cold_Miserabletoday at 8:37 AM

This is just a worse copy of the original ifma method. Sneller is even better for max throughput.

IshKebabtoday at 8:19 AM

Very impressive! But yeah AVX-512 is an awkward requirement.

show 1 reply
jqpabc123last Tuesday at 4:12 PM

Our design exploits the AVX-512 instruction set

AVX-512 is being discontinued in newer Intel consumer CPUs, particularly with the Alder Lake series, where it has been completely disabled through BIOS updates.

show 3 replies