Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
tapirl
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
43 ms
·
541.
▲
by
tapirl
9y ago
> Well you're entitled to your opinion but you should probably back it up with something more specific if you want to convince anyone else. The only benefit of bytecode is to save compiling time. Nowadays, CPU becomes much faster th
542.
▲
by
tapirl
9y ago
> You declare your maven dependencies and they can be resolved as source or binary. In eclipse I can click through to any library function and see its source immediately. Surely, you can view Java dependency sources. It is just that most
543.
▲
by
tapirl
9y ago
My Go way is similar but I don't maintain such artifact repository things. I directly fork the dependency project on github (or elsewhere), then change the dependency path from something like "others.com/projects/foo&quo
544.
▲
by
tapirl
9y ago
Could you share your experiences on how you improve your dependency libraries of your projects?
545.
▲
by
tapirl
9y ago
view/modify/improve the dependency sources at any time, easily.
546.
▲
by
tapirl
9y ago
> i am surprised to read, that people would still put dependencies/libs into their projects What I mean is dependencies presented as sources, vs presented as Jars. It has nothing related to dependency management.
547.
▲
by
tapirl
9y ago
In fact, JVM doesn't start slow. The fact is most Java web apps start slow. The more libraries a Java web app depends, the slower it starts. The current dominant culture of the Java community is very weird. Although Java has a huge sta
548.
▲
by
tapirl
9y ago
Please note that the Benchmark_AllocWithMake function even doesn't call "copy(y, x)".
549.
▲
by
tapirl
9y ago
It is easy for compilers to deduce the type of the nil in "append(nil, data[:2]...)".
550.
▲
by
tapirl
9y ago
"[]string(nil)" is more verbose than "nil".
551.
▲
by
tapirl
9y ago
the append way is much efficient than the make+copy way: https://github.com/go101/go-benchmarks/tree/master/append-vs...
552.
▲
by
tapirl
9y ago
The comparison "x != y" is illegal for slices.
553.
▲
by
tapirl
9y ago
The design for #1 is good and consistent. There are not reference values in Go. All assignments in Go are value copies. BTW, in fact, the ", _" in the author's code can be omitted. for idx := range zoo { zoo[idx
554.
▲
by
tapirl
9y ago
For #2, the "if len(a) == 0" clause is totally non-sense. I hope Go supports "append(nil, data[:2]...)", which will make code much cleaner.
555.
▲
by
tapirl
9y ago
Yes, if the traffic of your web app is large and need tons of GAE instances, then the memory and warm-up problems will become much less severe. But if the traffic is not large, then the two problems are the big obstacles to save spending an
556.
▲
by
tapirl
9y ago
Yes, framework libraries loading contributes much of the 20s warm-up time. However loading the libraries in the official GAE Java SDK will also occupy about 7 seconds if the request needs handle datastore even if frameworks are not used.
557.
▲
by
tapirl
9y ago
I can run my Go GAE app elsewhere without modifying anything.
558.
▲
by
tapirl
9y ago
I agree with the author that GAE is fascinating, for hosting large scale web apps. But I strongly recommend to avoid using the Java runtime on GAE. Each GAE instance has very limited memory, 128M (the prices of high memory instances are muc
559.
▲
by
tapirl
9y ago
didn't know this. Thanks for the info.
560.
▲
by
tapirl
9y ago
No, Flutter also needs a Mac to develop iOS apps and Android SDK to develop android apps.
561.
▲
by
tapirl
9y ago
how does it compare to go mobile? [Edit] Looks like go mobile, still needs Mac/XCode to develop iOS apps and Android Studio to develop android apps. I haven't found another mobile development tool, other than Adobe AIR SDK, which
562.
▲
by
tapirl
9y ago
Using the SetGCPercent option with a large value is dangerous, it may cause a program never get GCed before virtual memory is exploited. And when this happens, Go programs will become very very slow. The current official Go runtime performs
563.
▲
by
tapirl
9y ago
Yes, global secondary index is better than local secondary index, from the user view. I think App Engine also adopted the same strategy for Cloud Datastore. The performance of parallel second indexing in Cloud Datastore is incredible. I hav
564.
▲
by
tapirl
9y ago
Another problem is it becomes harder and harder to understand the code written by others.
565.
▲
by
tapirl
9y ago
No languages are perfect. Yes Go type system can't enforce everything, but it enforce many things. And Go is still language in evolving.
566.
▲
by
tapirl
9y ago
On a not-too-old notebook, building k8s needs less than one minute.
567.
▲
by
tapirl
9y ago
The insertion operation on slices is expensive and is not recommended to be used frequently. If you use it frequently, please rethink and redesign your data structure, for example, use a list instead.
568.
▲
by
tapirl
9y ago
I prefer to the Go way. The python way gives people the impression that the insert operation is cheap. In fact, it is not.
569.
▲
by
tapirl
9y ago
Neither is java a simple language, nor does Java code compile quickly, in my experience. However the largest disadvantage of Java is Java programs generally consume more than 10x more memory than the same scale Go programs, and need 20x mor
570.
▲
by
tapirl
9y ago
> Outside of Google, there is no solution like this available anywhere. Then why not use Google service (I think it is spanner)?
More ›