Top all-time · #8368
Stefano J. Attardi
Personal blog · attardi.orgaiprogramming
Stefano J. Attardi's personal blog at attardi.org covers ai and programming. Since 2011, 9 different Hacker News readers have linked it 12 times, most often “We memo all the things (2020)”. It is still writing: the last post was on 2024-11-29, and you can follow it by feed.
Too few sampled comments (7) to say how often HN recommends it.?
Why HN links it
HN readers link this blog for a walkthrough of shipping a PyTorch neural network to iOS via CoreML, an explanation of convolutions as code reuse, and a post arguing for memoizing all React components.
Summarised by Claude from a sample of 7 HN comments that link here. Each comment is marked recommending, critical or neutral (citing without judging); how this works.
Member of technical staff at OpenAI. Writing, projects, and open-source work by Stefano J. Attardi.
Most-linked posts?
- We memo all the things (2020)6 people · 6 mentions · first linked 2020-10-28
- Shipping a Neural Network on iOS with CoreML, PyTorch, and React Native2 people · 2 mentions · first linked 2018-02-13
What Hacker News says?
I love the description of convolutions: > I think of convolution as code reuse for neural networks. A typical fully-connected layer has no concept of space and time. By using convolutions, you’re telling the neural network it can reuse what it learned across certain dimensions. The diagram is great too: https://attardi.org/pytorch-and-coreml#convolution
Comment linking /pytorch-and-coreml
on “Shipping a Neural Network on iOS with CoreML, PyTorch, and React Native”- ot · 2018-02-13
Submitted Shipping a Neural Network on iOS with CoreML, PyTorch, and React Native as a story · 501 points
HN discussion I believe this is what the author tried first in the post. He even links to this test UI where you can compare the "plain math" approach to the neural network: https://attardi.org/pytorch-and-coreml-test-ui/
Comment linking /pytorch-and-coreml-test-ui/
on “Shipping a Neural Network on iOS with CoreML, PyTorch, and React Native”Submitted The Dilbert Black Swan Portfolio: a skeptical/practical guide to investing as a story · 114 points
HN discussionPotentially controversial post on why we memo all the things. https://attardi.org/why-we-memo-all-the-things/
Comment linking /why-we-memo-all-the-things/
on “React Docs Beta – rewritten with hooks and interactive examples”Submitted We memo all the things (2020) as a story · 108 points
HN discussionfrom the article: > If a component has a bunch of props and not a lot of descendants, it can actually be slower to check if any of the props have changed compared to re-rendering the component. (I don't have a source for this claim, but I've seen prominent developers like Dan Abramov make this case on Twitter) It might vary from application to application but this seems like something that could be tested. Also on t…
Comment linking /why-we-memo-all-the-things/
on “Why React Re-Renders”Submitted How I Shipped a Neural Network on iOS with CoreML, PyTorch, and React Native as a story · 10 points
HN discussionCheck out https://attardi.org/pytorch-and-coreml for an example of writing in PyTorch and using ONNX to convert to CoreML.
Comment linking /pytorch-and-coreml
on “A promenade of PyTorch”Submitted Why We Memo All the Things as a story · 2 points
HN discussionI know this is theoretically true, but I've never found this to be the case in practice. Coinbase, in fact, has made it a rule that all things must be put in useMemo. https://attardi.org/why-we-memo-all-the-things/ Facebook is working on an experimental compiler called React Forget that will transparently memoize everything for you. https://www.reddit.com/r/reactjs/comments/rcn5ks/react_forge...
Comment linking /why-we-memo-all-the-things/
on “Flutter is better than React Native in all the ways that don’t matter”React is easy, once you understand why {} !== {} and that it uses reference equality as a proxy for value equality. This is why the absolute simplest thing to do is to just memoize all the things (see https://attardi.org/why-we-memo-all-the-things/ for a deeper dive into this approach). I know that the conventional wisdom (e.g. https://kentcdodds.com/blog/usememo-and-usecallback ) is not to do that, but it's worth n…
Comment linking /why-we-memo-all-the-things/
on “The Useless UseCallback”