How to Print Integers Really Fast
Paul Khuong's personal blog. Some Lisp, some optimisation, mathematical or computer.
Paul Khuong's personal blog. Some Lisp, some optimisation, mathematical or computer.
Visit pvk.ca → RSS feedOn Hacker News Aug 2012 – May 2026
Software Engineering 6Systems & Performance 3Math & Algorithms 2Programming Languages 1
Paul Khuong's personal blog. Some Lisp, some optimisation, mathematical or computer.
Paul Khuong's personal blog. Some Lisp, some optimisation, mathematical or computer.
EDIT: I never expected this post to garner so much interest. Just to be clear, using the constant is a very bad idea in almost every situation I can think of. Even instructions like RCPSS should only be used by people who are convinced that the tradeoffs are worth it (or don’t have any other choice). Subtracting from…
Paul Khuong's personal blog. Some Lisp, some optimisation, mathematical or computer.
Paul Khuong's personal blog. Some Lisp, some optimisation, mathematical or computer.
Paul Khuong's personal blog. Some Lisp, some optimisation, mathematical or computer.