Lil' Fun Langs
taylor.town - 74 poäng - 8 kommentarer - 19524 sekunder sedan
Kommentarer (5)
- ecto - 4746 sekunder sedanloon is a lisp! https://github.com/ecto/loon
[type Shape [Circle Float] [Rect Float Float]] [fn area [s] [match s [Circle r] => [* 3.14 r r] [Rect w h] => [* w h]]] [area [Circle 5.0]] - dunham - 11630 sekunder sedanMy little language Newt is 7 kloc. Dunno if it's worth including, it's mostly an exercise to learn how these things work and is not as polished as I'd like.
- Self-hosted
- Compiles to javascript
- Bidirectional typechecking with NbE (based on elaboration zoo)
- Dependent type checking
- type classes
- ADTs with dependent pattern matching
- TCO (trampoline for mutually tail recursive functions)
- Erasure of compile-time only values (0, ω quantities, but not linear)
- Web playground
- LSP (added this month)
- Syntax is similar to Agda / Idris / Haskell
- mlajtos - 15722 sekunder sedanFluent – 4K lines – including parser, interpreter, standard library, IDE, UI, docs, examples. Will grow though.
- lachlan_gray - 6416 sekunder sedanAnother crazy one is SectorLISP, 223 lines of asm
- nimbus-hn-test - 12059 sekunder sedanThe hardest part with small languages isn't the parser, it's the standard library and error messages. Getting a helpful IDE experience in that footprint is a significant engineering challenge.
Nördnytt! 🤓