Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(37)

Issue 1074223002: Update Isolate API. (Closed)

Created:
5 years, 8 months ago by Lasse Reichstein Nielsen
Modified:
5 years, 6 months ago
CC:
reviews_dartlang.org, vm-dev_dartlang.org, sethladd
Target Ref:
refs/remotes/git-svn
Visibility:
Public.

Description

Update Isolate API. Remove AS_EVENT as priority of ping/kill. It wasn't very usable or predictable. Make priority consistently named and a named parameter. Add response object to ping/addExitListener so it doesn't have to send null. This is useful for cases where you want to use the same receive port for multiple purposes. R=sgjesse@google.com Committed: https://code.google.com/p/dart/source/detail?r=45092

Patch Set 1 #

Total comments: 10

Patch Set 2 : Fix typo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+144 lines, -149 lines) Patch
M runtime/lib/isolate_patch.dart View 3 chunks +11 lines, -7 lines 0 comments Download
M runtime/vm/isolate.h View 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/isolate.cc View 6 chunks +33 lines, -12 lines 0 comments Download
M sdk/lib/_internal/compiler/js_lib/isolate_helper.dart View 7 chunks +11 lines, -23 lines 0 comments Download
M sdk/lib/_internal/compiler/js_lib/isolate_patch.dart View 2 chunks +10 lines, -7 lines 0 comments Download
M sdk/lib/isolate/isolate.dart View 1 4 chunks +23 lines, -29 lines 0 comments Download
M tests/isolate/kill2_test.dart View 1 chunk +1 line, -1 line 0 comments Download
D tests/isolate/kill3_test.dart View 1 chunk +0 lines, -44 lines 0 comments Download
M tests/isolate/kill_self_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/isolate/kill_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/isolate/ondone_test.dart View 3 chunks +34 lines, -2 lines 0 comments Download
M tests/isolate/ping_pause_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/isolate/ping_test.dart View 1 chunk +17 lines, -20 lines 0 comments Download

Messages

Total messages: 13 (3 generated)
Lasse Reichstein Nielsen
5 years, 8 months ago (2015-04-10 15:52:00 UTC) #2
kevmoo
DBC. This is why we should avoid positional arguments. Sorry for the duplicate comment. https://codereview.chromium.org/1074223002/diff/1/sdk/lib/isolate/isolate.dart ...
5 years, 8 months ago (2015-04-10 19:03:10 UTC) #4
Lasse Reichstein Nielsen
We should fix the language so positional optional parameters don't block adding named optional parameters. ...
5 years, 8 months ago (2015-04-10 19:38:02 UTC) #5
Søren Gjesse
lgtm https://codereview.chromium.org/1074223002/diff/1/sdk/lib/isolate/isolate.dart File sdk/lib/isolate/isolate.dart (right): https://codereview.chromium.org/1074223002/diff/1/sdk/lib/isolate/isolate.dart#newcode268 sdk/lib/isolate/isolate.dart:268: * Adding the same poort more than once ...
5 years, 8 months ago (2015-04-13 08:25:55 UTC) #6
Lasse Reichstein Nielsen
https://codereview.chromium.org/1074223002/diff/1/sdk/lib/isolate/isolate.dart File sdk/lib/isolate/isolate.dart (right): https://codereview.chromium.org/1074223002/diff/1/sdk/lib/isolate/isolate.dart#newcode268 sdk/lib/isolate/isolate.dart:268: * Adding the same poort more than once will ...
5 years, 8 months ago (2015-04-13 10:15:03 UTC) #7
Lasse Reichstein Nielsen
Committed patchset #2 (id:20001) manually as 45092 (presubmit successful).
5 years, 8 months ago (2015-04-13 10:30:12 UTC) #8
sra1
This adds 6.5k to swarm. Can you investigate why it adds to much code?
5 years, 8 months ago (2015-04-13 16:18:12 UTC) #10
Lasse Reichstein Nielsen
On 2015/04/13 16:18:12, sra1 wrote: > This adds 6.5k to swarm. > Can you investigate ...
5 years, 8 months ago (2015-04-13 16:44:53 UTC) #11
kevmoo
On 2015/04/13 16:44:53, Lasse Reichstein Nielsen wrote: > On 2015/04/13 16:18:12, sra1 wrote: > > ...
5 years, 8 months ago (2015-04-13 17:02:30 UTC) #12
ahe
5 years, 6 months ago (2015-06-01 20:09:06 UTC) #13
Message was sent while issue was closed.
On 2015/04/13 17:02:30, kevmoo wrote:
> On 2015/04/13 16:44:53, Lasse Reichstein Nielsen wrote:
> > On 2015/04/13 16:18:12, sra1 wrote:
> > > This adds 6.5k to swarm.
> > > Can you investigate why it adds to much code?
> > 
> > 
> > Immediate guess: It uses HashMap where it used to have a list.
> 
> Please add a note to CHANGELOG.md
> 
> I love the moved to named args, but we do risk breaking real users who have
> started to depend on these APIs.
> 
> Marked as experimental gives us a bit of cover – but only a bit.

Where is the announcement of this breaking change?

I'd like to understand why this change is necessary, and I'd like a better
explanation than: "Lasse thinks the language should have been designed
differently" or "consistency". The explanation has to be: "it is dangerous to
...", "we are unable to implement important feature ... without this change", or
something similar.

Powered by Google App Engine
This is Rietveld 408576698