This site has been deprecated. Go to docs.urbit.org.
Urbit DevelopersBlog

Developer Workflows

How some long-term developers work on Urbit.

November 16, 2022

We asked several long-time developers on Urbit about their preferred developer tooling and workflow. Here's what we learned.


~tinnus-napbus

  • What do you work on primarily in Urbit?

    So far I have been focused on developer experience, primarily documentation. Going forward I will be focusing more on core development. Currently I'm working on implementing kelvin version shims so outdated apps which depend on an old kernel version can be run on newer kernels.

  • What does your typical working environment look like?

    I work on a desktop machine running Arch Linux with i3 tiling window manager. I usually use Doom Emacs with hoon-mode for writing hoon, but also sometime Vim with hoon.vim. Usually I have a fakezod in one window, Emacs in another, and then a billion terminal windows open across two screens and several workspaces, many running Vim with additional code I'm referencing.

  • Is there something particularly cool or compelling you have figured out that eases your workflow?

    Not really, I do most things manually. The only Urbit-related tool I use is syntax highlighting. I also use display-fill-column-indicator-mode in Emacs and put a line in column 80 so it's easy to see if code is creeping too far to the right; I find this quite useful for hoon.

  • What would you like to see soon that would make doing what you do easier?

    I would like to see hoon-mode & hoon.vim be able to collapse arms of cores in a similar way to collapsing section headers in markdown & org-mode. I would also like the hoon.vim arm-search implemented in hoon-mode. I also have a bounty up for a desk import/export app - I think this would make it much easier working on fake ships where you can't simply |install apps over the network.


~rovnys-ricfer

  • What do you work on primarily in Urbit?

    The kernel, with occasional forays into the runtime and userspace.

  • What does your typical working environment look like?

    Vim, and fakezods in a ~/ships folder.

  • What would you like to see soon that would make doing what you do easier?

    Make the pretty printer stop hanging.


