Elektrine
Log in Register
Paige Chat Timeline Gallery Friends Email Drive DNS Private DNS Domains VPN Kairo Nerve
Remote

Daniel Lemire

@lemire@mastodon.social
mastodon 4.8.0-nightly.2026-10-06
  • Open on mastodon.social

Computer science professor at the University of Quebec (TELUQ), open-source hacker, and long-time blogger. 👨‍💻

0 Followers
0 Following
41 Posts
Joined June 27, 2019
Open post
Daniel Lemire @lemire@mastodon.social
· 1mo ago

Python sets and dictionaries can have quadratic-time performance https://lemire.me/blog/2026/09/03/python-sets-and-dictionaries-can-have-quadratic-time-performance/

Python sets and dictionaries can have quadratic-time performance
Daniel Lemire's blog

Python sets and dictionaries can have quadratic-time performance

In Python, the dict data structure is the conventional key-value structure. E.g., you might store a list of names as keys and have their phone numbers as values. Valentin Ignatev wrote this amusing post on X: It is indeed widely believed that, in the strict sense, the dict data structure and its companion, the set … Continue reading Python sets and dictionaries can have quadratic-time performance

19
0
9
0
Open post
Daniel Lemire @lemire@mastodon.social
· 1mo ago

Java’s String.indexOf can be slow (quadratic) https://lemire.me/blog/2026/08/22/javas-string-indexof-can-be-slow-quadratic/

lemire.me
5
1
4
0
Open post
Daniel Lemire @lemire@mastodon.social
· 1mo ago

AI programming: a layered model https://lemire.me/blog/2026/09/05/ai-programming-a-layered-model/

lemire.me
2
1
1
0
Open post
Daniel Lemire @lemire@mastodon.social
· 1mo ago

Parsing IP addresses in C# at crazy speeds https://lemire.me/blog/2026/08/19/parsing-ip-addresses-in-c-at-crazy-speeds/

lemire.me
4
1
0
0
Open post
Daniel Lemire @lemire@mastodon.social
· 1mo ago

The new Go JSON API: twice as fast, or 1.5x slower? https://lemire.me/blog/2026/08/29/the-new-go-json-api-twice-as-fast-or-1-5x-slower/

lemire.me
2
0
0
0
Open post
Daniel Lemire @lemire@mastodon.social
· 2mo ago

Memory-level parallelism: AMD is the king https://lemire.me/blog/2026/07/25/memory-level-parallelism-amd-is-the-king/

lemire.me
5
0
4
0
Open post
Daniel Lemire @lemire@mastodon.social
· 2mo ago

How fast is C++26’s std::hive? https://lemire.me/blog/2026/08/02/how-fast-is-c26s-stdhive/

lemire.me
3
0
0
0
Open post
Daniel Lemire @lemire@mastodon.social
· 1mo ago

Go 1.27 will make some allocations cheaper https://lemire.me/blog/2026/08/15/go-1-27-will-make-some-allocations-cheaper/

lemire.me
1
0
0
0
Open post
Daniel Lemire @lemire@mastodon.social
· 2mo ago

Using AI to build your own software https://lemire.me/blog/2026/07/16/using-ai-to-build-your-own-software/

lemire.me
2
0
1
0
Open post
Daniel Lemire @lemire@mastodon.social
· 1mo ago

AI programming : are you angry yet? https://lemire.me/blog/2026/08/12/ai-programming-are-you-angry-yet/

lemire.me
1
0
1
0
Open post
Daniel Lemire @lemire@mastodon.social
· 2mo ago

Profile-guided optimization in Go https://lemire.me/blog/2026/08/09/profile-guided-optimization-in-go/

lemire.me
1
1
0
0
Open post
Daniel Lemire @lemire@mastodon.social
· 4mo ago
lemire.me
3
0
1
0
Open post
Daniel Lemire @lemire@mastodon.social
· 3mo ago

Chatting with AI Won’t Make You a Top Programmer https://lemire.me/blog/2026/06/21/chatting-with-ai-wont-make-you-a-top-programmer/

lemire.me
2
0
1
1
Open post
Daniel Lemire @lemire@mastodon.social
· 6mo ago

A brief history of C/C++ programming languages https://lemire.me/blog/2026/04/09/a-brief-history-of-c-c-programming-languages/

A brief history of C/C++ programming languages
Daniel Lemire's blog

A brief history of C/C++ programming languages

Initially, we had languages like Fortran (1957), Pascal (1970), and C (1972). Fortran was designed for number crunching and scientific computing. Pascal was restrictive with respect to low-level access (it was deliberately "safe", as meant for teaching structured programming). So C won out as a language that allowed low-level/unsafe programming (pointer arithmetic, direct memory access) … Continue reading A brief history of C/C++ programming languages

5
1
1
0
Open post
Daniel Lemire @lemire@mastodon.social
· 8mo ago

Converting floats to strings quickly https://lemire.me/blog/2026/02/01/converting-floats-to-strings-quickly/

