dcodeIO
dcodeIO
This is a basic implementation of the suggestion made in https://github.com/torch2424/as-bind/issues/20, that is deriving the ids of the typed arrays from runtime type information instead of requiring the user to...
This is a little idea to get rid of the requirement to specify an additional entry file. Instead of exporting the IDs, it is also possible to obtain these [from...
https://github.com/ColinEberhardt/assemblyscript-regex/blob/75f1d474a60a6b4334b2a1cd367b7a90b0db026d/assembly/regexp.ts#L153-L157 The RegExp constructor is exported as `exports["RegExp#constructor"]` with a signature of `(this_: RegExp, regex: string, flags: string) => RegExp` (all pointers, the `this_` argument is typically `0` to indicate...
As of today, there are [various inline-assembler-like builtins](https://github.com/AssemblyScript/assemblyscript/blob/7d133cca5a33e786553fa618f9d2d51b737b4fb6/src/builtins.ts#L202) implementing the WebAssembly instruction set, but these only cover instructions that cannot be represented by a simple unary or binary expression, for...
As a follow-up to today's meeting discussion about bindings, here's a little mad science binding AssemblyScript classes to `externref` objects. The interesting parts are * `loader.bind` to make useful imports...
An implementation of the suggestion in https://github.com/AssemblyScript/assemblyscript/issues/1367, loading a file specified via `--memoryData` into static memory at memoryBase. Open questions: * Do we need constants like `ASC_MEMORY_DATA_OFFSET` and `ASC_MEMORY_DATA_LENGTH` to...
In https://github.com/AssemblyScript/assemblyscript/pull/1240 it came up that the way we free temporary locals for reuse during compilation is both unexpected for developers new to the codebase as well as hard to...
This adds a little `ScopeAnalyzer` doing a pre-pass on functions, analyzing variable scopes within. Will be helpful to tackle https://github.com/AssemblyScript/assemblyscript/pull/1190 in a more robust way as well as to obtain...
This PR adds support for [nullish coalescing](https://github.com/tc39/proposal-nullish-coalescing/) and [optional chaining](https://github.com/tc39/proposal-optional-chaining/) to the parser. Not implemented in the compiler yet because it can't yet short-circuit.
While proper modernization seems due, this PR for now tries to get all the things working again. * Updates dependencies but doesn't go to lengths in regards of breaking dependency...