Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I’ve used Java my entire career. I have seen a custom string type nor a post advocating it in Java.


Well, I see I left the word “not” out which makes this a little more confusing. Oops.

It’s supposed to be “I have NOT seen”.


Never seen one for C#, either.


Apologies for the plug haha

https://github.com/U8String/U8String

With that said, implementing it is not easy, especially in terms of ensuring it is as fast as built-in string or faster (because the project goal is to be faster than built-in string and Go implementation, and match or outperform Rust's String where applicable).

I can't imagine something like that being possible in e.g. Java or most other high-level languages - they simply do not expose appropriate low-level primitives when you need a "proper" string type.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: