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
In C++, there are different ways to pass a value to a function. Typically, at any given time, an object in C++ ‘belongs’ to a single function. The various waysContinue...Daniel Lemire From Daniel Lemire's Blog | May 13, 2024 at 11:51 AM
Peer review as we know it today was introduced very late, over a century after the scientific revolution. It happened after Einstein’s time… arguably the most productive...Daniel Lemire From Daniel Lemire's Blog | May 11, 2024 at 06:47 PM
Python is probably the most popular programming language in the world right now. Python is easy to extend using C code. You may want to return from Python a small...Daniel Lemire From Daniel Lemire's Blog | May 8, 2024 at 11:55 PM
Under Windows, when using Visual Studio to build C++ code, there are two possible compiler strategies. The Visual Studio compiler (often referred to as MSVC) is...Daniel Lemire From Daniel Lemire's Blog | May 2, 2024 at 03:23 PM
Egor Bogatov is an engineer working on C# compiler technology at Microsoft. He had an intriguing remark about a performance regression on Apple hardware following...Daniel Lemire From Daniel Lemire's Blog | April 28, 2024 at 08:32 PM
Software can beat human beings at most games… from Chess to Go, and even poker. Large language models like GPT-4 offered through services such as ChatGPT allowContinue...Daniel Lemire From Daniel Lemire's Blog | April 26, 2024 at 08:05 PM
Go back to the roots: experience. An expert is someone who has repeatedly solved the concrete problem you are encountering. If your toilet leaks, an experienced...Daniel Lemire From Daniel Lemire's Blog | April 21, 2024 at 01:35 PM
Suppose that you receive a long string and you need to break it down into lines. Consider the simplified problems where you need to break the string into segments...Daniel Lemire From Daniel Lemire's Blog | April 19, 2024 at 05:25 PM
Our computer hardware exchange data using a standard called PCI Express. Your disk, your network and your GPU are limited by what PCI Express can do. Currently,...Daniel Lemire From Daniel Lemire's Blog | April 13, 2024 at 06:31 PM
We sometimes need to find the greatest common divisor between two integers in software. The fastest way to compute the greatest common divisor might be the binary...Daniel Lemire From Daniel Lemire's Blog | April 13, 2024 at 04:56 PM
A reader asked me for some help in computing (1 – sqrt(0.5)) to an arbitrary precision, from scratch. A simpler but equivalent problem is to compute the squareContinue...Daniel Lemire From Daniel Lemire's Blog | April 11, 2024 at 03:39 PM
Last year, I looked at writing small “hello world” web applications in various programming languages (Go, JavaScript, Nim…). Go, using nothing but the standardContinue...Daniel Lemire From Daniel Lemire's Blog | April 6, 2024 at 06:01 PM
Large language models (e.g., ChatGPT) do better at legal questions that lawyers: Our empirical analysis benchmarks LLMs against a ground truth set by Senior Lawyers...Daniel Lemire From Daniel Lemire's Blog | March 31, 2024 at 05:24 PM
Sometimes you need to filter out or filter in data quickly. Suppose that your employer maintains a list of forbidden passwords or URLs or words. You may store them...Daniel Lemire From Daniel Lemire's Blog | March 31, 2024 at 02:00 PM
In modern C++, as in many popular languages, you can create ‘lambdas’. Effectively, they are potentially anonymous function instances that you can create on the...Daniel Lemire From Daniel Lemire's Blog | March 22, 2024 at 11:14 AM
Suppose you need to read several files on a server using JavaScript. There are many ways to read files in JavaScript with a runtime like Node.js. Which one is best...Daniel Lemire From Daniel Lemire's Blog | March 12, 2024 at 11:43 AM
Canada has several political parties with elected member of parliament: the Liberals, the Conservatives, the Bloc Québecois, de NDP and the Green. But do the behave...Daniel Lemire From Daniel Lemire's Blog | March 8, 2024 at 10:59 AM
When I was young, science fiction was the genre of choice for many engineers and scientists. But the genre declined significantly in recent years. Part of the problem...Daniel Lemire From Daniel Lemire's Blog | February 24, 2024 at 01:35 PM
Modern processor have fancy instructions that can do many operations at one using wide registers: SIMD instructions. Intel and AMD have 512-bit registers and associated...Daniel Lemire From Daniel Lemire's Blog | February 19, 2024 at 04:39 PM
Intel has release a new generation of server processors (Sapphire Rapids) while the latest AMD technology (Zen 4) is now broadly available. There are extensiveContinue...Daniel Lemire From Daniel Lemire's Blog | February 9, 2024 at 02:57 PM