News for hackers. Stuff that matters.
Re:Jiff 1.0: A datetime library for Rust by poulpy123 on Monday November 16, 2026 @12:54PM (#50520551)
I would have expected a modern language to have an extensive datetime library in its standard library
Re:Jiff 1.0: A datetime library for Rust by tredre3 on Monday November 16, 2026 @12:58PM (#50520610)
Rust doesn't even have an async runtime in its standard library, despite async being part of the language. They believe increased reliance on third party dependencies is better for the ecosystem. Things like supply chain risks or disparate documentation or conflicting dependencies or enormous .cargo are seen as less of a problem than having a built-in API that could go stale one day.
Re:Jiff 1.0: A datetime library for Rust by afdbcreid on Monday November 16, 2026 @01:32PM (#50521056)
As I've said in other places, supply chain risks have nothing to do with things not being in std, only with them not being official - and things can be (and are) official without being included in std.

Documentation certainly has nothing to do with it.

Other factors you mentioned are more convincing.

Re:Jiff 1.0: A datetime library for Rust by hmry on Monday November 16, 2026 @02:57PM (#50522282)
> disparate documentation

Never have experienced this once while using a Rust library. They are all using rustdoc hosted on docs.rs (or locally with $ cargo doc). They all look identical and there's a single global search bar that searches all your dependencies.

> conflicting dependencies

Since you can install two different versions of the same library, this is only an issue if two of your dependencies both expose a transitive dependency with different versions in their external APIs. (E.g. libA returns a Foo 1.0 and libB expects an argument of Foo 2.0) Only library I have ever run into this with is raw-window-handle.

> supply chain risks

> enormous .cargo

These I agree with. Although honestly the supply chain risk is not as big with these foundational libraries as it would first appear, since they are almost all maintained by the same 5 rust compiler developers. Really the only difference is that they're not in the rust-lang github organization and not shipped precompiled with the standard library

Re:Jiff 1.0: A datetime library for Rust by JoshTriplett on Monday November 16, 2026 @03:11PM (#50522485)
> They believe increased reliance on third party dependencies is better for the ecosystem.

Not at all. We just want to avoid having the standard library be "where code goes to die", as Python folks have put it.

We're working on adding more popular APIs from the ecosystem to the standard library. See https://github.com/rust-lang/std-replacement-data/ for a data set tracking what crates have been obsoleted by additions to the standard library; we hope to increase that over time.

Re:Jiff 1.0: A datetime library for Rust by dminik on Monday November 16, 2026 @01:01PM (#50520649)
Any modern language recognizes that some things are inherently complex and will always have tradeoffs that certain users won't be satisfied with and that will be locked in forever. Such modern languages then let users pick whatever approach they actually need by implementing sensible package management.
Re:Jiff 1.0: A datetime library for Rust by darksaints on Monday November 16, 2026 @01:34PM (#50521082)
A default standard encompassing the most common usecases is a completely reasonable approach. Having a date/time library in the standard library does not preclude other libraries, it just makes it the default and keeps ecosystem integration sane. Not to mention the massive potential reduction in supply chain attacks.
Re:Jiff 1.0: A datetime library for Rust by masklinn on Monday November 16, 2026 @02:13PM (#50521643)
Having a date/time library in the standard library actually makes it very difficult for other libraries to take off, and when it's deeply deficient (which is generally the case, turns out time is quite hard) it's actively detrimental to users of the ecosystem, both because it's hell to use and because it teaches them to do things incorrectly. Which then makes an innovative library have a harder time take off, because they need to fix most of their possible users.
Re:Jiff 1.0: A datetime library for Rust by kbolino on Monday November 16, 2026 @02:19PM (#50521739)
In this particular matter, I can't help but be biased against your perspective due to Go. In that language, the desire to meet the "most common usescases" has led to an IMO pathologically bad attitude towards doing this right. In Rust, only the bare primitives are exposed -- Instant, SystemTime, Duration -- but these are sufficient for others to build better abstractions. Whereas, in Go, all of the primitives are hidden behind a "good enough" (it's not) API, and you have to break out O/S-specific code if you want to do better.
Re:Jiff 1.0: A datetime library for Rust by darksaints on Monday November 16, 2026 @02:36PM (#50521958)
Java had the same problem, but then they then fixed with `java.time`, which I believe should be the benchmark for off-the-shelf date/time functionality. Doing it right absolutely is a management and leadership problem, and management/leadership can fail, but when it is done right the result is so much better than the bazaar of 20 half-baked mutually incompatible solutions.
Re:Jiff 1.0: A datetime library for Rust by kbolino on Monday November 16, 2026 @02:42PM (#50522068)
I don't agree that Java had the same problem. Java has had System.currentTimeMillis() since the beginning, and System.nanoTime() since 2005. Meanwhile, in Go, time.Now().Unix() performs a pointless timezone lookup and time.Since(foo) only uses the monotonic clock if foo has monotonic time, a property of time.Time values that you can't interrogate.
Re:Jiff 1.0: A datetime library for Rust by stouset on Monday November 16, 2026 @03:50PM (#50523063)
The gold standard these days is JavaScript’s Temporal, which Jiff and java.time.temporal are descendants of.
Re:Jiff 1.0: A datetime library for Rust by nick__m on Monday November 16, 2026 @05:44PM (#50524544)
you are wrong on ancestry, java.time is descendant of joda-time and temporal the descendant of a js port of joda-time.
Re:Jiff 1.0: A datetime library for Rust by solidsnack9000 on Monday November 16, 2026 @01:02PM (#50520668)
I'm not sure this makes sense for a systems programming language -- but I can see it for an application programming language.

For a systems programming language, Rust is relatively easy to write applications in -- but I suspect standard library choices (and other choices) will be driven by the systems side for the foreseeable future.

Re:Jiff 1.0: A datetime library for Rust by sunshowers on Monday November 16, 2026 @01:03PM (#50520691)
A poorly designed one, maybe. My understanding is that the Temporal model is a very recent invention.
Re:Jiff 1.0: A datetime library for Rust by masklinn on Monday November 16, 2026 @01:25PM (#50520954)
In fairness, Temporal largely follows the model originally defined by Joda, and refined in java.time.
Re:Jiff 1.0: A datetime library for Rust by vips7L on Monday November 16, 2026 @01:33PM (#50521069)
I really enjoy working with java.time. It's one of the best additions to the standard library.
Re:Jiff 1.0: A datetime library for Rust by procaryote on Monday November 16, 2026 @03:56PM (#50523136)
Java has a pretty good approach of promoting the more popular library for a thing to standard library status, with relatively minor changes. It's an easy way to get a really good standard library over time, as it's already proven in practice
Re:Jiff 1.0: A datetime library for Rust by Sharlin on Monday November 16, 2026 @04:41PM (#50523694)
And Java needed two very flawed attempts before finally getting it more-or-less right (and as you said, it was a third-party library in the end that was adopted rather than one designed by the core developers.)
Re:Jiff 1.0: A datetime library for Rust by lambda on Monday November 16, 2026 @01:27PM (#50520987)
The problem with this model is that then you try to build all of the libraries that you anticipate users are going to need in one big go before you release version 1 of you language. Because you're trying to do a lot at once, they don't ask get the proper attention they deserve. Then, because of stability guarantees, you're stuck only making backwards compatible changes in the future (or you risk either constant breaking changes, or big changes where a lot changes at once forking the ecosystem, like Python 2 to 3). So if you made any mistakes in the library, you're stuck with them, only being about to deprecate but never really remove them.

The alternative is to keep a relatively small standard library, and a good package manager, to make it easier for people to iterate on API design in third party packages. Major version changes in a single library can have much less impact accross the ecosystem than standard library packages. Eventually you may get a de facto standard, and sometimes they are then later incorporated into the standard library.

This model isn't without its downsides; it can sometimes mean fragmentation when standardization would help, sometimes these de facto standard libraries can become important enough that they run into the same ecosystem fragmentation issues on major releases. But it allows for more flexibility.

The latter model is what the Rust project decided on for everything outside of the most fundamental time types. Dates and times and timezones are notoriously hard to model in code, and easy to create API designs that are full of footguns, so this is a place where that extra freedom to iterate was more important than standardizing on an API early on.

That iteration has led to a number of different libraries, including time, chrono, and now jiff, allowing for exploring the space of API design to really get it right rather than being stuck with what was available early on.

Re:Jiff 1.0: A datetime library for Rust by Sharlin on Monday November 16, 2026 @04:38PM (#50523666)
Jiff is exactly the reason Rust doesn't ship a datetime library - at least not yet. It took many years and several attempts to get to this point. It would've been an extremely severe mistake to include datetime in std and then be forced to maintain a likely flawed API for all eternity. Luckily Rust devs knew and know better.
Re:Jiff 1.0: A datetime library for Rust by imtringued on Tuesday November 17, 2026 @10:26AM (#50532660)
If the Rust team followed that advice it would have two datetime libraries by now.