Dan Luu Profile
Dan Luu

@danluu

Followers
45K
Following
2K
Media
895
Statuses
6K

Active on https://t.co/WG71NrsDQk; also trying out https://t.co/DBk2OnBVL1. No longer read replies or notifications here now that tweetdeck is gated.

Joined December 2008
Don't wanna be here? Send us removal request.
@danluu
Dan Luu
7 years
Computer latency: 1977-2017.
Tweet media one
91
1K
3K
@danluu
Dan Luu
1 year
"Unfortunately, a recent software update was not successful. Your vehicle cannot be driven. Please call customer support:"
Tweet media one
1K
4K
36K
@danluu
Dan Luu
10 months
Every once in a while, I think about going to work in the game industry.
Tweet media one
71
765
16K
@danluu
Dan Luu
6 months
A former Apple engineer discusses Google product culture:. > My director wore an Apple Watch and had an iPhone . my VP too. Nobody was expected to eat the dog food and so few did. This was crazy to me coming from Apple .
Tweet media one
134
473
8K
@danluu
Dan Luu
8 years
Google translate, are you ok?
Tweet media one
76
7K
8K
@danluu
Dan Luu
1 year
Current and former Google engineers discuss how Google has changed:
Tweet media one
Tweet media two
62
457
5K
@danluu
Dan Luu
1 year
Long-time Microsoft employees explain changes in Windows: . Designers were handed full control over UX. Engineers who fought for usability over a slick-looking interface burned out and left after repeatedly being overruled.
Tweet media one
119
559
3K
@danluu
Dan Luu
2 years
"Hardcore" engineering at Twitter 2.0: "To address extreme level of data scraping & system manipulation", Twitter added rate limiting on the backend which seems to have created a retry storm from the client that DDoS'd Twitter for at least eight hours.
Tweet media one
38
687
3K
@danluu
Dan Luu
8 months
State of the art anti-cheat techniques:. Roblox detects if you have the string "x86dbg" in a window title (or window?), so kids are changing their display names and discord server names to x86dbg to get people kicked from Roblox.
Tweet media one
Tweet media two
25
407
3K
@danluu
Dan Luu
6 years
When it's easier to put up physical a sign than it is to get Google to stop routing people down the wrong road.
Tweet media one
42
583
3K
@danluu
Dan Luu
3 years
I've find U.S. immigration policy baffling. Back when I was in college, the majority of the top EE students at my university where from China, Korea, or India. Almost all of them wanted to stay in the U.S., but most couldn't, so they went home and worked as engineers at home.
75
296
3K
@danluu
Dan Luu
3 years
One thing it took me quite a while to understand is how few bits of information it's possible to reliably convey to a large number of people. When I was at MS, I remember initially being surprised at how unnuanced their communication was, but it really makes sense in hindsight.
37
387
2K
@danluu
Dan Luu
2 years
One of the things that I think is sad about the decimation of Twitter eng is that Twitter was doing a lot of interesting (and high ROI) engineering work that, at younger companies, is mostly outsourced to "the cloud" or open source projects. A few examples off the top of my head:.
@danluu
Dan Luu
3 years
The value of in-house expertise.
Tweet media one
28
636
2K
@danluu
Dan Luu
3 years
Willingness to look stupid.
Tweet media one
72
322
2K
@danluu
Dan Luu
5 years
The growth of command line options, 1979-Present.
Tweet media one
47
844
2K
@danluu
Dan Luu
3 years
My favorite conspiracy theory:. Cryptocurrencies are an effort by time travellers to forestall the AI apocalypse via computational terrorism, making compute, storage, etc., too expensive for superhuman AIs to exist. Satoshi's identity is secret to prevent untimely termination.
23
295
2K
@danluu
Dan Luu
2 years
It's astounding how bad the web is without an ad blocker. This tax on using the web, which funds most of it, pays most of the highest paid programmers ($750k/yr+), etc., doesn't impact programmers, who almost all use ad blockers. The whole situation reminds me of the lottery tax.
32
175
2K
@danluu
Dan Luu
7 years
An empirical study on the effect of open offices: "the volume of face-to-face interactions decreased significantly (approx. 70%)".
Tweet media one
27
707
1K
@danluu
Dan Luu
3 years
Amazing analysis by a Columbia professor, showing that Columbia has climbed the USNWR college rankings by submitting fraudulent numbers for. * class size.* % faculty with PhDs.* student : faculty ratio.* instructional spend.* retention & graduation rates.
Tweet media one
Tweet media two
Tweet media three
Tweet media four
34
340
1K
@danluu
Dan Luu
3 years
An optimized FizzBuzz implementation, for the next time someone asks you to write FizzBuzz in an interview:.
Tweet media one
Tweet media two
14
289
1K
@danluu
Dan Luu
3 years
I got promoted a while back, which really hammered home how arbitrary promos are. I was promoted 2x in 3 years at my current job (senior -> staff -> sr. staff) vs 0x in 3 years at other BigCos. AFAICT, the main difference was that my manager made sure I got credit for my work.
12
55
1K
@danluu
Dan Luu
3 years
Workarounds people use to overcome "technical" limitations intended to prevent name changes:.
Tweet media one
Tweet media two
Tweet media three
Tweet media four
8
219
1K
@danluu
Dan Luu
3 years
I'd been wondering why I see so many people who haven't done anything particularly interesting with "Forbes 30 under 30" on their bio and it turns out there's Forbes has 41 "30 under 30" lists per year, so it's actually "1230 under 30 each year".
17
74
1K
@danluu
Dan Luu
6 years
Really nice answer to the question "in layman's terms, what exactly does it mean to be transcendental? How would a transcendental number be different from an ordinary number, say 5":.
Tweet media one
12
330
1K
@danluu
Dan Luu
3 years
I feel like it would be useful for programmers, as a field, to acknowledge that humans are bad at programming. This is because techniques for improving at things you're bad at are different from techniques for improving at things you're good at.
29
184
1K
@danluu
Dan Luu
3 years
I feel like, if you care about learning, long tenures are highly underrated. In online discourse, a lot of people recommend job hopping frequently specifically to learn a lot and avoid stagnation, but I think that's generally the opposite of correct.
26
136
1K
@danluu
Dan Luu
9 months
"STOP READING IMMEDIATELY".
Tweet media one
11
57
1K
@danluu
Dan Luu
2 years
I find this letter from Carmack interesting in that it summarizes a sentiment I've heard from literally all of the highest impact/most effective people I've talked to at large companies:. You can make a big difference, but you're constantly fighting a self-sabotaging organization
Tweet media one
@ID_AA_Carmack
John Carmack
2 years
I resigned from Meta, and my internal post got leaked to the press, resulting in some fragmented quotes. Here is the full thing:
28
118
1K
@danluu
Dan Luu
5 years
"actually the seed is also a hyper-parameter"
Tweet media one
8
219
935
@danluu
Dan Luu
2 years
Timeline of George R.R. Martin statements on the release date of the next Song of Ice and Fire book:
Tweet media one
31
57
910
@danluu
Dan Luu
6 years
This comment describing how Microsoft responded to a security disclosure in 2010 is incredible:.
Tweet media one
17
364
890
@danluu
Dan Luu
3 years
This comment, by a real wizard of a programmer, on how their cognitive capability was so reduced in the wake of a viral infection that following the instructions on a box of instant mashed potatoes was too complicated for them, is one of the scariest things I've ever read.
Tweet media one
11
89
868
@danluu
Dan Luu
4 years
With the exception of my current team, on every team I've been on since git became popular, I've been "the git person". You know, the person that people WHO ARE PROFESSIONAL PROGRAMMERS go to when their git repo gets into a state broken state and they need an "expert" to fix it.
@hhariri
Hadi Hariri
4 years
Git is not a success story. Git is a failure as a system with a crap user experience that forces you to learn more about the tool you're using that about getting your work done.
39
99
850
@danluu
Dan Luu
5 years
I've never understood the position that people shouldn't unionize because they're rich. You know who's even richer? Execs. Tech companies have monopsony hiring power and use it to capture most of the value of labor, enriching execs with mid 8 figure to mid 11 figure net worth.
13
166
773
@danluu
Dan Luu
8 years
We lost candidates due to recruiter screens like this when I was at Google. Not sure why they persist in doing them.
56
532
743
@danluu
Dan Luu
5 years
Where does engineering rep come from? Here's a Google engineer slagging on Amazon engineering, which they say mediocre. I don't think this is an unusual opinion, I've heard this from people both inside and outside of Google. Google has the best engineering, Amazon is mediocre.
Tweet media one
43
138
737
@danluu
Dan Luu
3 years
Great, practical, guide on how to write a successful library. When people talk about why X is great, most trendy topics are highly overrated and the topics in this post are highly underrated.
Tweet media one
Tweet media two
Tweet media three
8
109
724
@danluu
Dan Luu
5 years
This kind of thing is why the CPU startup I worked for allowed users to change the CPUID: you get huge performance gains from putting GenuineIntel in CPUID(0), but it would be a copyright violation to distribute our CPU with GenuineIntel in the CPUID.
Tweet media one
8
258
696
@danluu
Dan Luu
9 years
Want to write to your filesystem safely? No worries, the manpage has all the latest rumors
Tweet media one
12
379
701
@danluu
Dan Luu
3 years
Why don't more programmers work half-time? Proportionally, I know a lot more medical professionals (doctors, physios, etc.) who work half-time or less. I've heard people say it's hard to find part-time programming work, but everyone I know who's actually tried has succeeded.
84
43
690
@danluu
Dan Luu
3 years
The value of in-house expertise.
Tweet media one
12
154
687
@danluu
Dan Luu
2 years
Twitter is, of course, mostly on prem. The now gutted HWENG group was so good at designing low power servers that, in a meeting with Intel folks, discussing reference designs vs. what Twitter was doing, the Intel folks couldn't believe the power envelope Twitter achieved.
7
74
667
@danluu
Dan Luu
8 years
This might be the best written job posting I've seen. Not only do they disclose comp, they're candid about negatives
Tweet media one
Tweet media two
11
250
657
@danluu
Dan Luu
7 years
Python integers 🤣.
Tweet media one
45
436
652
@danluu
Dan Luu
7 years
A compiler that produces executables that are valid ASCII text, by @tom7. The README and the compiler.exe are the same file:
Tweet media one
8
287
633
@danluu
Dan Luu
8 years
That time a slashdot reader fixed a multi-day global Microsoft/hotmail outage by paying an overdue domain invoice.
Tweet media one
5
377
624
@danluu
Dan Luu
3 years
it's odd to have a set of policies that results in giving a huge number of people a very valuable education and then not allowing them to stay in the U.S. This is arguably good from a global equality standpoint because it reduces U.S. concentration of wealth & power, but.
7
29
622
@danluu
Dan Luu
3 years
Offer numbers from someone with 5 years of experience, currently making $300k/yr. They consider offers of $500k/yr so low that they're not even worth mentioning. I shopped around a bit and have found similar, in that large companies are willing to offer me >= 2x what I'm making.
Tweet media one
38
74
648
@danluu
Dan Luu
10 months
Interesting comment about SGI leadership knowing about the problems they were facing and still being unable to come up with a way to handle them.
Tweet media one
18
50
637
@danluu
Dan Luu
3 years
It's funny how wrong basically every public take about Twitter from the commentary class is, e.g., here's a blue check who's a fellow at a think tank saying that all Twitter needs to do is pay its AWS bills (serving is on prem and most cloud spend is GCP) and it will run itself,
Tweet media one
19
46
602
@danluu
Dan Luu
3 years
Despite the market already seeming bonkers high then, it has gone way up since then. E.g., a friend of mine who was "senior" at Google (there 4 years with no promo) now makes $750k/yr and got a level bump for changing jobs after FB and another company got into a bidding war.
11
66
619
@danluu
Dan Luu
8 years
Most of the web really sucks if you have a slow connection.
Tweet media one
31
326
586
@danluu
Dan Luu
4 years
This pair of blog posts that blows up the idea that you can benchmark by running a warm-up period and then taking the last N results without looking at the underlying data are some of the best performance blog posts I’ve ever seen:.
Tweet media one
Tweet media two
Tweet media three
9
155
596
@danluu
Dan Luu
11 months
How web bloat impacts users with slow devices:.
Tweet media one
18
129
605
@danluu
Dan Luu
2 years
A pattern it took me way too long to see is that people who are extremely mercenary and behave as if duty/loyalty/honesty/etc. don't matter to them often make extremely basic mistakes as a result of not understanding that other people aren't as mercenary as them.
@altluu
Dan Luu
2 years
A funny thing about the concerns about saboteurs, comments about lazy devs, etc., is how many people I've talked to who, just before they left, went the extra mile to make sure the site stays up as long as possible without intervention.
13
78
581
@danluu
Dan Luu
2 years
Lots of people in my mentions saying things like "Elon is cleaning house! Lazy bums are getting what they deserve!", as if Twitter employees are getting a much deserved comeuppance. Since people don't seem to understand what the bums at are getting, here's a short primer:.
9
53
553
@danluu
Dan Luu
3 years
A funny anti-pattern is that management track has better career prospects than IC track in expectation, leading people who want career advancement to switch to management when their IC career stalls out. On average, people I've seen switch for that reason are poor managers.
12
52
571
@danluu
Dan Luu
4 years
This thread about math reminds me of a fallacy I frequently see in systems design, where some people believe that, because they've created simple primitives, the resultant systems that are built on top will be simple and easy to reason about.
Tweet media one
10
95
558
@danluu
Dan Luu
9 months
Interesting to see users working around the lack of tactile buttons in some modern cars:
Tweet media one
14
45
570
@danluu
Dan Luu
1 year
See also, automotive engineers fighting against designers who want headlights to look nicer but work less effectively and/or blind people in other vehicles:
Tweet media one
5
42
555
@danluu
Dan Luu
2 years
An interesting thing about this claim is that not only is the implication wrong, Twitter probably has better evidence of its wrongness than any other company in its size class could have.
@elonmusk
Elon Musk
2 years
Btw, I’d like to apologize for Twitter being super slow in many countries. App is doing >1000 poorly batched RPCs just to render a home timeline!.
7
40
526
@danluu
Dan Luu
3 years
What are software "shims" or "tics" people use to work around hardware/software issues? Some examples of what I mean:. In the web's early days, I reflexively hit "select all; copy" constantly because apps would error out and browsers didn't preserve text when you hit "back".
66
40
522
@danluu
Dan Luu
2 years
Funny to see VCs who generally rail against government intervention making the case for a bailout of Silicon Valley Bank now that there's an intervention that would directly help them and their friends. Socialism for me, capitalism for thee.
10
57
513
@danluu
Dan Luu
9 years
People say you should work at startups because that's where the interesting work (and money) is. That's backwards!
16
162
527
@danluu
Dan Luu
3 years
When I first heard this, I thought it was odd, but having since paid attention to what happens when VPs and directors attempt to communicate information downwards, I have to concede that it seems like the MS VPs were right and nuanced communication usually doesn't work at scale.
4
15
528
@danluu
Dan Luu
5 years
Algorithms interviews: theory vs. practice.
19
144
506
@danluu
Dan Luu
3 years
I remember having conversations with people when I was in school (20y ago) about how these policies had to create thriving EE industries in other countries, causing problems for U.S. companies down the line. No one disagreed at the time and this played out exactly as predicted.
11
29
491
@danluu
Dan Luu
9 years
Programming blogs e̶v̶e̶r̶y̶o̶n̶e̶ ̶m̶u̶s̶t̶ ̶r̶e̶a̶d̶ you might like:.
10
157
494
@danluu
Dan Luu
8 years
Another leap second, another slew of outages. Handling time correctly is hard!.
Tweet media one
Tweet media two
13
309
475
@danluu
Dan Luu
3 years
Of the best engineers I personally worked with in college (on class projects, etc.), all but one wanted to stay in the U.S. but wasn't allowed to due to visa rules. From my university's standpoint, international students were great because they paid high tuition/fees, but.
5
13
468
@danluu
Dan Luu
2 years
The new stuff in the Twitter algorithm is wild. "author is elon", "author_is_republican", "author_is_democrat", etc., are explicit terms that are special cased.
Tweet media one
19
86
482
@danluu
Dan Luu
3 years
The container throttling problem.
Tweet media one
15
70
477
@danluu
Dan Luu
3 years
Some benefits of simple architectures. or, if you prefer a more exciting title,. The unreasonable effectiveness of simple architectures.
Tweet media one
12
95
470
@danluu
Dan Luu
3 years
reducing U.S. share of wealth/power seems antiethical to the goals of the people who are advocating for immigration limits which result in highly productive folks being forced to leave the U.S. (it aligns with other goals, but the impact of this one seems larger in the long run).
4
11
455
@danluu
Dan Luu
3 years
The Twitter change where they switched everyone from their choice of timeline to ranked timeline reminds me of a question: why don't social media companies react to negative signals from users?. The change trained me to stop checking the app since it filled my feed with garbage.
11
63
449
@danluu
Dan Luu
2 years
I wonder how much waste has been eliminated by Yann Collect creating zstd. When I ran the numbers at Twitter, which is tiny compared to the huge tech companies, switching to HDFS to zstd was ~ mid 8 figs/yr. Across the world (not annualized), it seems like must be >= 9 figs?.
10
60
472
@danluu
Dan Luu
7 years
There are a billion active Android devices running an Android version that's two or more years old. Approximately 0% of those devices will get updated.
28
325
440
@danluu
Dan Luu
6 years
I was shocked to find out that Steve Klabnik is the lowest paid person on the Rust team because of how obviously high impact his work is, but I guess I shouldn't be surprised considering how non-programming non-management work is compensated in tech.
Tweet media one
7
89
438
@danluu
Dan Luu
3 years
What successful (say, $1B+) tech companies use an architecture that's basically a monolith (as opposed to a service-oriented architecture)?. Some famous examples of this are Etsy ($20B) and Stackoverflow (acquired for $1.8B), but there are probably other examples?.
81
45
454
@danluu
Dan Luu
2 years
The project led by the PM director who bragged about how many hours they work and sleeping in the office hit their deadline and shipped. The product charges people who sign up but it doesn't actually work. But they technically shipped. The best kind of shipped.
@GergelyOrosz
Gergely Orosz
2 years
On one end, impressive that this new, verified feature got built and shipped in a week, people working 84 hour weeks. On the other: it doesn’t work. I’m a Twitter Blue subscriber. The new app tells me I now have a verified checkmark. But I don’t. Fast work, but sloppy work.
Tweet media one
11
52
434
@danluu
Dan Luu
3 years
I learned a lot in my 8-year long stint I couldn't have learned in 2 4-year long stints, and this recursively applies to every shorter duration I've worked. Seeing the real impact of decisions down the line has value for anyone who wants to build anything of lasting value,.
5
31
431
@danluu
Dan Luu
3 years
Individuals matter.
Tweet media one
13
98
424
@danluu
Dan Luu
5 years
But when I looked at execution speed on actual projects (via backchannel communications), AWS was smoking both us and Google. In one case, I heard that they got the idea for a project from our product announcement and they still shipped before we did.
4
41
426
@danluu
Dan Luu
5 years
So, about that desperate covid-19 related shortage of COBOL programmers in NJ that I've seen written up in six different publications.
Tweet media one
4
186
394
@danluu
Dan Luu
7 years
It's interesting to see how "algorithm" has become a bogeyman among people who write about tech, even people who tend to be relatively well informed. It's as if people want "algorithm" to become the new "radiation".
Tweet media one
23
126
404
@danluu
Dan Luu
3 years
The fear was that if they said that they needed to ship fast and improve reliability, reliability would be used as an excuse to not ship quickly and needing to ship quickly would be used as an excuse for poor reliability and they'd achieve none of their goals.
2
26
419
@danluu
Dan Luu
8 years
Programming books you might want to consider reading. Or not.
13
120
412
@danluu
Dan Luu
2 years
I find it funny that, looking at writing that's "about" productivity, there's overwhelmingly more written about tech/tooling choices than about emotional management (seems like at least 100:1) when emotional management dominates tech choices at typical margins in industry.
3
53
410
@danluu
Dan Luu
2 years
I often marvel at the dynamic range of productivity that's out there. Once upon a time, a programmer wanted to make an online Dominion implementation, so they did it as a "weekend project". To this day, it's the nicest interface I've used for any online board game,.
@danluu
Dan Luu
2 years
IIRC, originally used some kind of fancy cloud-based solution and then switch to running on a single machine in the guy's apartment and had better uptime than most companies with fancy multi-AZ and multi-region setups.
9
49
408
@danluu
Dan Luu
3 years
I think I failed an interview at FB a long time ago (~2013) because of this. The interviewer asked me how you can write deadlock free code, and I told him that there's this thing people say about taking/releasing locks in order, but there are places where that won't save you.
@rygorous
Fabian Giesen
3 years
Same re: other properties you might think you have, like deadlock-freedom because you obey a proper lock hierarchy. In the model that's true, in actual reality the best you ever get is some statistical guarantees.
14
50
402
@danluu
Dan Luu
3 years
When reading discussions about tech comp, people often talk past each other because they have different mental models. This thread is an attempt to convey some mental models that people who want higher compensation might have.
3
45
402
@danluu
Dan Luu
3 years
I recently heard some advice from someone in eng leadership to an IC to avoid performance work since it's a career dead end. I find that interesting because it seems to me that performance work seems like one of the most straightforward ways to make "senior staff".
24
36
398
@danluu
Dan Luu
3 years
Productivity and velocity.
Tweet media one
26
38
399
@danluu
Dan Luu
2 years
There’s something I find unreasonably entertaining about seeing what memes, etc., people in other fields pass around, e.g., HVAC techs:
Tweet media one
Tweet media two
Tweet media three
Tweet media four
4
34
377
@danluu
Dan Luu
4 years
LRTs: it's funny how frequently people leave because their employer forces them to interview elsewhere if they want market rate comp. I've heard the justifications for this, but if you do the math on this, I don't it works out even as a pure cost savings play.
Tweet media one
7
38
375
@danluu
Dan Luu
3 years
People who've worked at (non-dysfunctional) small companies describe what big companies feel like after having worked at a small company (h/t @hyperpape):.
Tweet media one
Tweet media two
Tweet media three
19
54
381
@danluu
Dan Luu
3 years
One of the funniest (to me) things I learned at Twitter was that peak global load is early in the morning in American zones because North American Twitter users use the site during work hours and Asian Twitter users use the site after work, so the alignment of those is peak usage.
4
24
380
@danluu
Dan Luu
2 years
Has anyone made even a cursory attempt at figuring out false positive / negative rates for interviews?. I tracked down how well a number of people we rejected are doing in cases where I had some visibility into the rejection reason and the reason was wrong most of the time.
30
23
370
@danluu
Dan Luu
3 years
Cocktail party ideas.
Tweet media one
29
55
373
@danluu
Dan Luu
9 years
We only hire the b̶e̶s̶t̶ trendiest
16
199
360