Trendoday

Switch Lowering in GCC

0 comments

  • Points181
  • Comments34
–Rank now
#6Peak rank
2Days on list
–Score · 7d
Oct 31, 2026First seen

On Hacker News

Points
181
Comments
34
Submitted by
signa11
Posted
Oct 31, 2026
Site
xoranth.net

Story details from Hacker News ↗ · linked article on xoranth.net.

Trending history

Switch Lowering in GCC was first seen on Hacker News · Front page on Oct 31, 2026. Since then it has appeared in 73 checks on 2 different days. Its best position was #6 of 30, reached on Oct 31, 20:37 UTC. It dropped off the list after Nov 1, 02:52 UTC. The same link also trended on Lobsters, which raises its cross-platform score.

Rank history

Position on Hacker News · Front page at every check (lower is better).

#1#11#20#30 08:5213:2217:5222:2202:52 Oct 31, 08:52 UTC · #30Oct 31, 09:07 UTC · #29Oct 31, 09:22 UTC · #25Oct 31, 09:37 UTC · #24Oct 31, 09:52 UTC · #23Oct 31, 10:07 UTC · #23Oct 31, 10:22 UTC · #21Oct 31, 10:37 UTC · #20Oct 31, 10:52 UTC · #21Oct 31, 11:07 UTC · #22Oct 31, 11:22 UTC · #21Oct 31, 11:37 UTC · #20Oct 31, 11:52 UTC · #20Oct 31, 12:07 UTC · #19Oct 31, 12:22 UTC · #18Oct 31, 12:37 UTC · #19Oct 31, 12:52 UTC · #20Oct 31, 13:07 UTC · #20Oct 31, 13:22 UTC · #20Oct 31, 13:37 UTC · #19Oct 31, 13:52 UTC · #19Oct 31, 14:07 UTC · #19Oct 31, 14:22 UTC · #19Oct 31, 14:37 UTC · #18Oct 31, 14:52 UTC · #21Oct 31, 15:07 UTC · #21Oct 31, 15:22 UTC · #21Oct 31, 15:37 UTC · #21Oct 31, 15:52 UTC · #21Oct 31, 16:07 UTC · #20Oct 31, 16:22 UTC · #20Oct 31, 16:37 UTC · #18Oct 31, 16:52 UTC · #16Oct 31, 17:07 UTC · #16Oct 31, 17:22 UTC · #15Oct 31, 17:37 UTC · #14Oct 31, 17:52 UTC · #14Oct 31, 18:07 UTC · #16Oct 31, 18:22 UTC · #15Oct 31, 18:37 UTC · #12Oct 31, 18:52 UTC · #9Oct 31, 19:07 UTC · #9Oct 31, 19:22 UTC · #8Oct 31, 19:37 UTC · #7Oct 31, 19:52 UTC · #7Oct 31, 20:07 UTC · #7Oct 31, 20:22 UTC · #7Oct 31, 20:37 UTC · #6Oct 31, 20:52 UTC · #6Oct 31, 21:07 UTC · #7Oct 31, 21:22 UTC · #7Oct 31, 21:37 UTC · #7Oct 31, 21:52 UTC · #7Oct 31, 22:07 UTC · #7Oct 31, 22:22 UTC · #7Oct 31, 22:37 UTC · #9Oct 31, 22:52 UTC · #9Oct 31, 23:07 UTC · #9Oct 31, 23:22 UTC · #9Oct 31, 23:37 UTC · #8Oct 31, 23:52 UTC · #9Nov 1, 00:07 UTC · #8Nov 1, 00:22 UTC · #7Nov 1, 00:37 UTC · #7Nov 1, 00:52 UTC · #7Nov 1, 01:07 UTC · #7Nov 1, 01:22 UTC · #7Nov 1, 01:37 UTC · #6Nov 1, 01:52 UTC · #8Nov 1, 02:07 UTC · #9Nov 1, 02:22 UTC · #9Nov 1, 02:37 UTC · #9Nov 1, 02:52 UTC · #9

Last 14 days

Best rank per day (UTC).

Oct 26today

Metric history

Platform metric as reported by Hacker News.

