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

Issue 9358010: isolates in frog: playing with API improvements (Closed)

Created:
8 years, 10 months ago by Siggi Cherem (dart-lang)
Modified:
8 years, 10 months ago
Reviewers:
turnidge, eub
CC:
reviews_dartlang.org, kasperl, Anton Muhin
Visibility:
Public.

Description

isolates in frog: playing with API improvements Committed: https://code.google.com/p/dart/source/detail?r=4153

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 4

Patch Set 3 : '' #

Total comments: 20

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+659 lines, -69 lines) Patch
M corelib/src/isolate.dart View 2 chunks +2 lines, -0 lines 0 comments Download
M frog/frog.py View 1 2 1 chunk +7 lines, -1 line 0 comments Download
M frog/lib/corelib.dart View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M frog/lib/isolate.dart View 1 2 3 4 5 6 11 chunks +226 lines, -49 lines 0 comments Download
M frog/lib/isolate_serialization.dart View 1 2 3 4 5 6 7 chunks +63 lines, -1 line 0 comments Download
A frog/lib/newisolate.dart View 1 2 3 4 5 6 1 chunk +46 lines, -0 lines 0 comments Download
M tests/isolate/isolate.status View 1 2 2 chunks +10 lines, -0 lines 0 comments Download
A tests/isolate/src/APIv2_spawnBrowserNegativeTest.dart View 1 2 1 chunk +26 lines, -0 lines 0 comments Download
A tests/isolate/src/APIv2_spawnBrowserTest.dart View 1 2 1 chunk +26 lines, -0 lines 0 comments Download
A tests/isolate/src/APIv2_spawnStandaloneNegativeTest.dart View 1 2 1 chunk +21 lines, -0 lines 0 comments Download
A tests/isolate/src/APIv2_spawnStandaloneTest.dart View 1 2 1 chunk +21 lines, -0 lines 0 comments Download
A tests/isolate/src/APIv2_unresolvedPortsBrowserNegativeTest.dart View 1 2 1 chunk +50 lines, -0 lines 0 comments Download
A tests/isolate/src/APIv2_unresolvedPortsBrowserTest.dart View 1 2 1 chunk +50 lines, -0 lines 0 comments Download
A tests/isolate/src/APIv2_unresolvedPortsStandaloneNegativeTest.dart View 1 2 1 chunk +43 lines, -0 lines 0 comments Download
A tests/isolate/src/APIv2_unresolvedPortsStandaloneTest.dart View 1 2 1 chunk +49 lines, -0 lines 0 comments Download
M tests/isolate/src/MixedTest.dart View 1 3 chunks +6 lines, -6 lines 0 comments Download
M tests/isolate/src/NestedSpawn2Test.dart View 1 3 chunks +6 lines, -6 lines 0 comments Download
M tests/isolate/src/NestedSpawnTest.dart View 1 3 chunks +6 lines, -6 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Siggi Cherem (dart-lang)
Here is a first CL that does some of the improvements we've been discussing, and ...
8 years, 10 months ago (2012-02-10 22:38:50 UTC) #1
eub
LGTM with minor suggestions. Thanks! Some stale comments on earlier drafts, please ignore those. https://chromiumcodereview.appspot.com/9358010/diff/1001/frog/lib/corelib.dart ...
8 years, 10 months ago (2012-02-10 22:46:18 UTC) #2
Siggi Cherem (dart-lang)
8 years, 10 months ago (2012-02-10 23:42:22 UTC) #3
thanks!

https://chromiumcodereview.appspot.com/9358010/diff/3001/frog/lib/corelib.dart
File frog/lib/corelib.dart (right):

https://chromiumcodereview.appspot.com/9358010/diff/3001/frog/lib/corelib.dar...
frog/lib/corelib.dart:29: #source("newisolate.dart"); // work in progress
towards the new API
On 2012/02/10 22:46:19, eub wrote:
> alphabetize

Done.

https://chromiumcodereview.appspot.com/9358010/diff/3001/frog/lib/isolate.dart
File frog/lib/isolate.dart (right):

https://chromiumcodereview.appspot.com/9358010/diff/3001/frog/lib/isolate.dar...
frog/lib/isolate.dart:392: // We force serialization/deserialization as a simple
way to ensure isolate
On 2012/02/10 22:46:19, eub wrote:
> Line length?

Done.

https://chromiumcodereview.appspot.com/9358010/diff/3001/frog/lib/isolate.dar...
frog/lib/isolate.dart:464: /** A port that buffers messages until an underlying
port gets resolve. */
On 2012/02/10 22:46:19, eub wrote:
> ("resolved")

Done.

https://chromiumcodereview.appspot.com/9358010/diff/3001/frog/lib/isolate.dar...
frog/lib/isolate.dart:466: static int _bufferingCount = 0;
On 2012/02/10 22:46:19, eub wrote:
> A comment, please.

Done.

https://chromiumcodereview.appspot.com/9358010/diff/3001/frog/lib/isolate.dar...
frog/lib/isolate.dart:469: final int id;
On 2012/02/10 22:46:19, eub wrote:
> Why public?

no reason. done

https://chromiumcodereview.appspot.com/9358010/diff/3001/frog/lib/isolate.dar...
frog/lib/isolate.dart:485: _bufferingCount++;
On 2012/02/10 22:46:19, eub wrote:
> id = _bufferingCount++
> ?
> or a static fn that exposes the "unique counter id" notion.

Unfortunately, if I move the id initialization here, I can't make it final :(

https://chromiumcodereview.appspot.com/9358010/diff/3001/frog/lib/isolate.dar...
frog/lib/isolate.dart:489: p.send(message[0], message[1]);
On 2012/02/10 22:46:19, eub wrote:
> Raw access to numeric indices is oogy.

Done - made into a map record.

https://chromiumcodereview.appspot.com/9358010/diff/3001/frog/lib/isolate.dar...
frog/lib/isolate.dart:700: final iid = _globalState.currentContext == null ? '?'
: '${_globalState.currentContext.id }';
On 2012/02/10 22:46:19, eub wrote:
> Dead code?

yep, done.

https://chromiumcodereview.appspot.com/9358010/diff/3001/frog/lib/isolate_ser...
File frog/lib/isolate_serialization.dart (right):

https://chromiumcodereview.appspot.com/9358010/diff/3001/frog/lib/isolate_ser...
frog/lib/isolate_serialization.dart:137: throw "interal error: must call
_waitForPendingPorts to ensure all"
On 2012/02/10 22:46:19, eub wrote:
> "internal"
> and below

Done.

https://chromiumcodereview.appspot.com/9358010/diff/3001/frog/lib/newisolate....
File frog/lib/newisolate.dart (right):

https://chromiumcodereview.appspot.com/9358010/diff/3001/frog/lib/newisolate....
frog/lib/newisolate.dart:12: * methods to control it's behavior remotely.
On 2012/02/10 22:46:19, eub wrote:
> its

Doh! thanks

Powered by Google App Engine
This is Rietveld 408576698