Better HN
topnewbestaskshowjobs
Log inSign up

thestoicattack

680 karma · joined Apr 16, 2010 (16y ago) · 121 submissions

Submissions

comment 2y ago · link · parent

> the readline keybindings come from Emacs

> Because I’m a vim user, It took me a very long time to understand where these keybindings come from

libreadline supports a basic vi mode. In bash, `set -o vi` lets you use vim-style editing. It is a lifesaver.

comment 2y ago · link · parent

git blame does include --ignore-rev and --ignore-revs-file, so maybe if people updated such a file when making small edits, it would make your life easier.

comment 3y ago · link · parent

Dead github theory.

4.

Galley Slave (1957)(archive.org ↗)

2 points · by thestoicattack · 3y ago · discuss

comment 4y ago · link · parent

GCC turns a fold over a parameter pack into test/sete and turns std::min == 0 into cmp/cmovg: https://godbolt.org/z/TjK7Gz74M

6.

Linux 6.0(lkml.org ↗)

4 points · by thestoicattack · 4y ago · discuss

7.

Re: Detecting integer constant expressions in macros (2018)(lkml.org ↗)

1 points · by thestoicattack · 4y ago · 1 comment

8.

Optimize Memchr(lkml.org ↗)

1 points · by thestoicattack · 4y ago · discuss

comment 4y ago · link · parent

In the novel, Rico is Filipino.

comment 4y ago · link · parent

Yeah, I had to click through that article, which didn't link the docket, to get to a tweet with an image of a scan of a two-page order granting leave to file. It seems completely unrelated to the headline. Even the word "reject" is the opposite of what happened.

comment 4y ago · link · parent

Ada too, I think.

12.

Faster GDB startup(tromey.com ↗)

82 points · by thestoicattack · 4y ago · 6 comments

comment 4y ago · link · parent

> No doubt it's similarly easy using the vi keybindings.

I'd do kbihelp for the first and k2bdwA for the second.

comment 4y ago · link · parent

> Emmy Noether, Lisa Randall, Elise Meitner, Vera Rubin

Chien-Shiung Wu!

comment 4y ago · link · parent

A new analysis from Fermilab measures the W boson as 76 MeV heavier than the Standard Model predicts. The uncertainty in the measurement is 9 MeV.

comment 4y ago · link · parent

(1999)

> Published in the May 1999 issue of "The C/C++ Users Journal"

comment 4y ago · link · parent

The article does mention at least one advantage, so it's not as if the ladder is being pulled up for no reason.

18.

Is it time to remove reiserfs?(lkml.org ↗)

158 points · by thestoicattack · 4y ago · 244 comments

comment 4y ago · link · parent

As a note,

    find . -type f -exec grep stuff {} \;
will also invoke a new grep process for every file, which can be slow. If you think find is going to return a lot of files, it is often better to use

    find . -type f -exec grep stuff {} +  # note plus sign
which will replace {} with as many filenames as allowed (all correctly quoted, etc).

comment 5y ago · link · parent

I can't remember my terminal emulator ever crashing, much less crashing due to memory corruption. Maybe I've just been lucky.

21.

Mahanoy Area School District vs. B.L. [pdf](supremecourt.gov ↗)

2 points · by thestoicattack · 5y ago · discuss

22.

National Collegiate Athletic Association vs. Alston [pdf](supremecourt.gov ↗)

85 points · by thestoicattack · 5y ago · 100 comments

comment 5y ago · link · parent

I'm glad his memoir, "Carrying the Fire", got mentioned. It's one of the best astronaut memoirs.

comment 5y ago · link · parent

House seat changes by state:

    (+2) TX
    (+1) CO, FL, MT, NC, OR
    (-1) CA, IL, MI, NY, OH, PA, WV
     (0) everyone else

comment 5y ago · link · parent

You could also use std::bit_not

https://en.cppreference.com/w/cpp/utility/functional/bit_not

comment 5y ago · link · parent

We do have such a digit-extraction algorithm: https://en.wikipedia.org/wiki/Bailey%E2%80%93Borwein%E2%80%9...

27.

Facebook, Inc. vs. Duguid [pdf](supremecourt.gov ↗)

2 points · by thestoicattack · 5y ago · discuss

comment 5y ago · link · parent

std::move_iterator was my first thought too, but I'm not sure if it works, since the key type for std::unordered_map is defined to be const, so you may have to make a copy anyway.

Maybe use a vector-of-pointer-to-pair, since we're leaving the map around and we don't really need the vector to own anything.

comment 6y ago · link · parent

That's basically modern C++, if you cut out all the things that aren't slices, destructors, and copy/move semantics.

comment 6y ago · link · parent

Sorry, I see I didn't answer your question. I am not one of those programmers that would deliberately ignore an error code, so I don't know what they're thinking.

My suspicion (and naive hope) is that most people would not ignore that case if they knew it was dangerous. But I would expect them to ignore it if they didn't know it existed. Hence this article, I guess, which serves to remind everyone that it can in fact happen and is quite dangerous (due to a potential later interaction with kill).

12345