HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
shawwn
arc
Arc2021–2023
shawwn / arc

arc

Discover this repository through its Hacker News conversations.

2Distinct people
4Mentions
0Explicit recommenders
11GitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

A public description has not been verified.

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 3:56:07 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by year4 dated mentions

Observed mentions: 2021-02-14 13:04:41 UTC to 2023-12-26 19:19:24 UTC.

0122021-01-01 00:00:00 UTC to 2022-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments20212022-01-01 00:00:00 UTC to 2023-01-01 00:00:00 UTC (exclusive): 2 mentions; 0 submissions, 2 comments20222023-01-01 00:00:00 UTC to 2024-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments2023

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
20212021-01-01 00:00:00 UTC2022-01-01 00:00:00 UTC101
20222022-01-01 00:00:00 UTC2023-01-01 00:00:00 UTC202
20232023-01-01 00:00:00 UTC2024-01-01 00:00:00 UTC101

What Hacker News says

4 sources
It’s random. I emailed to submit a patch ordering by popularity and adding caching, but got no answer. EDIT: You can see for yourself how it's ordered here: https://github.com/shawwn/arc/blob/arc3.1/news.arc#L2611-L26... This is the original code, which survived untouched till at least 2019 or so. I've wondered if they changed it since then. The key is the (users) function: https://github.com/shawwn/arc/blob/arc3.1/news.arc#L144-L145 This returns the keys of the profs* hash table (short for "profiles"). At the time, profs was populated each time the server restarts: https://github.com/shawwn/arc/blob/arc3.1/news.arc#L88-L91 (dir profdir*) essentially returns an `ls` of the directory in which user profiles are stored. (Yes, they are (or were) stored to disk, not a database.) This was one reason it was hard to add a feature to rename users,
Read the rest
which Dan somehow figured out. So it takes the `ls` of that directory, giving a list in mostly random order, and loads them one by one, putting them into a hash table, whose iteration order is also random. In modern times, profs* is populated in a lazy fashion whenever users post after a server reboot. Arc uses "maptable" to iterate over a hash table, which under the hood used hash-table-for-each: https://github.com/shawwn/arc/blob/arc3.1/ac.scm#L1082 Nowadays in Racket, it probably uses hash-for-each: https://docs.racket-lang.org/reference/hashtables.html#%28de... It does have a "try-order?" option, which gives a deterministic ordering if set. But whenever I set it, I sometimes get strange errors, at least on MacOS. Since it's disabled by default, I doubt they set it. Even if they did, it would be ordered alphabetically, which means your topcolor wouldn't be anywhere close to the top unless someone else whose name starts with "a" also set it. I only know all this because I've spent five years updating Arc for the modern era over at https://github.com/shawwn/sparc Past discussion: https://news.ycombinator.com/item?id=38586832
In A list of Hacker News's undocumented features and behaviors
Fair! I think we just have different perspectives. HN is enormously complex (it has far more complexity than most people realize or truly appreciate), yet it handles every case without any state machine: https://github.com/shawwn/arc/blob/arc3.1/news.arc And it's nothing but a long list of functions that use closures. I did take a look at your examples. I just ... well, we'll have to agree to disagree, and I'll try not to be so harsh in my criticisms of what I perceive to be ugly ideas. Just because I think an idea is bad, doesn't mean it's bad. But there is one specific critique: the state machine approach will make programs longer, and consciously choosing to make programs longer seems fraught with danger. Every additional character you type is an additional character for bugs to hide in. This moves the subjective "I don't like the styl
Read the rest
e" to something concrete: What's the shortest program you can write with a state machine? My argument is that it's "significantly longer than the equivalent program without a state machine."
In The complexity that lives in the GUI

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.