Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
tapirl
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
41 ms
·
271.
▲
by
tapirl
5y ago
Yes, it (the lack of deterministic-select) is only annoying for several special cases. For most cases, it doesn't matter whether or not the default behavior is deterministic.
272.
▲
by
tapirl
5y ago
> > user code could simulate non-deterministic > I'm curious how? if rand.Intn(2) == 0 { select { case: <-chan2_whichItreatTheSameAsChan3 // a higher priority case: 0xFF ->ch
273.
▲
by
tapirl
5y ago
Yes, as I have mentioned, there is performance loss, comparing to select { case: <-chan2_whichItreatTheSameAsChan3 // a higher priority case: 0xFF ->chan3_whichItreatTheSameAsChan2 }
274.
▲
by
tapirl
5y ago
Yes, they are different, const values doesn't allocated in memory NOW. But who cares? Most gophers just think const values are immutable values. I mean we could let some const values allocated in memory.
275.
▲
by
tapirl
5y ago
Equality is meaningful only if at least two case operations are always non-blocking. This is rare in practice. In fact, in practice, sometimes, I do hope one specified case has a higher priority than others if they are all non-blocking.
276.
▲
by
tapirl
5y ago
Concepts are defined as needed.
277.
▲
by
tapirl
5y ago
No need to invent a new keyword, it is ok to just use "const": https://github.com/go101/go101/wiki/An-immutable-value-propo...
278.
▲
by
tapirl
5y ago
> but (deterministic-select cases) hey are peculiar. It looks for most select blocks in Go code, it doesn't matter whether or not they are non-deterministic or deterministic. But, if the default is deterministic, user code could sim
279.
▲
by
tapirl
5y ago
I remember that someone in Go core team (Ian?) said Go 1.18 is Go 2. That means Go 2 is back compatible with Go 1.
280.
▲
by
tapirl
5y ago
convenient to show your benchmarks?
281.
▲
by
tapirl
5y ago
Is k8s still in trending?
282.
▲
by
tapirl
5y ago
or https://go101.org/article/tool-golds.html for local docs browsing,
283.
▲
by
tapirl
5y ago
kick off? Is this necessary for an open source non-profit project?
284.
▲
PayPal offered to buy Pinterest for $45B
(reuters.com)
2 points
by
tapirl
5y ago
|
0 comments
285.
▲
by
tapirl
5y ago
From their docs, their product looks amazing. However I haven't successfully deployed my app on their platform: https://community.fly.io/t/first-app-fails-to-deploy/2754/3 This might be related to my net
286.
▲
by
tapirl
5y ago
> Publishing a log now doesn't make it any safer tomorrow, it's purely about convincing you to trust them. That is true. The global transparency log is just to prevent a package version change after it has been recorded in the
287.
▲
by
tapirl
5y ago
> GoProxy has a global transparency log (like a blockchain, but not) so that everyone is contributing and sharing hashes This is not true. Only Google sum server contributes to the hashes.
288.
▲
by
tapirl
5y ago
Agree, immutable values should be the top one in the needed-list. There are tons of immutable value proposals: https://github.com/go101/go101/wiki/Go-immutable-value-propo...
289.
▲
by
tapirl
5y ago
Adobe AIR has done this for at least 10 years.
290.
▲
by
tapirl
5y ago
> Reads from a closed channel block, sends on a closed channel panic "never block"?
291.
▲
by
tapirl
5y ago
The about page https://tikz.net/about/ is not like about page. I still don't know what TikZ is after reading this page.
292.
▲
by
tapirl
5y ago
Okay. It shows up now. So a package must be registered to be listed.
293.
▲
by
tapirl
5y ago
I developed https://github.com/go101/golds
294.
▲
by
tapirl
5y ago
Go needs custom generics for sure. But it is really a hurry-up to support custom generics for Go in version 1.18. Many problems have not been resolved yet. * should the builtin generics syntax be compatible with the new custom syntax * how
295.
▲
by
tapirl
5y ago
Each Unwrap() call needs two OK() calls? Letting Unwrap return OK would be better? BTW, the readability is really not good as Go 1.
296.
▲
by
tapirl
5y ago
I only see a page with a search box in it. Search my package name, but get nothing.
297.
▲
by
tapirl
5y ago
> Unless I've missed it in my reading, I don't see any of these clearly stating that the single-return form of channel receive will fabricate zero values when misused, or describing how you need to replace a closed channel with
298.
▲
by
tapirl
5y ago
Surely not safe.
299.
▲
by
tapirl
5y ago
Mutexes and channels really overlap in some functionalities, but not totally overlap, okay?
300.
▲
by
tapirl
5y ago
You should not blame Go channels for your inexperience of using them.
More ›