Max Graey

Results 346 comments of Max Graey

Another good candidate for simple rewriting is string operations: ```ts const a = "a".charCodeAt(0); ``` to ```ts const a = 0x61; ``` and ```ts str.charAt(i) == 'e' ``` to ```ts...

Interesting paper about AST rule rewriting with partial parsing: [TWEAST: A Simple and Effective Technique to Implement Concrete-Syntax AST Rewriting Using Partial Parsing.pdf](https://github.com/AssemblyScript/assemblyscript/files/7619853/TWEAST_A_Simple_and_Effective_Technique_to_Impleme.pdf)

Looks like `managed-cast` test still fail

Yeah, btw `(drop (drop (...)))` is not valid operation. But it's not possible on practice due to drop has `[any] -> []` signature. Or I missing something? Also on user...

Perhaps we should add new UNKNOWN type kind as a top type which always should be resolved at the end (or at first access). In this case we could distinguish...

Also add definitions to [Transform class](https://github.com/AssemblyScript/assemblyscript/blob/main/cli/index.d.ts#L273). And will be great to add "afterRead" to all tests in this folder: https://github.com/AssemblyScript/assemblyscript/tree/main/tests/transform

Yes, I guess you can add extra hook. PR are welcomed. But I more prefer to implement such syntax directly in AssemblyScript. Because it will allow people to avoid extra...

WebAssembly doesn't provide any job with workers. It only specifies some atomic operations and allow read / write for shared memory. Also note, AssemblyScript doesn't have thread safety yet for...

In terms of TS, it's just speeding up type checking. Behaviour does not change much, just appear some restrictions. For AS, these restrictions do not make much sense. At least...