HNHacker News
TopNewBestAskShowJobs

gopher_protocol

48 karma · joined December 22, 2016

submissionscomments
gopher_protocol··on How VSCode made bracket pair colorization faster (2021)
I know reading the article is hard, but if you did you'd realize that it was slow because colorization was performed by an extension, and could not be optimized sufficiently because of limitations of the public API. They sped it up by moving it into the VS code core, which allowed it to take advantage of a bunch of features not available to extensions.
gopher_protocol··on Harry’s Will Be Sold to Owner of Schick for $1.37B
Beard oil is fantastic for making your beard feel softer and more manageable. For controlling shape, beard balm is generally even better, but I'm still learning to work with it; the one I have is basically a pomade.
gopher_protocol··on Harry’s Will Be Sold to Owner of Schick for $1.37B
I've started going to a barber for a full trim/shape once a month or so. Then any trimming I do is kind of as-needed. I think this kind of depends on how your beard grows in and how particular you are about stray hairs. I find that with beard oil/balm, my fly-aways are manageable enough between trims.
gopher_protocol··on Why Hashbrown Does a Double Lookup
Open addressing has better cache performance, and for most workloads is much faster than chaining implementations. Hashbrown's implementation is based on Google's SwissTable, and they explained the reasoning behind their choices in this CppCon talk: https://www.youtube.com/watch?v=ncHmEUmJZf4
gopher_protocol··on Kakoune – A Modal Text Editor
I'm not arguing that Kakoune's way isn't better (I think it probably is). But you can sort of do this in Vim as well, minus the more advanced interactive adjustments:

- :set hlsearch

- Type `/`

- Spend five seconds thinking up a regex that approximately matches the things I want to change

- Hit Enter

- Cycle through matches with `n`/`N`, checking to see if they're what I expected

- If they're not, press `/` then <Up> and edit the regex

- When satisfied, type `:%s//`, enter the replacement you want to make, then `/g<Enter>` to apply the change everywhere

gopher_protocol··on Eugene Debs Was Jailed for Speaking Out Against WWI, 100 Years Ago This Week
He also styled himself as a progressive, and was largely supported by progressives. He specifically took rhetoric from the Progressive Party platform.

Donald Trump bears little resemblance to Reagan or Lincoln, but he is still a Republican. Wilson, likewise, was a progressive - even if he did other things we might consider anti-progressive.

The definition of progressivism, like Republicanism (and conservatism, and liberalism), has also changed significantly in the last century. Prohibition of alcohol, for example, was a central plank of most progressives of Woodrow's era, but it is not considered such now. Likewise, opposition to racial inequality is often associated with modern progressivism, but it was not so explicitly supported by many early progressives.

gopher_protocol··on Go 1.10 Beta 1 is released
No one is asking for C/C++ style macros, or even C++ templates. Go generics would be closer to Java or C# generics, which increase code clarity, reduce boilerplate and copy/paste code, and communicate intent.
gopher_protocol··on A Prettier JavaScript Formatter
I've found another issue where it just removes comments entirely inside an otherwise empty block.

    function doSomething() : int {
      return myPromise
      .then(() => {
        // ...do thing
        /* what */
      })
      .catch(() => {
        // ..do other thing
        /* the heck */
      });
    }
becomes

    function doSomething(): int {
      return myPromise
        .then(() => {})
        .catch(() => {});
    }
Still a very nice pretty printer, though.
gopher_protocol··on A Guide to Deep Learning
One of my partner's tasks as a legal assistant is to go through mountains of OCRed PDFs and classify them and extract pieces of data so that lawyers and paralegals can go through them more easily. Do you imagine deep learning would be an appropriate means of automating that, or is it overkill?