sdk
sdk copied to clipboard
The Dart SDK, including the VM, dart2js, core libraries, and more.
### problem [benchmark](https://www.techempower.com/benchmarks/) show [dart3](https://github.com/TechEmpower/FrameworkBenchmarks/pull/9197) regression in [json serialization](https://www.techempower.com/benchmarks/#section=data-r23&test=json&l=zih7un-pa7&a=2) and [plain text](https://www.techempower.com/benchmarks/#section=data-r23&test=plaintext&l=zih7un-pa7&a=2) performance against `dart2` and `dart` ### proposed solutions 1. investigate and solve performance regression 2. lose the "speed...
Per https://github.com/dart-lang/language/blob/main/working/333%20-%20shared%20memory%20multithreading/proposal.md#shared-fields sharing should be only limited to trivially shareable types: " ...limit shared fields by allowing only _trivially shareable types_, which include: - Objects which do not contain mutable...
The `JSTypedArray` class represents an array that can contain several types of data (from Dart's perspective): integers, floating-point numbers, and 64-bit BigInts. Its subclasses all define [an in-depth API](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/at) for...
Dart SDK version: 2.13.3 (stable) (Wed Jun 9 12:44:44 2021 +0200) on "macos_x64" `dart:http` seems to not allow multiple comma separated challenges in the `www-authenticate` header: ```http www-authenticate: first-challenge param="value",...
Consider the following code ```dart void foo((int,) r) {} main() { foo((1)); // Error: The argument type 'int' can't be assigned to the parameter type '(int)'. } ``` CFE produces...
The following SocketException is reporting the destination address with source port: SocketException: The remote computer refused the network connection. (OS Error: The remote computer refused the network connection. , errno...
The type 'double' is not exhaustively matched by the switch cases since it doesn't match 'double()'
I'm not sure if this is a bug but when I switch over a double and exhaustively match all possible values (I think), Dart still forces me to add an...
``` WARNING: ThreadSanitizer: data race (pid=50202) Write of size 4 at 0xffffebdc3aa8 by thread T22: #0 dart::Sample::set_head_sample(bool) out/ReleaseTSANARM64/../../runtime/vm/profiler.h:348:12 (dart+0x28944dc) (BuildId: 62f5c7b11389fb32afc448a56f5ceb9b4fa26b6a) #1 dart::Sample::Clear() out/ReleaseTSANARM64/../../runtime/vm/profiler.h:228:5 (dart+0x28944dc) #2 dart::Sample::Init(long, long, unsigned long)...
``` WARNING: ThreadSanitizer: data race (pid=14664) Read of size 8 at 0xffffcfffd050 by thread T15: #0 dart::ProfilerNativeStackWalker::CallerPC(unsigned long*) const out/ReleaseTSANARM64/../../runtime/vm/profiler.cc:297:37 (dart+0x28927e8) (BuildId: 62f5c7b11389fb32afc448a56f5ceb9b4fa26b6a) #1 dart::ProfilerNativeStackWalker::walk() out/ReleaseTSANARM64/../../runtime/vm/profiler.cc:250:12 (dart+0x28927e8) #2 dart::CollectSample(dart::Isolate*, bool,...
From dart-fuzz bot: ``` Isolate (/b/s/w/itvz6b0bsx/dart_fuzzHIKQPK) NO-FP NO-FFI FLAT : JIT-DebugSIMRISCV64 - JIT-DebugSIMARM64C: !DIVERGENCE! 1.101:1264572494 (-6 vs 0) fail1: -6 {VF5Knej: JtP, 1PaTG: Tx} ... skipped ... var97: Expando: print()...