Commit Graph

116 Commits

Author SHA1 Message Date
Tony Garnock-Jones 06224b52a8 Repair syndicate/js just like commit 1fa5167 repaired syndicate/rkt. 2018-03-27 22:21:14 +13:00
Tony Garnock-Jones 2a5d8ebdd4 Web Worker support, based on js-marketplace 2017-09-16 20:24:12 +01:00
Tony Garnock-Jones 75bc4a8ca5 Don't publish uiFragmentVersion until the DOM nodes are up in the page. 2016-12-07 19:19:53 +13:00
Tony Garnock-Jones 51a28b9349 Fix bug where `this` was referring to the fields of a parent facet, not the facet currently being constructed 2016-12-06 05:53:06 +13:00
Tony Garnock-Jones 0facbc90b3 uiFragmentExists -> uiFragmentVersion 2016-11-30 16:05:02 +13:00
Tony Garnock-Jones 138bab9ba6 actor{react{...}} ==> actor{...} for JS 2016-08-25 13:12:32 +01:00
Tony Garnock-Jones 3de86c3b29 Better pendingPatch logic 2016-08-07 22:50:12 -04:00
Tony Garnock-Jones 7df50fbac9 We must flushPendingPatch after enqueueing some "meta" event as an action 2016-08-07 22:50:04 -04:00
Tony Garnock-Jones 31ee867964 Cosmetic 2016-08-07 21:58:24 -04:00
Tony Garnock-Jones 5dc1d99a3b Flush accumulated patch at least once per turn, rather than only when pid or action-type changes 2016-08-07 21:58:24 -04:00
Tony Garnock-Jones 747e96714d Treat prop definition as damage; triggers previous observations of at-the-time-undefined props 2016-08-07 21:58:24 -04:00
Tony Garnock-Jones 6443e9dadd Only repair damage to subjects on non-terminated facets 2016-08-07 21:58:24 -04:00
Tony Garnock-Jones e3520ac711 Coalesce adjacent patch actions from a given pid 2016-08-07 21:58:24 -04:00
Tony Garnock-Jones 2c78d1ad0a Allocate Facet fids for debugging 2016-08-07 21:58:24 -04:00
Tony Garnock-Jones 3977e57b38 Switch back from Actor.current, using Dataspace.activeBehavior() instead 2016-08-07 21:58:23 -04:00
Tony Garnock-Jones eaade6e4fd Treat synthetic patches differently wrt previousKnowledge 2016-08-07 21:58:19 -04:00
Tony Garnock-Jones cd754be396 Cleaner presentation of patches 2016-08-07 19:43:21 -04:00
Tony Garnock-Jones 41693b897c Hook dataflow.js into Syndicate/js; add "during ... actor { ... }" 2016-08-07 15:33:09 -04:00
Tony Garnock-Jones e2575c3ea1 Remove observablePropertyCounter to help avoid accumulating garbage on prop redefinition 2016-08-07 11:31:51 -04:00
Tony Garnock-Jones f3631ed18f Handle missing options; prefix objectId with __. 2016-08-06 19:57:47 -04:00
Tony Garnock-Jones ba2f4d677d Add Dataflow.Graph.newScope. 2016-08-06 19:57:29 -04:00
Tony Garnock-Jones 8b63c68673 Add Dataflow.Graph.enforceSubjectPresence. 2016-08-06 19:57:01 -04:00
Tony Garnock-Jones 7f930311ce dataflow.js 2016-07-27 06:51:30 -04:00
Tony Garnock-Jones 31ee4cb2cd Broadcast message delivery in Syndicate/js 2016-06-27 14:59:53 -04:00
Tony Garnock-Jones dd28b667e8 Special-case "." selector in uiEvents. 2016-06-05 15:53:28 -04:00
Tony Garnock-Jones 736c93ea94 Fix typo 2016-06-05 13:14:54 -04:00
Tony Garnock-Jones 4aabe422fe Alter prettyTrie to allow customised rendering of success-values 2016-05-19 13:13:28 -04:00
Tony Garnock-Jones e806e91baa Name DemandMatcher and UI actors 2016-05-19 13:13:07 -04:00
Tony Garnock-Jones fba4aaa6b4 Support debug names for actors (any JSON term) 2016-05-18 16:51:51 -04:00
Tony Garnock-Jones 6160012576 Maintain separation between terminate and handleEvent phases; fixes bug. 2016-05-17 20:50:11 -04:00
Tony Garnock-Jones 9312a28226 Only fire asserted/retracted when first/last interest (dis)/appears; same intent as yesterday's commit b1f7816 2016-05-17 20:04:37 -04:00
Tony Garnock-Jones 8256b56607 Generalize matchValue to permit wildcard messages (not yet used) 2016-05-17 18:16:20 -04:00
Tony Garnock-Jones 1f33039e28 Make matchValue's failureResult non-optional 2016-05-17 17:44:14 -04:00
Tony Garnock-Jones 1aead77a72 Do facet terminate() phase before handleEvent() phase 2016-05-15 16:16:36 -04:00
Tony Garnock-Jones 61ca89ce04 Post-insertion configureNode() 2016-05-15 14:58:28 -04:00
Tony Garnock-Jones 152a76af5e uiProperty 2016-05-15 14:58:13 -04:00
Tony Garnock-Jones b92c439f07 Introduce selectorMatch and eventUpdater 2016-05-15 14:57:56 -04:00
Tony Garnock-Jones 6a204a9085 Process many internal cycles per wakeup; avoid reentrancy 2016-05-15 14:56:19 -04:00
Tony Garnock-Jones 51d9d4b64e Track Actors' knowledge to properly initialize new facets 2016-05-15 14:55:48 -04:00
Tony Garnock-Jones 1f8b3eeb3f Attribute and property update/remove protocol 2016-05-15 06:14:31 -04:00
Tony Garnock-Jones 097641ffff Name Structs for compatibility with Racket 2016-05-15 06:13:31 -04:00
Tony Garnock-Jones 0653bdae3c key.instantiate needs an Array, not an Immutable.List 2016-05-15 06:12:37 -04:00
Tony Garnock-Jones a55ed180db Properly handle the first (interesting) patch after a broken connection. 2016-05-15 06:12:09 -04:00
Tony Garnock-Jones e55e19d5e4 Add "on event ID BLOCK" support 2016-05-14 19:06:00 -04:00
Tony Garnock-Jones 0561a02e78 onTaskExit, matching the Racket 2016-05-14 17:12:41 -04:00
Tony Garnock-Jones c7d91ac37f Incorrect loop logic in updateEventListeners meant that nodes right at the end of the anchorNode were skipped. 2016-05-14 10:34:22 -04:00
Tony Garnock-Jones bf532edd28 UIAttribute doesn't have fragmentId. 2016-05-14 02:26:24 -04:00
Tony Garnock-Jones 35f0b75389 UIFragment orderBy, for features and speed 2016-05-14 02:21:43 -04:00
Tony Garnock-Jones 372652c49d Syndicate.UI.uiAttribute 2016-05-13 20:17:16 -04:00
Tony Garnock-Jones f64491c0a7 Better use of console.warn and console.error in dataspace.js 2016-05-13 20:17:16 -04:00