upvote
Switching from native [TS + prettier + eslint], to [tsgo + oxfmt + oxlint], lowered my laptop's average temperature by 10-15 degrees at work.
reply
Damn winter is gonna hit harder this year
reply
Try running a 4k fireplace video instead.
reply
as a gif!
reply
Make it a real-time fireplace animation implemented in Typescript.
reply
Void Zero put out a tsrs package too.
reply
You laptop will turn into a freezer if you switch to HTML sprinkled with some plain JavaScript.
reply
Still need to format and lint it and I'd hope people are using TypeScript these days and keeping JavaScript only as a compile target.
reply
If you are only doing extremely basic JS with something like stimulus (for example with Ruby on Rails), then you really don’t NEED typescript. Since you are probably keeping your JavaScript usage to a minimum anyway.
reply
Then you need a formatter, linter and type checker for Ruby. And those are probably as slow as the pure JS ones.
reply
switching one of our repos from eslint to oxlint:

- macbook pro: 50s => ~30ms

- ci server: 3m => ~6s

(edit: 30ms, not 3)

reply
deleted
reply
You are not linting your node_modules by chance, are you?
reply
Nah, its just chonky codebase with a bunch of rules.
reply
just the move from eslint to oxlint saved my team something like 3.75 days of compute per calendar day.
reply
> switching from [dynamic language] to [statically compiled language] saved around 150h of compute time per week in our runners.

Sounds like you may have discovered a surprising path to greater compute/power efficiency.

reply
For reference, that's roughly one week per week.
reply