Hacker Newsnew | past | comments | ask | show | jobs | submit | karlnowak's commentslogin

    func main() {

        // Create a large heap allocation of 10 GiB
        ballast := make([]byte, 10<<30)

        // Application execution continues

    }


10<<30 is a lot. Perhaps you meant 2<<30?


Are you confusing shifting with exponents? 10<<30 is exactly five times bigger than 2<<30.


Yes, I did.


You can use homebrew with this command:

brew install steeve/delve/delve [--HEAD]


Just tried this on a new setup and it works fantastically. It did all the cert mucking for me.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: