HNHacker News
TopNewBestAskShowJobs

hooluupog

40 karma · joined December 3, 2013

none
submissionscomments
hooluupog··on Alphabet Backs GitLab's Quest to Surpass Microsoft's GitHub
Social platform.
hooluupog··on Go says Wat
Go is not really 'pass by value' when passing slices. It just passes the pointer value instead of doing a deep copy(copying the backing array). When trying to grow a slice in a function, the result is unpredicted because of 'apend' implicitly choosing to allocate memory or not. In addition, it is not concurrent-safe to pass mutable data. To avoid the safety problem, you have to copy stuff and consequently suffer a performance penalty. A better way to solve the problem is to introduce immutibilty. If one day immutibilty is introduced in Go 2(or 3), i wish slices are really passed by value. Then everything is passed by value as default with the immutable data passed by reference. You can still use pointers to pass mutable data just like using '_' to explicitly ignore error handling.

Now in WAT 1,

    func grow(s []int) { // s is deep copied.
        s = append(s, 4, 5, 6)  // changing 's' does not effect original slice.
    }
Explicitly pass mutable slice,

    func grow(s *[]int) { // s is referenced.
        *s = append(*s, 4, 5, 6)  // changing 's' will always effect origin slice.
    }
Explicit is better than implicit.
hooluupog··on Fortnite on Android will bypass Google Play
You are allowed to install other app stores on a android device.You can even install apps from unknown sources.But you need to be responsible for your own security.
hooluupog··on Google’s ML Kit makes it easy to add AI smarts to iOS and Android apps
Google: ARCore MLkit Apple: ARKit CoreML
hooluupog··on Jeff Dean takes over as Google’s AI chief
Not the OP,maybe Bill Joy and John Carmack.
hooluupog··on Google starts blocking “uncertified” Android devices from logging in
But its users want.
hooluupog··on Electron 2.0.0 beta
Flutter has the potential once it ported to desktop and even web(with WASM).
hooluupog··on Microsoft Removes Google’s Chrome Installer from the Windows Store
But it's not compulsory on android.
hooluupog··on Beijing Sinnet says it will buy Amazon Web Services’ China business
What a misleading title.Beijing Sinnet is just a shell company of amazon china(The same as Guxiang which is a shell company of google in china).
hooluupog··on Amazon reportedly working on proper Android ‘Ice’ smartphones with Google’s apps
Why should google's products must work with Amazon's products?It's not Amazon who sell google's products but google sell its own products via amazon online shopping platform.Does amazon echo have to work with google's product or install google's software or services to appear in search results?
hooluupog··on Goodbye PNaCl, Hello WebAssembly
FYI,https://go.googlesource.com/gollvm/
hooluupog··on Facebook's tentacles reach further than people think
Absolutely agree with you.In china more and more people know the internet through wechat and do almost everything on wechat.
hooluupog··on Chrome Won
Except china.
hooluupog··on Swift is like Kotlin
According to what Fuchsia developer Travis Geiselbrecht said in the public Fuchsia IRC channel,the OS “isn’t a toy thing, it’s not a 20% project, it’s not a dumping ground of a dead thing that we don’t care about anymore.”[0]

[0]https://arstechnica.com/gadgets/2017/05/googles-fuchsia-smar...

hooluupog··on Google Spaces will be shut down on April 17th
and Photos
hooluupog··on EU wants Google to stop anti-competitive Android practices, fine expected
On the contrary,China proves what's so bad without the Play Store and GCM.Android is a mess there.
hooluupog··on Cross compilation just got better in Go 1.5
https://groups.google.com/forum/#!topic/golang-dev/nMWoEAG55...
hooluupog··on Why is Golang popular in China?
Actually,erlang is being used in taobao.