HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
rafa-rrayes
SHDL
Python2026–2026
rafa-rrayes / SHDL

SHDL

A minimalist HDL built entirely from logic gates for education and experimentation. Compiles circuits to C so that they can run anywhere

2Distinct people
3Mentions
1Explicit recommenders
53GitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

A minimalist HDL built entirely from logic gates for education and experimentation. Compiles circuits to C so that they can run anywhere

GitHub

Where it is used

No documented product use has been verified yet.

What people are saying

The project looks great! I browsed the codebase and enjoyed how much documentation there is about the user-facing and internal workings. I'm not familiar with the subject…

lioeters used a recommendation phrase. One indexed comment matches. This is a phrase match, not a verdict.

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 9–Nov 16 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/16/2026, 8:59:02 AM 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 3-hour interval3 dated mentions

Observed mentions: 2026-01-26 00:34:58 UTC to 2026-01-29 13:42:47 UTC.

012026-01-26 00:00:00 UTC to 2026-01-26 03:00:00 UTC (exclusive): 1 mentions; 1 submissions, 0 commentsJan 26, 00:002026-01-26 03:00:00 UTC to 2026-01-26 06:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-01-26 06:00:00 UTC to 2026-01-26 09:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-01-26 09:00:00 UTC to 2026-01-26 12:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-01-26 12:00:00 UTC to 2026-01-26 15:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-01-26 15:00:00 UTC to 2026-01-26 18:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-01-26 18:00:00 UTC to 2026-01-26 21:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-01-26 21:00:00 UTC to 2026-01-27 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-01-27 00:00:00 UTC to 2026-01-27 03:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-01-27 03:00:00 UTC to 2026-01-27 06:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-01-27 06:00:00 UTC to 2026-01-27 09:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-01-27 09:00:00 UTC to 2026-01-27 12:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-01-27 12:00:00 UTC to 2026-01-27 15:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-01-27 15:00:00 UTC to 2026-01-27 18:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-01-27 18:00:00 UTC to 2026-01-27 21:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 commentsJan 27, 18:002026-01-27 21:00:00 UTC to 2026-01-28 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-01-28 00:00:00 UTC to 2026-01-28 03:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-01-28 03:00:00 UTC to 2026-01-28 06:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-01-28 06:00:00 UTC to 2026-01-28 09:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-01-28 09:00:00 UTC to 2026-01-28 12:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-01-28 12:00:00 UTC to 2026-01-28 15:00:00 UTC (exclusive): 1 mentions; 1 submissions, 0 comments2026-01-28 15:00:00 UTC to 2026-01-28 18:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-01-28 18:00:00 UTC to 2026-01-28 21:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-01-28 21:00:00 UTC to 2026-01-29 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-01-29 00:00:00 UTC to 2026-01-29 03:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-01-29 03:00:00 UTC to 2026-01-29 06:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-01-29 06:00:00 UTC to 2026-01-29 09:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-01-29 09:00:00 UTC to 2026-01-29 12:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-01-29 12:00:00 UTC to 2026-01-29 15:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 commentsJan 29, 12: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
Jan 26, 00:002026-01-26 00:00:00 UTC2026-01-26 03:00:00 UTC110
Jan 26, 03:002026-01-26 03:00:00 UTC2026-01-26 06:00:00 UTC000
Jan 26, 06:002026-01-26 06:00:00 UTC2026-01-26 09:00:00 UTC000
Jan 26, 09:002026-01-26 09:00:00 UTC2026-01-26 12:00:00 UTC000
Jan 26, 12:002026-01-26 12:00:00 UTC2026-01-26 15:00:00 UTC000
Jan 26, 15:002026-01-26 15:00:00 UTC2026-01-26 18:00:00 UTC000
Jan 26, 18:002026-01-26 18:00:00 UTC2026-01-26 21:00:00 UTC000
Jan 26, 21:002026-01-26 21:00:00 UTC2026-01-27 00:00:00 UTC000
Jan 27, 00:002026-01-27 00:00:00 UTC2026-01-27 03:00:00 UTC000
Jan 27, 03:002026-01-27 03:00:00 UTC2026-01-27 06:00:00 UTC000
Jan 27, 06:002026-01-27 06:00:00 UTC2026-01-27 09:00:00 UTC000
Jan 27, 09:002026-01-27 09:00:00 UTC2026-01-27 12:00:00 UTC000
Jan 27, 12:002026-01-27 12:00:00 UTC2026-01-27 15:00:00 UTC000
Jan 27, 15:002026-01-27 15:00:00 UTC2026-01-27 18:00:00 UTC000
Jan 27, 18:002026-01-27 18:00:00 UTC2026-01-27 21:00:00 UTC000
Jan 27, 21:002026-01-27 21:00:00 UTC2026-01-28 00:00:00 UTC000
Jan 28, 00:002026-01-28 00:00:00 UTC2026-01-28 03:00:00 UTC000
Jan 28, 03:002026-01-28 03:00:00 UTC2026-01-28 06:00:00 UTC000
Jan 28, 06:002026-01-28 06:00:00 UTC2026-01-28 09:00:00 UTC000
Jan 28, 09:002026-01-28 09:00:00 UTC2026-01-28 12:00:00 UTC000
Jan 28, 12:002026-01-28 12:00:00 UTC2026-01-28 15:00:00 UTC110
Jan 28, 15:002026-01-28 15:00:00 UTC2026-01-28 18:00:00 UTC000
Jan 28, 18:002026-01-28 18:00:00 UTC2026-01-28 21:00:00 UTC000
Jan 28, 21:002026-01-28 21:00:00 UTC2026-01-29 00:00:00 UTC000
Jan 29, 00:002026-01-29 00:00:00 UTC2026-01-29 03:00:00 UTC000
Jan 29, 03:002026-01-29 03:00:00 UTC2026-01-29 06:00:00 UTC000
Jan 29, 06:002026-01-29 06:00:00 UTC2026-01-29 09:00:00 UTC000
Jan 29, 09:002026-01-29 09:00:00 UTC2026-01-29 12:00:00 UTC000
Jan 29, 12:002026-01-29 12:00:00 UTC2026-01-29 15:00:00 UTC101

