Hacker News

dia

by @andeee23

My own programming language called: dia (stands for do it all). Aims to be a full batteries included language + standard libraries, so that building both with and without AI assistance is effortless and can reuse the building blocks without having to reimplement things. Wrote more about the why here: https://dia-lang.org/vision Most notable such case is the UI library, where you can take out just text rendering, or event/input system, or the signals-based reactive library, and reuse them in other contexts. some other notable features: - vey inspired by rust in syntax and type features - batteries included library containing a full cross-platform gui library including a prosemirror-like wydiwyg text editor - rust like memory safety, uses arenas for cyclic objects so that the language doesn't need lifetime parameters like rust, easier to reason about for generic code - transpiles down to c, then compiles to anywhere C can run - has its own native JSX-like syntax called DSX, any functions with the right signature can be written in DSX notation, not just UI components - incrementally compiled, has HMR (hot module reload) - effortless C interop (dia compiler ships with clang). no need to write manual wrappers for libraries (but sometimes need to write a short manifest file to map dia's memory safety with most c libraries' manual management) More information here: https://dia-lang.org/ (Not open-sourced yet, waiting until the base features are stable)

Discover more builders

Builderlust is an endless, joyful scroll of real projects people are shipping right now. Get the app to keep finding your next spark of inspiration.

📱 Coming soon to iOS & AndroidOpen in the app