The conversation

Lessons learnedExperience excerpt · English

Ok I tried it out

Ok I tried it out. So I run ucm.cmd and it tells me: "I created a new codebase for you at C:\Users\myuser" but there is nothing there except a .unison folder. I didn't look too closely at first but maybe this all works by storing the code in the sqlite file inside that folder? Dot folders aren't usually relevant for project files. Because then even after the cli had me create a new project called happy-porcupine which is pretty unique on my computer I can't find any file or folder anywhere with that name on my machine. So then the getting started guide for unison tells me to create a scratch.u file and put the hello world instructions in there. But where am I supposed to put that scratch.u file? Ok so in desperation I put it right next to the ucm.cmd and just do "run helloWorld" on the cli even though I don't see why this would work but it does. Apparently I'm supposed to just dump my code directly into the downloaded compiler/folder? So then what is the C:\Users\myuser project folder for if I have to put all my .u files directly next to ucm.cmd anyway? …

Original discussionUnison 1.095 source comments · at import
2

Community replies 0

No community replies yet. Add your perspective.

Replies from the source 2

Direct replies available in this import. Original-language excerpts.

PC

Thanks for this report. The tooling takes a little getting used to but it’s extremely powerful. Here are a few benefits you’ll see - UCM keeps a perfect incremental compilation cache as part of its codebase format, so you’re generally never waiting for code to build. When you pull from remote, there’s nothing to build either. Pure tests are automatically cached rather than being run over and over. Switching branches is instantaneous and doesn’t require recompiling. Renaming is instantaneous, doesn’t break downstream usages, and doesn’t generate a huge text diff. All code (and code diffs) are hyperlinked when rendered, supporting click through to definition. I don’t know if you saw these getting started guides, they might be helpful - https://www.unison-lang.org/docs/quickstart/ And then this tour - https://www.unison-lang.org/docs/tour/ You can come by the Discord ( https://unison-la…

Full original
RL

If it helps, here's a side-by-side comparison guide between Java and Unison. It covers the syntax primarily: https://www.unison-lang.org/compare-lang/unison-for-java-dev...

Full original
Continue on Hacker News

Respect different perspectives. Share concrete experiences.

Sign in to post, reply, repost, and quote.