Lukas Wirth

@lukaswirth.dev

Rust Engineer at @zed.dev rust-analyzer team lead Sponsor my rust-analyzer work here https://github.com/sponsors/Veykril

It is so easy to tell if someone used claude to write a PR. 60% of the diff is comments that explain nothing of value? Yep, must have been a claude model

Love a package getting stuck in customs for 4 weeks for it to just get sent back because I have never been informed by customs about the package ...

Starting the morning by having to review a pull request that merely changes a complex regex. Thus my morning is already in shambles as I am tasked to review a change in an unreadable language.

super excited to see the proc-macro server RPC rewrite being worked on, once this here is finished it should allow us to implement all the remaining proc-macro features (except for `expand_expr`)! And afterwards we'll be tackling parallelization! github.com/rust-lang/ru...

This proc-macro server change coupled with the other cache priming improvements I landed this week cut the time it takes for rust-analyzer to finish its initial indexing by 35% on Zed! It's still 53 seconds, but hey, it was at 80 seconds before so ...

Turns out the TokenStream implementation of rust-analyzer's proc-macro server is super slow when it comes to one of the most common proc-macro operations: concatenation. I noticed that in Zed's codebase, there were ~4 derives that just straight up together took 8 seconds to expand in rust-analyzer.

It's finally here. Zed is available on Windows. Built from scratch, and rendering at 1 million pixels/millisecond. Download it today 👇

Bild

They should add a lint to clippy that warns on lines that contain too long string literals for rustfmt to handle. I should not need to hunt for string literals to break down with `\` manually just to get rustfmt working again 😒