Re:Show HN: ScrapScript – The Sharable Programming Language
by ivanjermakov on Saturday April 29, 2023 @09:18PM
(#35758864)
Sounds quite dangerous...
Re:Show HN: ScrapScript – The Sharable Programming Language
by surprisetalk on Saturday April 29, 2023 @09:28PM
(#35758910)
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 :)
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).