Daniel Lemire
Computer science professor who works on fast data processing; co-author of the simdjson parser and a weekly blogger about software performance, starting in 2004.
Daniel Lemire did not write this page. ppll compiled it from their own words, each linked to the source. Is this you? · Report a mistake
Latest Blog
What they believe
-
Compressed bitmaps are not always better than uncompressed ones; there are many tradeoffs.
Compressed bitmaps like Roaring are not always better. There are many tradeoffs.
lemire.meSaid 15 Oct 2026This on korrents
-
Academic publishing functions mainly to sort people for jobs rather than to produce useful knowledge.
The purpose of the academic output is to sort people out for jobs.
lemire.meSaid 20 Sept 2026This on korrents
The bold line is korrents’ wording; the quote is theirs. These 2: what they wrote before what they said aloud, one per source, newest first.
Feed
As its own page →Hiding
5 December
4 December
30 November
26 November
25 November
24 November
23 November
21 November
- x.com

- GitHubcours-programmation-ia
- x.com

20 November
18 November
16 November
15 November
14 November
13 November
12 November
11 November
10 November
- BlogTelling your number parser what to expect
- x.com
- x.com

5 November
4 November
Nothing matches.
Beliefs
Korrents What they believe 14 beliefs — each backed by an exact quote.
Each is a — compiled by korrents.com, not by them: the one-line wordings are korrents', the quotes are theirs.
Recent
Compressed bitmaps are not always better than uncompressed ones; there are many tradeoffs.
Compressed bitmaps like Roaring are not always better. There are many tradeoffs.
Redis now has compressed bitmaps (Roaring) Said 15 Oct 2026
Academic publishing functions mainly to sort people for jobs rather than to produce useful knowledge.
The purpose of the academic output is to sort people out for jobs.
AI is breaking the academic sorting machine Said 20 Sept 2026
Most people who complete a PhD today will not land a tenure-track or tenured position, and the odds keep shrinking.
If you hold a PhD today, your chance of having a tenure-track or tenured position is about 10% and falling.
AI is breaking the academic sorting machine Said 20 Sept 2026
Show 11 more
Scientific and academic evaluation will shift away from published papers as the measure of output, toward valuing real-world results.
I predict that, over time, the focus will move away from "papers as the final output."
AI is breaking the academic sorting machine Said 20 Sept 2026
CPU performance keeps improving quickly rather than stagnating.
In effect, what I am demonstrating is that CPUs are not boring. They are improving fast.
How did Apple Silicon get 50% faster in three years? Said 19 Sept 2026
The SSE4.2 string-comparison instructions on x86 are slow compared to alternatives.
NEON has nothing like it; on x64, the closest thing is the SSE4.2 string-comparison instructions (pcmpistrm), which are slow.
Faster JSON parsing with SVE2 on ARM processors Said 18 Sept 2026
C++23's std::flat_map is a better choice than std::map for many practical use cases.
In many practical cases, the new std::flat_map is a better alternative to the std::map.
How fast is C++23’s std::flat_map? Said 16 Sept 2026
Subnormal floating-point numbers remain a real performance cost on Intel processors, but not on AMD or ARM processors.
Thus it appears that on the latest AMD and ARM processors subnormals might not be a concern. But they remain very much a performance issue under Intel processors.
Subnormal floating-point numbers are expensive… on Intel processors Said 15 Sept 2026
Professionals across many fields will adapt to working with AI, and that shift cannot be reversed.
Mathematicians, software developers, engineers, lawyers, physicians will all learn to work with AI. You cannot put the genie back in the bottle.
The four-colour theorem was only the start Said 11 Sept 2026
AI will increasingly produce mathematical proofs, just as it already writes most code.
Difficult proofs will now be built with AI, just as most code will be written with AI.
The four-colour theorem was only the start Said 11 Sept 2026
Mathematicians who continue working without AI should be seen as practicing an art form rather than research.
People who insist on pen and paper should view themselves as artists.
The four-colour theorem was only the start Said 11 Sept 2026
Less technology and less wealth increase the risk of human extinction, rather than reduce it.
In fact, the risk of human extinction is assuredly higher if we are poorer and have less technology.
Fear Is Not an Argument Said 10 Sept 2026
People who believe AI poses an existential risk tend to hold a totalitarian ideology that requires universal agreement to work.
These people tend to carry a totalitarian ideology. Their ideas will only work if everyone is made to agree.
Fear Is Not an Argument Said 10 Sept 2026
Publicly expressing fear of AI can function as virtue signaling rather than genuine concern.
Expressing fear of AI can become a form of virtue signaling.
Fear Is Not an Argument Said 10 Sept 2026
What is a korrent?
A korrent is a belief a person has stated in their own words: one sentence stating the claim, backed by a quote and a source, kept at korrents.com.
Under a name here, the quoted block is what they actually said. The korrent beneath it is the claim those words support, in korrents' wording — tap it to see the record, its source, and who else holds it.
Nobody here wrote their own korrents. They are compiled from public statements, and a person can change their mind, which is recorded too.
Recommends rcmnd
rcmnd What they recommend 15 things — each backed by an exact quote.
Compiled by rcmnd.app, not by them: the quotes are theirs, and each links to the post it was copied from.
Recent
Loved Theft of Fire
Theft of Fire offers a plausible and realistic universe. The characters, Marcus Warnoc and Miranda Foxgrove, are not mere archetypes; they are complex, flawed, and deeply human. Their struggle to trust one another and overcome their own demons is a powerful allegory for the modern human condition.
lemire.me 24 Feb 2024
sponsored
Recommends Template Metaprogramming with C++
I spent the last few weeks reading Template Metaprogramming with C++ by Marius Băncilă. It is currently 50$ on Amazon. Though, technically, the book is about advanced 'template' techniques, it is much more broad and practical. It is one of the 'good programming books'. If you are an experienced C++ programmer, you should give it a peek
lemire.me 26 Oct 2022
sponsored
Loved How Innovation Works
I read How Innovation Works by Matt Ridley in a few hours. It is a delicious book.
lemire.me 5 Jun 2020
Show 12 more
Liked FormulatePro
To sign forms electronically, I have been using something called FormulatePro. It gets the job done.
usesthis.com 5 Nov 2013
Loved iPad 4
I mostly use my iPad however: I was an early iPad adopter and I have since upgraded to the iPad 4. I am very pleased.
usesthis.com 5 Nov 2013
Uses Omnigraffle
When I need to draw diagrams, I use Omnigraffle.
usesthis.com 5 Nov 2013
Liked Prezi
When I give presentations, I like to use Prezi.
usesthis.com 5 Nov 2013
Uses Ubuntu
I use an Ubuntu distro for Linux, mostly because it is the most popular option.
usesthis.com 5 Nov 2013
Uses Vim
When I connect to a Linux box, I use vim as a text editor. For various reasons, I tend to write a lot of my software in vim.
usesthis.com 5 Nov 2013
Uses Texpad
For web browsing, I use Google Chrome. As a LaTeX editor, I use Texpad.
usesthis.com 5 Nov 2013
Uses Eclipse
However, most of my C++ and Java hacking is done using an older version of Eclipse.
usesthis.com 5 Nov 2013
Mixed on Smultron
On my Macs, I use Smultron as a text editor when I am not in a bash shell, despite the fact that it is buggy.
usesthis.com 5 Nov 2013
Uses Fresh Roast SR500
I do drink a massive amount of coffee however. I roast my own coffee with a Fresh Roast SR500.
usesthis.com 5 Nov 2013
Mixed on Statistical Analysis with R
The book is colorful and ludic which is a good idea for a "Beginner's Guide". The layout is attractive, there are many detailed examples. I like the pedagogy: the author wants you to learn by doing. However, the book is poor as a reference: the coverage is limited despite the 300 pages and the chapter summaries are strictly non-technical.
lemire.me 19 Jan 2011
sponsored
Liked Spin
The novel is very good. The author writes with good scientific rigour. The writing is supported by repeatedly introducing new mysteries in every chapter... to keep you coming for more. The characters are believable and well drawn.
lemire.me 17 Nov 2008
Where they publish
Site lemire.me Personal homepage.
Link verified 5 Sept 2026.
Blog Daniel Lemire’s blog Weekly posts on performance and computer science.
Recent
- AI is to academic research what the tractor was to farming 5 Dec 2026 Professor Thore Husfeldt recently gave a talk entitled The Collapse of the Proof Economy. A key element of his model is what is happening to science funding in the AI era. Previously, a professor (say Alice) would descr…
- Research is not being disrupted 4 Dec 2026 Modern universities use words like ‘research’ without really understanding the concept. That’s why they react so poorly to AI breakthroughs. That’s why you have mathematicians protesting in the streets. Let me define wh…
- Writing a paper is no longer a signal 30 Nov 2026 What nobody seems to be discussing is how academic publishing is being disrupted. I am an editor of a well-established journal. Here are the numbers of manuscripts I receive weekly. Writing a science paper used to requi…
Show 17 more
- Our textbook on machine learning and artificial intelligence is out 26 Nov 2026 Robert Godin and I have a new book. The title is Introduction to Machine Learning and Artificial Intelligence with Python. The paperback came out today. It is 741 pages. The Kindle edition is there too. IWe wrote the bo…
- Don’t be Andy Bernard 26 Nov 2026 People seek prestige but rarely think about what prestige is. Reputation is what enables trust between strangers. Pay on time and deliver the goods, and over time people prefer to trade with you. Reputation is valuable.…
- Command-line JSON filtering at 20 GB/s 25 Nov 2026 If you work with JSON on the command line, you probably use jq. You give it a filter, a small program in its own language, and it runs that filter on each JSON document. I generated a file of 1 GB with one tweet per lin…
- Cheaters are Innovators 24 Nov 2026 If you seek approval above all else, you are unlikely to innovate outside the rigid bounds of the current system. But if you are willing to cheat, you can innovate. You do not convince traditional media or academic publ…
- Seeing the machine code of your Java program, with a few lines of Java 23 Nov 2026 When I want to know why some Java code is slow, I usually reach for JMH. JMH is great to time a function. But a timing tells you how slow the code is, not why. For that, you need to see the machine code that the JIT com…
- Decoding base64 email attachments: a speed ranking of programming languages 20 Nov 2026 Email attachments are base64. So are cryptographic PEM certificates. In both cases the text is broken into lines, 76 characters for email and 64 for PEM. Skipping line endings sounds trivial. Yet many fast decoders only…
- Java4Shell: when base64 decoding leads to remote code execution? 18 Nov 2026 Let us start with an example that triggers the issue. byte[] src = ("A".repeat(128) + "=").getBytes(StandardCharsets.US_ASCII); Base64.getDecoder().decode(src); One hundred and twenty-eight letters A and one =. The stri…
- Cognitive radius 16 Nov 2026 The most interesting change AI brings to software work is not faster coding. It is the expansion of context or range… what I call radius. For decades the job was defined by the limits of what one person could hold in th…
- Reading JSON at 277 GB/s in Python 14 Nov 2026 Many systems log their data as JSON, one record per line (NDJSON). GitHub, for example, publishes every public event on its site that way through GH Archive: about a gigabyte per hour. Suppose you want to know which rep…
- Telling your number parser what to expect 10 Nov 2026 Our fast_float library parses numbers such as -731.51 into binary floating-point values. It is part of GCC’s C++ standard library, among others. It is fast: often a few nanoseconds per number. Parsing a number means mak…
- A performance trap: when store forwarding fails 5 Nov 2026 A store does not go straight into the cache. Waiting for that write would stall the processor. It sits in a store buffer, and a later load can take its bytes from that buffer. That is store forwarding. Forwarding works…
- Open source as a research method 4 Nov 2026 Many people still picture innovation as a line. The professor thinks and publishes. The engineer reads the paper and designs a product. The customer consumes it. It rarely works that way. The industrial revolution was n…
- In C++, = default and {} are not the same constructor 2 Nov 2026 You can write an empty default constructor as span() = default or as span() {}. It can have remarkable effects on performance. struct span { const char *p; int len; const char *end; span() = default; // or span() {} spa…
- Beating the compiler at signed 32-bit division 31 Oct 2026 Dividing integers is slow on our processors. A 32-bit division costs: processor latency throughput Emerald Rapids about 12 cycles one every 6 cycles Zen 4 9 to 12 cycles one every 6 cycles Zen 5 10 to 13 cycles one ever…
- Billion-query-per-second lookup tables in C++ 26 Oct 2026 A lot of software spends its time mapping strings to values. A web server must identify the HTTP method (GET, POST, …). It must recognize header names. A URL parser must recognize the protocol (http, https, ftp, …). A c…
- Decoding base64 in Python at 10 gigabytes per second 17 Oct 2026 We sometimes need to convert binary data to text. For example, your emails must be stored as text files. Naïvely, you could just use a string of 0 and 1, but it would mean using one character per bit. We can do better b…
- Redis now has compressed bitmaps (Roaring) 15 Oct 2026 Redis is an in-memory database. Salvatore Sanfilippo started it in 2009, and it is now one of the most widely deployed pieces of server software. It is often used as a cache in front of a slower database. You talk to it…
Link verified 5 Sept 2026. Recent items update automatically from the channel.
x.com @lemire His X account.
Recent
- Why you should write your own pull-request messages. Life is more fun that way. 21 Nov 2026
- I have been working on formally verifying more and more of my fancy performance code. It is still early days but I love the idea. I have lots of projects where we run with scissors to achieve the best performance. We have extensive testing and validation... but adding formal proofs would be a nice touch and could be an overall game changer. Interesting times. Like so: https://t.co/h7lkI5stQ2 or so 21 Nov 2026 github.com
- How fast can you decode a binary file encoded as MIME base64? It depends. Read my article to find out more! 20 Nov 2026
Show 17 more
- What is fascinating about what is happening in France, and throughout much of the West, is how reason is gone out the window. It is no longer viewed as a virtue to be someone who thinks. They burn down their schools, demanding more, without thinking about where the 'more' will come. If everyone gets to do a doctorate, paid by the state, and if standards a low enough that graduates neither think well, nor can they serve anyone well... the unavoidable outcome is that we get the level of prosperity that the technology can afford us... not a iota more. We really don't need that much schooling. An… 15 Nov 2026
- How sure are you that the CEO of Nvidia slept with a Chinese spy and gave China access to his tech? I asked grok. I am 100% sure he slept with a Chinese lady. Is she a spy? Maybe. Did he do the communists favours? How do we know? Nvidia sold GPUs to Singapore… some of which may have ended up in Chinese hands. I want to understand. To be clear, my christian values apply: don’t cheat on your wife… it is bad. 15 Nov 2026
- There is more C and C++ than you think in Python. 14 Nov 2026
- How fast can you go through a JSON file from Python on CPU? You might be surprised at the answer... read my article to find out more. 14 Nov 2026
- More juicy information regarding the latest AMD chips (Zen 6). - Each core can do four 256-bit vector loads per cycle. AMD is ahead technologically with its ability to sustain four loads per cycle and Zen 6 makes this even better. - AMD cut the integer multipliers from three to two, since the third did little. It is uncommon for a processor to be able to do 3 multiplications per cycle. Recent processors from Intel and AMD can... but, apparently, AMD is backtracking. - Recovery from branch mispredictions is faster with no loss in accuracy - VNNI, the AI dot-product instructions, are faster. Yo… 13 Nov 2026 chipsandcheese.com
- Oh no. 12 Nov 2026
- Whenever I talk to someone in a leadership position in tech… they say much the same things regarding AI and coding… “It is moving so fast.” “We see young people accomplishing unthinkable feats.” “What is going to happen to ordinary Joes? They’ll be gone in two years.” And then you turn around, and you see esteemed academic leaders in computer science who state upfront that they ‘don’t use AI’. In many ways, we are living through sharp bifurcations. That’s expected if you believe in the concept of a technological singularity as a rate of change so fast that people cannot keep up, cannot think… 12 Nov 2026
- Yes, young people did better in 2025. I have a theory as to why : 11 Nov 2026
- AMD keeps its microarchitecture names simple: Zen 2, Zen 3, … Zen 6. Zen 6 is new and most of us still lack access. Chips and Cheese measured what changed from Zen 5. Zen 6 sustains 5.96 64-bit adds per cycle versus Zen 5’s 5.25 (same six ALUs). (Yes! Your processor can do that many additions per cycle!) It also recovers faster from branch mispredictions: roughly 3–3.5 ns extra versus 3.5–4 ns on Zen 5. That's an important gain because lots of branchy code is limited by branch misprediction penalties. Overall, Zen 6 processors today can match the best of the previous generation (Zen 5) runnin… 11 Nov 2026 chipsandcheese.com
- If someone wants a challenge... the fast_float library is part of the V8 engine (chromium browsers). It calls the library deep down after some processing. In theory, it should be possible to create a variant of the library that is tuned for V8 usage. I have opened an issue: 11 Nov 2026 github.com
- How do you make a number parser even faster? Maybe by telling it what kind of numbers to expect? Read my article to find out more... 10 Nov 2026
- Loongson processors have 16-byte SIMD (LSX) and 32-byte SIMD (LASX). The simdjson library supports both, but we disable the 32-byte variant by default because it is slower. Open issue: 10 Nov 2026
- Your economy is downstream from tech culture. Back when I was a kid, I got a TRS-80 computer. It came with a great book about programming, so I taught myself to program.But where could I go? It would be years before I found that there was a local computer club. And it was small, mostly one guy who acted as the leader.And, unsurprisingly, a software industry never came. Naively you may think that the web solves the problem. A kid in the poor village in India has access to Reddit and everything else. It is a mistake many politicians made at the beginning of the 2000s. They thought that the web… 9 Nov 2026
- I attended VCF Montréal 2.0 (Vintage Computer Festival) this afternoon. I missed @davepl1968 who was a speaker. I was told that he was a few meters from me. Met with @cjauvin. I got to discuss old computers. I somehow thought that most processors from era in home computers in North America were from Motorola. It is wrong, but not entirely wrong, they were from MOS and MOS was started by engineers from Motorola who simplified the designs. In the UK and Japan, Zilog was popular, Zilog came from Intel folks. The talk by @caboken, Roberta Williams and @allowe was inspiring. 8 Nov 2026
- Intel and AMD have specified a shared matrix extension, ACEv1. There are eight tile registers, each 16 rows by 64 bytes. The eight tile registers, tmm0 through tmm7, hold 16×16 values when the elements are 32 bits wide. That is 1 KB per tile, 8 KB for the whole tile file. No processor you can buy executes these instructions. AMD has said that EPYC Zen 7, Florence, will include ACE. I could not find when Intel will support it. It will be supported by GCC 17. You can already compile C code from ACEv1 if you built a pre-release of GCC 17 although no hardware can run it. AMD/Intel finally has a s… 8 Nov 2026
- Most PCs use x64 processors from Intel or AMD. ARM dominates phones and is also found in servers and Apple’s Macs. Interestingly, AMD processors have included a small ARM security processor for over a decade. It runs security firmware separately from your operating system. Another instruction set, RISC-V, is increasingly used in embedded controllers (since it is cheap to use). As @michaellarabel reports, an AMD firmware commit reveals a RISC-V trusted execution environment on a platform identified as upcoming Zen 6 Ryzen. The disclosed application handles power, thermal and other system polic… 7 Nov 2026 phoronix.com
- Andreessen wrote that “software is eating the world.” What seems obvious today is that “AI is going to eat bureaucracy.” For the last couple of months, I have been running circles around the bureaucratic processes of my university. Here is a recent example. This summer I was charged with producing an assessment of a certificate program. Normally, as a professor, it is a significant fraction of your time. You often get to deduct this time from your teaching duties. It is a lengthy process that ends up with a complex report that might span 100 pages or so. I threw thousands of documents and all… 6 Nov 2026
Link verified 5 Sept 2026. Recent items update automatically from the channel.
GitHub @lemire simdjson and other performance libraries.
Recent
- Code-used-on-Daniel-Lemire-s-blog — This is a repository for the code posted on my blog 25 Nov 2026
- FastBitSet.js — Speed-optimized BitSet implementation for modern browsers and JavaScript engines 25 Nov 2026
- orientee_donnees 24 Nov 2026
Show 2 more
- pystylecheck 23 Nov 2026
- cours-programmation-ia 21 Nov 2026
Link verified 5 Sept 2026. Recent items update automatically from the channel.
About the English under a post
Some people here publish in a language other than English. Where they do, this site shows a machine translation beneath the post, in this typeface — the site's own, not theirs.
The post itself is never changed, moved or hidden: what is set in the serif above is exactly what the person published, and it is what to quote them on. A translation can be wrong in ways that matter, especially about tone.
Only the post's own words are translated. A quoted post, a linked article and a belief on korrents.com are left in their original language.