lemire.me
6
0
0
0
Open post
Daniel Lemire @lemire@mastodon.social
· 5mo ago

The fastest way to match characters on ARM processors? https://lemire.me/blog/2026/04/19/the-fastest-way-to-match-characters-on-arm-processors/

lemire.me
3
0
0
0
Open post
Daniel Lemire @lemire@mastodon.social
· 6mo ago

How many branches can your CPU predict? https://lemire.me/blog/2026/03/18/how-many-branches-can-your-cpu-predict/

lemire.me
4
0
1
0
Open post
Daniel Lemire @lemire@mastodon.social
· 6mo ago

Can your AI rewrite your code in assembly? https://lemire.me/blog/2026/04/05/can-your-ai-rewrite-your-code-in-assembly/

lemire.me
3
0
1
0
Open post
Daniel Lemire @lemire@mastodon.social
· 7mo ago

Prefix sums at tens of gigabytes per second with ARM NEON https://lemire.me/blog/2026/03/08/prefix-sums-at-tens-of-gigabytes-per-second-with-arm-neon/

lemire.me
3
0
0
0
Open post
Daniel Lemire @lemire@mastodon.social
· 3mo ago

Parsing JSON at compile time with C++26 static reflection https://lemire.me/blog/2026/06/14/parsing-json-at-compile-time-with-c26-static-reflection/

lemire.me
1
0
0
0
Open post
Daniel Lemire @lemire@mastodon.social
· 8mo ago

How stagnant is CPU technology? https://lemire.me/blog/2026/01/14/how-stagnant-is-cpu-technology/

lemire.me
4
0
2
0
Open post
Daniel Lemire @lemire@mastodon.social
· 4mo ago

How much do amd64 microarchitecture levels help in Go? https://lemire.me/blog/2026/06/06/how-much-do-amd64-microarchitecture-levels-help-in-go/

lemire.me
1
0
0
0
Open post
Daniel Lemire @lemire@mastodon.social
· 7mo ago

How bad can Python stop-the-world pauses get? https://lemire.me/blog/2026/02/15/how-bad-can-python-stop-the-world-pauses-get/

lemire.me
3
0
0
0
Open post
Daniel Lemire @lemire@mastodon.social
· 4mo ago

Embodied cognition and agentic AI https://lemire.me/blog/2026/05/28/embodied-cognition-and-agentic-ai/

lemire.me
1
1
0
0
Open post
Daniel Lemire @lemire@mastodon.social
· 8mo ago

A new way to call C from Java: how fast is it? https://lemire.me/blog/2026/01/17/a-new-way-to-call-c-from-java-how-fast-is-it/

lemire.me
3
0
0
0
Open post
Daniel Lemire @lemire@mastodon.social
· 9mo ago

A bit of glass and freedom is all you need https://lemire.me/blog/2026/01/07/a-bit-of-glass-and-freedom-is-all-you-need/

lemire.me
2
0
0
0
Open post
Daniel Lemire @lemire@mastodon.social
· 6mo ago

A Fast Immutable Map in Go https://lemire.me/blog/2026/03/29/a-fast-immutable-map-in-go/

lemire.me
1
0
0
0
Open post
Daniel Lemire @lemire@mastodon.social
· 6mo ago

JSON and C++26 compile-time reflection: a talk https://lemire.me/blog/2026/03/26/json-and-c26-compile-time-reflection-a-talk/

lemire.me
1
0
0
0
Open post
Daniel Lemire @lemire@mastodon.social
· 7mo ago

Text formats are everywhere. Why? https://lemire.me/blog/2026/03/05/text-formats-are-everywhere-why/

lemire.me
1
0
0
0
Open post
Daniel Lemire @lemire@mastodon.social
· 7mo ago

You can use newline characters in URLs https://lemire.me/blog/2026/02/28/you-can-use-newline-characters-in-urls/

You can use newline characters in URLs
Daniel Lemire's blog

You can use newline characters in URLs

We locate web content using special addresses called URLs. We are all familiar with addresses like https://google.com. Sometimes, URLs can get long and they can become difficult to read. Thus, we might be tempted to format them like so in HTML using newline and tab characters, like so: <a href="https://lemire.me/blog/2026/02/21/ how-fast-do-browsers-correct-utf-16-strings/">my blog post</a> It will … Continue reading You can use newline characters in URLs

1
0
0
0
Open post
Daniel Lemire @lemire@mastodon.social
· 7mo ago

How fast do browsers correct UTF-16 strings? https://lemire.me/blog/2026/02/21/how-fast-do-browsers-correct-utf-16-strings/

How fast do browsers correct UTF-16 strings?
Daniel Lemire's blog

How fast do browsers correct UTF-16 strings?

JavaScript represents strings using Unicode, like most programming languages today. Each character in a JavaScript string is stored using one or two 16-bit words. The following JavaScript code might surprise some programmers because a single character becomes two 16-bit words. > t="🧰" '🧰' > t.length 2 > t[0] '\ud83e' > t[1] '\uddf0' The convention is … Continue reading How fast do browsers correct UTF-16 strings?

