Show HN: ScrapScript – A tiny functional language for sharable software (opens in a new tab)scrapscript.org
503 pointsHi friends,
I started casually working on scrapscript in 2015. I built a few compilers over the years to test out various ideas/implementations, and I think I'm finally happy with the overall design.
The code is not public yet. Email me at hello@taylor.town if you're interested in joining the core team later this year.
Let me know if you have any questions or feedback :)
Comments (135) 41 threads
Earlier commentsAlso how does this not create either an enormous tangle of circular references or a huge pile of unused... scrap?
The repository/scrap pile of content could be stored in lots of ways that you could choose. I imagine if everyone pushed directly to a global “scrap pile” like IPFS it would end up as a huge pile of unused scrap. Like unison, they’d need to provide some kind of default development environment, but anyone could build additional tooling (kind of like anyone could write a git clone).
https://petersaxton.uk/log/
For instance, suppose "foo" produces a structure and "bar" consumes it - what happens if the user passes the output of "foo version 10" to "bar version 1"?
If breaking changes occur, the type system will let you know :) Then you can either pin the function to an older version or fix the breaking changes directly.
The language provides enough guarantees to make tooling that can handle most of this for the user automatically.
I wish there was an example of a moderately-complex scrapbook, so that I could see what the code looks like when you start mixing several scraps and need a minimum of scaffolding.
All comments shown.
Couldn't load more comments. Check your connection and try again.