Max Graey

Results 152 issues of Max Graey

So probably you could use `String.fromUTF8` instead this? https://github.com/nearprotocol/assemblyscript-bson/blob/master/assembly/decoder.ts#L98 [link to String.fromUTF8](https://github.com/AssemblyScript/assemblyscript/blob/master/std/assembly/string.ts#L499) [link to String#toUTF8](https://github.com/AssemblyScript/assemblyscript/blob/master/std/assembly/string.ts#L542)

Changes: - Use `String.p.replaceAll` (available since `node.js >= 15`) instead `String.p.replace + regexp` - Globalize validation constant to `TID_LEN` - Simplify `TID.is` by avoiding try / catch and allocation -...

Most modern compilers like Rust and Swift support special set arithmetic operations which cause to exceptions when result is overflow or underflow. + In `Swift` all integer operations checked by...

enhancement
help wanted

This speedup `indexOf` matching, especially for long strings and single character. Benchmark results: ```txt Old - SAMPLE22_0:ok: 69.700 ms - SAMPLE22_0:eof: 49.000 ms - SAMPLE63_1:ok: 90.700 ms - SAMPLE63_1:eof: 87.200...

enhancement
performance
standard library

I decide to start discussion about simple closure implementations. Some obvious (and may be naive) implementation is using generation class context which I prefer to demonstrate in following example: ```ts...

enhancement

It would also be great to have support for [WebAssembly / stringref](https://github.com/WebAssembly/stringref) proposal

``` ⚡AS-pect⚡ Test suite runner [8.0.1] Using config: /home/runner/work/as-bignum/as-bignum/as-pect.config.mjs ASC Version: 0.27.1 compiler mismatch: std/portable included twice ERROR TS2448: Variable 'node_modules/@as-pect/assembly/assembly/internal/Reflect/Reflect.FAILED_MATCH' used before its declaration. : 82 │ let result...

It will be great have some one on this site: https://stefankrause.net/js-frameworks-benchmark8/table.html

I added extra tests in `test/native/stdlib/strtod.c` which unfortunately fail: ```c++ assert(parsefloat_(".2470328229206232720882843964341106861825299013071623822127928412503377536351044e-323", (void*)0) == 0x1p-1074); // FAIL, actual: 0 assert(parsefloat_(".7410984687618698162648531893023320585475897039214871466383785237510132609053131e-323", (void*)0) == 0x1p-1074); // FAIL, actual: 0 assert(parsefloat_( "17976931348623158079372897140530341507993413271003782693617377898044 \ 49682927647509466490179775872070963302864166928879109465555478519404...