Better HN
topnewbestaskshowjobs
Log inSign up

randomdata

8,634 karma · joined Jun 23, 2011 (15y ago) · 7,679 submissions

Submissions

comment 2y ago · link · parent

What personal attacks are you referring to? There are no personal attacks found anywhere in this thread, nor would there be any logical reason to bring emotions into it at all.

But perhaps I have failed to understand what you are trying to say? Such is the trouble with communication.

comment 2y ago · link · parent

There is no objective measure of what makes a tyrant. If one comes across as a tyrant, they are a tyrant!

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

Rude and presumptive are traits only of humans. How did you mistake software as being human?

comment 2y ago · link · parent

They would agree, or they would be afraid to disagree?

comment 2y ago · link · parent

So what you're saying is that Matt is a tyrant because he isn't as an effective communicator as DHH is? That's quite an unusual take on tyranny.

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

By common definition, structural typing and duck typing end up being the exact same thing, apart from where they are evaluated. With duck typing obviously being evaluated dynamically, and structural typing being evaluated statically. Therefore, "compile time duck typing" is more commonly known as structural typing.

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

Was it really necessary to try in gc...? We already talked about how it produces different instructions for the different programs. Nice of you to validate what I already said, I suppose, but this doesn't tell any of us anything we didn't already know.

The intent was for you to try it in other implementations to see how they optimize the code.

comment 2y ago · link · parent

> You would think policy makers have an obligation to track this, but they don't. There are no studies, KPIs or attempts at tracking effectiveness of subsidy policy.

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

I like to make that my second job, though, leaving the remote job to be done remotely from that second job.

comment 2y ago · link · parent

What do your eyes indicate? Do I look more like a person or more like a computer?

comment 2y ago · link · parent

Depending on which implementation you use, the following may produce the same instructions as the example above. Go on, try it!

     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

> A decent chunk of the kernel was directly lifted from FreeBSD

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

> compile time duck typing

The term you are looking for is structural typing.

comment 2y ago · link · parent

> Maybe it’s time to change the way we discuss.

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

> Who here thinks twitter is a platform for rational discourse?

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

> No, you just switched usages of the word "base" mid-conversion

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

The "higher" levels of XNU are largely inherited from the BSD legacy, but we're clearly talking about what serves as the base. So even if you take an inheritance angle, XNU is based on Mach, not BSD. macOS is full of BSD/derivatives code, sure, but it is not based on them. The foundation is laid elsewhere.

comment 2y ago · link · parent

> I would very much like to find (or create) forum(s) for discussions seeking understanding instead of arguments seeking to “win” wars or battles.

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

Virtue signal to whom, exactly? If nobody is interested in learning of or changing their opinion of your virtue...

comment 2y ago · link · parent

Nah. Those who have settled on some kind of final truth stop talking about it. Topics become boring once you are sure there is nothing left to be convinced of. If someone is wanting to talk about a subject, they are in a state of being unsure and are looking to be convinced of something other than what they are currently thinking.

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

How do you even measure the effectiveness towards the original poster? Logically, you are going to spend more time 'arguing' for what you don't believe in as a validation that you truly understand what you do believe in, so what onlookers read is not even a reflection of reality.

comment 2y ago · link · parent

What makes you think 'winning' matters? What matters is that you are being entertained. Otherwise, why bother? And, if we are being honest, what is most entertaining on a message forum is getting a reaction. People would simply write in their private journal if they weren't looking for a reaction.

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

> The more popular a language is (in large enterprise codebases), the more it will get used in new projects

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

> The parent is almost certainly aware macOS is BSD-based

Doubtful. Surely they would know macOS is XNU-based?

comment 2y ago · link · parent

Keep in mind that the context is around domain experts being able to transcribe their domain knowledge into a machine-understandable language without concern for the intricacies of the machine it is executed on. That is where COBOL and SQL are said to have failed to live up to the hype, of which I'd agree. SQL is not a particularly good abstraction. Even for relatively trivial tasks, you still need to understand how computers work. EXPLAIN is the bread and butter of SQL users.

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.

1
111213
256