Nisp: Less verbose Nix, less exciting errors

I made nisp, a Lisp-like authoring layer that compiles to regular Nix:

https://github.com/tompassarelli/nisp

A nicer authoring layer with faster feedback before getting all the way to nix build.

The main things it does right now:

  • Catches some errors before the build starts

  • Gives file/line/column diagnostics

  • Cuts my edit/check loop from around 30โ€“120 seconds to around 5 seconds

  • Compressed some module code in my repo by about 3.7x

  • Outputs normal Nix, so generated code can still be inspected, committed, edited, or replaced with raw Nix

Thanks for taking a look.

10 Likes

Working now to harden nisp into beagle/bnix: GitHub - tompassarelli/beagle: a typed Lisp authoring surface for agent-written dynamic code. ยท GitHub
(beagle extends the same ideas to javascript, clojure, and more)

2 Likes