HackerTrans
TopNewTrendsCommentsPastAskShowJobs

adhami

no profile record

comments

adhami
·28 วันที่ผ่านมา·discuss
it's possible! although many of the constraints in this blog were because we wanted to work with ast module in Python. If we were allowed to create our own types, we can do so much better. I think ruff has an even faster walk by those standards.

It seems bandit is using some decent optimizations already, looking at the `@test.checks("Call")` seems like they already captured some easy wins.

The largest win honestly would be using the same ast.walk for multiple rules, which we also did, but not mentioned in the blog.
adhami
·28 วันที่ผ่านมา·discuss
only because I'm too lazy to learn how to write C with Python, if anything Rust wasn't helpful with all of those unsafes