Repository navigation
rust-anything 3.0: ports you can install, starting with eslint-rs #165
Closed
erkamyaman
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hey everyone 👋
3.0 is out, and it's the release I've wanted to ship since the start: you can finally install a port, not just read about it.
Until now Prettier-in-Rust and ESLint-in-Rust were case studies. Nice numbers, but nothing you could run on your own machine. That changes today:
It's the real ESLint, ported to Rust and checked against the original. Some numbers, all measured:
eslint:recommended+ 26 common ones)Runs on macOS and Linux with a native binary (tested on an M4). If you use a config file, plugins or TypeScript, it quietly hands that run to the real ESLint it ships with, so you get the same output, just without the speedup for now. Windows does the same until I get the binary through npm.
Performance across every port so far
All measured on an Apple M4, every row with output identical to the original:
-O3C, 42 benchmarksffmpeg is the honest one: against hand-tuned C the win is safety, not speed. The ports match C on 226,447 recorded calls and land at about C's speed, while against JavaScript the same approach gives 15x to 32x.
Other things in 3.0:
fuzz, plusrecord --pin-clockfor code that depends on time or randomnessRelease: https://github.com/erkamyaman/rust-anything/releases/tag/v3.0.0
Everything else: changelog
Give
eslint-rsa try and tell me what breaks. And what should I port next? Someone on Reddit asked for GIMP, so babl (its pixel library) is on my list.All reactions