Eric Zhang Profile Banner
Eric Zhang Profile
Eric Zhang

@ekzhang1

9,880
Followers
337
Following
367
Media
1,245
Statuses

I think about systems and interaction design. Currently working at Modal. recently: reading group, furniture, photos, biking, dataviz, wandering the city

New York, NY
Joined June 2021
Don't wanna be here? Send us removal request.
Pinned Tweet
@ekzhang1
Eric Zhang
2 years
Just ran fastseg (semantic segmentation library I wrote when working at Nvidia) on @modal_labs and it worked right out of the box, on cloud GPUs It only took like 5 minutes to write, and in hindsight I should've tried this a lot earlier 🤠
Tweet media one
Tweet media two
7
15
275
@ekzhang1
Eric Zhang
8 months
today at work: this bug had been in the code for an entire year
Tweet media one
124
134
6K
@ekzhang1
Eric Zhang
1 month
so i saved $27000/year by removing 10 lines of code this morning they were print() statements
66
98
5K
@ekzhang1
Eric Zhang
8 months
remind me in 20 years that I never want to send an email worded like this in my life. >:( why do some of the most accomplished and incredible people in our industry, still act in bizarre, unpersonable ways. everything is about power, it seems.
Tweet media one
204
68
3K
@ekzhang1
Eric Zhang
7 months
I am very excited to share a project I've been working on since April 2022 sshx is a secure web-based, collaborative terminal. On an infinite canvas, with live cursors. It's packaged as a 3 MB binary. Just run `sshx` and share a link. :)
80
341
3K
@ekzhang1
Eric Zhang
8 months
at work today: all of our users' web traffic is now being handled by a small service I wrote in Rust it is using like 1% of a CPU and went from 10,000 errors/hr to 0 errors/hr, so far here's to hoping that our problems are fixed
53
53
2K
@ekzhang1
Eric Zhang
1 year
Saturday afternoon at MIT, learning algebra with friends
Tweet media one
20
39
2K
@ekzhang1
Eric Zhang
2 months
wrote a kernel module that makes 90% of the bits coming out of /dev/random equal to 1
Tweet media one
27
58
1K
@ekzhang1
Eric Zhang
2 months
Someone wanted me to join the two co-founders' startup as the first backend engineer, for 0.30-0.70% of equity I politely declined, then he asked me to recommend someone — dude, why the hell would I recommend someone I value to carry your whole operation for 0.3% ownership
51
45
1K
@ekzhang1
Eric Zhang
7 months
when I was in school at Harvard, I dated a couple girls from MIT for a bit and remember whispering in their ear “i’ll handle the business side.” it was the lamest joke ever but they laughed anyway, and you know, maybe that’s what matters
19
13
784
@ekzhang1
Eric Zhang
3 months
I never knew ‘IOI gold medal’ would ever be a credential people talked about, it's niche, but here we are anyway the difficult skill I learned from IOI was just: how to stare at problems and not get scared when you don’t immediately know how to solve them, i.e., fear of failure
6
15
713
@ekzhang1
Eric Zhang
1 year
Updated my personal website this week. It's been 3 years since I last did this, and my feelings about web design & type have certainly changed since then! Something visually simpler, let my work speak for itself.
14
19
591
@ekzhang1
Eric Zhang
1 month
only on /r/rust do you see a post "I made this project to learn the basics of Rust" and the project is a 2D numerical PDE solver for the nonlinear Schrodinger equation and renderer written from scratch
6
20
501
@ekzhang1
Eric Zhang
2 months
update on the 0.02% bug: it was because nginx, by default drops connections every 10,000 HTTP requests. why can't computers just work!!
19
3
457
@ekzhang1
Eric Zhang
9 months
coming soon, to a city near you! (if your city is NYC) —moving forward with making Harvard Systems Reading Group come to NYC. I'm mainly looking for a venue, but hope we'll be able to start soon :)
Tweet media one
30
16
414
@ekzhang1
Eric Zhang
11 months
going to industry events with startup people makes me sad, honestly many founders who hang out at these things are not very nice. in 30 mins: - sized up by importance - got unsolicited career advice i miss running systems reading group — kinder, more welcoming yet passionate
17
5
341
@ekzhang1
Eric Zhang
7 months
This is written in Rust and Svelte and is my longest-term side project yet. It was a lot of systems + interaction design work :)) But it's available now. Try it out 💚 website at and source code here:
8
18
314
@ekzhang1
Eric Zhang
5 months
just got another openai recruiter cold email for a second role. no other company does this afaict i wonder if openai’s job postings are just ‘for show,’ and the actual applicants are people sourced from aggressive random outreach
18
1
284
@ekzhang1
Eric Zhang
7 months
I was honestly worried before launching because sshx is kind of hard! It's a globally distributed, fault and partition-tolerant, encrypted in-memory stream multiplexer, with complex UI, on a tiny budget! But my engineering is holding up thus far, will see over the next few days
8
6
288
@ekzhang1
Eric Zhang
8 months
tell me about what you do for work ML researchers: "we're trying to solve consciousness, replace human creativity, and guide the future of humanity over the next 1000 years" DB researchers: "oh yeah we just store lots of keys and values fast"
6
14
264
@ekzhang1
Eric Zhang
10 months
sometimes I think there's not much new to learn in software engineering, versus e.g., research, but then I remember that there are people who have literally been working on a niche but important problem for 16 years and are now mega-experts
3
35
258
@ekzhang1
Eric Zhang
5 months
they never told us that Python packaging is more complicated than the rest of the language combined there are more independent Python packaging tools (pip, conda, venv, pipenv, hatch, setuptools, twine, wheel, poetry, pdm, pipx, build, tox, pip-sync, …) than Python keywords
15
16
255
@ekzhang1
Eric Zhang
8 months
I met someone at a birthday party, and 5 minutes later he started going "well if I can give you unsolicited career advice…" and I immediately said "please do not" I am so proud of myself
9
5
251
@ekzhang1
Eric Zhang
15 days
Week 29 of systems reading group on Sunday, we'll read the Autodidax blog post JAX is the framework most LLMs are trained on, so it's a real production system. But it's also a fascinating work of language design, and this blog post covers how you can make its guts from scratch
Tweet media one
9
15
246
@ekzhang1
Eric Zhang
23 days
being 22 in tech right now is not knowing what the heck ‘Her’ is
12
5
238
@ekzhang1
Eric Zhang
6 months
I'm doing this year's Advent of Code in 25 languages again! This time in alphabetical order Languages are how we express and develop computational ideas; a dialogue between the programmer & designer. I know most of the popular ones, so I picked some cool ideas I'm curious about
Tweet media one
13
10
215
@ekzhang1
Eric Zhang
1 year
Finished my senior thesis on Datalog! The research has been almost 3 years in the works; I write about two programming language systems that I designed and implemented. So happy to have written something up about Crepe & Percival and even have real-world usage examples! 😭
Tweet media one
8
9
208
@ekzhang1
Eric Zhang
2 months
How do you debug something that consistently fails 0.02% of the time, at random?
110
8
206
@ekzhang1
Eric Zhang
3 months
seems like the only times I hear from most college "friends" are: 1. they want me to listen to them complain 2. they want network / do transactional stuff 3. they want a job 4. they want to crash in my apartment then they disappear and I need to message them 5 times to catch up
14
7
194
@ekzhang1
Eric Zhang
5 months
Some initial brainstorming about what a native desktop app for Jupyter notebooks might look like Think it might actually be faster, simpler, functional, and resolve a bunch of my pet peeves (real-time collaboration, lack of autosaving, visual noise in UI, switching to text mode)
Tweet media one
17
6
196
@ekzhang1
Eric Zhang
11 months
This person made a 5 kHz RISC-V computer, in a video game, with 96 KB of RAM and its own Rust driver! What! Also he taught himself how computers work during the project? You can really learn anything online 👀
2
17
193
@ekzhang1
Eric Zhang
9 months
We had a successful, first reading group meeting, reading about the internals of how Git works and writing our own! (partially) Happy that people came :D With that, I'm excited to officially announce the reading group publicly:
5
14
192
@ekzhang1
Eric Zhang
11 months
today at work, I saw this graph and thought for a second I had broken prod, but it was actually just that fast
Tweet media one
9
2
171
@ekzhang1
Eric Zhang
7 months
I might take a break from making user interface-heavy software for developers for a while. Developers are really hard to please! And they don't say nice things very often :') I'll see what my next project leads, there's plenty of ways systems and design make new things possible
16
2
172
@ekzhang1
Eric Zhang
1 year
Demo of a real-time collaborative text editor that stores in Postgres and resolves changes over Redis! Very low # lines of code, no proprietary services, plus server is boring and stateless. I think it's the easiest design to embed OT within a larger app
9
19
166
@ekzhang1
Eric Zhang
2 years
Is anyone interested in writing an extremely tiny mini-{graph database} with me?
41
11
163
@ekzhang1
Eric Zhang
7 months
Man MIT is such a unique place, there are so many people who smile at each other about math and science things while having goals other than “earn $999B”
1
1
162
@ekzhang1
Eric Zhang
9 months
the part of tech culture that I can never agree with is the arrogance with which technologists think they know what's best for the world. they loudly, unapologetically force their viewpoints onto others through power: policy, money, rhetoric, marketing and influence.
9
11
162
@ekzhang1
Eric Zhang
9 months
Why PL — any library with a sufficiently complex API becomes a language. I picture software systems on two sliding scales of internal complexity and external (interface) complexity, where as you move along the second scale, you go from library-ish, to DSL-ish, to language-ish.
Tweet media one
10
16
162
@ekzhang1
Eric Zhang
8 months
i merged my thousandth pull request at work today :o
Tweet media one
5
4
155
@ekzhang1
Eric Zhang
1 year
Life update— Now that I am graduating school, I'll be moving back to NYC in July to continue working here at @modal_labs It's been so fun making cloud compute fast, delightful & accessible over the past 15 months. Let's experiment + build more and see what's comes next :D
11
1
161
@ekzhang1
Eric Zhang
1 year
Twitter algorithm discussion session and back-of-the-envelope latency/cost estimation at Harvard systems reading group today, on a quiet Sunday afternoon :) Can’t believe it’s already Week 18 of reading group
Tweet media one
5
0
152
@ekzhang1
Eric Zhang
1 year
i am now graduated with my bachelor's and master's degrees! the story of this photo features me instructing my roommate on how to use a camera, and now editing stuff for friends while procrastinating on packing my trip to NYC 🫡
Tweet media one
5
0
149
@ekzhang1
Eric Zhang
5 months
Done! This was fun. Merry Christmas, grateful for small language developers :) - Day 20: Tcl (1988) - Day 23: WebAssembly / Rust (2017) - Day 24: Yuescript (2020) - Day 25: Zig (2016)
Tweet media one
1
6
150
@ekzhang1
Eric Zhang
8 months
NYSRG! Week 4! Is about! Databases! so we will read "Database Internals" by Petrov and some other readings about LSM trees, mmap, plus related data structures this session will be hosted by two of our members, mufeez & rama
Tweet media one
6
11
142
@ekzhang1
Eric Zhang
2 months
done with distributed training nysrg session! that was a lot here’s some intro slides for the readings if you’re also a systems engineer and don’t fight multi-armed bandits in your sleep
Tweet media one
Tweet media two
Tweet media three
Tweet media four
5
6
138
@ekzhang1
Eric Zhang
6 months
most people won’t mention this, but you can debug 90% of performance issues with good simulations & print() statements, and another 90% of the rest with some perf / flamegraph results it’s only for the last 1% of issues that you need complex tools; they take time to set up
6
8
137
@ekzhang1
Eric Zhang
1 year
Student visiting Harvard at our reading group meeting today asked "why doesn't McGill have more stuff like this?" and I felt so validated because I am literally the only person who runs a CS learning group of friends like this at my school
2
1
132
@ekzhang1
Eric Zhang
20 days
I think I might be working at a real infrastructure company now
Tweet media one
Tweet media two
3
1
130
@ekzhang1
Eric Zhang
11 months
I’m 22 now! no blog post, but I reread “I Turned 21” from last year. I achieved my goals; also it’s been way better than I expected, mostly meeting people that I’m fond of—a spark of human :) next: to learn, create, and explore in this big gruff intricate gritty breezy place
Tweet media one
4
4
131
@ekzhang1
Eric Zhang
5 months
I tried out a bunch of apps in the Jupyter ecosystem and still am not very happy with them, doesn't feel good yet This helped me crystallize what I actually want though, so here's some initial design principles for Jute
Tweet media one
7
1
130
@ekzhang1
Eric Zhang
2 months
some folks from ny systems reading group today (io_uring) at a nearby shawarma restaurant!
Tweet media one
2
4
131
@ekzhang1
Eric Zhang
7 months
new feature: sshx is now 1000% AI-powered 🧠
Tweet media one
6
8
124
@ekzhang1
Eric Zhang
1 year
i met a guy at a party, he wanted to hang out the next day. so we walk around soho, heard his entire life story, tried to be good-natured, enjoy his company. then at the end he says “i try to keep friends and business very separate. so yeah we can’t be friends.” me >:( wtf
9
2
120
@ekzhang1
Eric Zhang
1 month
man, took all those theory classes in university and I have never once spotted the characters in real life: - expander graphs - Hamiltonian cycle in Erdos-Renyi graphs with Ω(n log n) edges - Nisan-Wigderson PRG - Rademacher complexity meanwhile, TCP congestion control…
4
4
126
@ekzhang1
Eric Zhang
28 days
realizing that modal happens to be a pretty good render farm: call a function for every frame of your animation and render them in parallel on 100 GPUs
2
0
123
@ekzhang1
Eric Zhang
8 months
when I moved to NYC a few months ago, I never thought I’d be able to spend Sunday afternoon with 10 strangers, teaching each other about the guts of virtual machines (read: what are computers?) and writing one with the KVM ioctl interface
2
0
122
@ekzhang1
Eric Zhang
5 months
Wondering why in 2023 you can't just double-click on a Jupyter notebook .ipynb file and have it open in a dedicated, fast desktop app that starts up its own kernel
10
5
121
@ekzhang1
Eric Zhang
5 months
Hm if I made a small native desktop app for Jupyter (Python) notebooks, would people use it? Exploring ideas for an alternate frontend: - Double-click to open any .ipynb file, - Or, connect to a running remote Jupyter host by URL - Real-time collaborative editing in either case
16
0
121
@ekzhang1
Eric Zhang
1 year
The final systems reading group! End to a year of learning with curious people, on a warm, bright weekend afternoon in Cambridge :)
Tweet media one
1
5
115
@ekzhang1
Eric Zhang
8 months
I translated the "Build Systems à la Carte" implementation of different build systems to Python
2
8
115
@ekzhang1
Eric Zhang
2 months
my parents keep asking me why I still have a job if the product is already released "aren't you finished? so when are you going to IPO? next year?" 😅
6
1
116
@ekzhang1
Eric Zhang
1 year
I wrote down a few words about school, my social environment, research, and a recent experience that made me think about this yesterday I honestly was kind of scared to share this publicly, but now I feel like I can, thanks @ronawang for the push
7
6
112
@ekzhang1
Eric Zhang
6 months
4000 today :) — though we will see over the coming few months how people will continue to use sshx
Tweet media one
4
1
111
@ekzhang1
Eric Zhang
2 years
Our over-the-network, persistent blob storage cache at @modal_labs now serves over 100 million requests/day, at an average RT latency of 500 us. It's one of the ways we're trying to get on-demand user containers to start up fast, ideally in under a second.
Tweet media one
2
4
110
@ekzhang1
Eric Zhang
3 months
NYSRG week 21 is about training we're not an ML reading group but I mean, there's too much juicy stuff here, we have to talk about this eventually right
Tweet media one
2
6
109
@ekzhang1
Eric Zhang
2 months
feel like this is the kind of slide I can only make at 2 AM after not having made slide decks for a year
Tweet media one
Tweet media two
2
1
105
@ekzhang1
Eric Zhang
8 days
good ideas that people told me when I was learning programming: - language is irrelevant - computers are smarter than toasters - write code that you'll read later - learn Git - tackle hard problems by lowering them to simpler ones - implementations are today, ideas are forever
5
6
127
@ekzhang1
Eric Zhang
2 months
Things that sound impossible but are actually possible: - going to the moon - editing nanoscale molecules - genome engineering Things that are actually impossible - figuring out if cholesterol is good or bad for people - fixing nyc traffic - making a website that works on mobile
2
2
106
@ekzhang1
Eric Zhang
10 months
I come from open source, places that value inclusivity and learning. So — in startups, I want all of the tech, and none of the wealth/status signaling, mansplaining, power jockeying, and propaganda. It seems a losing battle to talk about kindness & respect in some groups
4
5
102
@ekzhang1
Eric Zhang
2 years
Tiny graph database update #1 : I'm ~5 hours in and have a working parser & basic query executor in Rust. It executes a subset of Cypher. Will first implement most features _correctly_ before exploring anything fancy/new with optimization, design criteria, etc. :)
Tweet media one
5
6
102
@ekzhang1
Eric Zhang
7 months
a lot of my friends dissatisfied with their work turn to traditional creative outlets: art, music, writing, film, etc., with long and growing history sometimes I find them hard to talk to. when they can’t find joy in their own lives, it’s difficult to see the beauty in others
8
4
102
@ekzhang1
Eric Zhang
5 months
NYSRG is back after a hiatus for the holidays :) Next Sunday: in the spirit of reflection, we'll read two classic pieces on 1) bootstrapping and 2) Futamura projections, then a modern take on incremental computation Open to all now!
Tweet media one
3
6
100
@ekzhang1
Eric Zhang
2 years
Released the 100x faster Harvard search today! Getting <30 ms search latency here in NYC; likely same from Boston as well. It's so fast at grabbing data that I added some virtual loading tricks to make your browser renderer not drop frames
11
6
101
@ekzhang1
Eric Zhang
3 months
For NYSRG week 20, we're reading about how computers find things in text — a bit about linear-time suffix arrays (skew algorithm) and then Andrew Gallant's blog post about the `fst` library in Rust
Tweet media one
1
6
103
@ekzhang1
Eric Zhang
1 year
This is unusual but today over half of systems reading group was MIT students I only advertise this on Harvard mailing lists, not MIT ones! And the reading group is at Harvard! On Harvard campus! 2 miles away from MIT! 🤣
2
3
96
@ekzhang1
Eric Zhang
8 months
This week at reading group! we're reading the "Build Systems à la Carte" paper we don't always focus on papers, but this one seems worth it for the clarity it brings. (I'll try to convert some of the code to non-Haskell beforehand) hosted by Val and Fang, two of our members
Tweet media one
2
10
98
@ekzhang1
Eric Zhang
6 months
things that happen as a systems engineer: today I found an bug in I/O virtualization that makes outbound HTTP requests 200x slower. But only: - on Google Cloud - on a specific Linux network para-driver - inside a specific container runtime, and - using epoll_wait/async http 😭
5
4
99
@ekzhang1
Eric Zhang
9 months
second meeting of NYSRG today! 12 people, ML compilers We read the Halide ('18) and PyTorch ('19) papers for context, then MLC book Most controversial part was TVM IR appropriating Python syntax, but endowing it with completely different semantics. People had strong feelings 😅
Tweet media one
4
1
97
@ekzhang1
Eric Zhang
9 months
my friend sent me this screenshot where they link my lecture notes and just call me "Zhang" LOL
Tweet media one
4
1
99
@ekzhang1
Eric Zhang
7 months
A simple network latency UI for the collaborative terminal app! Almost done now, I figured out some tricky failure tolerance & server peer discovery stuff today
Tweet media one
1
1
98
@ekzhang1
Eric Zhang
3 months
when frontend developer makes a bug: a button on a website looks a little funky on screen sizes between 683px and 712px when infra developer makes a bug: time bomb goes off 7 months later and takes down prod at 2 AM
5
0
96
@ekzhang1
Eric Zhang
14 days
in just 2 years at Modal, I’ve already become the only person in the world to simultaneously know how Linux containers work, how file systems work, and how the jammed doorknob to my apartment works
1
1
96
@ekzhang1
Eric Zhang
2 years
Today at @modal_labs in one ops change: I net removed 400 lines of code, made user job startup time 15% faster, reduced our total monthly cloud cost by 20%, and resolved a longstanding flaky TCP problem Moving latency-sensitive systems out of Kubernetes has never felt better
2
7
95
@ekzhang1
Eric Zhang
2 years
So yesterday I got upset that searching for classes as at Harvard is absurdly slow (10s to login, 5s to type, press button, apply filters, …) and I decided "fuck this, I'm a software engineer, let me fix this" so now it's 100x faster sneak peak, will release in a couple weeks
Tweet media one
11
0
94
@ekzhang1
Eric Zhang
2 months
like most people with internet accounts, I am pretty inarticulate and unfunny in real life speech, so I make up for it by doing a lot of personal writing, where I can cultivate words at my leisure writing an essay to myself is also how I make all of my life decisions
3
2
95
@ekzhang1
Eric Zhang
1 year
so many people I meet want to grab coffee and pitch how their startup will revolutionize the world, so few want to spend a leisurely afternoon with me viewing galleries, or walking around the high line, or brooklyn bridge park :(
11
0
95
@ekzhang1
Eric Zhang
1 year
Here's a new project— I just published Rushlight, a customizable real-time collaborative code editor based on CodeMirror. It's easy to integrate into larger apps and runs on your own infra. Just bring a Redis instance and any database.
2
3
89
@ekzhang1
Eric Zhang
1 year
I wanted to give a primer on software architecture at Harvard systems reading group, so we're studying @lichess , one of the largest chess websites… and I made a code scavenger hunt!
2
6
91
@ekzhang1
Eric Zhang
2 months
together we will make software, 20,000 lines of code at a time my 22 year-old realization is that most software is commercial not just because, yes, money— but also, in companies you only need to focus on 1/10 of the process, but an individual hobbyist needs to do _everything_
3
1
88
@ekzhang1
Eric Zhang
2 years
New project: Just released redis-rope, a native Redis module that provides a new data type designed for storing large strings. It gives exponential speedups for string operations — up to hundreds of times faster. Memory-safe, written in Zig, open source.
Tweet media one
2
8
90
@ekzhang1
Eric Zhang
3 months
wonder if the new generous, money-laden sponsors of competitive programming will be AI labs instead of quant trading shops (might take a decade of stability for that to happen though 🤔)
3
2
89
@ekzhang1
Eric Zhang
10 months
Another year of Harvard classes is now available on — the super fast course catalog I made last year with Go/Svelte/Redis Also excited to be handing this off soon to some students to run in the future!
6
6
88
@ekzhang1
Eric Zhang
1 year
what if in the middle of prose, you could hover and see images that recall vivid memories of the past? trying an experiment in combining photographs with text narrative also: come hang out with me in NYC! :D
7
6
85
@ekzhang1
Eric Zhang
4 months
Honestly, if you actually reply back to messages consistently and are nice, and we catch up once and again, you are a pretty darn good friend 😅 my bar is pretty low and I think that's how it should be
2
1
87
@ekzhang1
Eric Zhang
1 year
stumbling around tiny GitHub repos and found possibly the cutest tiny little Python function ever: swop() is like swap(), but it swaps the order of a binary operation 😂
Tweet media one
4
0
86
@ekzhang1
Eric Zhang
9 months
so much talk about building companies, loud voices, what about building •not•companies classrooms, book clubs, reading groups, chamber music, family, self-organizing collaborations, shared trinkets, writings for yourself, … safe places for people to learn and be a part of
0
4
81
@ekzhang1
Eric Zhang
4 months
sometimes I look my changes like this and am reminded of how obsessive your personality needs to be, to work on user interfaces
Tweet media one
4
0
81
@ekzhang1
Eric Zhang
1 month
the actual hard part of software performance isn't writing fast code; it's rather the process of removing slow code all software would be fast if none of its parts were slow. the magic of fast software is just, "we wrote 10000 boring components and none of them are slow"
2
1
79