Lambda Diode

lambda-diode.com · Personal blog · on HN since 2010

A programmer writes about functional programming, OCaml, and why computers should use error-correcting memory, with opinion pieces on languages.

What HN saysHN cites its ECC memory articles for bit-error rates; commenters say the first estimate was flawed, was revised after criticism, and still seems too high.
18HN people shared it
10linked it in comments
8stories submitted
197story points
6 months agolast shared
2010people per year2026

Most-shared posts

  1. 1
    You need to use error-correcting memory
    6 people · 70 points · first shared 2010 · 30 comments on HN
  2. 2
    Updates on the need to use error-correcting memory
    5 people · 3 points · first shared 2013 · discussion on HN
  3. 3
    Monads are a Class of Hard Drugs (2008)
    3 people · 45 points · first shared 2012 · 36 comments on HN
  4. 4
    Interfacing Fortran with OCaml
    1 people · 78 points · first shared 2017 · discussion on HN
  5. 5
    The Tiobe index is meaningless (2008)
    1 people · 1 points · first shared 2021 · discussion on HN
  6. 6
    Ecc memory 3
    1 people · first shared 2015
  7. 7
    GHGSat OCaml.pdf
    1 people · first shared 2026

What HN people wrote when they linked it

tomxor · 2021-01-03
Great thanks! [edit] Looks like the calculation was revised [0] after criticism: > Under these assumptions, you'll have to wait about 33 to 600 days to get a 96% chance of getting a bit error. What's more worrying is the variance, the above calculation is based on expected well behaved DRAM.. yet some computers just seem to have manufacturing defects that make the incidence of errors high enough to be a regular problem. [0] http://lambda-diode.com/opinion/ecc-memory-2
gzalo · 2021-01-03
That number is flawed, and the author did a follow-up with better results: http://lambda-diode.com/opinion/ecc-memory-2 "33 to 600 days to get a 96% chance of getting a bit error." Still, it seems way too high. I guess anyone with ECC RAM could confirm that they are getting those sort of recovered error rates?
bitcharmer · 2021-01-03
Apologies, you're totally right. I should have linked to the source: http://lambda-diode.com/opinion/ecc-memory#:~:text=A%20system%20on%20E…
protomyth · 2018-04-05
An article of frequency of errors http://lambda-diode.com/opinion/ecc-memory-2
laurentdc · 2017-02-12
Why do you consider ECC the biggest scam out there? Btw, is there any updated paper/source with some stats on bit-flip odds in modern computers? Last I've read was this one [1] but it's been debated to death. [2] [3] [1] http://lambda-diode.com/opinion/ecc-memory [2] https://news.ycombinator.com/item?id=1109401 [3] https://www.reddit.com/r/programming/comments/ayleb/got_4gb_ram_no_ecc…
btilly · 2015-02-13
This is absolutely true. Every time you run it, a non-prime has probability of at most 1/4 of passing. Run it 5 times, and you'll catch 99.9% of non-primes. What about neutron flips? Judging from http://lambda-diode.com/opinion/investigations/transmutations/.../ecc-… you can probably expect one every 4-5 years. If you run MR 20 times, your odds of wrongly declaring a non-prime prime are on the same order of magnitude as the number of microseconds in a 5 year period. So yes, neutron flips and MR errors are on par with each other. If you're concerned, just run MR a few more times. :-)
rainforest · 2013-06-11
The probability of a bit error on normal RAM is quite high [1]. The more RAM you add the more likely you are to see corruption. Not that ECC fixes everything - I still see uncorrected ECC errors on the older HPC nodes on our grid. [1] : http://lambda-diode.com/opinion/ecc-memory
rho_soul_kg_m3 · 2026-05-15
Well, I might have been the first to put OCaml in space, specifically on low-Earth orbit aboard GHGSat-D in 2016. I designed the payload software as a collection of SystemD services talking over DBus, and it included a CCSDS-to-DBus bridge to talk to the platform (the thing that hosts the payload, controls and steers the satellite). The payload also did perform symmetric-key encryption of the resulting data, as per regulations. I gave a talk about the payload software at the Paris OCaml users group. The reason for selecting that archicture was that I didn't expect to write the whole payload software by myself, and I assumed that when some other developers join in they would, obviously, not want to use a weird language like OCaml, and so they could write their portion in C/C++/whatever and the system could still work. Of course that didn't happen. I'd be surprised if the company still uses OCaml, as the standad tendency is to revert to "industry-standard" languages to get industry-standard problems. The whole processing and simulation toolchain was also written in OCaml. Today there is little reason not to use Rust and it can cover both the processing side and the payload software. But people still insist on using C/C++. I'm OK with that as long as I can invoice them. EDIT: Found my slides https://lambda-diode.com/static/data/GHGSat_OCaml.pdf
failwhaleshark · 2021-05-09
I want a laptop with 64 or 128 GiB of Chipkill ECC RAM. Any of this soldered-on, anti-R2R/-consumer Apple trend-copying is BS. This crap about "YAGNI" or "it costs too much" have no idea what they're talking about and don't understand the reasons or use-cases. At home, I may have a 96 core EPYC with 512 GiB of Reg'd ECC RAM, but it doesn't have the locality or reachability of something that's with you. Network presence and low-latency aren't a given. https://en.wikipedia.org/wiki/Chipkill Edit: Resources: https://cr.yp.to/hardware/ecc.html http://lambda-diode.com/opinion/ecc-memory https://tedium.co/2021/01/06/error-correcting-code-memory-history/ [PDF] https://defcon.org/images/defcon-21/dc-21-presentations/Schultz/DEFCON… DEFCON 19: Bit-squatting: DNS Hijacking Without Exploitation (trivia: at the time of filming, I was excessively-hungover and laying across 6 seats in the middle of an empty area to the extreme right, from the podium's perspective. I did watch the presentation with sunglasses on indoors because my eyes weren't cooperating nicely with photons.) https://youtu.be/aT7mnSstKGs Edit follow-on: And I don't want to lug-around a 17" Russian tank laptop that needs wheeled tracks to move. 13-15" max.
logicallee · 2014-06-01
lol @ "they should sell hard disks with 10^15 reliability instead of 10^14!" This is the funniest outrage I've seen in a while, just because the suggested fix is so specific and (relatively) low for the huge amount discussed. It's like saying, "It's an outrage that this drink holds only 37 ounces! For this kind of money I expect it to hold at least 38 ounces. I would pay for that." - My 4 downvoters are clearly a lot worse at math at I am. Let me spell it out for you: "Reliability of 100000000000000 is unacceptable! I need exactly 1000000000000000 of reliability (a factor 10 difference only)." If you don't see how that is funny, the problem is with you, not me. That's a hilariously specific, and small, change. "Man, having a 30% chance of a bit flipping if I read 4 TB is unacceptable. I should have to read like...40 TB for a 30% chance of a bit flip!" It's particularly funny because in the face of this being unacceptable, I would expect a solution, like error correction, that adds 5-10 orders of magnitude (many bit flips have to all happen in the same sector, by coincidence, at the already low 10^14 rate), for it to make it past the error correction layer. The other thing is that given that we're talking about ERROR RATES, I cannot possibly believe that they have it down to such a specific number as 100000000000000. It would have to be a range. You should target more than 1 order of magnitude to get something more reliable (like ECC RAM versus regular RAM).…

Keyboard shortcuts

/Search
j kNext / previous blog
EnterOpen selected blog
vVisit the blog site
fFollow / unfollow
lSwitch grid / list view
dSwitch dark mode
g hHome
g pTop posts
g tTopics
g fFollowing
g lLiked
g yHistory
g qFAQ
EscBack / close