The Opus codec was developed for low latency speech encoding, but it's incredibly good at all bit rates! 1/2
miniblog.
Related Posts
There are *so many* ways that reading a text file can fail.
Maybe it doesn't exist, it's a broken symlink, it's actually a directory, it's not the encoding you expected, or perhaps you just don't have the correct permissions.
Reporting good errors is surprisingly labour intensive.
In LSP, a position is represented as a line number and a column offset (in Unicode code units): https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#position
This is pretty elegant. You'll get the correct line regardless of encoding bugs, and the editor already knows the line number so it's cheap to compute.
I've released difftastic 0.63! In this release:
* Better parsing of Elixir, LaTeX, Make, Nix, Rust and YAML
* Better detecting of text encoding, especially on Windows
* Prebuilt musl binaries, so you can run released binaries on older systems!
