Fan of Douglas Adams, Emmy Noether, and Gilberto Gil. Cyclist. Professionally interested in designing energy efficient computers. BSc in EE, and PhD in CS.
Pergunta necessária: quantos dos grandes jornais brasileiros já publicaram, até agora, um perfil (ou uma matériazinha sequer) sobre Leonardo de Moura, o brasileiro formado pela PUC-Rio responsável pela criação e desenvolvimento do Lean?
Resposta: nenhum. No máximo, uma mençãozinha honrosa em alguma coluna escanteada de jornal, por mera caridade do colunista que a escreve. No exterior, porém, já abundam longas reportagens sobre Leonardo de Moura. Há até mesmo um livro que, recém-publicado este ano, traça, em tom biográfico, a história desta tecnologia e de seu criador.
Sem esta linguagem de programação, que é também um provador de teoremas, jamais teríamos hoje a demonstração da hipótese de Riemann, a solução das equações de Navier–Stokes, a refutação da conjectura do Jacobiano e tantas outras centenas de resultados matemáticos surpreendentes obtidos nos últimos meses por meio do uso de inteligência artificial.
It’s a bit easier to just explain how we got here.
In the old days, memory and CPU ran at the same speed. The laws of physics make it incredibly hard to ramp up the MHz of the CPU while keeping physically separated memory chips in sync. The distance is just too far for the electricity to travel in time available.
The solution was to manufacture a small amount of memory on the chip that is in sync with the chip. Then access the rest of the memory as an external device. Sort of like a linear hard drive. That on-chip memory became the L1 cache and the external chips became DRAM main memory as we know it today.
The second problem was the sheer size of RAM was making it hard to keep the CPU fed. The amount of RAM in the L1 cache was too small. And making it bigger wasn’t a very good option from a price and scaling perspective.
So a faster bit of RAM that was physically closer to the CPU was invented. Slower than L1, but faster than main memory. This sped up operations that were too large to fit in the L1.
Thus L2 was born and eventually moved onto the CPU die rather than being a separate chip on the motherboard.
The final piece of the puzzle isn’t about individual CPU performance at all. As CPUs became multi-core, the cores would fight over which one was accessing main memory. A bit of a “dining philosopher’s” problem.
Even worse, if data was moved between cores, the first core had to send it all the way back to main memory before the second core could read it.
The solution was to create a large chunk of fast memory that was shared between the cores. This acted as a staging point to share memory, and also acted as a place to buffer copies from main memory. The staging point could request a bit more than needed from main memory under the theory that reads would stream from main memory. That way data was available before the core even needed it.
This space became the L3 cache. The only singular cache in today’s CPUs. Each core has their own L1 and L2 caches, meaning there are as many copies of L1 and L2 as there are cores.
And that’s how we got to today’s 3-level cache.
@skdh Exactly! Everyone worships quantum computing, but Landauer & Bennett already showed us a smarter path: thermodynamically reversible computing. Why is no one paying attention (except Vaire startup)?"
60 years ago this month, the Fast Fourier Transform was created, a powerful tool for image compression & data analysis.
Watch a classic MIT breakdown of FFT, perhaps the most-taught algorithm at the Institute: https://t.co/R7zdspBswx
v/@MITOCW
One sign of an immortal artist is feeling like you know the artist without ever meeting that person. I never came close to meeting David Lynch, but through his art, I felt like I knew him. He inspired me at times when I had zero inspiration & he changed not just how I view Cinema, but how I view life. Lynch gave me hope that anything is possible. For that, I will miss him dearly.
Cinema is David Lynch.
In 2016, researchers at the University of Adelaide tested Kurt Vonnegut's theory that, "There’s no reason why the simple shapes of stories can’t be fed into computers."
They took the emotional arcs of 1300+ novels from Project Gutenberg, turned that into data, used modern tech to analyze the emotional arcs, and then identified 6 patterns seen over and over again in western storytelling.
Here they are:
1. Rags to Riches (rise)
Your classic underdog tale. A humble, hardworking peasant climbs the mountain to pull the sword from the stone.
• Rocky
• King Arthur
• The Pursuit of Happiness
2. Riches to Rags (fall)
Maybe the saddest story of them all. A journey from the highest of highs to the lowest of lows.
• King Lear
• Citizen Kane
• Scarlet Letter
3. Man in a Hole (fall then rise)
A character’s doing fine, gets herself into a huge problem, but figures out how to overcome it. They often end up better than they started.
“You see this story again and again,” Vonnegut says. “People love it, and it is not copyrighted.”
• The Martian
• The Hunger Games
• Shawshank Redemption
4. Icarus (rise then fall)
The hero goes on a meteoric rise up New York (or some other) society, calls everyone “old sport,” and throws the wildest parties in town. Then reality sets in, and he realizes he’s too close to the sun.
• Macbeth
• Great Gatsby
• Death of a Salesman
5. Cinderella (rise then fall then rise)
I’ll leave this description to Vonnegut:
“We’re gonna start way down here. Worse than that, who is so low? It’s a little girl… the shoe fits, and she achieves off-scale happiness.”
• Red Rising
• Slumdog Millionaire
• The Count of Monte Cristo
This is my personal favorite.
6. Oedipus (fall then rise then fall)
Up until the ~70% mark of the story it looks like things are sunshine and rainbows. Walter White goes from high school teacher to king of the drug lords, if you will. Then all goes wrong. The original fall is often not their doing while the final fall is.
• Hamlet
• Gone Girl
• Breaking Bad
My 3 takeaways:
1. Rags to Riches, Oedipus, and Cinderella rank as the three most popular with consumers. AKA, those books sold the most copies.
2. When you think through a story, give it an emotional shape. Literally draw it.
X axis: Time
Y axis: Ill fortune to good fortune
You might be surprised how much it helps you craft your plot (I was shocked).
3. Vonnegut was a damn genius.