
Fan of Douglas Adams, Emmy Noether, and Gilberto Gil. Cyclist. Professionally interested in designing energy efficient computers. BSc in EE, and PhD in CS.
Belo Horizonte
Joined July 2008
- Tweets1.5K
- Following1.1K
- Followers157
- Likes5K
Jeferson Chaves retweeted
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.
Jeferson Chaves retweeted
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.
The question: "Why do CPUs have multiple cache levels?" often gets many CS students and professionals thinking and researching.
This article from Fabian Giesen narrates a "cache story" in a relatable way, only to delve into the details - a must-read!
fgiesen.wordpress.com/2016/0…
Jeferson Chaves retweeted
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: bit.ly/4cNMbPm
v/@MITOCW
Jeferson Chaves retweeted
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.
Jeferson Chaves retweeted
The true story behind 'I’m Still Here,' the Oscar contender pushing Brazil to confront its dark past time.com/7204864/im-still-he…
Jeferson Chaves retweeted
I am down with this! #Noether
doi.org/10.1119/5.0229624
Jeferson Chaves retweeted
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.
Jeferson Chaves retweeted
uma americana do tiktok fez um desafio de ler um clássico de cada país do mundo e pro Brasil indicaram pra ela Brás Cubas
a coitada ficou assim:
Jeferson Chaves retweeted
The 3rd Edition of Think Python is available now at allendowney.github.io/ThinkP…
The print edition is available for preorder, expected to ship in June.
What's new? Jupyter notebooks, turtle graphics, doctest, unittest, regular expressions, and a new, full color, parrot on the cover!
Jeferson Chaves retweeted
We have open sourced our "Universal Memory Interface" protocol for chiplets. Includes a complete reference implementation. Spread the word.🙏 github.com/zeroasiccorp/umi
Jeferson Chaves retweeted
In the early 1990s, Brazilian photojournalist Sebastião Ribeiro Salgado was stationed in Rwanda to cover the genocide. The experience left him traumatized.
In 1994, when he returned to his home in Minas Gerais, Brazil, Sebastião was hoping to find solace in the lush green forest of his childhood. Instead, he discovered that his home had turned into a dusty, barren land for miles and miles, devoid of any wildlife.
"The land was as sick as I was. Only about 0.5% of the land was covered in trees," he said.
It was at this time that his wife Lélia Deluiz Wanick Salgado propose that they replant the entire forest. Sebastião supported the idea and the two of them spent the next 20 years planting 2.7 million trees.
This resulted in the recovery of 1,500 acres of rainforest and the site eventually became home to 293 plant species, 172 bird species and 33 animal species, some of which were on the verge of extinction.
Jeferson Chaves retweeted
Rome was not built in a day, but grep was (sort of) 😎
The origin story behind the creation of grep utility is fascinating.
The co-creator of the UNIX operating system, Ken Thompson, developed grep 'overnight'.
Actually, he had a personal tool for searching for text in files.
His department head Doug McIlroy came to him and said, "You know it would be really great if we could look for things in files".
"I'll think about it overnight", said Thompson.
He went back home and modified the code in his tool to fix bugs. Took him an hour at most.
The next day, he presented it to McIlroy and he exclaimed,
"This is exactly what I wanted"
And the rest is history.
If you are wondering why the utility is called grep and not search, there is perfectly good logic behind it 👇
Jeferson Chaves retweeted
Common Probability Distributions That Occur In Nature And Why Mathematics Is The Language Of The Universe
Fundamentally the patterns of the universe repeat themselves making machine learning and AI possible.
Basically, when training ML models, including NNs we are attempting to model the patterns in the data. A good model can predict unseen data points that are part of the original data distribution.
Here are the common probability distributions and where they occur naturally
Symmetry and normal distributions - Nature loves balance. You see it in butterfly wings, faces, and even in physical laws. Natural phenomena that exhibit symmetry often fit well with a normal distribution.
The Central Limit Theorem tells us that the sum of many independent, identically distributed variables approaches a normal distribution. These distributions are characterized by a mean and a standard deviation and everything from human heights, IQ scores, and even the velocities of molecules in a gas follow a normal distribution
Log-normal distribution - If the logarithm of the variable follows a normal distribution, then the variable itself has a log-normal distribution. The distribution of financial assets, or the sizes of particles generated by grinding, blood pressure, and metabolic rates in various organisms often follow a log-normal distribution.
The Log-Normal Distribution often arises from multiplicative growth processes, where you're repeatedly multiplying by some random factor.
Uniform Distribution. This is self-explanatory. All outcomes are equally likely. In the continuous case, the probability density function is flat between the minimum and maximum values. Rolling a fair die, or picking a card from a well-shuffled deck follows uniform distributions
Poisson Distribution It describes the probability of a given number of events occurring in a fixed interval of time or space. The events must occur with a known constant mean rate and independently of each other. It is the go-to for predicting rare events.
Poisson distribution models the number of times a radioactive atom decays in a given time period, or the number of cars passing through a certain point in a given time frame.
If a particular intersection sees an average of 10 cars passing through it per minute, the Poisson Distribution can estimate the probability of 15 cars passing through in the next minute. Similarly in sports like hockey or soccer where goals are rare, you can use distribution to model the number of goals scored by each team.
Bernoulli Distribution, the binary star of the probability universe! Scientifically speaking, it's a discrete probability distribution that models a single experiment with exactly two outcomes, often termed "success" and "failure," and is characterized by a single parameter p, the probability of success.
The flip of a coin, genetic inheritance (you either have a trait or you don't), and the polarization of a single photon (either vertical or horizontal) model this distribution.
Binomial Distribution It describes the number of successes in a fixed number of independent Bernoulli trials, each with the same probability of success.
For example, The number of heads when flipping a coin multiple times, or the number of defective items in a batch of manufactured goods can be modeled with this distribution.
Exponential Distribution models the time you have to wait for the next event in scenarios where events happen independently and at a constant average rate. It's often used to describe phenomena like the time between bus arrivals or the intervals between radioactive decay events.
In essence, it's the go-to distribution for understanding "waiting times" in various natural and man-made systems.
This is a summary of the most common distributions. There are a bunch of other distributions that are related or variations on the above distributions and the image below captures some of them.
These naturally occurring distributions speak to why mathematics is the language of the universe and how you can use it to model and predict its behavior
Jeferson Chaves retweeted
For this #WhitePillWednesday, I wrote a thread explaining why the physical limits of computing imply that it's essentially physically impossible for AI to spiral out of control.
So let's all just relax and enjoy working towards the bright future ahead of us. In harmony with AI.
Jeferson Chaves retweeted
🐍 TODOS os 24 capítulos do Python Fluente Segunda Edição estão no ar!
🦎 pythonfluente.com
Muito grato @paulo_outra_vez!
Muito grato a todas as pessoas que tem enviado correções e melhorias lá no repositório github.com/pythonfluente/pyt….
Continuem!
Última figura do livro:






































