Lalit Maganti's Avatar

Lalit Maganti

@lalitm.com.bsky.social

Senior Staff Software Engineer at Google, working on https://perfetto.dev. Passionate about performance and open-source, interested in AI/LLMs especially their effect on the software engineering, writing about all of this at https://lalitm.com

40 Followers  |  8 Following  |  19 Posts  |  Joined: 02.11.2025  |  1.3665

Latest posts by lalitm.com on Bluesky


Rendering 100k trace events faster with exponential search We’ve recently been looking into optimizing rendering performance of the Perfetto UI on large traces. We discovered that there was some inefficiency in our data fetching logic, especially when you’re ...

Hit a case in Perfetto where even the venerable binary search was still too slow! I ended up discovering an algorithm that I hadn't heard of before called exponential search. Wrote up what I learned at lalitm.com/post/exponen...

03.02.2026 21:57 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

They basically solve two problems caused by AI coding agents:
1) Sandboxing to reduce the chances prompt injection ruining your life
2) Having "clean slates" where you can prototype freely and fast
All in all, I'm semi-won over. Won't be paying every month but it's a tool to add to the toolbelt.

29.01.2026 02:49 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Initially, I was very confused why these were getting so much attention given that Linux VPSes have been a thing for 2 decades but after trying them out and reflecting, I think I have an answer.

29.01.2026 02:49 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
The surprising attention on sprites, exe.dev, and shellbox Over the last few weeks, three new products have announced themselves on Hacker News to great success, each making the frontpage: Sprites (fly.io) with 508 votes and hit #7 exe.dev with 457 votes and ...

Just wrote up some thoughts after trying out all the "VPS as a service" products which reached the Hacker News frontpage over the past month - lalitm.com/trying-sprit...

29.01.2026 02:49 β€” πŸ‘ 7    πŸ” 2    πŸ’¬ 1    πŸ“Œ 0
venn diagram. circles labeled "Angled lines" and "Different angled lines", they are filled with patterns of slightly different angled lines. the intersecting area is labeled Moire pattern and indeed has a moire pattern in it.

venn diagram. circles labeled "Angled lines" and "Different angled lines", they are filled with patterns of slightly different angled lines. the intersecting area is labeled Moire pattern and indeed has a moire pattern in it.

I made a venn diagram to help you understand MoirΓ© patterns.

02.01.2026 15:51 β€” πŸ‘ 28    πŸ” 162    πŸ’¬ 10    πŸ“Œ 0

It's the guide I wish I had when I first started 3 years ago.

It covers how to build a comprehensive plain-text accounting system with Beancount. We're talking 18 accounts, 3 currencies and maximal automation.

πŸ”— lalitm.com/post/one-num...

01.01.2026 11:27 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
One Number I Trust: Plain-Text Accounting for a Multi-Currency Household Two people. Eighteen accounts spanning checking, savings, credit cards, investments. Three currencies. Twenty minutes of work every week. One net worth number I actually trust. The payoff: A single, t...

Been quiet for the last few weeks because I was cooking this up!

I know it's resolution season, so if you're engineering-minded and want absolute control over your money (handling everything from daily spend to cross-border investments) I wrote a blog post for you! πŸ‘‡

01.01.2026 11:27 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

You don't have to be a "Solver" dropping into fires. You can be an "Architect" building the foundation.

It’s okay to trade external validation for deep technical ownership.

Full essay here: lalitm.com/software-eng...

04.12.2025 02:27 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

The mental model that saves me is the "Shadow Hierarchy."

I don't worry about impressing my VP. I worry about the Staff engineers in Pixel and Chrome telling their VPs: "We literally cannot debug the next phone without this tool."

That is un-fakeable influence.

04.12.2025 02:27 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

In product, speed is currency. In infra, context is currency.

If you rotate teams every 18 months to chase the "spotlight," you never gain the pattern matching required to solve systemic problems. You fix bugs, but you don't build leverage.