~wicdev-wisryt

  • What do you work on primarily in Urbit?

    I work mostly on Urbit's kernel and occasionally on its runtime.

  • What does your typical working environment look like?

    I use a 40" 4k monitor with full-screen tmux, with one large pane on top and five small panes across the bottom. The bottom panes are regular fish shells for running ships, using Git, etc.

    The top pane is Neovim with minimal configuration. The biggest modifications are hoon.vim, a blue crosshair on the cursor (it's easy to lose your place on a large monitor), remapping ^h ^j ^k ^l to move around between neovim panes and tmux panes seamlessly, and swapping the numbers and symbols (so you can type symbols without using shift).

    Neovim usually has 5-7 columns, and usually the rightmost one is hoon/lull/zuse, the leftmost one is another reference file and/or a notes file, and the middle ones are all the main file I'm working on, at various different points in the file.

    For the ships, I use either a moon or fake ship, mount whatever desk I need, and in one pane run watch cp -LR <git_desk> <mount_point>. This copies the desk into the ship every two seconds. Then when I want to commit, I run |commit %desk on the ship, using ^R to quickly find the command.

    I constantly copy ships so I can revert their state over and over to try things. Don't spend time waiting for ships to boot.

    neovim config: https://github.com/philipcmonk/dotfiles/blob/7a575b6c43e3a27bd54722a9c5ca456a54a8d974/vim.nix

    For C, make heavy use of gdb. lldb is far worse than gdb for debugging Urbit, so it's worth developing on a Linux box even if that means sshing into a server.

  • What would you like to see soon that would make doing what you do easier?

    I don't know about soon, but Nock should be very debugger-friendly. I would love to see a well-done one.


~rabsef-bicrym

  • What do you work on primarily in Urbit?

    Primarily I work on userspace applications that express the breadth of the promise that Urbit brings to potential users.

  • What does your typical working environment look like?

    My working environment is VSCode and one folder. I have 6 panes - 4 of code, 2 of ~wet and ~zod in terminal. The panes are in 2x3 arrangement. Sometimes I add additional panes. Basically top left is always the Agent, top right is "other agents and additional errata", middle left is sur files, middle right is lull, hoon, zuse, other sys files, bottom panes are left zod right wet.

  • Is there something particularly cool or compelling you have figured out that eases your workflow?

    The biggest thing for me is building my desks replete with all of the mar files they need by hand and then using |new-desk %whatever which is available https://github.com/urbit/urbit/pull/5360 and will be in next/arvo when released

    Further: If you just build all your desks with everything they need you don't have to get smacked with "what desks do I merge in here" which I find intensely annoying. (Also it's wasteful of files you don't need which just makes downloading your agent take longer.)

    Another point here: When reading the nested core pattern I find it helpful to have 2 panes of the same agent open side by side. In one pane you're seeing go-abet:go-able:go-past:go-fish:(go-abed 1 ~) and the other you're tracking back thru to each one of those functions. The pattern is very efficient for some things and is in use in a lot of Tlon stuff and core, so reading it is important.

  • What would you like to see soon that would make doing what you do easier?

    A hoon-first UI system would make me a single person full stack dev shop.


~palfun-foslup

  • What do you work on primarily in Urbit?

    Primarily kernel development for Tlon, userspace development in my spare time.

  • What does your typical working environment look like?

    VSCode with Hoon syntax highlighting and a slightly borked tabnine install. No other hoon-writing-related assists otherwise. Manual cp -RL and |commit into fakeships in a tmux session.

  • Is there something particularly cool or compelling you have figured out that eases your workflow?

    Simply learn to live with the pain.

  • What would you like to see soon that would make doing what you do easier?

    I don't feel like I particularly need it, but Hoon IDE would be a lot of fun: Power Thesaurus integration and everything

    To clarify on the "learn to live" point: I don't actually think the manual stuff is all that painful. It takes me just a quick second or two to copy things in once it's all set up. "Desk building" from the *-dev package directories is dumb and trimming it down is worth the effort, but also not that hard if you know what you're looking at. I realize this is a hot take (^:.


~sogrum-savluc

  • What do you work on primarily in Urbit?

    The majority of my time is spent building Vue.js Typescript interfaces for Quartus applications but I've been spending ever more time in Hoon lately. In fact, now when I write Javascript I just wish I was writing Hoon!

  • What does your typical working environment look like?

    I use tmux + vim on linux. When I'm in interface mode I have a fullscreen tmux session in front of me with vim in 75% of that and a stack of panes in the right-most 25% containing fake zods, bounce scripts, js dev server, temporary shells, etc. I've got another (vertical) monitor on my left with a browser + dev tools.
    When I'm writing Hoon-only that left-side monitor features urbit.org docs.
    I have an Obsidian notebook where I keep my own Hoon reference. That's bound to some keystrokes so I can easily check (and slowly build) my own Hoon notes.

  • Is there something particularly cool or compelling you have figured out that eases your workflow?

    Yes! bouncer.
    Any time I find myself repeating a set of dojo or unix commands for ship management, I instead configure it in bouncer. I now have a little stable of app configs for the various projects I've worked on and ship/dependency management is a dream. At this point I've saved at least hours not screwing around with fake ships. Everything is automated and idempotent(ish).

  • What would you like to see soon that would make doing what you do easier?

    Automatic JSON spec generation from mar files.
    It's less important to me now that I'm competent in Hoon, but early on I sucked up a lot of time from the Hooners on the team in petitioning them to help me understand the expected poke and response structures. And when those changed we'd have to get into it again (and change my types in Typescript). If a two-person team of newcomer front end developer + experienced Hooner could instead share a single automatically-generated JSON spec/contract I think we'd see a much-needed spike in Javascript developers building interfaces for gall agents.

Next Post

App Workbook

November 17, 2022

Previous Post

A Developer Pill

November 15, 2022