urbit/base/pub/doc/hoon/runes/sg/sgcn.md
2015-04-29 18:48:45 -04:00

65 lines
1.1 KiB
Markdown

[sigcen, `~%`, %sgcn](#sgcn)
============================
Core jet
`~%` is a synthetic rune, identifies a core for specific optimization.
Produces
--------
Twig: `[%sgcn p=term q=twig r=tyre s=twig]`
Sample
------
`p` is a [`++term`]() `q` is a [twig]() `r` is a [`++tyre`]() `s` is a
[twig]()
Tall form
---------
~% p
q
==
p.i.r q.i.r
p.i.t.r q.i.t.r
==
s
~% p
q
~
s
Wide form
---------
None
Irregular form
--------------
None
Examples
--------
++ aesc :: AES-256
~% %aesc + ~
|%
++ en :: ECB enc
~/ %en
|= [a=@I b=@H] ^- @uxH
=+ ahem
(be & (ex a) b)
++ de :: ECB dec
~/ %de
|= [a=@I b=@H] ^- @uxH
=+ ahem
(be | (ix (ex a)) b)
--
Here we label the entire `++aesc` core for optimization. You can see the
jet in `gen164/5/aesc.c`.