Unison Cloud is now open source
67 points by bontaq
67 points by bontaq
I've used Unison for like ~2 years, and it's by far, really far, my favorite language to use. The weirdness budget is blown, there is the hashing and algebraic effects, but it's a very empathic functional programming language. My time is not spent on waiting for compile/build times. resolving dependency conflicts or playing type-tetris; I can just go write out business logic and code runs. The maintainers/community are also very cool & kind people.
I've deployed something to Unison Cloud a while back nowl: a KOReader sync service, and maintenance of it is really easy-going, like caring for some plants.
And now the Cloud part is also open source it means that advocating it is also easier! The way you can type out a database is really cool and should be the goal when focusing on ergonomics.
-- A really small peek into persisting data!
type Storage = {
postsById: OrderedTable UserId Post
}
After some initialization you can just use those types/data structures, and it'll persist! It's chef's kisses.
Out of curiosity, is your KOReader sync service available anywhere? No worries if not, I was just interested in checking it out, both from a functional perspective, and also taking a peek at the code (if it's open source). Thanks for mentioning it!
The code is open source: https://share.unison-lang.org/@zetashift/kosyncison With the fun stuff being in the router and database calls, e.g.: https://share.unison-lang.org/@zetashift/kosyncison/code/releases/1.2.0/latest/terms/@5lnnc5ldf53lpnc13g5c8rqfror6996f0jd4rbh42t533demq5ibdeo2llb1t0sfo27osphrpb76rjtge7u1t8ujjdsmlmjmrdji548
If you want to try it out with your KOReader app, I'd recommend running it locally because it's a lot of fun and deploys are faaaassttt.
edit: I don't have a function yet to run it locally lol, I can add that this weekend, or if you are in a hurry I can create an account on my personal instance and sent you it.
For those who haven't heard of it, Unison has some pretty neat ideas including hashing all functions which allows for instant deploys (it's like updating a pointer as I understand it) and has put in the work for how programming like that would work. It's a pretty different experience and now that they've opened up the cloud portion, it looks to me like an intriguing way to have lots of little services on your servers.
Will give Unison another look. Was always put off by the vendor lock in.
Edit: gave it another look, Unison Cloud uses DynamoDB for storage. This thing is such a weird mix of extremely interesting academic programming language theory in practice, and weird enterprise nonsense.
Edit 2: they took it down again? https://github.com/unisoncomputing/nimbus
Nimbus is available at https://share.unison-lang.org/@unison/nimbus
So... The GitHub repo is private? Weird way to do open source.
Did https://github.com/unisoncomputing/nimbus work for you at one point?
I think the intent is that Nimbus (being written in Unison) is available via Unison Share, but that the README for the now open sourced Nimbus repo links to docs, etc. on GitHub, that originally were more for internal use.
I sent an email and got a reply from Paul Chiusano that they're going to take a look and fix those links, which may mean deleting links to e.g., runbooks that might have been more relevant to their internal deployment of Unison Cloud. There's also been some similar questions raised on the Discord earlier today re: broken links in the Nimbus README.
You can get the entirety of the Nimbus repo (as I understand it), including the full history, from Unison Share via the Unison Codebase Manager (UCM) with "clone" command.