Cam McHenry (@cammchenry) header
Cam McHenry (@cammchenry) profile picture

Software engineer @github • core team member https://xitter.cf/t.co/EVvYmmTXSc • opinions are all mine • married to @miranda_auhl • ✝️ • he/him https://xitter.cf/t.co/QFkQwwdcyu

State College, PA
Joined March 2010
Photo by Cam McHenry (@cammchenry)Photo by Cam McHenry (@cammchenry)Photo by Cam McHenry (@cammchenry)Photo by Cam McHenry (@cammchenry)Photo by Cam McHenry (@cammchenry)Photo by Cam McHenry (@cammchenry)Photo by Cam McHenry (@cammchenry)Photo by Cam McHenry (@cammchenry)Photo by Cam McHenry (@cammchenry)Photo by Cam McHenry (@cammchenry)
I am now a core member of the oxc.rs team! github.com/oxc-project Thanks to @boshen_c for being welcoming to new contributors like myself and creating a great tool.
4
2
62
3,879
Cam McHenry retweeted
We also teach how to profile with detailed instructions. @cammchenry just added a section on how to get CPU cache misses with Mac instruments. oxc.rs/docs/contribute/profi…
10
45
4,009
Cam McHenry retweeted
Oxlint is the future. 🏇 From 18.83 seconds to 0.63 seconds. 68k SLOC. 🧙 True magic. Thank you @boshen_c and team. #RustLang
1
7
43
11,403
It was all worth it in the end, this PR should make oxlint much speedier.
1
6
505
This optimization gets better with more rules and plugins: linting the VS Code repository on my M1 laptop with ALL plugins and 430 rules enabled is 1.45x faster and shaves off around 1 second of time. This pretty much best case scenario though: it's more typically 10-20% better.
117
This optimization gets better with more rules and plugins: linting the VS Code repository on my M1 laptop with ALL plugins and 430 rules enabled is 1.45x faster and shaves off around 1 second of time. This pretty much best case scenario though: it's more typically 10-20% better.
Small file optimization: linting the vscode repo is 1.33x faster than the previous version, by @cammchenry Source: github.com/oxc-project/oxc/p…
1
2
365
It's amazing how cache locality can change performance. I updated some code in oxlint to use an iterator and only iterate once, versus three times, and it made the code up to 30-38% faster: github.com/oxc-project/oxc/p…
1
7
789
It also made it 26% slower for another file unfortunately, so I still need to look into why that is:
66
Copilot has been great for coding with one hand. I can hold my 4 week daughter with one hand, and I can type a few letters with my other hand and it usually saves me a ton of keystrokes.
1
1
4
362
Cam McHenry retweeted
Announcing alpha release for Oxc's JavaScript transformer. * Transform TypeScript & JSX to ESNext. * Built-in React Refresh. * TypeScript Isolated Declarations DTS Emit. * Faster, less memory and smaller package size than previous solutions. oxc.rs/blog/2024-09-29-trans…
10
63
9
496
86,194
You should come and help contribute to oxlint! There is a lot of work to do :) github.com/oxc-project/oxc @boshen_c is also doing amazing work with Oxc, you should consider sponsoring: github.com/sponsors/Boshen
Replying to @cammchenry
@cammchenry migrated all oxlint's regular expression rules to AST visits. Look how simple and clean this is. PR: github.com/oxc-project/oxc/p…
3
11
1,982
Cam McHenry retweeted
Replying to @cammchenry
@cammchenry migrated all oxlint's regular expression rules to AST visits. Look how simple and clean this is. PR: github.com/oxc-project/oxc/p…
1
1
6
2,148
Coming back to @rustlang after several years, and everything has improved so much. Things are faster, so many more APIs, and it feels easier to get things to compile.
1
2
106
Also, memory safety aside, I would use Rust just for the ecosystem and tooling: cargo, regex, doctests, docs.rs, criterion, etc.
1
50
I've been thinking about the idea "mini-skills" recently: things you can learn quickly and use right away. What are some of your favorite mini-skills? camchenry.com/blog/mini-skil…
1
64
Here's one my wife showed me that blew my mind: you can convert hourly wage to annual salary by multiplying the hourly wage by 2,000 (assuming ~40/hrs week for ~50 weeks a year). Example: $15/hr * 2,000 = $30,000/yr
44