<feed xmlns='http://www.w3.org/2005/Atom'>
<title>xavi/nanowasm-design/AstSemantics.md, branch main</title>
<subtitle>Fork of https://github.com/WebAssembly/design/ with NanoWasm extensions.
</subtitle>
<id>https://gitea.privatedns.org/xavi/nanowasm-design/atom?h=main</id>
<link rel='self' href='https://gitea.privatedns.org/xavi/nanowasm-design/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/nanowasm-design/'/>
<updated>2016-10-11T15:47:02+00:00</updated>
<entry>
<title>Structured stack  (#813)</title>
<updated>2016-10-11T15:47:02+00:00</updated>
<author>
<name>titzer</name>
<email>titzer@google.com</email>
</author>
<published>2016-10-11T15:47:02+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/nanowasm-design/commit/?id=e49fc18b684c953e3d920dcfc4bfce8ede9268dd'/>
<id>urn:sha1:e49fc18b684c953e3d920dcfc4bfce8ede9268dd</id>
<content type='text'>
* Rename AstSemantics.md to Semantics.md

* Rewrite Semantics for structured stack machine

* Update control instructions

* Update nop

* More tweaks

* Update README.md

* Update Semantics.md

* Update Semantics.md

* Address @rossberg-chromium comments
</content>
</entry>
<entry>
<title>Alignment maximum (#815)</title>
<updated>2016-10-05T21:22:33+00:00</updated>
<author>
<name>JF Bastien</name>
<email>github@jfbastien.com</email>
</author>
<published>2016-10-05T21:22:33+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/nanowasm-design/commit/?id=acfa2e2f6e02bb4f9c46a03882b72fb43e410eca'/>
<id>urn:sha1:acfa2e2f6e02bb4f9c46a03882b72fb43e410eca</id>
<content type='text'>
As in: https://github.com/WebAssembly/spec/issues/302 and https://github.com/WebAssembly/spec/issues/217</content>
</entry>
<entry>
<title>Binary 0xc (#811)</title>
<updated>2016-09-29T18:04:23+00:00</updated>
<author>
<name>titzer</name>
<email>titzer@google.com</email>
</author>
<published>2016-09-29T18:04:23+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/nanowasm-design/commit/?id=453320eb21f5e7476fb27db7874c45aa855927b7'/>
<id>urn:sha1:453320eb21f5e7476fb27db7874c45aa855927b7</id>
<content type='text'>
* Clarify that wasm may be viewed as either an AST or a stack machine. (#686)

* Clarify that wasm may be viewed as either an AST or a stack machine.

* Reword the introductory paragraph.

* Add parens, remove "typed".

* Make opcode 0x00 `unreachable`. (#684)

Make opcode 0x00 `unreachable`, and move `nop` to a non-zero opcode.

All-zeros is one of the more common patterns of corrupted data. This
change makes it more likely that code that is accidentally zeroed, in
whole or in part, will be noticed when executed rather than silently
running through a nop slide.

Obviously, this doesn't matter when an opcode table is present, but
if there is a default opcode table, it would presumably use the
opcodes defined here.

* BinaryEncoding.md changes implied by #682

* Fix thinko in import section

* Rename definition_kind to external_kind for precision

* Rename resizable_definition to resizable_limits

* Add  opcode delimiter to init_expr

* Add Elem section to ToC and move it before Data section to reflect Table going before Memory

* Add missing init_expr to global variables and undo the grouped representation of globals

* Note that only immutable globals can be exported

* Change the other 'mutability' flag to 'varuint1'

* Give 'anyfunc' its own opcode

* Add note about immutable global import requirement

* Remove explicit 'default' flag; make memory/table default by default

* Change (get|set)_global opcodes

* Add end opcode to functions

* Use section codes instead of section names

(rebasing onto 0xC instead of master)

This PR proposes uses section codes for known sections, which is more compact and easier to check in a decoder.
It allows for user-defined sections that have string names to be encoded in the same manner as before.
The scheme of using negative numbers proposed here also has the advantage of allowing a single decoder to accept the old (0xB) format and the new (0xC) format for the time being.

* Use LEB for br_table (#738)

* Describe operand order of call_indirect (#758)

* Remove arities from call/return (#748)

* Limit varint sizes in Binary Encoding. (#764)

* Global section (#771)

global-variable was a broken anchor and the type of count was an undefined reference and inconsistent with all the rest of the sections.

* Make name section a user-string section.

* Update BinaryEncoding.md

* Update BinaryEncoding.md

* Use positive section code byte

* Remove specification of name strings for unknown sections

* Update BinaryEncoding.md

* Remove repetition in definition of var(u)int types (#768)

* Fix typo (#781)

* Move the element section before the code section (#779)

* Binary format identifier is out of date (#785)

* Update BinaryEncoding.md to reflect the ml-proto encoding of the memory and table sections. (#800)

* Add string back

* Block signatures (#765)

* Replace branch arities with block and if signatures.

Moving arities to blocks has the nice property of giving implementations
useful information up front, however some anticipated uses of this
information would really want to know the types up front too.

This patch proposes replacing block arities with function signature indices,
which would provide full type information about a block up front.

* Remove the arity operand from br_table too.

* Remove mentions of "arguments".

* Make string part of the payload

* Remove references to post-order AST in BinaryEncoding.md (#801)

* Simplify loop by removing its exit label.

This removes loop's bottom label.

* Move description of `return` to correct column (#804)

* type correction and missing close quote (#805)

* Remove more references to AST (#806)

* Remove reference to AST in JS.md

Remove a reference to AST in JS.md. Note that the ml-proto spec still uses the name `Ast.Module` and has files named `ast.ml`, etc, so leaving those references intact for now.

* Use "instruction" instead of "AST operator"

* Update rationale for stack machine

* Update Rationale.md

* Update discussion of expression trees

* Update MVP.md

* Update Rationale.md

* Update Rationale.md

* Remove references to expressions

* Update Rationale.md

* Update Rationale.md

* Address review comments

* Address review comments

* Address review comments

* Delete h
</content>
</entry>
<entry>
<title>Reorder two sentences in Table section to better fit context; (#792)</title>
<updated>2016-09-13T15:50:25+00:00</updated>
<author>
<name>Benjamin Bouvier</name>
<email>public@benj.me</email>
</author>
<published>2016-09-13T15:50:25+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/nanowasm-design/commit/?id=3e17548c441fe5220bad11328adfe4e6438733ee'/>
<id>urn:sha1:3e17548c441fe5220bad11328adfe4e6438733ee</id>
<content type='text'>
(and remove a supplementary "the")</content>
</entry>
<entry>
<title>Explicitly mention that WebAssembly is little-endian. (#787)</title>
<updated>2016-09-05T08:53:09+00:00</updated>
<author>
<name>Dan Gohman</name>
<email>sunfish@mozilla.com</email>
</author>
<published>2016-09-05T08:53:09+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/nanowasm-design/commit/?id=1bd8f3407ab07173ac35d39934a8e043287addc0'/>
<id>urn:sha1:1bd8f3407ab07173ac35d39934a8e043287addc0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Make NaN handling more consistent. (#772)</title>
<updated>2016-08-23T06:03:37+00:00</updated>
<author>
<name>gahaas</name>
<email>ahaas@google.com</email>
</author>
<published>2016-08-23T06:03:37+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/nanowasm-design/commit/?id=7ff98ec3cd3e36ded268205ed67fa9ea9c4f8a89'/>
<id>urn:sha1:7ff98ec3cd3e36ded268205ed67fa9ea9c4f8a89</id>
<content type='text'>
This PR makes the handling of NaNs in the  promotion/demotion of floats more consistent to the handling of NaNs in arithmetic operations. Similar to #716, this PR requires that canonical NaNs have to be preserved by promotion/demotion, whereas the promotion/demotion of non-canonical NaNs can result in an arbitrary quiet NaN.</content>
</entry>
<entry>
<title>Implement a simple NaN propagation scheme that still supports NaN boxing. (#716)</title>
<updated>2016-07-27T13:25:28+00:00</updated>
<author>
<name>Dan Gohman</name>
<email>sunfish@mozilla.com</email>
</author>
<published>2016-07-27T13:25:28+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/nanowasm-design/commit/?id=3e59cb5416f1b98a5c385f046641ce5c04969b47'/>
<id>urn:sha1:3e59cb5416f1b98a5c385f046641ce5c04969b47</id>
<content type='text'>
This achieves simplicity by dropping the goal of minimizing nondeterminism
in the resulting NaN bits. In this proposal, NaN bits are as nondeterministic
as they can be, while still supporting IEEE 754 and the basic NaN boxing use
case.</content>
</entry>
<entry>
<title>Add JS Memory and Table API, support dynamic linking (#682)</title>
<updated>2016-06-28T16:45:04+00:00</updated>
<author>
<name>Luke Wagner</name>
<email>mail@lukewagner.name</email>
</author>
<published>2016-06-28T16:45:04+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/nanowasm-design/commit/?id=56e617e8144a8b750a1198871eb6d43fad182c21'/>
<id>urn:sha1:56e617e8144a8b750a1198871eb6d43fad182c21</id>
<content type='text'>
* Add Memory, Table and multi-import/export of these

* Clarify mutation of elements

* Mention CFI use case

* Clarify call_table signature mismatches

* Explicate elements section

* Change support to allow/enable

* Remove table/memory indices add global imports/exports

* Clarify host-defined (i.e., JavaScript) table elements

* s/necessary/useful

* s/will/may/

* Fix typo

* Fix typo

* Clarify that table updates are observed by all instances

* Clarify that host-defined table element values can have different signature checking

* Just 'constraints' since more detail is below

* Wordsmith DynamicLinking.md intro

* Wordsmith FutureFeatures.md

* Try to clarify wording in FutureFeatures.md

* Change 'function' to 'anyfunc'

* Fix nits

* Refine description of initializer expressions

* Remove the Definition Index Space, use (type, index) pairs as necessary
</content>
</entry>
<entry>
<title>Make dropping of values explicit (#694)</title>
<updated>2016-06-15T09:04:07+00:00</updated>
<author>
<name>rossberg-chromium</name>
<email>rossberg@chromium.org</email>
</author>
<published>2016-06-15T09:04:07+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/nanowasm-design/commit/?id=78644dbdbeee4729664d9e3348397f7ea124c10a'/>
<id>urn:sha1:78644dbdbeee4729664d9e3348397f7ea124c10a</id>
<content type='text'>
Simplify Wasm and allow a more natural interpretation of Wasm as a stack machine. The main changes are:

- Values can no longer be discarded implicitly.
- Instead, there is an explicit drop operator.
- To compensate, store operators no longer return a value.

The constructs affected by this are mainly blocks and block-like sequences. Before, all expressions in a block could yield a value, and it would just be dropped on the floor implicitly (except the last one). Now we require explicit drop operations in those cases. With stores no longer returning a value, the only places were we expect drops to actually arise are calls to side-effecting functions that also return a value, but this value isn't used.

(Also fixing a bunch of other out-of-date text on the way.)</content>
</entry>
<entry>
<title>Clarify type of the immediate offset operand (#680)</title>
<updated>2016-05-04T14:45:25+00:00</updated>
<author>
<name>Lars T Hansen</name>
<email>lars-t-hansen@users.noreply.github.com</email>
</author>
<published>2016-05-04T14:45:25+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/nanowasm-design/commit/?id=7d1532a40d107fe82fd1ae4724024ca6e66fbe37'/>
<id>urn:sha1:7d1532a40d107fe82fd1ae4724024ca6e66fbe37</id>
<content type='text'>
* Clarify type of the immediate offset operand

* Refined

* Updated
</content>
</entry>
</feed>
