Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
tapirl
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
25 ms
·
301.
▲
by
tapirl
5y ago
What you described are all well defined in the docs.
302.
▲
by
tapirl
5y ago
For some scenarios channels and mutexes are both suitable for, mutextes are a bit more performant than channels. If you do care about the performance penalty, just choose mutexes. But the for scenarios mutextes are incapable of, still using
303.
▲
by
tapirl
5y ago
For some scenarios, the implementation code will be quite complicated if only mutexes are used, whereas the implementation will be quite simple by using channels. I think your frustration comes from you wanted to use channels for any scenar
304.
▲
by
tapirl
5y ago
How could it be? Programming with channels is not only intuitive but fun for many cases: https://go101.org/article/channel-use-cases.html Yes, channels are not always best solutions for any case. There are cases mutexe
305.
▲
Go is not C, so there is not an extreme fast way to merge slices
(github.com)
2 points
by
tapirl
5y ago
|
0 comments
306.
▲
Writing qualified Go benchmarks is not easy
(github.com)
1 points
by
tapirl
5y ago
|
0 comments
307.
▲
by
tapirl
5y ago
It is hard to make revenue from an app store, because most downloaded apps are free ones, and a large percentage of them use Admob to monetize. A qualified competitor needs to provide significant amount of bandwidth for the free apps. For p
308.
▲
by
tapirl
5y ago
Most of such conversions are safe and should not panic (just like the type assertions).
309.
▲
by
tapirl
5y ago
Sorry, I should be more accurately. It is function type uses. In fact, I'm not confused with simple function types. It is just that sometimes, complex function types are convolutions for me.
310.
▲
by
tapirl
5y ago
C syntax is overall simple. The only syntax often confuses me is function typedef.
311.
▲
by
tapirl
5y ago
Cool! It is good for both Linux and Windows.
312.
▲
by
tapirl
5y ago
It is very helpful for the developers if you could provide more info, such as error messages.
313.
▲
by
tapirl
5y ago
Dell did it differently 10 years ago. Its d6420/e6430/e6440 support maximum 16G.
314.
▲
by
tapirl
5y ago
available to public? Or the end users?
315.
▲
by
tapirl
6y ago
CPUs will have more and more cores to reduce the gap. Maybe future CPU and GPU and TPU will merge as a new kind of compute unit.
316.
▲
by
tapirl
6y ago
pion link: https://github.com/pion/webrtc
317.
▲
by
tapirl
6y ago
'nil' in Go is just an identifier to represent the zero values of some kinds of type. A bare nil is always untyped and it is the only untyped value which has not a default type. Zero values behave the same as non-zero values in ma
318.
▲
by
tapirl
6y ago
Looks cool, but bad usability for desktop. Mate (Gnome 2) is far better for desktop.
319.
▲
by
tapirl
6y ago
HN
320.
▲
by
tapirl
6y ago
Considering that ByteDance is the only IT company which owns a social-app product popular in every area in the world, the value is some lower than expected.
321.
▲
by
tapirl
6y ago
> Go is at the complete opposite end of the spectrum - not flexible at all, You must be kidding. Go is the flexible one (not one of) in static popular languages. It is even more flexible than many dynamic languages. It supports function
322.
▲
by
tapirl
6y ago
> If your app isn’t making that much in a month, then your app isn’t very good or you’re bad at business. Yes, many indie developers are bad at business, but they made good apps. Their month sells might one or two. They pay the $99 to Ap
323.
▲
by
tapirl
6y ago
I use docker compose only. It is much more convenient than vanilla docker.
324.
▲
Golds: A code reader for reading and studying Go code in a mouse-click way
(github.com)
1 points
by
tapirl
6y ago
|
0 comments
325.
▲
by
tapirl
6y ago
> A thread is only 3 times (memory consuming) as large as a goroutine. Now, the official implementation allocates a 2k-byte stack for each new goroutine. The initial stack could be much smaller in theory.
326.
▲
by
tapirl
6y ago
I don't understand why SetFinalizer+resurrected could prevent a memory block which will be collected from being collected. Update: never mind, I re-read the docs of SetFinalizer to get the explanation: SetFinalizer sets the final
327.
▲
by
tapirl
6y ago
> When in Node.JS or Go a medium-sized service’s Docker image takes 5 to 10 mins to build and deploy, I guess you build Go binary in building the docker image. You should build Go binary then build the docker image instead (5 seconds dur
328.
▲
by
tapirl
6y ago
I don't get the point of Clubhouse. Hasn't many video meeting apps already supported turning off video streaming in chatting?
329.
▲
by
tapirl
6y ago
Old threads - https://news.ycombinator.com/item?id=19125674 - https://news.ycombinator.com/item?id=16342192
330.
▲
by
tapirl
6y ago
It is more a stance to show Microsoft is ready to put Windows on arm CPUs if x86 loses the market.
More ›