TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Scrapscript: A functional, content-addressable programming language

193 pointsby luu10 months ago

14 comments

emmanueloga_10 months ago
&gt; Scrapscript solves the software sharability problem.<p>&gt; it’s JSON with types and functions and hashed references<p>&gt; it’s tiny Haskell with extreme syntactic consistency<p>Content-addressability is one of the main features of Unison [1]. How do the languages compare? Why did you feel the need to create a new language (especially since both have a strong Haskell flavor).<p>I&#x27;m guessing lots of people will have these questions so it could be good to mention Unison somewhere in your materials. The language seems to have big goals, so it doesn&#x27;t seem that you are working on it &quot;just for fun&quot; :-).<p>Are there other &quot;content-addressable&quot; languages out there other than these two?<p>--<p>1: <a href="https:&#x2F;&#x2F;www.unison-lang.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.unison-lang.org&#x2F;</a>
评论 #41053129 未加载
评论 #41057154 未加载
surprisetalk10 months ago
Main site&#x2F;community:<p>• <a href="https:&#x2F;&#x2F;scrapscript.org" rel="nofollow">https:&#x2F;&#x2F;scrapscript.org</a><p>• <a href="https:&#x2F;&#x2F;scrapscript.discourse.group" rel="nofollow">https:&#x2F;&#x2F;scrapscript.discourse.group</a><p>• <a href="https:&#x2F;&#x2F;news.scrapscript.org" rel="nofollow">https:&#x2F;&#x2F;news.scrapscript.org</a><p>Max&#x27;s brilliant dev insights:<p>• <a href="https:&#x2F;&#x2F;bernsteinbear.com&#x2F;blog&#x2F;scrapscript" rel="nofollow">https:&#x2F;&#x2F;bernsteinbear.com&#x2F;blog&#x2F;scrapscript</a><p>• <a href="https:&#x2F;&#x2F;bernsteinbear.com&#x2F;blog&#x2F;scrapscript-baseline" rel="nofollow">https:&#x2F;&#x2F;bernsteinbear.com&#x2F;blog&#x2F;scrapscript-baseline</a><p>• <a href="https:&#x2F;&#x2F;bernsteinbear.com&#x2F;blog&#x2F;scrapscript-tricks" rel="nofollow">https:&#x2F;&#x2F;bernsteinbear.com&#x2F;blog&#x2F;scrapscript-tricks</a><p>I posted a brief update here this morning:<p>• <a href="https:&#x2F;&#x2F;scrapscript.discourse.group&#x2F;t&#x2F;2024-07-23-design-development-update&#x2F;85" rel="nofollow">https:&#x2F;&#x2F;scrapscript.discourse.group&#x2F;t&#x2F;2024-07-23-design-deve...</a><p>Stay tuned! Lots of cool stuff coming :) Some sneak previews:<p>• <a href="https:&#x2F;&#x2F;taylor.town&#x2F;sle-2024-cfp" rel="nofollow">https:&#x2F;&#x2F;taylor.town&#x2F;sle-2024-cfp</a><p>• <a href="https:&#x2F;&#x2F;taylor.town&#x2F;unsound-2024-cfp" rel="nofollow">https:&#x2F;&#x2F;taylor.town&#x2F;unsound-2024-cfp</a>
winternewt10 months ago
The web site appears to claim that this solves interoperability between systems. I don&#x27;t understand how. What enables one system to understand content coming out of another? For example, let&#x27;s say you have two medical devices sharing patient data. Will scrapscript make it possible for them to create a mapping between the information models of the two systems?
tekknolagi10 months ago
Hi! It&#x27;s me, I&#x27;m one of the interpreter and compiler authors. Happy to answer questions
评论 #41054939 未加载
评论 #41082123 未加载
评论 #41059431 未加载
评论 #41062433 未加载
lifeisstillgood10 months ago
So, (and this is five minutes playing here no deep dive), content-addressable is taken Seriously here.<p>Each expression is a hash of (its ancestors - not too sure) but the implication is sort of the git dag is built into the language. Looks like that has deepmimplications for releases, deployments, inspecting code chnages<p>There is an implication that my-labcorp is using scrapscript. Which is interesting as it seems to be a health based platform - tracking and dealing with test results, X-ray images etc etc<p>So I love committing to one of the most basic CS concepts (cryptographic hashes)<p>And I love the implications for code management. What I am not sure is why that helps with things like labcorp platform - I also love those implications (encrypt and store and just shuffle that data) because cannot any language use the concepts ?
评论 #41055208 未加载
johnkozak10 months ago
Another niche that ScrapScript might fit nicely in is NixOS&#x2F;Guix type specification languages (e.g. nix)
dang10 months ago
Related:<p><i>Some Tricks from the Scrapscript Compiler</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=40933250">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=40933250</a> - July 2024 (6 comments)<p><i>Scrapscript</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=40613756">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=40613756</a> - June 2024 (1 comment)<p><i>A Baseline Scrapscript Compiler</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=40551583">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=40551583</a> - June 2024 (4 comments)<p><i>scrapscript.py</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=39104504">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=39104504</a> - Jan 2024 (75 comments)<p><i>Show HN: Scrapscript “guide”, proposals, and community chat</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=36519579">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=36519579</a> - June 2023 (2 comments)<p><i>Show HN: ScrapScript – A tiny functional language for sharable software</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=35712163">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=35712163</a> - April 2023 (135 comments)
fire_lake10 months ago
I am interested in this as a replacement for bash scripts<p>The killer feature would be pulling in other scripts as libraries (they may be published anywhere) but I can lock down the hash of these dependencies inside of my script file.<p>Is this possible?
评论 #41054979 未加载
评论 #41054239 未加载
评论 #41057935 未加载
zubairq10 months ago
As the author of another language with uses content addressable code for all source code (also to aid in shareable code - <a href="https:&#x2F;&#x2F;yazz.com&#x2F;app&#x2F;homepage.html" rel="nofollow">https:&#x2F;&#x2F;yazz.com&#x2F;app&#x2F;homepage.html</a>) I feel that it is really good to see that projects such as ScrapScript use this technique. Well done guys!
munro10 months ago
Lots of amazing ideas here! One more that would be great is &#x27;sandboxing&#x27; if a program can use network&#x2F;filesystem&#x2F;etc, then I would feel safe to run any random scrap if I knew I would get some sort of oauth-looking screen that said what it wanted to access.
ilaksh10 months ago
Is there a way to search the large scrap yard?
bwestergard10 months ago
How does Scrapscript compare to Dhall?
hombre_fatal10 months ago
i’ve liked this from the start but never dove too deep.
评论 #41062605 未加载
postepowanieadm10 months ago
It compiles to python?
评论 #41056600 未加载