Hacker News new | ask | show | jobs
by Ygg2 20 days ago
It does have reflection support on nightly (via comptime aka const only fn see https://goals.rust-lang.org/2026/reflection-and-comptime.htm...), but it's a much more complex feature than was presented in the ThePhD report.
1 comments

Until it actually lands on stable it does not count, it may take years, if ever.

I lost track how many features have been on nightly, there is even a website to keep track of them,

https://doc.rust-lang.org/unstable-book/index.html

So by that logic we don't count C23, until all C implementers decide to follow it?

If Jean Heyd went and implemented it, I wonder how far we'd be into actually having a decent alternative. Because his implementation did the hacky thing via trait abuse, while this actually changes compiler to allow const-only functions. The trait abuse would have exploded Rust's already long compile times.

> So by that logic we don't count C23, until all C implementers decide to follow it?

It seems you are confused and emotionally involved, to the point you're trying to grasp at straws to have something to shout back.

C is specified by an international standard, which then is used as integration target by countless implementations.

Languages such as Rust are different in the way they have no formal specification. Whatever went into the reference implementation is what counts as "the language", bugs and all. At best a specification can be derived from the reference implementation.

The key difference is that a C compiler that doesn't implement a feature and/or deviates from the implementation is considered a buggy implementation, whereas Rust is whatever is currently in rust stable. If something is not on rust stable, it is not rust.

> you are confused and emotionally involved

I think when someone identifies with a programming language, it ends up owning them

Yeah, the Ziglets need to chill. C# and Python pioneered decent operator overloading decades ago.

Allow only a subset of operators to be overloaded to prevent operator soup (see `<<|_|>>` operator). And provide a contracts which push towards correct usage.

Rest is syntax sugar.

Did you reply to the wrong thread? pjmlp is a good critic of Zig and "operator overloading" isn't a topic that was raised here
> It seems you are confused and emotionally involved, to the point you're trying to grasp at straws to have something to shout back.

Not really. If you count when practically you can use a feature then it makes sense to wait till all major implementers use it. For example you can use `type_info` feature on nightly right now. Same way you can use some C23 features on some compilers but not others.

It's more of a light hearted jab at how I hear things work in C-land. "Wow, that feature is amazing!", "It's in C11, so it will be widely used by {current_year + 5}" (keep in mind this is an exaggeration for comedic effect).

Truth is the nightly features ship as fast as there is demand for them and depending on roadblocks encountered. E.g. specialization is highly sought after but effectively unsound until some nasty unsound cases are dealt with. Type_info doesn't seem to have these sort of roadblocks.

ISO standards don't have a reference implementation like Rust, there is no nightly before something gets added into the standard, unfortunely some papers even follow a waterfall model.

Getting the PDF out is the equivalent of landing on stable.

We will never know now, will we?

> So by that logic we don't count C23, until all C implementers decide to follow it?

I mean. I'd sure be reluctant to depend on it until it had trickled out through the ecosystem