8,634 karma · joined Jun 23, 2011 (15y ago) · 7,679 submissions
comment 2y ago · link · parent
But perhaps I have failed to understand what you are trying to say? Such is the trouble with communication.
comment 2y ago · link · parent
You did say, as interpreted by the reader, that his poor communication skills makes him come across as a tyrant, and therefore that is what makes him a tyrant.
That may not be what you meant, but in that case we're right back to you and the poor communication skills of your own.
comment 2y ago · link · parent
Or perhaps that's not what you are saying at all, but are just a poor communicator yourself? If that's the case, I am surprised you are not more sympathetic to the folly of interpreting such statements without other context. Dunning-Krueger effect strikes again, I suppose.
comment 2y ago · link · parent
Consider the following in a hypothetical language that bears a striking similarity to Typescript. I will leave you to decide if that was on purpose or if it is merely coincidental.
interface Comparable { isGreaterThan(other: Comparable): boolean }
function max(a: Comparable, b: Comparable) { return a.isGreaterThan(b) ? a : b }
As usually defined, if this language accepts any type with an isGreaterThan method as a Comparable, it would be considered an example of structural typing. Types are evaluated based on their shape, not their name. This is the canonical example of structural typing! Ignore the type definitions and you get the canonical example of duck typing!!Now, what if we rewrite that as this?
interface Comparable { >(other: Comparable): boolean }
function max(a: Comparable, b: Comparable) { return a > b ? a : b; }
Staring to look familiar? But let's go further. What if the interface could be automatically inferred by the type checker? function max<interface Comparable>(a: Comparable, b: Comparable) { return a > b ? a : b; }
That is looking an awful lot like: template<typename T> T max(T &a, T &b) { return a > b ? a : b; }
Of course, there is a problem here. Under use, the following will fail in the C++ version, even though both inputs "quack like a duck". The same code, any syntax differences aside, will work in our hypothetical language with structural typing. int x = 1;
float y = 1.0;
max(x, y);
So, yes, you're quite right that your example is not a display of structural typing. But it is also not a display of duck typing (of some compile time variety or otherwise) either. Here, "quacking" is not enough to satisfy the constraints. In order to satisfy the constraints the types need to have the same name, which violates the entire idea behind duck typing.Which is all to say: Your confusion stems from starting with a false premise.
comment 2y ago · link · parent
The intent was for you to try it in other implementations to see how they optimize the code.
comment 2y ago · link · parent
Reminds me of education. Being from the most educated jurisdiction in the most educated country, everyone is sure we need to fund it, but nobody seems to know what we get from it. The usual suspects (stronger economy, more engaged society, more progressive socially, etc.) that everyone loves to attribute to education lag behind much of the rest of the much-less-educated world...
> The burden of proof should be on the policy maker and subsidizer to ensure the purported goals of spending tax many are met.
The burden on policy markers is simply to keep the bosses (i.e. the general public) happy. The burden of proof rests on the public at large to justify their goals to the policy makers, perhaps, but is that really necessary? If the people want something arbitrary because it makes them feel good, why not? The universe doesn't care.
comment 2y ago · link · parent
package main
import "fmt"
func foo(x *X) int {
return x.y
}
type X struct {
y int
}
func main() {
xx := X{3}
fmt.Println(foo(&xx))
}
Now, gc will give you two different sets of instructions from these two different programs. I expect that is what you are really trying and failing to say, but that is not something about Go. Go allows devirualizing and monomorphizing of the former program just fine. An implementation may choose not to, but the same can be said for C++. Correct me if I'm wrong, but from what I recall devirtualization/monomorphization is not a requirement of C++ any more than it is of Go. It is left to the discretion of the implementer.comment 2y ago · link · parent
Sure, just as we already discussed at the very beginning of our exchange. Glad you able to learn something from our discussion, even if it has taken you an astoundingly long to time to get there. Here I was starting to think you were one of those who reject learning. I am happy to learn that you're just slow.
comment 2y ago · link · parent
My takeaway from your comment is not so much that we need to change the way we discuss, but that we more regularly need to remind ourselves that computers and people are not the same thing. As you suggest, when people have discussions it usually goes well, with all parties more or less wanting "boring" discussion that goes somewhere meaningful. It is when people have discussions with computers but confuse them as being people when it all goes off the rails.
comment 2y ago · link · parent
When considered in its entirety? No. Not at all. Within the curated segment of Twitter I have established? Yes! It is probably the most rational place on the internet that I know of. Those within that curated circle seem to genuinely want to share information in a productive manner without the silly vitriol.
That's the beauty of "the algorithm", I suppose. You can tune it to leave the garbage out.
comment 2y ago · link · parent
The original assertion was: "Apple is BSD based". While we did move to assume Apple means macOS (iOS, et. al), we stayed the course with the remainder. There is nothing about macOS that is BSD-based. Containing some BSD code does not imply that it is the base. macOS also contains curl code. Would you say macOS is curl-based?
Regardless, what you may have missed is the additional context the followed: "not Linux". The parallel to Linux in macOS is XNU. Therefore, if other systems are Linux-based as we are to infer from the original comment, then macOS is XNU-based, not BSD-based. Yes, XNU contains some BSD code, but it is not BSD. It is very much its own distinct kernel maintained independently of BSD-adjacent organizations.
> This conversation isn't advancing anyone's understanding. It's just pedantry.
It could advance someone's understanding if they were open to seeing their understanding advance. I understand not everyone is accepting of new ideas and that many fear learning something new.
comment 2y ago · link · parent
comment 2y ago · link · parent
The users on chatgpt.com are quite good at staying cordial and come off as if they want to seek a genuine understanding. Granted, its UI is a little different from the traditional forum, only occasionally seeing additional users reply but being mostly geared to one-on-one interaction. That said, most discussions on more traditional forums like this one end up branching off into one-on-one discussions anyway, so I am not sure that is a terribly meaningful difference at the end of the day.
> My own attempts have shown the potential audience is small to non existent
Said discussion community has quite possibly become the most popular place for online discussion, so I am not sure about that. Understandably bootstrapping such a service is hard, though. "If you build it, they will come" only happens in the movies.
"Be careful of what you wish for", though. While what you describe sounds nice in theory, it ends up feeling rather sterile when you don't have all the quirkiness of the so-called battles. That's what brings me back here, and deep down that is probably why you are here too.
comment 2y ago · link · parent
But rarely is a topic so simple that "X is Y"; "no X is Z" provides enough information to move someone forward towards establishing a final truth. Even if "X is Z" is a true statement, it almost always lacks necessary context to fully satisfy what the other is in need of. It is hard for us to understand where the other person is coming from.
Furthermore, if you do end up truly convincing someone of something, the topic then becomes boring and they'll just stop engaging, so how do you even know whether the argument was 'productive' or if the other just ran out of free time? Of course, it doesn't actually matter, so...
comment 2y ago · link · parent
comment 2y ago · link · parent
But that means that the content will be tuned to what the author thinks will most likely produce a reaction. Some audiences respond well to insults, others not so much.
comment 2y ago · link · parent
It seems to me the more popular a language, the more poorly written libraries are found in it, which soon starts to draw people away from what is popular to a new language that has a limited library ecosystem thinking they can fix the mistakes they saw last time and make a name for themselves in the process. Lather, rinse, repeat.
comment 2y ago · link · parent
Ultimately every abstraction is leaky. There will never be a solution where you never need to understand how computers work under all circumstances. But my impression is that you can go a lot further in Excel before the stuff going on behind the scenes starts to get in your way? From what I have seen, Excel itself is more likely to get in your way before not knowing how computers work does.