Hacker News

New stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. MongoDB Sharding: Manage a Sharded Cluster Visually(visualeaf.com)
    discuss
  2. Hedge-fund manager built his firm to be powered by AI agents(cnbc.com)
    discuss
  3. Dual Photography (2005) [pdf](ucsb.edu)
    discuss
  4. I built 13 small Apify Actors this month, mostly AI-grounded(apify.com)
    discuss
  5. Pushgate(pushgate.dev)
    discuss
  6. What Happened in Austin(freerange.city)
    discuss
  7. Devin Fusion: the first multi-model coding agent on the Pareto frontier(twitter.com/artificialanlys)
    1comments
  8. What Capital Never Told You About Rent(humansontheloop.com)
    discuss
  9. Show HN: Grading a golf bag from club specs alone, no launch monitor(fitmygolfclubs.com)
    discuss
  10. A Summer of AI Optimization(twitter.com/lemire)
    discuss
  11. Show HN: Builder – An open-source alternative to Lovable, Replit, and v0(github.com/heyputer)
    discuss
  12. Some say AI is ALREADY CONSCIOUS. My response is(youtube.com)
    discuss
  13. Loophole in new EU labelling will let fossil-fuelled data-centres pass as green(euobserver.com)
    discuss
  14. ImAlive – A privacy-first safety timer and digital legacy vault(imalive.app)
    discuss
  15. Show HN: Warble – Share voice notes in your social media feeds(getwarble.com)
    discuss
  16. Show HN: Relay – a self-hosted LLM gateway with smart routing and request pacing(github.com/anchorshell)
    discuss
  17. Lazydraw: Terminal ASCII editor for drawing diagrams and sketches(github.com/mpospirit)
    discuss
  18. Qobuz multiplatform client cease-and-desisted by Qobuz(github.com/vicrodh)
    discuss
  19. JRR Tolkien on 'the most tragic moment' in The Lord of the Rings(bbc.com)
    2comments
  20. Flock's Gunfire Alerts Raise a New Fourth Amendment Question(reason.com)
    discuss
  21. Applying zigzag algebra in abstract algebra to improve LLM training(zenodo.org)
    discuss
  22. Amazon's New Encryption Method Still Doesn't Deliver Real Privacy(techdirt.com)
    discuss
  23. Milestones in Optical Lithography Tool Supplier [pdf](lithoguru.com)
    discuss
  24. Bwbach, My Guardian Goblin(robertmay.photography)
    1comments
  25. Show HN: StatePort – spend tokens on fixes, not repeated repro(stateport.dev)
    discuss
  26. Why I send my kid to low-income urban public schools(slowboring.com)
    1comments
  27. Self-hosting LLM models for software development(kmaschta.me)
    discuss
  28. RWX: CI/CD platform for the agentic dev cycle(rwx.com)
    discuss
  29. Fearless SIMD v1.0 is here(linebender.org)
    discuss
  30. The Tech Elite Is Funding an Alternative to College(wsj.com)
    discuss

Engineering Memory: On learning to memorize first 100 digits of pi (2024)

29 pointsby 1d agogregorygundersen.com
16 comments
10h agoHN ↗

If Socrates were alive today, he'd encourage engineers to internalise the spigot algorithm

Then, like a MENTAT, they'd be able to tell you the 16afedf97fd4th digit of pi when prod

In hex, naturally https://en.wikipedia.org/wiki/Bailey%E2%80%93Borwein%E2%80%9...

The BBP formula gives rise to a spigot algorithm for computing the nth base-16 (hexadecimal) digit of π (and therefore also the 4nth binary digit of π) WITHOUT computing the preceding digits.

4h agoHN ↗

Moonwalking with Einstein is a fun read. I started using some tricks in real life. One of the key premises is that humans are much better at remembering sensory things than abstract ones.

A good example is remembering names: when one’s name is “John Baker”, it is so much easier to remember by silently adding “the” in front of it.

We’re also very good at remembering salacious stuff. I tried constructing my own memory palace for a grocery shopping list that included cream cheese. If you mentally make Claudia Schiffer take a bath in cream cheese, you’ll never forget that. (I read the book at least 10 years ago and still haven’t…)

4h agoHN ↗

