5 ms·
Show HN: Nibble
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
- mock-possum 5mo agoWhat’s the connection to the snake clone or a half-byte?
- binyang_qiu 5mo agoDoing this in ~3k LOC C without malloc or an AST is honestly pretty impressive. Interested to see how far the IR can scale.
- felooboolooomba 5mo agoBrilliant logo. I'm trying to put my finger on what it reminds me of. It tickles my brain.
- unsheriff 5mo agoMajin Buu?
- DiabloD3 5mo agoPlan 9's Glenda crossed with a Peep?
- agos 5mo agoit's one of those "rabbit" dildos
- ttbr-egl 5mo agoBut the eyes are great
- felooboolooomba 5mo agoCute like a sweet pussycat.
- 867-5309 5mo agoMr Lazy? https://m.media-amazon.com/images/I/714aejg+5hL.jpg https://m.media-amazon.com/images/I/714aejg+5hL.jpg
- felooboolooomba 5mo agoThis 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).
- latexr 5mo agoI’m not doubting you, but what kind of sensory processing issues are you thinking of? I’m interesting in reading more if you have a link.
- felooboolooomba 5mo agoSensory Processing Disorder. I don't want to pick out a specific link since I'm no expert, but if you search for it and pick a reliable source you're on your way. Many adults suffer from it without knowing. I'm one of them. Well, I was. I still suffer from it but now I know.
- latexr 5mo ago> Sensory Processing Disorder Oh, it was that simple to find. I was expecting something more complicated. Thank you. Wikipedia seems like a good place to start. https://en.wikipedia.org/wiki/Sensory_processing_disorder https://en.wikipedia.org/wiki/Sensory_processing_disorder https://en.wikipedia.org/wiki/Sensory_processing_sensitivity https://en.wikipedia.org/wiki/Sensory_processing_sensitivity
- andai 5mo agoOnce I beheld the chickens, I could not look away.
- thih9 5mo agoThese days mainstream browsers offer a "hide distracting elements" feature, which makes hiding gifs trivial, especially in this case.
- 5mo ago
- childintime 5mo agoLove 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.
- bensanm 5mo agoLooks really neat and minimalist - nice work :-) Big fan of Kishimisu's shader work - nice to see you featuring it on your main page.
- fizza_pizza 5mo agoThis is seriously impressive. A single pass LLVM frontend in ~3k lines of C with no malloc or AST is kind of wild. The graphical examples were a really nice touch too. Curious to see how far you can push the IR.
- ElenaDaibunny 5mo agoclean project, bookmarked it. always nice seeing side projects that actually ship instead of staying in readme-only mode forever.
- steffs 5mo ago[flagged]
- thedetailsguy 5mo agosuper cool!
- hartator 5mo agoWhat’s IR?
- phrotoma 5mo agoIntermediate Representation. It's an architecture independent "halfway point" that happens during compilation, in between reading the source code and writing the binary. It's part of the approach that makes it possible for LLVM to "plug-in" a new target architecture by just adding a bit that turns IR into machine code for the new chip. I'm oversimplifying because it's all black magic to me, but I do know that acronym.
- RaphaelBenHamo 5mo ago[dead]
- hope2 5mo ago[dead]
- Panzerschrek 5mo agoGood for a student work, but nothing special.
- syedMohib45 5mo agoReally loving this project tbh :D <3