|
|
|
|
|
by tstack
962 days ago
|
|
Yes, there were some roadblocks and that made me lose some steam. What's kinda funny is that I spent a lot of time trying to make pretty errors[1] in lnav as inspired by rustc, but had a hard time replicating that in the rust ecosystem. For example, I was using serde to parse lnav's JSON configuration files, but getting serde to report
line numbers (and/or a JSON path) for errors was pretty difficult. I think serde was also missing a way to report multiple errors. Otherwise, I had wanted to do some rearchitecting to do log parsing in background threads since it's largely sync in the C++ version. Doing that in rust was great since the borrow-checker guided me down a sane path. [1] - https://lnav.org/2022/08/04/pretty-errors.html |
|