Latest Tech News

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

Filtered by: int32 Clear Filter

Effect Systems vs. Print Debugging: A Pragmatic Solution

A discussion of how the Flix type and effect system supports print-debugging. "Every lie we tell incurs a debt to the truth. Sooner or later, that debt is paid." — Valery Legasov (Jared Harris, Chernobyl 2019) Lying to a type system works the same way: the truth eventually comes out. In memory-safe languages, that usually means as a runtime error (e.g. a ClassCastException , a TypeError: foo is not a function , and so on). In memory-unsafe languages, the consequences can be more dire: corrupt

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