066133201 08:5213:2217:5222:2202:52 Oct 31, 08:52 UTC · 10Oct 31, 09:07 UTC · 18Oct 31, 09:22 UTC · 29Oct 31, 09:37 UTC · 34Oct 31, 09:52 UTC · 40Oct 31, 10:07 UTC · 49Oct 31, 10:22 UTC · 56Oct 31, 10:37 UTC · 62Oct 31, 10:52 UTC · 65Oct 31, 11:07 UTC · 67Oct 31, 11:22 UTC · 70Oct 31, 11:37 UTC · 77Oct 31, 11:52 UTC · 82Oct 31, 12:07 UTC · 85Oct 31, 12:22 UTC · 89Oct 31, 12:37 UTC · 91Oct 31, 12:52 UTC · 93Oct 31, 13:07 UTC · 96Oct 31, 13:22 UTC · 99Oct 31, 13:37 UTC · 101Oct 31, 13:52 UTC · 103Oct 31, 14:07 UTC · 107Oct 31, 14:22 UTC · 111Oct 31, 14:37 UTC · 113Oct 31, 14:52 UTC · 117Oct 31, 15:07 UTC · 119Oct 31, 15:22 UTC · 121Oct 31, 15:37 UTC · 125Oct 31, 15:52 UTC · 132Oct 31, 16:07 UTC · 137Oct 31, 16:22 UTC · 138Oct 31, 16:37 UTC · 138Oct 31, 16:52 UTC · 143Oct 31, 17:07 UTC · 147Oct 31, 17:22 UTC · 154Oct 31, 17:37 UTC · 159Oct 31, 17:52 UTC · 161Oct 31, 18:07 UTC · 163Oct 31, 18:22 UTC · 166Oct 31, 18:37 UTC · 169Oct 31, 18:52 UTC · 169Oct 31, 19:07 UTC · 169Oct 31, 19:22 UTC · 171Oct 31, 19:37 UTC · 175Oct 31, 19:52 UTC · 175Oct 31, 20:07 UTC · 176Oct 31, 20:22 UTC · 177Oct 31, 20:37 UTC · 178Oct 31, 20:52 UTC · 179Oct 31, 21:07 UTC · 182Oct 31, 21:22 UTC · 183Oct 31, 21:37 UTC · 185Oct 31, 21:52 UTC · 188Oct 31, 22:07 UTC · 191Oct 31, 22:22 UTC · 194Oct 31, 22:37 UTC · 194Oct 31, 22:52 UTC · 194Oct 31, 23:07 UTC · 195Oct 31, 23:22 UTC · 195Oct 31, 23:37 UTC · 196Oct 31, 23:52 UTC · 196Nov 1, 00:07 UTC · 196Nov 1, 00:22 UTC · 196Nov 1, 00:37 UTC · 196Nov 1, 00:52 UTC · 196Nov 1, 01:07 UTC · 196Nov 1, 01:22 UTC · 198Nov 1, 01:37 UTC · 199Nov 1, 01:52 UTC · 199Nov 1, 02:07 UTC · 199Nov 1, 02:22 UTC · 199Nov 1, 02:37 UTC · 200Nov 1, 02:52 UTC · 201

Where it trended

ListBestDaysChecksLast seen
Hacker News · Front page#6273
Lobsters · Hottest Switch lowering in GCCsame link

From the discussion

A few top-level comments from Hacker News, shortened. Read the full thread on Hacker News.

I once played around with having a very large switch statement (all mac address manufactors in one switch) and in LLVM it would compile fine without optimizations, but if I turned optimizations on it would just spend around half an hour compiling it. I think GCC did it faster, but its been some time ago since I did…

> The switch in sparse_8 could be simplified by dividing x by eight before the jump. Interestingly, gcc doesn't find this simplification. It could not because that would ensure that 7 values for each case would be handled by function calls instead of the default case - 0/8 is 0, but 3/8 is also 0

What a shame for clang and gcc! They still don't implement perfect hashes for large sparse switch tables. I did that recently for my rcc C compiler, and it was just a single day of work. Esp. beneficial for unicode work. The LLVM patch was rejected a decade ago. Gcc has several unicode patches sitting in branches,…

Questions

Is Switch Lowering in GCC trending on Hacker News right now?

Not at the moment. It was last on the list on Nov 1, 02:52 UTC, after 2 days of trending.

What is the highest rank Switch Lowering in GCC reached?

#6 on Hacker News · Front page, on Oct 31, 20:37 UTC. Trendoday checks this list every 15 minutes.

How long has Switch Lowering in GCC been trending?

It was first seen on Oct 31, 2026 and has been on the list on 2 days (73 checks) since.

How much discussion did it get on Hacker News?

181 points and 34 comments; submitted by signa11 on Oct 31, 2026.