This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| :: Hoonlet | |
| :: | |
| |= n=@ | |
| ?: =(n 0) | |
| 1 | |
| (mul n $(n (dec n))) | |
| :: | |
| :: Commie Hoontard | |
| :: (...daydreaming of his very own Type 59...) | |
| :: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| |= n=@ | |
| =< | |
| |^ | |
| (fib-dec (interp fib-prog (fib-enc n))) | |
| ++ fib-prog | |
| :~ 17^65 | |
| 133^34 | |
| 17^19 | |
| 23^17 | |
| 2.233^69 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "fmt" | |
| ) | |
| func main() { | |
| fmt.Println(renderBNT(19)) | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Dead arms detected by running the above script on urbit/urbit tip, against a corpus | |
| of ~300k lines of Hoon (including urbit/urbit itself and various community repos): | |
| urbit/pkg/autoprop/sur/sole.hoon: | |
| +sole-gen | |
| urbit/pkg/autoprop/lib/ethereum.hoon: | |
| +address-to-checksum | |
| +batch-read-request | |
| +encode-atoms | |
| +light-json-request |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "flag" | |
| "html/template" | |
| "log" | |
| "net/http" | |
| "strings" | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "flag" | |
| "fmt" | |
| "log" | |
| "os" | |
| "go.sia.tech/core/types" | |
| "go.sia.tech/walletd/v2/api" |
OlderNewer