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 commentsBy default, using a name like `janedoe91/fibonacci` pulls the latest version of that particular scrap from the scrapyard. But all of its references are baked-in unless the author updates them.
The way around this is that consumers are empowered to use whatever forcing upgrade strategies they want. All scraps are transparent, so you can pipe everything through an "upgrader" scrap before execution, which replaces dependencies all the way down the stack with their latest versions. I'm sure many of these upgraders will exist depending on what types of tradeoffs you're looking for.
MVS is a nice and easy algo: https://research.swtch.com/vgo-mvs
All scraps are transparent, so you can create your own tools to manually tweak/replace dependencies before execution:
Continue this thread — 5 replies
As I see it most of the more unique ideas could be implemented in form of some tooling on top of some existing languages.
What do I overlook here?
I deeply hope that's true, because it'll save me a lot of work :)
Software doesn't seem to be getting better. In fact, it seems to be getting worse in many areas.
Personally, I don't think there's "one big thing" that harms the ecosystem. I think it's friction in 1000 different places due to systems that don't quite work together seamlessly.
Scrapscript is an attempt to vertically integrate all the lessons we've learned in software in the past 80 years.
import foo/bar
And foo's bar library will just work in your program without you having to download it then bundle it. It will just look for foo’s bar library online when it runs (and I guess it’ll be running on an online platform, not necessarily on your own computer).
Type-safety guarantees that you won't get any side-effects where the types don't fit.
And if you really want to run untrusted code, scraps are designed to be very easy to inspect :)
All comments shown.
Couldn't load more comments. Check your connection and try again.