8,309 karma · joined Mar 28, 2012 (14y ago) · 4,782 submissions
comment 1w ago · link · parent
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.
comment 1w ago · link · parent
I'd rephrase that a bit. The biggest threat was from their customers commoditizing them (while Google and Amazon could become competitiors, rest are way more iffy). You know, nVidia actually competing on price instead of relying on locking them in nVidia propietary landscape.
https://www.wsj.com/tech/ai/nvidias-days-as-an-open-checkboo...
comment 1w ago · link · parent
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.
comment 1w ago · link · parent
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.
comment 1w ago · link · parent
comment 1w ago · link · parent
Simplicity is a good metric but a lousy goal. If simplicity was a good goal, Brainfuck dialect would be the most used language.
> Different programmers want contradictory things out of programming languages
True to an extent but there are universal qualities every good language shares.
Ease of use; good performance even in naive cases; good safety/security even in naive cases; expressivity; fast compile times; conciseness.
comment 1w ago · link · parent
[1]https://www.techspot.com/news/114315-dark-gpus-amazon-show-l...
comment 1w ago · link · parent
The issue is the mindset, "I (Zig creator) don't need it nobody else does."
comment 1w ago · link · parent
>But you can also argue that letting the choice of function be implicit means that a programmer who wants/needs to keep track of exactly what every line of code is doing
Use LSP/IDE then ctrl+click operator. Boom. You see what it's executing.
Idea is to create abstraction that make it easier to operate on a more complex level. If you need that level of micro-managing just stick to assembly.
comment 2w ago · link · parent
Their S1 was taken down. As of today (https://www.reuters.com/world/china/global-markets-view-euro...) This is the second time they changed it.
Apparently they file it with Claude.
comment 2w ago · link · parent
Gonna pushback on this. Adoption is proof of fitness to purpose in the Worse is Better way.
> Nix has steep learning curve
Not what I meant. I meant more in praise vs. how little you can see it in the wild.
> I am not ignoring them, I speak from my heart
I believe you speak from the heart, the same way I believe NixOS people speak from the heart. Or OpenBSD enthusiasts. The issue isn't the passion, but the way that passion biases you to overlook some corner.
I suspect in Lisp/Clojure case it's the lack of a large community and performance issues. Either the community is uninterested in making Lisp fast, too splintered or ignoring benchmarks.