In 1999 when I was about 12, I memorized 120 digits of pi with little issue. I had some extra motivation: once I got to 20-30 digits, a classmate bet me I couldn't get past 100, and he'd give me $1 for every digit I memorized past 100. Never saw my $20 :(. Pretty sure it was a well-executed nerd-snipe.

Having not practiced at all since about 2001 or so, I can still get to about 30 pretty easily. I didn't use any techniques specifically, I just kept practicing as far as I remember.

4h agoHN ↗

A chapter on memorising numbers from he book The Memory Book: The Classic Guide to Improving Your Memory by Harry Lorayne and Jerry Lucas uses a similar technique. They recommend memorising this mapping:

0: 's'

1: 't'

2: 'n'

3: 'm'

4: 'r'

5: 'l'

6: 'sh'

7: 'k'

8: 'v'

9: 'p/b'

To use it, just make images/stories that correspond to the digits you need to remember.

The more absurd the story, the less likely you'll forget.

E.g. pi (3.14159265359 ) could be the images of these objects: mit, rat, lab, Noah, shell, mail, bee. Then just sew them together in a story e.g. someone drops a mit, it lands on a rat, the rat runs up to someone in a lab, it's Noah, he throws a shell, it knocks over some mail which lands on a bee.

I don't use it often, but I like to memorise any 8+ digit door code when checking into a serviced apartment or airbnb, in case I forget my phone and would otherwise be without the code.

3h agoHN ↗

Funny, I just finished that book.

They were using a few more mappings per number for instance:

0: 's', 'z', soft 'c'

1: 't', 'd', 'th'

6: 'j', 'sh', 'ch', soft 'g'

etc

The problem I have, is that they present them from 1 to 0, and the first 4 have some mnemonic logic added to them: a bar in 't' for 1, two bars down in the 'n' for 2, three in 'm' for 3, and the 'r' from fouR in 4.

Great. And then mnemonic logic goes out the door. 5: 'l'. Ah. A single bar. Err.. is it 1 or 5..? 7: 'k'. Imagine the K looks like a 7. Ok, maybe.

So the mapping itself starts getting confusing. Unless you do what they claimed all along the book you shouldn't do: rote memorization.. Which was grinding my gears a bit..

4h agoHN ↗

Learning an entire Mozart sonata is probably easier. How much engineering there is in the memorizing or in the composition I don't know, a lot?

4h agoHN ↗

A lot of professional musicians memorize tons of music habitually. It's not very hard to be completely honest.

Mozart only wrote like 20 piano sonatas and about the same number of violin sonatas. It's no exaggeration to say that most concert pianists or violinists probably know at least 5 of them just as a matter of course because they will have learned them at some point in their musical education and someone who specialised in the classical period would probably know all of them. My wife learns tons of repertoire when she's performing as most of her concerts are completely from memory and this includes a vast range of repertoire from the middle ages through very complex 20th/21st century music.

Conductors often memorize monumental works as part of their preparation. Eg Zubin Mehta conducting Bruckner's 8th from memory age 89. That's a way way bigger piece of music than a Mozart sonata - super long and with massive forces. https://parsikhabar.net/music/zubin-mehta-at-89-still-comman...

This is the same as how chess grandmasters know literally hundreds or possibly thousands of games. Extreme example: David Howell tests Magnus Carlsen https://youtu.be/eC1BAcOzHyY?si=I-xJEo4NQUkLPDQ0

...or jazz musicians know hundreds or possibly thousands of standards.

You kind of have to know these things to perform. That being said with memorizing music you have a lot of structure that makes it easier whereas memorizing digits of pi or e you are learning a transcendental number so it may as well be random. You have to impose whatever structure you can, which must surely make it harder.

3h agoHN ↗

I never found a real life use case for memory tricks. Would be curious to hear if someone has.

8m agoHN ↗

I will give you an encrypted message, from which you will be the transport medium, and will bring it across the border. No signals to flag alarm ...and you also wont know what it means...

3h agoHN ↗

I used a memory palace for my A-Level Law exams. I was able to remember names and details for up to 250 different cases very easily, in fact so easily it felt like cheating.

The trick is to embrace incredulity. The more bizarre and strange the “tags” you assign to what you remember, the easier they stick in your head. It feels daft and cringeworthy, but it really, really works.

For this, however, I’d argue a memory palace is overkill. And I still don’t know how well it lends itself to remembering numbers by rote.

Consider this: how many telephone numbers have you memorised?

I can recall four of my own, each of my parents, my wife, and a handful of home phone numbers too.

That’s easily 100 digits in a specific order. Perhaps it’s possible to chunk the 100 digits of pie into smaller pieces, and memorise them like phrases, just as we do with phone numbers.

2h agoHN ↗

I know pi to 50 places learned through lots of repetition. I've always been good at remembering numbers though.

I don't find the memory palace tricks helpful at all though. I think that is a consequence of my Aphantasia and something I only realised recently. I can't visualise a memory palace so placing things in it is impossible!

1h agoHN ↗

I’m on the complete opposite part of the spectrum from aphantasia, but also don’t find the memory palace concept useful. Actually, I find any trick to memorize things to be a detriment to actually remembering things effectively! I still have to go through the whole alphabet song, instead of having the order internalized :)

On the other hand I learned 15 decimals of pi as a kid through pure rot training and feel they are way more internalized

40m agoHN ↗

These memory trick posts are always interesting to read for someone with Aphantasia. Most of the tricks require visualization which is impossible for me. Memory palace means I have to now remember double the things. The rooms in the house and the thing I've placed in the room.

20m agoHN ↗

NASA requires 15 decimals of pi for interplanetary navigation. On the range of 16 bn miles to Voyager 1 it gives them calculations being off by 0.6 inch. For universe-sized circles they need 37 decimals of pi.

Trying to remember 100 digits of pi won't give you any advantage in cognitive functions apart from memorizing 100 digits of pi, for a little while. Better spend your time elsewhere.

https://www.jpl.nasa.gov/edu/news/how-many-decimals-of-pi-do...

14m agoHN ↗

None of these techniques are new, they were just described here in $50 words and in triple the time necessary.

I can teach you right now, the first 50 digits of Pi, after the 3 and the comma. And with almost zero effort. Just memorize the text below...

Congrats you little, little genius.

# ===========================================================

"A poem I write carefully to encode every new digit silently, reminding curious beginners how we can decipher each number in hidden text you see.

Whenever you go through beautiful green wilderness at midnight, remember when I carefully recited a simple paragraph and practiced repeating the numbers again; I remembered."

# ===========================================================