Latest Tech News

Stay updated with the latest in technology, AI, cybersecurity, and more

Filtered by: int32_t Clear Filter

Faster Virtual Machines: Speeding Up Programming Language Execution (2023)

Date: 2023-01-15 Git: https://gitlab.com/mort96/blog/blob/published/content/00000-home/00015-fast-interpreters.md In this post, I hope to explore how interpreters are often implemented, what a "virtual machine" means in this context, and how to make them faster. Note: This post will contain a lot of C source code. Most of it is fairly simple C which should be easy to follow, but some familiarity with the C language is suggested. What is a (virtual) machine? For our purposes, a "machine" is

Efficiently Generating a Number in a Range (2018)

The vast majority of my posts about random number generation have focused on looking at the properties of different generation schemes. But, perhaps surprisingly, the performance of your randomized algorithm may hinge not on the generation scheme you chose, but on other factors. In this post (inspired by and building on an excellent recent paper by Daniel Lemire), we'll explore a common source of overhead in random number generation that frequently outweighs PRNG engine performance. Imagine thi