What Hacker News says

1 sources
lioeters·Jan 29, 2026Recommendation phrase
The project looks great! I browsed the codebase and enjoyed how much documentation there is about the user-facing and internal workings. I'm not familiar with the subject matter but I do love me a DSL, so the language design aspect was interesting to learn about. I was curious how the language compiles to C, what the resulting code does, and how one interacts with it. It took a while of reading to find it, so maybe this could be linked from places where compilation is mentioned. This part is my favorite, it's cool how it works. Especially since you mention "anti-abstraction", I like seeing how the DSL maps to C. https://github.com/rafa-rrayes/SHDL/blob/master/docs/docs/ar... > Compiles circuits to C so that they can run anywhere Input (Base SHDL): component Buffer(A) -> (B) { n1: NOT; n2: NOT; connect { A
Read the rest
-> n1.A; n1.O -> n2.A; n2.O -> B; } } Output (C code): #include <stdint.h> #include <string.h> typedef struct { uint64_t NOT_O_0; } State; static inline State tick(State s, uint64_t A) { State n = s; // NOT gate inputs uint64_t NOT_0_A = 0ull; NOT_0_A |= ((uint64_t)-( (A & 1u) )) & 0x1ull; NOT_0_A |= ((uint64_t)-( ((s.NOT_O_0 >> 0) & 1u) )) & 0x2ull; // Evaluate NOT gates n.NOT_O_0 = (~NOT_0_A) & 0x3ull; // 2 active lanes return n; } static inline uint64_t extract_B(const State *s) { return (s->NOT_O_0 >> 1) & 1ull; // B from lane 1 } ...
In Show HN: SHDL – A minimal hardware description language built from logic gates

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.