1
0
0
0
Open post
Daniel Lemire @lemire@mastodon.social
· 7mo ago

AI: Igniting the Spark to End Stagnation https://lemire.me/blog/2026/02/15/ai-igniting-the-spark-to-end-stagnation/

AI: Igniting the Spark to End  Stagnation
Daniel Lemire's blog

AI: Igniting the Spark to End Stagnation

Much of the West has been economically stagnant. Countries like Canada have failed to improve their productivity and standard of living as of late. In Canada, there has been no progress in Canadian living standards as measured by per-person GDP over the past five years. It is hard to overstate how anomalous this is: the … Continue reading AI: Igniting the Spark to End Stagnation

1
2
0
0
Open post
Daniel Lemire @lemire@mastodon.social
· 8mo ago

Converting data to hexadecimal outputs quickly https://lemire.me/blog/2026/02/02/converting-data-to-hexadecimal-outputs-quickly/

Converting data to hexadecimal outputs quickly
Daniel Lemire's blog

Converting data to hexadecimal outputs quickly

Given any string of bytes, you can convert it to an hexadecimal string by mapping the least significant and the most significant 4 bits of byte to characters in 01...9A...F. There are more efficient techniques like base64, that map 3 bytes to 4 characters. However, hexadecimal outputs are easier to understand and often sufficiently concise. … Continue reading Converting data to hexadecimal outputs quickly

1
0
0
0
Open post
Daniel Lemire @lemire@mastodon.social
· 9mo ago

What I Got Wrong About “Hard Work” in My 20s https://lemire.me/blog/2026/01/08/what-i-got-wrong-about-hard-work-in-my-20s/

What I Got Wrong About “Hard Work” in My 20s
Daniel Lemire's blog

What I Got Wrong About “Hard Work” in My 20s

When I was younger, in my 20s, I assumed that everyone was working "hard," meaning a solid 35 hours of work a week. Especially, say, university professors and professional engineers. I'd feel terribly guilty when I would be messing around, playing video games on a workday. Today I realize that most people become very adept … Continue reading What I Got Wrong About “Hard Work” in My 20s

1
1
0
0
Open post
Daniel Lemire @lemire@mastodon.social
· 16mo ago

Models and science https://lemire.me/blog/2025/05/23/models-and-science/

The ancient Greeks crafted extraordinary models that continue to resonate. For instance, P

lemire.me
2
0
1
0
Open post
Daniel Lemire @lemire@mastodon.social
· 2mo ago

From Institutions to Individuals: the White House Report on Revitalizing U.S. Scientific Leadership https://lemire.me/blog/2026/07/22/from-institutions-to-individuals-the-white-house-report-on-revitalizing-u-s-scientific-leadership/

lemire.me
0
1
0
0
Open post
Daniel Lemire @lemire@mastodon.social
· 4w ago

A quick overview of atomics in C https://lemire.me/blog/2026/09/09/a-quick-overview-of-atomics-in-c/

lemire.me
0
0
0
0
Open post
Daniel Lemire @lemire@mastodon.social
· 2mo ago

X just gave us an interface that AI agents can use. I pointed it at my own posts. https://lemire.me/blog/2026/07/11/x-just-gave-us-an-interface-that-ai-agents-can-use-i-pointed-it-at-my-own-posts/

lemire.me
0
0
0
0
Open post
Daniel Lemire @lemire@mastodon.social
· 8mo ago

Optimizing Python scripts with AI https://lemire.me/blog/2026/01/25/optimizing-python-scripts-with-ai/

lemire.me
0
0
0
0
Open post
Daniel Lemire @lemire@mastodon.social
· 2mo ago

Does a PhD Pay Off? https://lemire.me/blog/2026/07/24/does-a-phd-pay-off/

lemire.me
0
0
0
0
Open post
Daniel Lemire @lemire@mastodon.social
· 8mo ago

The cost of a function call https://lemire.me/blog/2026/02/08/the-cost-of-a-function-call/

lemire.me
0
0
0
0
Back
313k7r1n3
Elektrine

Tor hidden service

elekhj7afj4qnrr4yd3bkzslsyo5jgfxw3orgjkhlcxifueodybyiiad.onion

I2P eepsite

j6b6cyk6gjmepjih7jjadxgxvvf3lzzujljuu2v4biemzpg3naya.b32.i2p

Platform

  • Email
  • Chat
  • Timeline
  • VPN
  • DNS

Company

  • About
  • Contact
  • FAQ
  • Lite (no JS)

Legal

  • Terms of Service
  • Privacy Policy
  • Transparency Report
  • Report Abuse
  • Warrant Canary
  • VPN Policy

Support

  • support@elektrine.com
  • Report Security Issue
Mail client setup IMAP mail.elektrine.com:993 POP3 mail.elektrine.com:995 SMTP mail.elektrine.com:465
© 2026 Elektrine. All rights reserved. Server: 03:32:18 UTC