Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
dsymonds
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
31.
▲
by
dsymonds
10y ago
You're still being clever in that first example. ` string` is a weird data type in Go, and `[] string` doubly so. You're going out of your way to find a confusing example, but that's not what the original poster was saying, w
32.
▲
by
dsymonds
10y ago
Your code is tripping over a complexity of closures, not directly loops. I don't think you can write a straightforward loop that has confusing behaviour without also using closures. Your "but nothing too complicated" underpla
33.
▲
by
dsymonds
10y ago
The copyright for Go has been Copyright YYYY The Go Authors. ever since its public release in 2009. Google only holds the copyrights for the subset of contributions to Go made by Google employees, but there's no Google credit in
34.
▲
by
dsymonds
10y ago
That's the artist's fault, not Patreon. I've sponsored some artists on Patreon at $1/mo. I don't think it's a transaction cost issue; Patreon charges my credit card once per month (aggregating multiple $1-3
35.
▲
by
dsymonds
10y ago
The original question was about why C extensions are not supported by Go. It's not a matter of performance; it's a matter of correctness.
36.
▲
by
dsymonds
10y ago
Segmented stacks in Go went away in Go 1.3 ( https://golang.org/doc/go1.3#stacks; June 2014). The alternate stack structure is indeed one issue. The bigger one is the GC, though; the Go runtime needs to know which point
37.
▲
by
dsymonds
10y ago
I've seen what happens when humans have control of cars. It's not pretty.
38.
▲
by
dsymonds
10y ago
I was referring to the Go font, not Go itself; I thought that's what you were referring to.
39.
▲
by
dsymonds
10y ago
Google isn't behind it. Some Google employees who work on Go are behind it (well, and Chuck Bigelow too). But as keeps getting said: it's about the licensing.
40.
▲
by
dsymonds
10y ago
It's about Russian spies working on Wall Street, and them being busted by the FBI. Nothing to do with LinkedIn as far as I can see.
41.
▲
by
dsymonds
10y ago
Actually instead they tint the traffic light colours to make them distinguishable to colour blind folk. It's actually really uncommon to be completely unable to see colour; mostly it is just a problem to be able to distinguish colours.
42.
▲
by
dsymonds
10y ago
I don't think it has actually been "tested" in the true sense here. I believe every known case has either been settled out of court (so the court hasn't even had a chance to adjudicate), or has been decided based on some
43.
▲
by
dsymonds
10y ago
Apart from trivial or throwaway projects, code is read many more times than it is written. Spending time reworking some code to make it easier to read will pay off over the long term. (There's the question of whether making code more c
44.
▲
by
dsymonds
10y ago
Go's defererence operator `*` is prefix, like in C. The point here is that type declarations are regular to read, and those tend to be the tricky ones. Expressions tend not to be so difficult, and are more commonly factored if they bec
45.
▲
by
dsymonds
10y ago
The standard regexp package, unlike PCRE, is actually a proper regular expression parser/matcher. Anything doing backtracking is at risk of exponential blowup and isn't safe. https://swtch.com/~rsc/regexp/
46.
▲
by
dsymonds
10y ago
Okay, how do you find a string of N 1's in a very long bit pattern? What's the space and time complexity of your solution? (hint: you can do a lot better)
47.
▲
by
dsymonds
10y ago
It only works when you already have access to see the other people's calendars (and hints at this with "Designed specifically for organizations where sharing your calendar with colleagues is the norm").
48.
▲
by
dsymonds
10y ago
Try having actual time ranges, not just slots, and you need to find, say, a 30m contiguous block of time.
49.
▲
by
dsymonds
10y ago
Nobody is "struggling" with debugging Go programs in the way you were implying. You seemed to be deliberately trying to antagonise, disguising it behind "Interesting, ...".
50.
▲
by
dsymonds
10y ago
No need to troll. GDB has worked (to a limited degree) on Go binaries for years, but has never really understood some of its features; Delve is a newer debugger that's specifically targeted to Go.
51.
▲
by
dsymonds
10y ago
It isn't a new stance either. For years people have been posting their ideas for Go generics to golang-nuts, and the questions inevitably lead to asking how they'd implement it, how it would interact with interfaces, and so on. Mo
52.
▲
by
dsymonds
10y ago
It's not so much "let's all talk about it", but "here's how detailed a proposal needs to be to make it worth considering".
53.
▲
Proposal: Go should have generics
(github.com)
355 points
by
dsymonds
10y ago
|
424 comments
54.
▲
by
dsymonds
10y ago
Google and GCP run on the same infrastructure, but this was a GCP problem, not a problem with that common infrastructure.
55.
▲
by
dsymonds
11y ago
This is for a "pull request", namely an individual logical change. Your two points don't apply. If you're dealing with whole branches with multiple developers, stick with merging, but this isn't that.
56.
▲
by
dsymonds
11y ago
The SSA changes are not in Go 1.6. They're expected to be in Go 1.7.
57.
▲
by
dsymonds
11y ago
There's nothing specified that setting a value won't cause a map rebalance or rehash. The implementation is allowed to change things under the hood.
58.
▲
by
dsymonds
11y ago
Large scale distributed systems aren't that simple. I don't know any internal details of Twitter, but from what I've gathered they are trying to hit the kind of QoS you are dismissing. Imagine some celebrity with millions o
59.
▲
by
dsymonds
11y ago
What license did you give Waze for using your code? Your repo (I'm guessing https://github.com/robterrell/TVOutManager? ) doesn't mention the license, so Waze either shouldn't be using it, or you've
60.
▲
by
dsymonds
11y ago
None of the particular examples you link to are somehow impossible to occur in existing "legal" taxis. Anecdotally, Uber cars are safer in those regards than taxis, despite regulation there.
More ›