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
verdverm1 reply#
Would the IPFS-ness of this make updating all the programs that suffer from an exploit or error a difficult thing? Kind of like smart contracts, once it is published, there is no changing it? So the chain of dependencies containing the exploit or error, make updating all of the consumers a pain.
surprisetalk1 reply#
This is a great observation.

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

verdverm1 reply#
Can scraps be versioned? Is it possible to see the available versions of a scrap? Could you add support for dependency management?

MVS is a nice and easy algo: https://research.swtch.com/vgo-mvs

surprisetalk5 replies#
Yes, scraps can be versioned:

  user/my-scrap@99
And you can check the available versions of the scrap by querying the scrapyard directly. But omitting the version will just use the latest:

  user/my-scrap
Each scrap contains a full list of its own dependencies, so there is no need for external dependency management.

All scraps are transparent, so you can create your own tools to manually tweak/replace dependencies before execution:

  $ cat my-scrap.ss \
    | scrap apply my-dependency-helper \
    | scrap eval

Continue this thread — 5 replies

eggy#
I like the unique hash thing like Unison, but it also has an Urbit/Nock/Hoon vibe aside from IPFS one you mentioned. I'll check it out tomorrow. Ilike the examples and syntax. Types - yay!
still_grokking1 reply#
Why the custom language? Building a language is already a lifetime project on its own…

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?

surprisetalk#
> As I see it most of the more unique ideas could be implemented in form of some tooling on top of some existing languages.

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.

thrrwy0071 reply#
everyone says this is cool, but I didn't understand it at all, so embarrassing :(( please eli5, honestly, want to understand this, what is this and how is it useful?
will54211 reply#
One cool thing, I think, is that you can do

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

ivanjermakov1 reply#
Sounds quite dangerous...
surprisetalk#
It's only dangerous in very predictable circumstances :)

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

Load more comments