urbit/base/pub/doc/hoon/runes/sg/sgcn.md

65 lines
1.1 KiB
Markdown
Raw Normal View History

2015-02-18 06:03:21 +03:00
[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`.