Better HN
topnewbestaskshowjobs
Log inSign up

dbaupp

10,275 karma · joined Jan 17, 2012 (14y ago) · 2,412 submissions

http://huonw.github.io/
Submissions

comment 4d ago · link · parent

The issue with accidental overflow leading to wrap-around is also relevant to the value of `bound`.

If `bound` is unsigned and experiences accidental wrap-around due to underflow, the simple `i < bound` check fails open: most values of i pass against the unintentionally-huge `bound`. The signed version fails closed (no i passes both i >= 0 and i < bound), which is usually safer.

That’s how the argument goes, anyway. You’re right that using signed means a missing `>= 0` check can be a problem, as well as all the risks of signed-overflow UB.

No perfect solution in C.

2.

We got a cybersecurity expert to hack this BYD. It was too easy(abc.net.au ↗)

20 points · by dbaupp · 2mo ago · 4 comments

3.

A Stateful Problem(b-list.org ↗)

2 points · by dbaupp · 2mo ago · discuss

4.

A tale of two path separators(alexwlchan.net ↗)

66 points · by dbaupp · 5mo ago · 37 comments

5.

Open Electricity Dispatch – May 2026(openelectricity.org.au ↗)

1 points · by dbaupp · 5mo ago · discuss

6.

Scaling Sameness(gradientinstitute.org ↗)

1 points · by dbaupp · 7mo ago · discuss

7.

Gell-Mann AImnesia(huonw.github.io ↗)

1 points · by dbaupp · 7mo ago · 1 comment

8.

Write broken commits for better review(huonw.github.io ↗)

2 points · by dbaupp · 7mo ago · 2 comments

9.

Great Docs: Beautiful Documentation for Python Packages(opensource.posit.co ↗)

1 points · by dbaupp · 7mo ago · discuss

10.

Why don't multi-column indices help queries on the second column?(huonw.github.io ↗)

2 points · by dbaupp · 8mo ago · discuss

11.

Staying engaged with AI plans: give inline feedback(huonw.github.io ↗)

1 points · by dbaupp · 9mo ago · discuss

12.

Staying engaged with AI plans: give inline feedback(huonw.github.io ↗)

1 points · by dbaupp · 9mo ago · discuss

13.

Exact significance tests for 2 × 2 tables(janhove.github.io ↗)

1 points · by dbaupp · 10mo ago · discuss

14.

Screen Reader HTML Support – Lookup(tetralogical.github.io ↗)

3 points · by dbaupp · 11mo ago · discuss

15.

Recursive Project Search in Emacs(lukeplant.me.uk ↗)

36 points · by dbaupp · 11mo ago · discuss

16.

Magit-insert-worktrees improves status buffers(huonw.github.io ↗)

5 points · by dbaupp · 11mo ago · discuss

17.

Context privateering: debugging custom instructions like a pirate(huonw.github.io ↗)

3 points · by dbaupp · 12mo ago · discuss

18.

Git Rev News(git.github.io ↗)

1 points · by dbaupp · 1y ago · discuss

19.

Bracket City Builder(builder.bracket.city ↗)

4 points · by dbaupp · 1y ago · discuss

comment 1y ago · link · parent

UTF-8 encodes each character into a whole number of bytes (8, 16, 24, or 32 bits), and the 10 continuation marker is only at the start of the extra continuation bytes, it is just data when that pattern occurs within a byte.

You are correct that it never occurs at the start of a byte that isn’t a continuation bytes: the first byte in each encoded code point starts with either 0 (ASCII code points) or 11 (non-ASCII).

21.

Is that a deprecation? Or is it just removed?(huonw.github.io ↗)

1 points · by dbaupp · 1y ago · 1 comment

22.

Convenient 'Copy as cURL': explicit, executable, editable request replays(huonw.github.io ↗)

4 points · by dbaupp · 1y ago · discuss

23.

Ordering Movie Credits with Graph Theory(endcrawl.com ↗)

3 points · by dbaupp · 1y ago · discuss

24.

Communicating bugs: use a single standalone shell script(huonw.github.io ↗)

4 points · by dbaupp · 1y ago · discuss

25.

Take a break: Rust match has fallthrough(huonw.github.io ↗)

1 points · by dbaupp · 1y ago · discuss

26.

Newtons Are a Unit of Mileage(huonw.github.io ↗)

24 points · by dbaupp · 1y ago · 6 comments

27.

Prefer tee -a, not >>, in CI(huonw.github.io ↗)

4 points · by dbaupp · 1y ago · discuss

28.

AWS Management Console supports simultaneous sign-in for multiple AWS accounts(aws.amazon.com ↗)

7 points · by dbaupp · 1y ago · discuss

comment 1y ago · link · parent

People use stars differently.

https://arxiv.org/pdf/1811.07643 is some investigatory research describing, among other things, 4 clusters of reasons for starring: to show appreciation, bookmarking, due to usage, due to third-party recommendation.

comment 2y ago · link · parent

FWIW, pex now also has options to unzip the archive to a cache directory on startup (I believe this happens by default now, but am not at a computer to confirm), to side step the zipapp limitations that you reference.
12345
81