Stephen Adams

Results 97 comments of Stephen Adams

I understand what you are saying, but I'm not finding the table helpful for the following situation. Can I replace the following code that copies part of the array and...

Oh yes. The entry for %TypedArray%.prototype.subarray x IE11 says "No". It says "No" because the (C) snippet crashes on the subexpression Uint8ClampedArray.prototype.subarray. That doesn't _quite_ capture that I can use...

dart2js [converts](https://github.com/dart-lang/sdk/blob/8e5c197d42c0ac4edea69adc17c107d0b8cc0132/pkg/compiler/lib/src/ssa/optimize.dart#L1215) a switch on enums to a switch on the enum `index`. This enables the JavaScript VM to use a jump table if it wants to ([example](https://cs.github.com/v8/v8/blob/492a32943bc34a527f42df2ae15a77154b16cc84/src/interpreter/bytecode-generator.cc#L1877)). The VM...

When I was working on making list splices smaller and faster, I noticed that AOT compiler gives up trying to inline too easily. What would likely be best is if...

If we choose the second formulation it is easier to change our mind later rather than vice versa. We will be in a better position to do an experiment on...

> Even better option would be to always return `false` from `identical` on a record. This way it would be fully specified and deterministic, with the same outcome of `identical`...

> _If any of those awaits result in an error, all the errors are collected, and a single error is thrown by the record await, containing all the values of...

This would be very useful to me right now. I am about to recommend that a customer place a certain `@pragma` annotation on their many thousands of libraries. But they...

This is an interesting example (thanks for the dartpad, that was very helpful!) All of the suggestions above basically boil down to having (1) a compile-time check to ensure that...

> Representing nullable value as non nullable using late keyword sounds like a hack to me. Quite the opposite 😉. Representing the state of the container (pre-valid, valid) as one...