Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
echlebek
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
38 ms
·
361.
▲
by
echlebek
9y ago
The referee is supposed to stop the fight when one of the fighters becomes unable to defend himself.
362.
▲
by
echlebek
9y ago
Well, not for everything. If you're working with scientific data, the lack of NaN and Inf can be problematic. Not that HOCON solves that.
363.
▲
by
echlebek
9y ago
It seems that you think that following the law is the right thing to do. That's an understandable point of view. But there's also something called civil disobedience. Sometimes the will of the commons should trump law. Is this one
364.
▲
by
echlebek
9y ago
You think that putting stuff on the public internet entitles you to compensation? Why?
365.
▲
by
echlebek
9y ago
I don't see how that relates to Go pointers.
366.
▲
by
echlebek
9y ago
Package unsafe is in the spec, but converting unsafe.Pointer to uintptr (which is how I'm supposing you'd do your pointer arithmetic) is implementation-defined. This means I could create a perfectly legal implementation of Go wher
367.
▲
by
echlebek
9y ago
Well, it depends whether the time spent copying the bytes for the function invocation is less than the time spent garbage-collecting objects that are passed as pointers, and then following those pointers. So as you can imagine, it's hi
368.
▲
by
echlebek
9y ago
In Go, strings are internally a header that contains a length and a pointer. The bytes of the string itself are heap allocated.
369.
▲
by
echlebek
9y ago
They're not the same. Go doesn't have pointer arithmetic, and Go functions can safely return pointers to values that aren't created via new(). https://play.golang.org/p/m3OdaXH98_
370.
▲
by
echlebek
9y ago
Having explicit pointers gives you more control over allocation. As you mention, Go is a GC language, and there are no guarantees of whether allocation will occur on the stack or the heap. But generally, non-pointer values will be stack-all
371.
▲
by
echlebek
10y ago
I think society needs to reject these complexes. Personally I refuse to live or work anywhere like this. I pay a hefty premium for this attitude, but I'm betting it will mean a better life for me.
372.
▲
by
echlebek
10y ago
> "Do the simplest thing" You have to do the simplest thing that could actually, possibly work!
373.
▲
by
echlebek
10y ago
Your code doesn't contain the definition of Foo and Fooer but I'll assume Foo is a concrete type and Fooer is an interface that Foo satisfies. The reason that []Foo is not the same as []Fooer is simple: they are different data typ
374.
▲
by
echlebek
10y ago
I've been developing Go apps for 4 years now. So far this has never happened to me. I do agree it's a possibility, if a callee was to do a type assertion or something.
375.
▲
by
echlebek
10y ago
This is flamebait. There's nothing actionable here, just a rant. The only takeaway I can see is that I should avoid Ubuntu because its founder no longer believes in its core mission. :(
376.
▲
by
echlebek
10y ago
What? Why can't you just cook a meal for one? Chicken breast and veggies takes like 15 minutes.
377.
▲
by
echlebek
10y ago
Comments like this are not very useful. If the post hits the front, lots of people obviously found it relevant.
378.
▲
by
echlebek
10y ago
Not the parent to your comment but I'll chime in here. Heroin is more dangerous than cigarettes, since the threshold for overdose is so low. So, probably not a great thing to be able to buy at a gas station. Personally, I think heroin
379.
▲
by
echlebek
10y ago
> so what you mean is that, even after throwing facebook scale resources at java.. it is possible for a <10 people team to get 10X performance over java using the features that you mention. That is not what I mean. Writing a userspace
380.
▲
by
echlebek
10y ago
If you investigate what they actually do to achieve those numbers, it's much less simple than just rewriting Cassandra in C++. For example, they use their own TCP stack and make use of vector intrinsics.
381.
▲
by
echlebek
10y ago
> destructive in almost all cases of use. Demonstrably false. The vast majority of opioid users are recovering from surgery, taking Tylenol 3, etc. You're basically just talking out of your butt here.
382.
▲
by
echlebek
10y ago
Right - the control flow is explicit, and works the same as regular control flow.
383.
▲
by
echlebek
10y ago
Because Go considers errors to be values, and exceptions are control flow.
384.
▲
by
echlebek
10y ago
It's only effectively realizable if I move to a different city, so yes, I did complain about that. I want real estate prices to stabilize.
385.
▲
by
echlebek
10y ago
Millennial here. I just got the property assessment notice on my modest 1 bedroom condo. The "value" of it has gone up by $200,000 (around 30%) in the last two years according to the assessment office. So I can expect a nice fat t
386.
▲
by
echlebek
10y ago
I'm not sure why I should use this and give up typed channels when I could easily implement the same logic on my own?
387.
▲
by
echlebek
10y ago
How is your "case <-fd: fd.Read(bufSize)" not a race condition?
388.
▲
by
echlebek
10y ago
What happens when another person wants to use the toilet? Two possible scenarios. A) They have to wait 5 minutes (pointlessly) plus the duration of the next person's stay. B) They pay to bump the person behind in the queue. Both scenar
389.
▲
by
echlebek
10y ago
Well, I hate to belabour such a boring point, but the solo cup is the result of an invention by a single person. At least, there's only one person's name on the patent. From the article: "some of the most underappreciated asp
390.
▲
by
echlebek
10y ago
Sorry but that's ridiculous. Al Gore's "Inconvenient Truth" laid out the facts in an easily consumable way for the public over 10 years ago. We have photography showing massive ice loss over the poles. We have solid data
More ›