Lurker News
Hi 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 comments
noduerme1 reply#
I'm trying to wrap my head around the "magic compression" bit. So literally every namespace lives in a repo somewhere? And even files referenced are just automatically committed to that repository? What am I missing?

Also how does this not create either an enormous tangle of circular references or a huge pile of unused... scrap?

andyferris#
It’s content addressed, so circular references can’t naturally arise. You kind of need to create an ID of some sort and reference that and create some way of looking that up. I didn’t check if they allow for recursive function calls, etc.

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).

crowdhailer#
This is very cool. I have similar goals with my own language. Though I am developing only and AST and no syntax because I would like to be able to embed the same language into visual programming environments.

https://petersaxton.uk/log/

al2o3cr1 reply#
Since each function is independently versioned, how does ScrapScript deal with functions that need to upgrade together?

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"?

surprisetalk#
If the function output remains the same, then there are no breaking changes.

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.

jayjader#
Very interesting! I'm especially curious on how the live-coding experience plays out.

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.

Load more comments