Description
Scrapscript is a small functional programming language built around sharing software safely. Every expression can be stored as a content-addressed chunk, called a scrap, that is identified by its hash, and scraps are kept in shared scrapyards so programs can refer to each other without the usual package-management breakage. The language has pattern matching functions, a typed syntax and a flat binary representation for sending values over the wire. Its design aims to make programs data, so an unevaluated program can be sent to another machine and run in a sandbox. The site describes a time-travel interpreter, expression-level versioning and a worldwide collaborative namespace where names such as a user's module can resolve to specific hashes. The site has a guide, news and a chat room, and the project is on GitHub. It is aimed at language enthusiasts and developers who want to explore the idea.…
Highlights
- Functional language with pattern matching
- Content-addressed chunks called scraps
- Shared namespace without broken dependencies
- Expression-level versioning
- Send programs and values over the wire
Ratings & Reviews
No ratings yet
Be the first to rate scrapscript.
People also visit
scrapscript FAQ
What is Scrapscript?
Scrapscript is a tiny functional programming language. Its goal is to make software easy to share, so that code can be reused safely across machines.
How does it avoid dependency problems?
Each expression is stored as a hash-identified scrap. A program refers to exact content instead of a floating version, so the site claims dependencies do not break in the usual way.
Where can I learn it?
The site has a guide, a news section, a chat room and a code area with examples. The source is published on GitHub.
Who is it for?
It is aimed at people interested in programming languages and at developers who want to experiment with content-addressed code.
What are the best scrapscript alternatives?
Popular alternatives to scrapscript include Scroll, XOScript and snippet.host. See all scrapscript alternatives


