1. 10

    Over the course of using only Go at work for the last year-ish, my opinion went from:

    Go has some weird opinions and safety rails, but the advantages are still nice

    to:

    I love Go’s restrictiveness and can’t imagine any other way

    Not sure if it’s stockholm syndrome by now but it’s definitely grown on me.

    For example, I tried adapting some C++ code to Go last week, and the person was doing mystring[len(mystring)] and it worked with no out of bounds errors :(

    1. 4

      From the onset I’ve been viewing Go as the better C I needed. It did take me time to get used to the fascist gofmt, though. Today I mostly have gripes with the standard library, debugging and trying to get away from thinking in the event loop model (that took me so much time to internalize). Still enjoying the language and the tools.

      1. 4

        The best thing about gofmt is that there is nothing you CAN configure. It’s the gofmt way or the highway.

        1. 2

          I think the fascism of gofmt is great. After using go for a while, I miss a similar tool for other languages. I get by with clang-format for C, but it requires quite a bit of configuration, and still doesn’t get some things right.

      1. 2

        University finished, so I have a bunch of free time to work on personal projects. This week I’m continuing work on a container runtime built from scratch. So far it’s been fun playing with the various low level linux APIs (namespaces, cgroups, overlayfs etc). Right now it can pull and ‘boot’ docker images, but work needs to be done around populating /dev and using cgroups properly.

        Quick demo of pulling images: https://asciinema.org/a/08p212uouswkc8h7j1p9z46bj

        1. 7

          Is it a problem that javascript engines are so complicated that understanding what your code actually does involves deep knowledge of the runtime?

          1. 9

            I don’t think this sort of thing is specific to JavaScript runtimes. Do you know what algorithm is used by the standard library sort function of $language?

            1. 2

              I know python, my go-to language, uses timsort. Timsort is complex enough that I don’t really know what is is doing under the covers at any point in time, however.

          1. 1

            If you’re more into RestructuredText, there’s also presentty:

            http://git.inaugust.com/cgit/presentty/