Hacker News new | past | comments | ask | show | jobs | submit login

Imagine you are shipping a library. Say, one that tells you about timezones.

You want your users to just be able to import that library and use it. The fact that you need a bunch of zone info files should be invisible to them.

Maybe those users are in a sandboxed environment that doesn't allow opening files, or you're in webassembly where files don't exist.

It's much simpler to just bake that data into the library.




I’d prefer a library that uses the IANA tzdb directly - so I can download the latest tzdb files for my application and OS without needing to wait for the maintainer of that library to ship an update.


You missed the point. This is not about timezones, but about the need that sometimes happen to embed files into a library.

Parent just chose timezones as an example.


They used time zones to illustrate a point. Of course it’s generally best to use that file instead for that specific use case. Now imagine some data that isn’t shipped with Linux by default. That’s the point they were trying to make.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

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

Search: