Lil' Fun Langs
taylor.town
Lil' Fun Langs
1–10 of 26 posts
Re: Lil' Fun Langs
#2Re: Lil' Fun Langs
#3Fluent – 4K lines – including parser, interpreter, standard library, IDE, UI, docs, examples. Will grow though. https://github.com/mlajtos/fluent/blob/main/client.tsx
EDIT: Actually, it's not quite "ML-family" enough for this post. But it is a remarkably cool project! :)
Re: Lil' Fun Langs
#4Re: Lil' Fun Langs
#5- 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
Re: Lil' Fun Langs
#6Fluent – 4K lines – including parser, interpreter, standard library, IDE, UI, docs, examples. Will grow though. https://github.com/mlajtos/fluent/blob/main/client.tsx
I'll add it! Thanks. EDIT: Actually, it's not quite "ML-family" enough for this post. But it is a remarkably cool project! :)
And here is a set of single file lambda calculus implementations with a variety of extensions: https://github.com/solomon-b/lambda-calculus-hs
`polytt` is kind of an ended experiment but that lambda calculus repo i plan to extend in the near future.
Re: Lil' Fun Langs
#7Re: Lil' Fun Langs
#8 [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]]Re: Lil' Fun Langs
#9loon 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]]
Re: Lil' Fun Langs
#10My 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-t…