This file contains 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 postgres:api { | |
interface connection { | |
query: func(...) -> ...; | |
execute: func(...) -> ...; | |
} | |
interface connections { | |
*: connection; | |
} | |
interface runtime-connections { | |
resource connection = resourceify(connection); |
This file contains 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
;; Each of these 4 modules is independently published. Note that, while there is a non-trivial amount of type-y | |
;; boilerplate, it is proportional in size to only the *direct* dependencies. | |
(module $A | |
(type $Wasi (instance ...)) | |
(import "wasi" (instance (type $Wasi))) | |
(func (export "a") ...) | |
) | |
(module $B |
This file contains 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
Proposal | |
-------- | |
The proposal is to add a static ArrayBuffer.transfer(oldBuffer [, newByteLength]). This | |
method returns a new ArrayBuffer whose contents are taken from oldBuffer.[[ArrayBufferData]] | |
and then either truncated or zero-extended to be newByteLength. This operation leaves | |
oldBuffer in a detached state. If newByteLength is undefined, oldBuffer.byteLength is | |
used. | |
var buf1 = new ArrayBuffer(40); |