FullStackPerfAnalysis 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 👇
FullStackPerfAnalysis retweeted
There's an epidemic of people building software that doesn't work.
Testing has become a lost art. We are now in the era of "impressive demos," and that's all that matters.
I was raised with an old-school mentality:
1. By default, we assumed whatever we built didn't work
2. We proved it worked by writing tests
3. We only delivered when those tests were successful
I grew up in a time when computers always did what we wanted them to. This has changed with AI models.
With Large Language Models, you can't ensure the outcomes are the ones you'd expect. These models are unreliable. They are hard to control.
This makes testing and evaluation more important than ever.
I think there will be a reckoning. Some of the demoware today will go nowhere, and people will stop trusting software.
We need to get back to the fundamental principles of working software.
FullStackPerfAnalysis retweeted
GPUs are expensive and hard to come by. When you get them, you want to squeeze every last juice out of them. zymtrace optimizes GPU & CPU workloads to help reduce COGS. Check it out!
Ok, today's the day! We're happy to release our first beta of zymtrace, a new self-hostable CPU+GPU profiling platform for the age of heterogeneous compute.

ALT Frictionless whole-system visibility across all major languages. Drop in zymtrace agent and identify the most expensive lines of code across your entire fleet —your code, third-party libs, interpreted or native, running on CPU or GPU. If it's using cycles, we help you improve its efficiency. The image then contains icons for: NodeJS, V8, Zig, .NET, C++, Scala, Python, Perl, Ruby, Java, Go, Rust, Nvidia CUDA, and PyTorch.
FullStackPerfAnalysis retweeted
In June 2022, operating under the codename Jaguar, Keeta Network demonstrated a public test of over 2M TPS with sub-second settlement times - running entirely on Amazon Web Services (AWS).
Since then, we’ve transitioned to Google Cloud and conducted additional tests in collaboration with their Office of the CTO. While the public recording shows 2M TPS, internal testing has since reached as high as 13M TPS.
Unlike other networks, Keeta doesn’t rely on sharding, partitioning, or deceptive throughput claims. It’s a single, unified network built to scale to the demand of global finance.
Watch the 2022 test:
youtu.be/npFF34myFTQ?si=XPmk…
$KTA
FullStackPerfAnalysis retweeted
I don’t really like distributed databases. They’re too complex, not elegant, and often very fragile. Even from a theory perspective, like queuing theory, they can’t truly solve problems like performance unstability and high tail latency.
FullStackPerfAnalysis retweeted
Soon, we'll automate the process of writing code.
But coding is secondary. It's always been a means to an end—a way to communicate our ideas to a computer.
Your ability to analyze a problem is the most important skill you can build.
FullStackPerfAnalysis retweeted
If you've worked on database performance testing, this paper is one of the best. It will give you new insights and make you think in new ways.
FullStackPerfAnalysis retweeted
Go’s sync/atomic is underrated
lightweight, lock-free, thread-safe, and perfect for performance-critical code
FullStackPerfAnalysis retweeted
Replying to @svpino
I remember the times when I was making software in Motorola 68000 assembler for Atari ST. I could fit a complete demo, including self-made music, graphics etc. under 1 kilobyte. One could write entire utility programs with mouse + keyboard GEM desktop GUI in just mere 10-50 kilobytes. A lot of programming happened with Devpac macroassembler and its handy MonST debugger (showing the memory in real-time). I used all sorts of crazy tricks from self-modifying code to having lots of own interrupts interact with each other.
So back ~35 ago I did even desktop GUI programming with macro assembler and only later moved to C programming language. Later to Python & JavaScripts. And now to writing long English language prompts & definitions to LLM to do the coding. And even the simplest programs usually eat megabytes of RAM!
Things really have changed.
FullStackPerfAnalysis retweeted
Case Study: Meta’s Strobelight Leverages eBPF to Reduce CPU Cycles and Server Demands by up to 20% – eBPF ebpf.foundation/case-study-m… #ebpf
FullStackPerfAnalysis retweeted
TIL about the Linux function splice(2) that moves data between file descriptors without actually copying the data.
This piece of magic was available since 2006.
FullStackPerfAnalysis retweeted
In go if you do an io.Copy between two compatible TCPConn it will use splice under the hood. Super cool and also how people can write fairly trivial reverse proxies that are quite performant.
FullStackPerfAnalysis retweeted
How do you fit a 250kB dictionary in 64kB of RAM and do lookups? For reference, even gzip -9 cannot compress this file beyond 85kB.
In the 1970s, Douglas McIlroy at AT&T had the same challenge when implementing the spell checker for Unix.
Instead of relying on generic compression techniques, he analyzed the distribution of the data and came up with a compression algorithm which was just 0.03 bits away from the theoretical limit of possible compression. To this day, it remains unbeaten.
The story of how he designed this dictionary lookup from the ground up is a lesson in software engineering. How you consider the resource constraints in front of you and design your solution to run within them.
In my latest article I take you through each step of the design of this ingenious algorithm right from the scratch.
(Check replies for the link)
FullStackPerfAnalysis retweeted
Replying to @Parikshit_K_
“A well structured monolith is easier to build, test and observe than distributed micro services “ haa to lode tera stack overflow copy pasted spaghetti naa well structured hai naa hi testable hai
FullStackPerfAnalysis retweeted
Replying to @bytebytego
A good architecture is one that meets the needs of the project, is cost-effective, and can handle the expected load while providing a good user experience.
Earlier, in the case of Stack Overflow, their architecture was a monolith running on on-premise servers. This might seem contrary to popular belief, but it works well for them. This shows that a well-designed and well-optimized monolith can be just as effective as a microservices architecture.
FullStackPerfAnalysis retweeted
How will you design the Stack Overflow website? If your answer is on-premise servers and monolith (on the right), you would likely fail the interview, but that's how it is built in reality!
𝐖𝐡𝐚𝐭 𝐩𝐞𝐨𝐩𝐥𝐞 𝐭𝐡𝐢𝐧𝐤 𝐢𝐭 𝐬𝐡𝐨𝐮𝐥𝐝 𝐥𝐨𝐨𝐤 𝐥𝐢𝐤𝐞
The interviewer is probably expecting something on the left side.
1. Microservice is used to decompose the system into small components.
2. Each service has its own database. Use cache heavily.
3. The service is sharded.
4. The services talk to each other asynchronously through message queues.
5. The service is implemented using Event Sourcing with CQRS.
6. Showing off knowledge in distributed systems such as eventual consistency, CAP theorem, etc.
𝐖𝐡𝐚𝐭 𝐢𝐭 𝐚𝐜𝐭𝐮𝐚𝐥𝐥𝐲 𝐢𝐬
Stack Overflow serves all the traffic with only 9 on-premise web servers, and it’s on monolith! It has its own servers and does not run on the cloud.
This is contrary to all our popular beliefs these days.
Over to you: what is good architecture, the one that looks fancy during the interview or the one that works in reality?
--
Subscribe to our weekly newsletter to get a Free System Design PDF (158 pages): bit.ly/bbg-social




























