Ask HN: How do you handle jealousy of well-compensated software engineers?
Say you were exceptionally smart as a kid and dreamed of being the next Einstein, Gauss, etc. You went to a top college, by which point you should have realized that you're not really a child prodigy, but you're still among the brightest. Then you went onto a top grad school (in a non-CS field), by which point you realize you're now competing with equally smart people, and there are bound to be losers.
Meanwhile, you discovered programming at a young age and love it. By the time of your grad school career, you've been programming for north of a decade and you're pretty decent, but don't have flashy projects to show for since you've been focusing on your main academic area for the most part.
However, you have software engineer friends/acquaintances who started programming only in college, who are probably less technically capable and less passionate, who nevertheless got into FAANG or similarly well-compensated companies right out of college, pulling in six figures right off the bat.
You? Your grad school stipend is peanuts, and in a crowded field you're looking at multiple terms of postdoc even if you're modestly successful. You're nowhere near any achievement you dreamed of, the future is unclear and probably unexciting (statistically speaking), and your paycheck sucks. It's hard not to feel jealous, especially when research is going nowhere.
So, how do you deal with this? I'm interested in perspectives from both people who stayed in academia, and people who left. Other comments and observations are of course also welcome.