Commit c6fbc7b8 authored by wanderer's avatar wanderer 💬

fix pages

parent b48bb94a
Pipeline #128527566 passed with stages
in 53 seconds
pages: pages:
script: script:
- mkdir public - mkdir public
- cp -r site public - cp -r site/* public
artifacts: artifacts:
paths: paths:
- public - public
......
<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom"><title>null_radix</title><subtitle>Recent Posts</subtitle><updated>2020-03-21T17:36:34-0400</updated><link href="nullradix.eth/feed.xml" rel="self" /><link href="nullradix.eth" /><entry><title>Merklizing ASTs</title><author><name>mjbecze</name><email>mjbecze@riseup.net</email></author><updated>2015-12-29T13:22:00-0500</updated><link href="/merklizing-asts.html" rel="alternate" /><summary type="html">&lt;p&gt;&lt;em&gt;Special thanks to &lt;a href=&quot;http://juan.benet.ai/&quot;&gt;Juan Benet&lt;/a&gt; for mentioning this idea at Devcon 1.&lt;/em&gt;&lt;/p&gt;&lt;p&gt;Recently I wrote a draft of &lt;a href=&quot;https://github.com/ethereum/EIPs/issues/48&quot;&gt;EIP 105&lt;/a&gt; which propose using a subset of webassembly as Ethereum’s VM. If you aren’t aware webassembly “is a new, portable, size- and load-time-efficient format suitable for compilation to the web.” One interesting note about Webassembly doesn’t compile to linear byte code. Instead it uses an &lt;a href=&quot;https://en.wikipedia.org/wiki/Abstract_syntax_tree&quot;&gt;Abstract Syntax Tree (AST)&lt;/a&gt;. This might not surprise you if you have an experience with LLVM IR. But for me it was a new concept to have bytecode in this form.&lt;/p&gt;&lt;h2&gt;What is an AST?&lt;/h2&gt;&lt;p&gt;It is just a tree repesentation of some code. Each node of the AST represents an expression. Each function body consists of exactly one expression. Compared to the source code, an AST does not include certain elements, such as inessential punctuation and delimiters (braces, semicolons, parentheses, etc.).&lt;/p&gt;&lt;p&gt;To give you a better idea here is a textual representation of some webassembly code using &lt;a href=&quot;https://en.wikipedia.org/wiki/S-expression&quot;&gt;s-expressions&lt;/a&gt;.&lt;/p&gt;&lt;pre&gt;&lt;code&gt; &lt;span class=&quot;syntax-comment&quot;&gt;;; Recursive factorial <?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom"><title>null_radix</title><subtitle>Recent Posts</subtitle><updated>2020-03-21T17:43:12-0400</updated><link href="nullradix.eth/feed.xml" rel="self" /><link href="nullradix.eth" /><entry><title>Merklizing ASTs</title><author><name>mjbecze</name><email>mjbecze@riseup.net</email></author><updated>2015-12-29T13:22:00-0500</updated><link href="/merklizing-asts.html" rel="alternate" /><summary type="html">&lt;p&gt;&lt;em&gt;Special thanks to &lt;a href=&quot;http://juan.benet.ai/&quot;&gt;Juan Benet&lt;/a&gt; for mentioning this idea at Devcon 1.&lt;/em&gt;&lt;/p&gt;&lt;p&gt;Recently I wrote a draft of &lt;a href=&quot;https://github.com/ethereum/EIPs/issues/48&quot;&gt;EIP 105&lt;/a&gt; which propose using a subset of webassembly as Ethereum’s VM. If you aren’t aware webassembly “is a new, portable, size- and load-time-efficient format suitable for compilation to the web.” One interesting note about Webassembly doesn’t compile to linear byte code. Instead it uses an &lt;a href=&quot;https://en.wikipedia.org/wiki/Abstract_syntax_tree&quot;&gt;Abstract Syntax Tree (AST)&lt;/a&gt;. This might not surprise you if you have an experience with LLVM IR. But for me it was a new concept to have bytecode in this form.&lt;/p&gt;&lt;h2&gt;What is an AST?&lt;/h2&gt;&lt;p&gt;It is just a tree repesentation of some code. Each node of the AST represents an expression. Each function body consists of exactly one expression. Compared to the source code, an AST does not include certain elements, such as inessential punctuation and delimiters (braces, semicolons, parentheses, etc.).&lt;/p&gt;&lt;p&gt;To give you a better idea here is a textual representation of some webassembly code using &lt;a href=&quot;https://en.wikipedia.org/wiki/S-expression&quot;&gt;s-expressions&lt;/a&gt;.&lt;/p&gt;&lt;pre&gt;&lt;code&gt; &lt;span class=&quot;syntax-comment&quot;&gt;;; Recursive factorial
&lt;/span&gt; &lt;span class=&quot;syntax-open&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;syntax-symbol&quot;&gt;func&lt;/span&gt; &lt;span class=&quot;syntax-symbol&quot;&gt;$factorial&lt;/span&gt; &lt;span class=&quot;syntax-open&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;syntax-symbol&quot;&gt;param&lt;/span&gt; &lt;span class=&quot;syntax-symbol&quot;&gt;$i&lt;/span&gt; &lt;span class=&quot;syntax-symbol&quot;&gt;i64&lt;/span&gt;&lt;span class=&quot;syntax-close&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;syntax-open&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;syntax-symbol&quot;&gt;result&lt;/span&gt; &lt;span class=&quot;syntax-symbol&quot;&gt;i64&lt;/span&gt;&lt;span class=&quot;syntax-close&quot;&gt;)&lt;/span&gt; &lt;/span&gt; &lt;span class=&quot;syntax-open&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;syntax-symbol&quot;&gt;func&lt;/span&gt; &lt;span class=&quot;syntax-symbol&quot;&gt;$factorial&lt;/span&gt; &lt;span class=&quot;syntax-open&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;syntax-symbol&quot;&gt;param&lt;/span&gt; &lt;span class=&quot;syntax-symbol&quot;&gt;$i&lt;/span&gt; &lt;span class=&quot;syntax-symbol&quot;&gt;i64&lt;/span&gt;&lt;span class=&quot;syntax-close&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;syntax-open&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;syntax-symbol&quot;&gt;result&lt;/span&gt; &lt;span class=&quot;syntax-symbol&quot;&gt;i64&lt;/span&gt;&lt;span class=&quot;syntax-close&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;syntax-open&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;syntax-symbol&quot;&gt;if_else&lt;/span&gt; &lt;span class=&quot;syntax-open&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;syntax-symbol&quot;&gt;i64.eq&lt;/span&gt; &lt;span class=&quot;syntax-open&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;syntax-symbol&quot;&gt;get_local&lt;/span&gt; &lt;span class=&quot;syntax-symbol&quot;&gt;$i&lt;/span&gt;&lt;span class=&quot;syntax-close&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;syntax-open&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;syntax-symbol&quot;&gt;i64.const&lt;/span&gt; &lt;span class=&quot;syntax-symbol&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;syntax-close&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;syntax-close&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;syntax-open&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;syntax-symbol&quot;&gt;if_else&lt;/span&gt; &lt;span class=&quot;syntax-open&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;syntax-symbol&quot;&gt;i64.eq&lt;/span&gt; &lt;span class=&quot;syntax-open&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;syntax-symbol&quot;&gt;get_local&lt;/span&gt; &lt;span class=&quot;syntax-symbol&quot;&gt;$i&lt;/span&gt;&lt;span class=&quot;syntax-close&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;syntax-open&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;syntax-symbol&quot;&gt;i64.const&lt;/span&gt; &lt;span class=&quot;syntax-symbol&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;syntax-close&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;syntax-close&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;syntax-open&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;syntax-symbol&quot;&gt;i64.const&lt;/span&gt; &lt;span class=&quot;syntax-symbol&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;syntax-close&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;syntax-open&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;syntax-symbol&quot;&gt;i64.const&lt;/span&gt; &lt;span class=&quot;syntax-symbol&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;syntax-close&quot;&gt;)&lt;/span&gt;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment