5 ms·
Welcome to the club of doing high performance text in a memory safe language!
by raphlinus 3mo ago
Welcome to the club of doing high performance text in a memory safe language!
- masiulis 3mo agoThere are dozens of us! Dozens! Vello has been a big inspiration and source of knowledge for my own webgpu text renderer, thank you for that!
- WalterGR 3mo ago> high performance text Just strings or rendering strings? If the latter, who are the other members of the club?
- raphlinus 3mo agoYeah, probably should have made a more substantive comment. I'm mostly thinking of the trio of Skrifa, Harfrust, and Parley, but there is other open source Rust work that qualifies as well. There's also, very relevantly, the DWriteCore work from Microsoft. My understanding is that there's been some talk of open sourcing that, but it's still proprietary. There are other things that count as high performance text in memory safe languages, for example implementations in Go, but in general those are not a good candidate to replace C and C++ in environments like operating systems and browsers.
- WalterGR 3mo agoThanks. Skrifa - Skia in Rust. https://github.com/googlefonts/fontations/tree/main/skrifa https://github.com/googlefonts/fontations/tree/main/skrifa , https://developer.chrome.com/blog/memory-safety-fonts https://developer.chrome.com/blog/memory-safety-fonts Harfrust - HarfBuzz in Rust. https://github.com/harfbuzz/harfrust https://github.com/harfbuzz/harfrust , https://github.com/googlefonts/oxidize https://github.com/googlefonts/oxidize Parley - text layout in Rust. https://github.com/linebender/parley https://github.com/linebender/parley DWriteCore - the Windows App SDK implementation of DirectWrite. https://learn.microsoft.com/en-us/windows/win32/directwrite/dwritecore-overview https://learn.microsoft.com/en-us/windows/win32/directwrite/...