HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
heywinit
pg_6502
PLpgSQL2026–2026
heywinit / pg_6502

pg_6502

the MOS tech 6502 8-bit microprocessor in pure SQL powered by postgres

3Distinct people
3Mentions
0Explicit recommenders
64GitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

the MOS tech 6502 8-bit microprocessor in pure SQL powered by postgres

GitHub

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, 1:49:46 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 hour3 dated mentions

Observed mentions: 2026-04-13 15:06:25 UTC to 2026-04-14 09:32:55 UTC.

012026-04-13 15:00:00 UTC to 2026-04-13 16:00:00 UTC (exclusive): 1 mentions; 1 submissions, 0 commentsApr 13, 15:002026-04-13 16:00:00 UTC to 2026-04-13 17:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-04-13 17:00:00 UTC to 2026-04-13 18:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-04-13 18:00:00 UTC to 2026-04-13 19:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-04-13 19:00:00 UTC to 2026-04-13 20:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-04-13 20:00:00 UTC to 2026-04-13 21:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-04-13 21:00:00 UTC to 2026-04-13 22:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-04-13 22:00:00 UTC to 2026-04-13 23:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-04-13 23:00:00 UTC to 2026-04-14 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-04-14 00:00:00 UTC to 2026-04-14 01:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 commentsApr 14, 00:002026-04-14 01:00:00 UTC to 2026-04-14 02:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-04-14 02:00:00 UTC to 2026-04-14 03:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-04-14 03:00:00 UTC to 2026-04-14 04:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-04-14 04:00:00 UTC to 2026-04-14 05:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-04-14 05:00:00 UTC to 2026-04-14 06:00:00 UTC (exclusive): 1 mentions; 1 submissions, 0 comments2026-04-14 06:00:00 UTC to 2026-04-14 07:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-04-14 07:00:00 UTC to 2026-04-14 08:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-04-14 08:00:00 UTC to 2026-04-14 09:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-04-14 09:00:00 UTC to 2026-04-14 10:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 commentsApr 14, 09:00

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
Apr 13, 15:002026-04-13 15:00:00 UTC2026-04-13 16:00:00 UTC110
Apr 13, 16:002026-04-13 16:00:00 UTC2026-04-13 17:00:00 UTC000
Apr 13, 17:002026-04-13 17:00:00 UTC2026-04-13 18:00:00 UTC000
Apr 13, 18:002026-04-13 18:00:00 UTC2026-04-13 19:00:00 UTC000
Apr 13, 19:002026-04-13 19:00:00 UTC2026-04-13 20:00:00 UTC000
Apr 13, 20:002026-04-13 20:00:00 UTC2026-04-13 21:00:00 UTC000
Apr 13, 21:002026-04-13 21:00:00 UTC2026-04-13 22:00:00 UTC000
Apr 13, 22:002026-04-13 22:00:00 UTC2026-04-13 23:00:00 UTC000
Apr 13, 23:002026-04-13 23:00:00 UTC2026-04-14 00:00:00 UTC000
Apr 14, 00:002026-04-14 00:00:00 UTC2026-04-14 01:00:00 UTC000
Apr 14, 01:002026-04-14 01:00:00 UTC2026-04-14 02:00:00 UTC000
Apr 14, 02:002026-04-14 02:00:00 UTC2026-04-14 03:00:00 UTC000
Apr 14, 03:002026-04-14 03:00:00 UTC2026-04-14 04:00:00 UTC000
Apr 14, 04:002026-04-14 04:00:00 UTC2026-04-14 05:00:00 UTC000
Apr 14, 05:002026-04-14 05:00:00 UTC2026-04-14 06:00:00 UTC110
Apr 14, 06:002026-04-14 06:00:00 UTC2026-04-14 07:00:00 UTC000
Apr 14, 07:002026-04-14 07:00:00 UTC2026-04-14 08:00:00 UTC000
Apr 14, 08:002026-04-14 08:00:00 UTC2026-04-14 09:00:00 UTC000
Apr 14, 09:002026-04-14 09:00:00 UTC2026-04-14 10:00:00 UTC101

What Hacker News says

3 sources
This, basically, uses a table to store 64 kilobytes of memory, a single-row table for storing register values, and uses regular procedural programming to run the CPU (https://github.com/lasect/pg_6502/blob/main/init/05_execute....) I give that an A+ for perseverance, but I would have hoped to see something that uses the strengths of SQL more. For example, there could be a table with the decode ROM (https://www.cpcwiki.eu/index.php/MOS_6502#The_Decode_ROM_.28...) that could be used to drive the logic. Have a main loop that uses the inputs of that ROM to look up the output bits and update a table, and add triggers that handle each “micro-op”. A SQL engine could run those triggers in parallel until they hit a race condition, but those can be avoided a bit by having separate tables for each register. Even better would be if there were tables
Read the rest
with every logic gate and wire in the original CPU, using a trigger to move the signals around. That would be a good test of the trigger handling in a SQL engine.
In MOS tech 6502 8-bit microprocessor in pure SQL powered by Postgres

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.