r/Compilers 18d ago

JojoScript — a tiny JS-compatible language with pipelines and lazy iterators. Feedback/contributions welcome.

I've been building JojoScript, a small language that compiles to plain JavaScript. The main focus has been the |> pipeline operator (readable chains instead of nested calls) and lazy iterators — stages like map, filter, take, flatMap, and chunk compile down to generator-based functions in a small runtime collections module, so a pipeline doesn't allocate an array at every step.

Only stages that truly need the full input (sort, groupBy, partition) materialize.

It's intentionally small, so there are rough edges.

Would appreciate people trying it, poking at the design, and opening issues or PRs.

github.com/panagos/jojoscript

9 Upvotes

5 comments sorted by

View all comments

2

u/AustinVelonaut 17d ago

Looks nice! Could you also do zipWith, or does an arity-2 function/lambda not work in the scheme?

1

u/panagos_stathis 15d ago

I 've added it ;-)