04.12.2025 02:27 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Why I Ignore The Spotlight as a Staff Engineer Lately I’ve been reading Sean Goedecke’s essays on being a Staff+ engineer. His work (particularly Software engineering under the spotlight and It’s Not Your Codebase) is razor-sharp and feels painful...

I’ve been reading a lot of Staff+ advice that says you need to be "fungible," chase executive priorities, and move fast.

As a Senior Staff engineer in infra/devtools, I found that advice is a recipe for burnout.

04.12.2025 02:27 β€” πŸ‘ 2    πŸ” 1    πŸ’¬ 1    πŸ“Œ 0

The secret sauce: gamification (leaderboard + t-shirts), hard limits (no bug >2 days), and critical mass (~40 people creates real momentum).

#EngineeringManagement #SoftwareEngineering #ProductProductivity

23.11.2025 21:57 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Burndown graph of bugs fixed

Burndown graph of bugs fixed

The results? 189 bugs fixed. A 2021 feature request finally implemented (took just 1 day!). Team morale through the roof. And users actually notice the polish.

23.11.2025 21:57 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
We stopped roadmap work for a week and fixed 189 bugs It’s Friday at 4pm. I’ve just closed my 12th bug of the week. My brain is completely fried. And I’m staring at the bug leaderboard, genuinely sad that Monday means going back to regular work. Which is...

Every quarter, our 45-person eng team stops ALL roadmap work for an entire week. No new features. No meetings. Just fixing the small stuff that's been annoying us and our users.

23.11.2025 21:57 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
TIL: Number in man page titles (e.g. sleep(3)) If you do Linux systems programming, you will have likely pored over man pages, either on the command line or, my personal preference, using the excellent man7.org or linux.die.net. I’ve always seen t...

I'm a bit ashamed to say it's only today I learned what the number in Linux man page titles (e.g. the "3" in `sleep(3)`) is: lalitm.com/til-number-i...

17.11.2025 23:24 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
When Good Technical Writing Isn't Enough A response to "Don't Build an Audience"

Just sent my latest newsletter rounding up the last week of posts to my blog: lalitm.substack.com/p/when-good-...

16.11.2025 19:36 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
When Good Technical Writing Isn't Enough Last week, I came across Don’t Build an Audience. It’s a fascinating post and has been occupying a lot of my β€œfree thinking” time. I strongly suggest reading it as it’s well written and excellently ar...

After reading a fascinating article called "Don't Build An Audience", I've been doing a lot of soul searching about the type of technical writing I like and how to get people to see it. Wrote down my thoughts in a new post: lalitm.com/on-why-i-wri...

13.11.2025 10:54 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
CAST(x AS STRING) casts to integer in SQLite Plus TIL: DiΓ‘taxis: Systematic technical documentation

Just sent my latest newsletter rounding up the last week of posts to my blog: lalitm.substack.com/p/castx-as-s...

12.11.2025 00:15 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
CAST(x AS STRING) casts to integer in SQLite As an β€œSQLite consultant” for my local area of Google, I often have people come to me having written SQL like: SELECT CAST(bar AS STRING) AS baz FROM foo and ask me β€œWhy is baz always an integer?! Hav...

After the nth time of explaining to someone why in SQLite `CAST(x as STRING)` casts to an integer, I decided to write something explaining why so I can just point people to it: lalitm.com/cast-x-as-st...

03.11.2025 13:47 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
TIL: DiΓ‘taxis: Systematic technical documentation A few weeks ago, I wrote about β€œThe Documentation System” and how valuable I found it. As I dug deeper into researching how best to apply the principles outlined there, I came across DiΓ‘taxis. Written...

Wrote up a new discovery I made of DiΓ‘taxis (diataxis.fr). It, and it's precursor, the Documentation System, have revolutionized how I think about techinical documentation
lalitm.com/til-diataxis...

03.11.2025 01:09 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

@lalitm.com is following 8 prominent accounts