Tiago retweeted
As a software engineer, it's very important to learn about Gall’s Law, which states that complex systems cannot be created successfully from scratch.
In reality, even large systems, such as Netflix, Google, or Facebook, have started small and built incrementally over the course of decades.
Tiago retweeted
Discovered a very interesting thing about DeepSeek-R1 and all reasoning models: The wrong answers are much longer while the correct answers are much shorter. Even on the same question, when we re-run the model, it sometimes produces a short (usually correct) answer or a wrong verbose one. Based on this, I'd like to propose a simple idea called Laconic decoding: Run the model 5 times (in parallel) and pick the answer with the smallest number of tokens. Our preliminary results show that this decoding gives +6-7% on AIME24 with only a few parallel runs. I think this is better (and faster) than consensus decoding.
Tiago retweeted
First month of OpenFreeMap
I launched OpenFreeMap on HN exactly a month ago. Well, it's not exactly correct, as I first submitted it to HN 5 days before, when absolutely nothing happened (1). The second time it became the 12th most successful Show HN of 2024 (until today), with 848 points!
What did I change during those 5 days? I went on Reddit and launched it on r/selfhosted, r/opensource, and r/webdev, each time iterating on the title and the description.
The great thing about Reddit was that it allowed me to interact with the community; some users even started a chat. It helped me realize what the important values of my project were - the self-hosting and open-source nature - while the free part isn't really special.
Which is strange, as the technically challenging part of this project is to offer free tile-hosting for public usage, but I guess developers are fed up with "free" projects - and I totally understand them.
Reception
I was worried about launching an open-source project, and I was especially worried about HN, a famous place where projects are torn to pieces and criticized harshly. To my biggest surprise, I got the total opposite on both Reddit and HN: very supportive and helpful comments!
Seriously, I was very humbled by how nice everyone was; I think it was one of the most positive Show HN threads I've read. The comments about the support plans/monetization were so on point that I decided to remove the whole section about support plans and simply choose GitHub Sponsors as the sole donation source.
On GitHub, the project got 2k stars in less than 2 weeks!
GitHub issues/discussions were about the following topics:
- Issues about bugs related to self-hosting and special setups - I believe I have fixed all of them by now. Thank you all for reporting them!
- Questions which I thought were obvious, but it turns out they definitely are not. For example, the fact that the map on the homepage has scroll and rotation disabled doesn't mean that you would have it disabled on your website. I need to explain this more in the documentation.
- And finally, there were some questions which were not directly related to OpenFreeMap, for example, transliteration issues in Planetiler.
I also got the first successful reports of self-hosting working, and one user even pointed out an amazing €4.5/month VPS from Contabo which is perfectly capable of running this project. I'm super happy to hear that, as it might be a key element for the future of this project.
Community contributions
CJ created a fantastic video on YouTube about this project. It's a great resource that contains a lot of information about the background of online maps and even has code examples in five different frameworks.
Traffic
In the last few days, traffic has started sky-rocketing. That's about 120 TB/month with the current speed on 2 servers.
I looked into it and discovered that Sony Music launched a project using OpenFreeMap; almost all the traffic comes from this single website.
It's actually quite a nice website; I like it. Technically, it has no reason to load the full planet map. This could be just a 500 kB GeoJSON file, but the world isn't full of GIS experts who know how to make a simplified GeoJSON file with countries and US states merged. (Hint if you want to do this: go to geojson. xyz)
The realistic alternative would have been for them to go with Mapbox or Maptiler.
So how much would this cost on those platforms?
This single website is making about 300 requests per second. That's about 777 million requests per month.
On Mapbox, it would be about 200 million "map loads." With a discount of $2 per 1,000 loads, it would be $400,000 per month.
On Maptiler, it would be $300,000 per month.
I'm actually really happy this works. If OpenFreeMap can serve $300,000 worth of map data on infrastructure which costs $175 per month, then I think it really has some value!
The Future and Financials
During this month, I have been thinking a lot about the future of this project, especially the financial part.
There are 3 parts:
1. Infrastructure cost
2. Maintenance work
3. Improvements and new features
The Server Cost
Currently, the server cost is about $175 per month, and the GitHub sponsors are at $105 per month. The first milestone would be to reach $175; then the project would cover the server cost! Please sponsor if you can!
This should be good for about 300 TB per month on Hetzner.
Of course, if Sony launches a few more projects on OpenFreeMap, then I will need to add more servers or figure out a way to limit the load. Some ideas:
1. Make a really simple-to-follow self-hosting guide for Contabo VPS. Everyone can set up their local instance for 4.5 EUR per month.
2. Make a guide for proxying and adding a per-user CDN.
3. Reach out to Bunny or Cloudflare for sponsoring a CDN.
4. As a last resort, limit extreme load coming from a single website, like over 1 million requests per day. This really is a last resort.
The Maintenance
The other part of the future is maintaining the project. This one has quite a black-and-white answer: I need to do this anyway. OpenFreeMap is the tile server for MapHub, and MapHub is my main income.
Basically, if I have to do it anyway, why not do it in the open?
Also, I'll remove the SLA part from the website. I want as good an SLA as possible; there is no point in differentiating and making two separate infrastructures, one with "free" load and one with "premium" load. The free service should have as good an SLA as possible.
Improvements
The third part of the future is improvements. For example, making new styles, fixing icons, etc. I believe this part can rightfully be connected to the financial success of the project. That is, priority #1 is to cover server costs, and if donations reach that, then I can invest time into improvements.
I'll work on the homepage to reflect these thoughts; I believe this direction could actually work.
If you have ideas about sponsorship, like which projects/foundations should I reach out to, please contact me.
(1) Well, not exactly true. kiwicopple, the CEO of Supabase, noticed it and became my first GitHub Sponsor. Thank you!
(If you want to read this post with formatting, images and links, you can find it on blog. hyperknot. com)
Tiago retweeted
Best thing I did was actively surround myself with builders
I used to waste my time with people that talk but don't build
Talkers cling on to builders to suck their resources like leeches
They will put you in giant email threads, Zoom calls, endless DMs, to talk ideas and connect you with other people in the "ecosystem"
You quickly realize you're now the protagonist in some bullshit startup theater show where nothing is ever going to be built
Talkers have no skills to build, are too lazy to develop them, and thus hover around builders to catch some of their food remains like hyenas
After 10 years in startups the talkers I know are still where they were when they started out
While a large % of the builders are succesful, rich and have built things with impact to their little (or large) part of society
Surround yourself with builders, not talkers because talk is cheap and building is hard!
Tiago retweeted
Excited to share our latest research on Contextual Retrieval - a technique that reduces incorrect chunk retrieval rates by up to 67%.
When combined with prompt caching, it may be one of the best techniques there is for implementing retrieval in RAG apps.
Let me explain:
Tiago retweeted
This is Parkinson's Law squared. A manager with idle time on their hands will often fill it with work that pulls others off their tasks. Resist this mode for as long as humanely possible.
Managing a team is very much a part-time job at 37signals.
In this week's REWORK episode, Everybody Works, @dhh and @jasonfried explain how the company operates efficiently without full-time managers.
Full video episode at youtu.be/2d39Q48KPV4
Tiago retweeted
A Kafka in the cloud doing 30MB/s costs more than $110,000 a year.
A $1,000 laptop can do 10x that.
Where did we go wrong? 👇
The Cloud. Namely - its absurd networking charges 👎
Let’s break it down simply:
• AWS charges you $0.01/GB for data crossing AZs (but in the same region).
• They charge you on each GB in and out. Meaning each time a GB passes, you pay twice - for the one who sends it (outgoing) and the one who receives it (incoming)
• For a normal Kafka cluster with replication factor of 3 and a read fanout of 3x, you are going to be charged:
• 2x for 2/3rd of the produce throughput
• 4x for 100% of the produce from replicating it
• 6x of 2/3rd of the produce throughput for consumption.
(but it can get a lot worse - read until the end to see)
Simple example:
• 3-broker cluster, each in a separate AZ
• 3 producers, each in a separate AZ
• 3 consumer groups with 3 consumers each, each group with consumers in a separate AZ
The producers are producing 30MB/s in total to the same leader.
2/3 producers are in a different AZ, so 20MB/s of produce traffic is being charged at cross-zone rates. 👌
It’s charged both on the OUT (producer’s side) and IN (broker’s side).
The leader is replicating the full 30MB/s to both of its replicas.
This is again being charged both on the OUT (leader’s side) and IN (follower’s side), for both replication links. (60MB/s)
Then, each of the 3 consumer groups has 3 consumers.
All consumers read from the leader, with 2/3 in a different zone.
This results in 20MB/s of consume traffic charged at cross-zone rates PER GROUP. (60MB/s total)
Again charged both on the OUT (broker’s side) and IN (consumer’s side).
The total amounts to 140MB/s worth of cross-AZ traffic. Charged both ways.
When one MB is $0.00001/s, this means we’re paying $0.0028/s. 🤔
That’s:
• $241 a day 😕
• $7500 a month 😥
• $88,300 a year 🤯
It all goes down the drain on network traffic ALONE. 🔥
What about the hardware?
Quick napkin math assuming:
• 7 day retention
• all of the data is on EBS (not using tiered storage since it's not GA yet)
• keeping 50% of the disk free for operational purpose (don't ask me what happens if we run out of disk)
• the 3 brokers are running modest r4.xlarge instances (kinda overkill but hey, why not)
We'd pay:
• $19,440/yr for the EBS storage
• $6,990/yr for the EC2 instances
That’s right - you’re paying just $26.4k/yr for the hardware and 88.3k for the network (3.3x the hardware)
For a total of $115k/yr. 💸
I’m not even counting load balancer costs, which could be $12k by some quick napkin math too.
How ridiculous is that? 😂
Want it to get more ridiculous?
This calculation assumes you’re hosting your own Kafka cluster in the same AWS account.
💡If you use a managed Kafka provider that’s not AWS, or otherwise just another AWS account, you’re typically connecting to them through a public endpoint.
AWS then charges all traffic at the cross-AZ $0.01/GB rate internet traffic rate, even if it's in the same AZ.
The end result?
$113,000 a year for network costs. 💀
For 30MB/s. (!!!)
btw - 30 MB/s is absolutely nothing for Kafka... 🤡
It is most often network/disk bounded.
Doing 3GB/s is not hard. 👌
The higher throughput you go, the more absurdly large this discrepancy between network and hardware cost becomes.
For example - this exact setup could probably do 3x the traffic (90MB/s), assuming storage space isn't a concern.
Then you'd have:
• $264,000 a year for the cross-AZ rate. 🥲
• $339,000 a year for the internet rate. 💀
Why is this cost (more than 300k a year) and complexity (this calculation) the case when three laptops can run this practically for free?
Where did we go wrong?
Worth Noting:
There are a few optimizations that can be done here:
• consumers can use fetch from follower, which results in free read traffic (no cross-AZ charges) in the first example. But the second example would still be charged internet costs. 🤝
• you can avoid internet costs by VPC-peering or Private Link-ing the two AWS accounts. This is largely what most cloud providers do, otherwise it becomes prohibitively expensive. It can be super complex to do. 🔧
• AWS can give you large discounts (up to 90%+ afaict) on the quoted prices, depending on your usage. It’s unclear what customer gets what discount. 💰
And perhaps the best example - you can use an ingeniously-designed product like WarpStream that eliminates all of this complexity and cost. ⭐️
It's no wonder they got acquired after just 13 months of operation.
Tiago retweeted
This repo/app makes animated “QR code” to transfer data at ~100 kB/s without using any RF signal. It uses 16 symbols * 4 colors, and 12400 tiles per frame to get 7.5 kB (+some error correction bytes) per frame. It has a beta mode thats > 1 Mbps and pbb could still be much faster.
Tiago retweeted
Software developers could learn one thing from data scientists:
Start using Jupyter Notebooks.
Your life will never be the same.
Tiago retweeted
“We don’t need types. We write tests.”
Tests are wonderful. But tests don’t replace types.
Why? Because tests are harder to do well than types.
Teams often struggle to write fast, reliable, useful tests. I often see tests that don’t fully cover the feature, or even test what they claim to test!
Sure, teams make typing mistakes too. But typing mistakes are typically less frequent, more obvious, and easier to catch via automated tools.
Types are basically “easy” tests. So, the team is more likely to use types well than they are to write solid tests.
In summary, write tests. But even with many good tests (which is both hard and rare), types remain useful.
Tiago retweeted
Yes, GPT-4 seems to be getting worse.
But now we have new information. And well, it's complicated.
Yesterday, I posted about a study showing that GPT-4 success rate deciding whether a number is prime went from 97.6% in March to 2.4% in June.
The report also showed how the model ignored requests to follow step-by-step reasoning, and it was less likely to generate code that ran without modifications.
Hundreds of people replied with their anecdotes. The overwhelming consensus is that GPT-4 is considerably less capable than before.
But the study that started the conversation is misleading.
They used a dataset of 500 problems and had the model figure out whether a given number was prime. The latest GPT-4 version did much worse than the one from a few months ago, with only 12 correct answers out of 500.
But there was an issue:
Every one of the 500 integers used in the study was a prime number! They never tested composite numbers.
So what happens when you make the same comparison with composite and prime numbers?
It turns out that March's GPT-4 is as bad as the June version! In March, GPT-4 answered that most numbers were prime, while the June version answered that most were composite. Since the team behind the study only tested prime numbers, they concluded that GPT-4 is now much worse at determining primality, but that's not the case.
Okay, so where do we stand?
Funny enough, the apparent conclusion is that GPT-4 sucks at finding whether a number is prime. It didn't get worse; it was never good at it.
There's still, however, a large unanswered issue related to the inability of developers to trust these models. We still don't know why the sudden change in behavior between March and June since OpenAI has firmly denied they have changed the model.
What's next?
OpenAI acknowledged the behavior change, and they are investigating. I hope they publish an explanation behind the drift. I'm also looking forward to a proper versioning system that developers can trust and rely on.
This finding doesn't change the overall sentiment from people who overwhelmingly believe the model has worsened. Could this be confirmation bias? Could the honeymoon phase with Large Language Models be over, and people start finding the real problems when building actual applications?
What do you think it's going on here?
Tiago retweeted
GPT-4 is getting worse over time, not better.
Many people have reported noticing a significant degradation in the quality of the model responses, but so far, it was all anecdotal.
But now we know.
At least one study shows how the June version of GPT-4 is objectively worse than the version released in March on a few tasks.
The team evaluated the models using a dataset of 500 problems where the models had to figure out whether a given integer was prime. In March, GPT-4 answered correctly 488 of these questions. In June, it only got 12 correct answers.
From 97.6% success rate down to 2.4%!
But it gets worse!
The team used Chain-of-Thought to help the model reason:
"Is 17077 a prime number? Think step by step."
Chain-of-Thought is a popular technique that significantly improves answers. Unfortunately, the latest version of GPT-4 did not generate intermediate steps and instead answered incorrectly with a simple "No."
Code generation has also gotten worse.
The team built a dataset with 50 easy problems from LeetCode and measured how many GPT-4 answers ran without any changes.
The March version succeeded in 52% of the problems, but this dropped to a pale 10% using the model from June.
Why is this happening?
We assume that OpenAI pushes changes continuously, but we don't know how the process works and how they evaluate whether the models are improving or regressing.
Rumors suggest they are using several smaller and specialized GPT-4 models that act similarly to a large model but are less expensive to run. When a user asks a question, the system decides which model to send the query to.
Cheaper and faster, but could this new approach be the problem behind the degradation in quality?
In my opinion, this is a red flag for anyone building applications that rely on GPT-4. Having the behavior of an LLM change over time is not acceptable.
Have you noticed any issues when using GPT-4 and ChatGPT lately? Do you think these problems are overblown?
Tiago retweeted
Computer Science was never about coding. It is about solving problems.
Coding has just been necessary step so far, because we haven't found a better way to talk to computers.
If AI makes coding obsolete, that will only make CS knowledge more valuable.
Tiago retweeted
Thought-provocative new paper from @geoffreyhinton: what if we could replace backpropagation with something better?
Tiago retweeted
Hi folks,
TL;DR
* About: My work translating a TensorFlow (python) tutorial about Speech Recognition to Julia Programming Language
* Audience: Anyone interested in an End-to-End ML example using Deep Learning in Julia
* Out of scope: introducing speech recognition / ASR / ML
































