8,634 karma · joined Jun 23, 2011 (15y ago) · 7,679 submissions
comment 2y ago · link · parent
Which isn't surprising to the rest of us. If you remember the days before Go, every second thread on HN was about how "company X", including the company now known as X, saw their Ruby network servers completely falling down under load, forcing a rewrite in whatever the language du-jour was that day. But Googlers tend to live in a completely different bubble with respect to the way software is written.
comment 2y ago · link · parent
I'm not sure where "care" enters into the picture. It's a computer language. For what reason would emotions be assigned to it?
comment 2y ago · link · parent
Part and parcel with its love for dicts, Python data structures tend to not be shaped like C typically expects. Whereas Go data structures are, at most, lightweight wrappers around C-style structures, and are often even directly equivalent, making passing data about as simple as passing a pointer. Python may be getting bogged down in some kind of marshalling operation. That isn't cost-free either.
comment 2y ago · link · parent
So, if we have reached the limits of survivability and reproducibility, only further hindered by other biological processes, what pressure on the generic algorithm would there be to see new traits start to become dominant? If you effectively stop training the NN, you wouldn't expect inference to change.
Perhaps the advent of modern contraception will eventually reveal some mutation that is advantageous enough to overcome the modern setback we've seen in reproduction, bringing to light a different emotion/set of emotions that become dominant. But, realistically, we're only talking a few generations of training on that change to the state of the universe. That's nothing for a genetic algorithm. GA-based training methods are not very efficient with respect to training speed even on computers, and worse in real life when a single generation takes ~30 years to spawn the next.
comment 2y ago · link · parent
Indeed. No sense in breaking the law.
> but for me the reader
I bet they wrote a song about you – or at least, as the song goes, so you think.
> you made up something about C# in the hopes of being corrected
It wasn't made up. The FFI benchmarks I looked at truly did show that. I did not verify exactly what was the cause for the slowness, though – and I clearly maintained the doubt in the original comment in recognition of that. Speculation isn't quite the same as what you are postulating.
Nice execution of Cunningham's law, by the way. Now you're getting it. Welcome to the internet! You're going to like it here.
comment 2y ago · link · parent
You'll know as soon as you measure it. Not exactly rocket science, just plain old engineering. Measuring is what engineers do. You wouldn't build a bridge without first measuring the properties of the materials, and you wouldn't build a program without measuring the properties of its 'materials'.
You make a good point that it is strange we don't get better datasheets from 'material manufacturers' about the base measurements. That wouldn't fly in any other engineering discipline, but I guess that's the nature of software still being young. As unfortunate as that may be, you can't fight the state of affairs, you're just going to have to roll up your sleeves. Such is life.
> How is this better than asking for code examples?
Cunningham's law explains why it is better.
comment 2y ago · link · parent
Of course nobody would claim such a thing. The cost is real. Whether or not Go is fine will depend entirely on what kind of problem environment you are dealing with and what your own code actually looks like. Someone else's code will never tell you this. There is no shortcut here other than to measure your own code.
> As an outsider, all I see are two people saying "no it's not slow," just about different languages.
It is slow, relatively speaking. But does that matter in your particular situation? Random internet benchmarks show that Python is always slower, way slower, yet people find all kinds of productive uses for Python – even in domains where computational performance is very important! And if it does matter for what you're doing, are you sure you actually picked the fastest option? Measure and find out.
It is good to have rough estimates, but all of these languages are operating within the same approximate timescale here. It's not like Go, C#, or any other language is taking minutes to perform FFI. When you really do need to shave those nanoseconds off, guessing isn't going to get you there. Measure!
comment 2y ago · link · parent
What would actually be interesting is to see you gain those important nanoseconds of performance that is so critical to your business. We want to see you succeed (even if you don't seem the want the same for yourself?).
comment 2y ago · link · parent
No better than your own code. Why not put it to the test? In the end you will either know that you made the right choice, or have the better solution ready to swap in. You can't lose.
The key takeaway from the previous comment isn't some pointless C# vs Go comparison, it is that performance can be hard to predict. Someone else's code isn't yours. It won't tell you anything about yours. Measure and find out!
comment 2y ago · link · parent
It seems C# suffers the same problem as real-world benchmarks often show it to be slower than Go when performing FFI, even if it should be theoretically faster.
As usual, performance can be hard to predict. Benchmarking the actual code you intend to use is the only way to ensure that what you think is true actually is. If you aren't measuring, you aren't engineering.
comment 2y ago · link · parent
As far as I can tell humans are already able to survive and reproduce to the limits of what the physical human form is capable of. Optimization can only optimize so much. Where do you see "paleolithic" emotions being a limiting factor that leaves room for further optimization? What "modern" emotions do you envision to improve on those metrics?
Human emotions do not appear to be cohesive from person to person, so it seems the generic algorithm is still doing its thing, but if the mutations are no more effective than the "paleolithic" emotions with respect to survivability and reproduction, there isn't much evolutionary pressure to see them become dominant.
comment 2y ago · link · parent
But you are right to not take anything that software says seriously. Seriousness is for interactions with humans.
comment 2y ago · link · parent
Business/safety critical logic tends to get complicated, and, at least in the case of business software, is more than likely is venturing into unexplored territory, so when you're not very skilled at programming finding the right design can become an insurmountable challenge. A more expressive type system offers a bandaid to work around that.
comment 2y ago · link · parent
Which Python and which Go? There are so many different implementations and different versions of those implementations that this broad statement is meaningless.
From what I have installed on my machine, CPython 3.11.6 seems to take around 80ns to call a C function, gc 1.22.0 takes around 50ns to call the same C function, and tinygo 0.32.0 only takes around 1ns!
Such benchmarking is always fraught with problems, so your milage may vary, but on my machine under this particular test Go wins in both cases, and tinygo is doing so at about the same speed as C itself.
comment 2y ago · link · parent
"I'm about to leave" could, indeed, suggest hesitation. Why haven't you left already? –– Once the papers are able to be signed, the time is now. You can do so immediately. To wait means there is something holding you back.
What holds him back, we don't know. Apparently you are too embarrassed to ask or whatever that was that you were trying to say. But given the topic of discussion, presumably it is some kind of hesitation around the use of Ruby. Otherwise, where would the relevance of you telling us this story about your friend waiting to sign lie?
comment 2y ago · link · parent
And someone with a $1,000,000 per year salary and a penchant for hookers and blow might also barely make ends meet. Is there some kind of useful takeaway from this fun anecdote?
> but manage to save a few hundred a month
If we assume the average worker with 20 years under their belt, that's ~$40,000. In what world is that poor? That alone, even ignoring the house and any other assets (a car, perhaps?), is somewhere around the top 20%. This disconnect from reality is fascinating.
> A group of people might be able to take out a loan an individual can't
Just who, exactly, is going to lend to poor people, even if they come by the millions, for no reason other than to cover their living expenses? There is almost no chance the poor are going to pay you back, unless maybe they happen to win the lottery. But if you really want to "invest" in the lottery, why not put that money directly into the lottery? What value do the middlemen bring?
> A group of people might collect dues as a cost to be in that group
From who? The poor don't have resources to pay dues. Are you being tricked by rich people again?
> We are clearly talking about business large enough for strikes to happen
No, we are clearly not. What makes you think the farmers that we were talking about earlier in thread even have employees? Many farmers do not. You're clearly not talking about anything related to what the rest of us are, but anyway...
> More people have more options. Options are power. Why are you arguing against this fundamental point?
Get back to us when you've actually read the thread. As amusing as your confusion is, there is no interest in arbitrarily changing the subject for no reason. Never was, never will be. Start a new thread if you want to talk about something else. Hijacking an existing thread for a different purpose is in bad faith.
comment 2y ago · link · parent
Again, what makes that an inconsistency and not just a different language?
> My suggestion is that the behavior would have made more sense
On the basis of the start and end indices being equivalent. But are they? What attributes of the language should see us consider them to be?