From Schneier on Security
Artificial intelligence (AI) has been billed as the next frontier of humanity: the newly available expanse whose exploration
…
B. Schneier| February 29, 2024
If I give a programmer a string such as "9223372036854775808" and I ask them to convert it to an integer, they might do the following in C++: std::string s = .....Daniel Lemire From Daniel Lemire's Blog | September 22, 2023 at 05:50 PM
In software, we store strings of text as arrays of bytes in memory using one of the Unicode Transformation Formats (UTF), the most popular being UTF-8 and UTF-16...Daniel Lemire From Daniel Lemire's Blog | September 13, 2023 at 12:00 PM
Physicists have a published a paper with 5154 authors. The list of authors takes 24 pages out of the 33 pages. The lesson is that if someone tell you that theyContinue...Daniel Lemire From Daniel Lemire's Blog | September 2, 2023 at 02:30 PM
Though most strings online today follow the Unicode standard (e.g., using UTF-8), the Latin 1 standard is still in widespread inside some systems (such as browsers)...Daniel Lemire From Daniel Lemire's Blog | August 18, 2023 at 02:17 PM
Most strings online are Unicode strings in the UTF-8 format. Other systems (e.g., Java, Microsoft) might prefer UTF-16. However, Latin 1 is still a common encoding...Daniel Lemire From Daniel Lemire's Blog | August 11, 2023 at 09:18 PM
When you enter in your browser the domain name lemire.me, it eventually gets encoded into a so-called wire format. The name lemire.me contains two labels, one of...Daniel Lemire From Daniel Lemire's Blog | August 9, 2023 at 10:02 PM
In an extensive study, You et al. (2022) found that meat consumption was correlated with higher life expectancies: Meat intake is positively correlated with life...Daniel Lemire From Daniel Lemire's Blog | August 6, 2023 at 04:43 PM
We sometimes represent binary data using the hexadecimal notation. We use a base-16 representation where the first 10 digits are 0, 1, 2, 3, 5, 6, 7, 8, 9 and where...Daniel Lemire From Daniel Lemire's Blog | July 27, 2023 at 12:53 PM
People increasingly consume ultra processed foods. They include energy drinks, mass-produced packaged breads, margarines, cereal, energy bars, fruit yogurts, fruit...Daniel Lemire From Daniel Lemire's Blog | July 23, 2023 at 10:14 PM
We often need to encode binary data into ASCII strings. The standards (e.g., email) to do so include base16, base32 and base64. There are some research papers on...Daniel Lemire From Daniel Lemire's Blog | July 20, 2023 at 07:26 PM
Most people think that they are more intelligent than average. Lack of vitamin C may damage the arteries. Make sure you have enough! A difficult problem in software...Daniel Lemire From Daniel Lemire's Blog | July 16, 2023 at 02:00 PM
Suppose that I give you a long list of string tokens (e.g., “A”, “A6”, “AAAA”, “AFSDB”, “APL”, “CAA”, “CDS”, “CDNSKEY”, “CERT”, “CH”, “CNAME”, “CS”, “CSYNC”, “DHC...Daniel Lemire From Daniel Lemire's Blog | July 13, 2023 at 11:11 PM
The strategy for winning is simple: do good work and tell the world about it. In that order! This implies some level of stealth as you are doing the good work.Continue...Daniel Lemire From Daniel Lemire's Blog | July 8, 2023 at 12:43 PM
Suppose that I give you a short string of digits, containing possibly spaces or other characters (e.g., "20141103 012910"). We would like to pack the digits into...Daniel Lemire From Daniel Lemire's Blog | July 7, 2023 at 01:19 PM
The C++11 standard introduced used-defined string suffixes. It also added regular expressions to the C++ language as a standard feature. I wanted to have fun and...Daniel Lemire From Daniel Lemire's Blog | July 5, 2023 at 05:38 PM
In software, it is common to represent time as a time-stamp string. It is usually specified by a time format string. Some standards use the format %Y%m%d%H%M%SContinue...Daniel Lemire From Daniel Lemire's Blog | July 1, 2023 at 05:38 PM
Suppose that you want to reorder, arbitrarily, the bits in a 64-bit word. This question was raised on Twitter by @experquisite. Formally, you might want to provide...Daniel Lemire From Daniel Lemire's Blog | June 29, 2023 at 11:59 AM
Women in highly religious relationships report the highest levels of relationship quality. US politics is largely divided into two parties (Republicans and Democrats)...Daniel Lemire From Daniel Lemire's Blog | June 25, 2023 at 01:32 PM
Similar species can have vastly different lifespan. Researchers have been looking for the limiting factors that explain these differences. As we age, our genesContinue...Daniel Lemire From Daniel Lemire's Blog | June 11, 2023 at 03:45 PM
Most of us are familiar with IP addresses: they are strings of the form “ddd.ddd.ddd.ddd” where ddd is a decimal number of up to three digits in the range 0 toContinue...Daniel Lemire From Daniel Lemire's Blog | June 8, 2023 at 04:47 PM