
Dysfunctional Programming account #1. Senior SWE. I still write C++ for money. ex-Haskell, ex-OCaml. All opinions are my own.
London, UK
Joined October 2013
- Tweets48K
- Following237
- Followers77.7K
- Likes136K
Pinned Tweet
Wanna become a C++ expert? Good news, everyone!
Join CodeCrafters and build your own low-latency in-memory DB.
And because you endured all my shitposts, you get a generous 40% discount. I reward your loyalty.
app.codecrafters.io/join?via…
It's time to git gud. #ad
What’s the stupidest thing you had to do at your job?
At one of my past jobs I had to log in into a custom system daily and put number 8.0 in a cell for today meaning I worked 8 hours.
Today I attended a Linux kernel presentation by some of the smartest people I know.
I never felt more stupid in my life.
I sent code for review to Opus 5.5.
It found 10 improvements.
I had to decline all of them. They were completely irrelevant and only making the code worse.
Man: why are essential constants e and π that?
God: what
Man: the base of a natural logarithm e is an irrational number 2.7182… and π is also an irrational number 3.14159… why?
God: first of all, e=2 and π=3
I must come clean, I still think that the difference between us is obvious and the similarity is just a running joke everyone keeps repeating.
Like, I clearly know who I am of those two, why is it so difficult for others.
20
85
5,930
There’s actually a very simple solution to cache invalidation that works in every use case
I just now realised it explains why I love C++
Since childhood I’m used to reusing every single household item and extending its lifetime.
That’s why winning even nanoseconds in C++ brings joy.
I’ve been surviving my whole life on micro-optimisations.
I wonder if there’s a math theorem saying how rare are prime numbers to approximate the accuracy of this function.
Would be huge if something like that was actually proven recently.
Wow, can't believe Casino Royale in 2006 predicted the $NVDA situation
NVIDIA Board reinstates Jensen Huang as President, CEO and Board Director.
Read the release: nvidianews.nvidia.com/news/n…
To add a bit of nuance to this post (nuance on X, ikr), there's actually a legit use for raw pointers in C++ and here's my perfect ownership and resource management system.
1. No naked new/delete
2. Owners allocate resources only through std::unique_ptr<T>
3. If you need to pass a pointer read-only, you can pass just T* as an argument.
4. You can even store raw pointers if you're confident the owner dies after you.
5. You almost never need std::shared_ptr. It's poor man's GC. Only in super niche cases like "persistent binary trees"
You can easily guarantee 4 at compile-time if you only store pointers in the corresponding std::unique_ptr <T> owner (aka RAII). Returning T* from a method and hoping the user doesn't store it or dies before you is a slippery slope.
I guess irreplaceable people do exist after all
NVIDIA Board reinstates Jensen Huang as President, CEO and Board Director.
Read the release: nvidianews.nvidia.com/news/n…
Just finished watching this talk.
@poteto makes a great point that removing paper cuts is even more important in the age of agents.
They can execute blazingly fast. Meaning that mistakes will compound quicker as well.
my AIE talk is up! come hear how the grok @bot team ships so quickly without compromise on quality
youtu.be/O_zcc6Xl12g
This is such a wild mindset.
I proactively cancel all services I don’t use and track my spending up to b a penny.
I just don’t understand how so many people can simply throw money away.
The entire global economy is being held by a single thread of people forgetting to cancel auto-renewing subscriptions and people being too lazy to move their cash to higher yielding money market accounts.
If every human ran a prompt for an agent to do it for them, the banking system would collapse and the world would explode.












