Skip to content

Instantly share code, notes, and snippets.

@ryjm
ryjm / hoon.org
Last active September 27, 2024 19:56
+$  peek-result
  $_  ^|
  |_  ker=kernel-state
  +$  state
    $%  [%desk-hash _desk-hash.ker]
        [%peers _peers.ker]
        [%topics _topics.ker]
        [%timers _timers.ker]
        [%identity _identity.ker]
@ryjm
ryjm / karate.hoon
Last active February 23, 2024 20:17
karate.hoon
[%kiln-install %wiki-gist ~holnes %wiki]
@ryjm
ryjm / cheatsheet.md
Created October 15, 2023 00:51
hoon cheatsheet

arms

Rune Type Description
+| lus Label a chapter (produces no arm)
+$ [term spec] Produces a structure arm (type definition)
++ [term hoon] Produces a (normal) arm
+* [term term spec] Define a deferred expression (within a door)

cores

@ryjm
ryjm / ob-hoon.el
Created September 13, 2023 04:02
;;; ob-hoon.el --- org-babel functions for hoon evaluation
;; Copyright (C) your name here
;; Author: your name here
;; Keywords: literate programming, reproducible research
;; Homepage: https://orgmode.org
;; Version: 0.01
;; This program is free software; you can redistribute it and/or modify

Keybase proof

I hereby claim:

  • I am ryjm on github.
  • I am ryjm (https://keybase.io/ryjm) on keybase.
  • I have a public key ASC5t-Ht_8T1osjXz1Y9DtAyFt03hmzVFt5MoJ_QVyQt4wo

To claim this, I am signing this object:

/+ language-server-parser
:: Autocomplete for hoon.
::
=/ debug &
|%
+* option [item]
[term=cord detail=item]
::
:: Like +rose except also produces line number
::
Thread 1 (LWP 8165):
#0 0x0000000000772833 in __restore_sigs ()
#1 0x00000000007728a1 in raise ()
#2 0x000000000076aa40 in abort ()
#3 0x000000000043d2f6 in u3m_bail (how=how@entry=1936748399) at noun/manage.c:692
#4 0x000000000043d08e in c3_cooked () at noun/manage.c:727
#5 0x0000000000432b09 in u3e_fault (adr_v=<optimized out>, ser_i=<optimized out>) at noun/events.c:129
#6 0x000000000050589e in sigsegv_handler ()
#7 <signal handler called>
#8 0x0000000000444073 in u3r_at (a=<optimized out>, b=3754942089) at noun/retrieve.c:83

unix install

Copy into the urbit/urbit repo so that dependencies can be symlinked without messing with the app source.

# Assumes you are in the urbit/urbit git repo
cd pkg
rm -rf ./seer/*
cp -R ~/vault/projects/seer/urbit/* ./seer

./symbolic-merge.sh ./garden-dev ./seer # for docket agent

@ryjm
ryjm / roam.hoon
Created September 22, 2021 13:21
!:
=, dejs:format
|%
++ dejs
|%
++ roap
%- ou
:~ [':create/user' (un ruid)] :: create
['children' (un (ar roan))] :: (ar node)
['edit-time' (un ni)]
@ryjm
ryjm / gist:35e37ff4117f1402cd4d9837c1f91f2f
Created November 29, 2018 15:40
fallout raider dialogue
Tell me the truth, Joe... does this coat make me look fat?
So does the flame thrower really get the chicks?
Touch me again and I cut off your balls!
Heh heh. She wants me.
Just do your goddamn job and shut your mouth!
Pain! Pain is your only friend!
I'm gonna mount you on my fucking wall!
Should have stayed in bed today, hero!
Are you gonna cry? Come on, cry for me!
That's right. Love the pain! Embrace the pain!