Project ideas from Hacker News discussions.

Show HN: GDSL – 800 line kernel: Lisp subset in 500, C subset in 1300

📝 Discussion Summary (Click to expand)

Three prevailing themes in the discussion

Theme Key points Representative quotes
1. Low‑level language design & the “MIX” layer Participants discuss the idea of a minimal, core layer that turns one line of code into the next, and how it can be the foundation for higher‑level abstractions. “Mu is what I would call a MIX layer, the real substance of a process which turns one line of code into the next.” – FirTheMouse
2. Self‑hosting, code size, and compiler implementation The conversation touches on how small the current codebase is, the lack of self‑hosting, and comparisons to other minimal compilers. “GDSL is written in C++ with use of STL, templates and lambdas, so it's 2600 lines of such C++ source code.” – ptspts
“There is no self‑hosting: neither the LISP compiler nor the C compiler can compile itself.” – ptspts
3. Balancing ease of use with deep control Users compare the appeal of high‑level languages like Python to the desire for direct, low‑level manipulation, and speculate on a future where a user can start with a friendly interface and drill down to the MIX layer. “Python is so much more appealing than direct control. Pure TAST. Sugar for the hungry, and grammar that lets you say everything while knowing nothing.” – FirTheMouse

These themes capture the core concerns: designing a minimal, powerful core, the practicalities of building and scaling a compiler, and the tension between user‑friendly syntax and deep, low‑level control.


🚀 Project Ideas

Generating project ideas…

Self-Hosting Mini-Compiler Framework

Summary

  • A small, self-hosting compiler that can compile itself, generating LLVM IR, with a simple language for teaching and experimentation.
  • Core value: gives developers a fully understandable compiler in ~10k lines, with a self-hosting build, and a web playground.

Details

Key Value
Target Audience Compiler enthusiasts, educators, hobbyists
Core Feature Self-hosting compiler, LLVM IR generation, web playground
Tech Stack Rust, LLVM, WebAssembly, React
Difficulty Medium
Monetization Hobby

Notes

  • HN commenters want a self-hosting compiler: “I’ve been working towards making it self hosting eventually” (FirTheMouse).
  • Provides a practical tool for learning compiler construction, addressing the frustration of “no self-hosting” and “no examples”.
  • Encourages contributions to the MIX layer.

MIX Playground

Summary

  • Interactive web app that lets users write Mu/MIX code, see the intermediate representation, step through compilation, and view generated assembly/LLVM IR.
  • Core value: visualizes the abstract process, making the “MIX layer” tangible for curious minds.

Details

Key Value
Target Audience Curious developers, students, language designers
Core Feature Live code editor, step‑by‑step visualization, IR dump
Tech Stack TypeScript, React, WebAssembly, D3.js
Difficulty Medium
Monetization Hobby

Notes

  • Users expressed desire for “fun examples built with it” (akkartik).
  • The tool addresses the lack of concrete examples and helps bridge the gap between theory and practice.
  • Sparks discussion on how to unify Python TAST, Rust DRE, etc.

Unified TAST/DRE Language

Summary

  • A language that merges Python’s TAST, Rust’s borrow‑checking, and Haskell’s type system into a single, small compiler that can compile itself.
  • Core value: offers a single entry point for exploring type systems, memory safety, and compiler internals.

Details

Key Value
Target Audience Language designers, advanced hobbyists
Core Feature Unified type system, borrow‑checking, self‑hosting compiler
Tech Stack Rust, Haskell, LLVM
Difficulty High
Monetization Revenue‑ready: subscription for advanced docs & tooling

Notes

  • Reflects the comment: “I would be curious to see how these could be unified” (FirTheMouse).
  • Provides a practical platform for experimenting with multiple type system paradigms.
  • Encourages community contributions and research.

Read Later