Comment on JPEG is Dying - And that's a bad thing | 2kliksphilip
Markaos@lemmy.one 3 months agoWhy not just say Rust? There isn’t really anything else that would provide good enough performance for a browser engine with modern heavy webpages while also fixing some major pain point of C/C++
onlinepersona@programming.dev 3 months ago
Go is not an option? Zig neither? Even Java would be better (it’s used in high-frequency trading).
Anti Commercial-AI license
Markaos@lemmy.one 3 months ago
Zig didn’t come to my mind when I was writing my comment and I agree that it’s probably a decent option (the only issue I can think of is its somewhat small community, but that’s not a technical issue with the language).
My argument against Go and Java is garbage collection - even if Java’s infamous GC pause can apparently be worked around with a specialized JVM, I’m pretty sure it still comes at the cost of higher memory usage and wasted CPU cycles compared to some kind of reference counting or Rust’s ownership mechanism (not sure about the proper term for that). And higher memory usage is definitely not something I want to see in my browser, they’re hungry enough as is.