Post #627228
2026-03-11 09:31 UTC
Been working on improving string handling in WebKit's GStreamer code and wrote about it! Created two new classes — CStringView and GMallocString — for compile-time encoding safety and clear ownership. Pretty happy with the result!
https://blogs.igalia.com/xrcalvar/2026/03/11/reworking-string-management-in-webkits-gstreamer-code/
@igalia
Replies (2)
-
@calvaris@mastodon.gal 2026-03-11 10:11
I also added the information to https://github.com/WebKit/WebKit/wiki/Safer-CPP-Guidelines#use-cstringview-for-non-owning-views-of-null-terminated-utf-8-strings .
-
@xameer@mathstodon.xyz 2026-03-11 09:50
@calvaris@mastodon.gal @igalia@floss.social yes this thing can be better , for all the nearly browsers which re not bigtech owner and can joad js-content