logoalt Hacker News

Show HN: Nibble

51 pointsby glouwbugtoday at 1:46 AM5 commentsview on HN

An attempt at a single pass LLVM frontend in ~3000 lines of C without external dependencies, malloc, or an AST. Included are some graphical examples. The IR isn't perfect, and the README touches on one particular downfall


Comments

childintimetoday at 8:18 AM

Love this. But no explanations about the language. `defer` for example I didn't see in the 2 `main.n` I checked, and memory management remained a mystery. Would love to see a little more context.

Also, this is actually around 1000 lines.

felooboolooombatoday at 7:53 AM

This is just an observation, not a criticism of your brilliant project OP. People with sensory processing issues can struggle with reading text when everything is animating around it (as per readme).

felooboolooombatoday at 7:50 AM

Brilliant logo. I'm trying to put my finger on what it reminds me of. It tickles my brain.

binyang_qiutoday at 6:16 AM

Doing this in ~3k LOC C without malloc or an AST is honestly pretty impressive. Interested to see how far the IR can scale.

mock-possumtoday at 4:43 AM

What’s the connection to the snake clone or a half-byte?