Commit Graph

200 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
Sam Caldwell 9498f5129e tweak crazy mikes 2017-04-20 13:50:00 -04:00
Sam Caldwell c15b75ecae crazy mikes eve example 2017-03-23 14:40:00 -04:00
Tony Garnock-Jones 6f70eaf93e Mixin example 2017-02-27 04:07:32 -05:00
Sam Caldwell 1134ed0eff Rename `actor` to `spawn` in syndicate.js
similarly for actor* and during actor
2017-02-16 14:38:56 -05: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 73e0ba315a Fix broken link to ohm-js 2016-12-01 13:14:45 +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 a55dc6ec58 Fix expected test outputs 2016-08-07 22:44:56 -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 7f785008c8 Prevent default on keypress in textfield-dsl, like plain textfield does 2016-08-07 17:50:05 -04:00
Tony Garnock-Jones 183f104ade Optional initialiser in field declaration, to match examples (!) 2016-08-07 17:34:19 -04:00
Tony Garnock-Jones add689623e Pin Ohm to v0.11.0 2016-08-07 15:39:44 -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 4138495ae1 Fix mistake in invoking translateNonTerminalCode 2016-08-01 16:45:32 -04:00
Tony Garnock-Jones 7f930311ce dataflow.js 2016-07-27 06:51:30 -04:00
Tony Garnock-Jones 6fae78c7c6 Cosmetic 2016-07-11 12:23:05 -04:00
Tony Garnock-Jones 0314f6a400 Cosmetic 2016-07-11 12:16:22 -04:00
Tony Garnock-Jones cca195d597 New example - this one for the command line! 2016-07-11 12:04:10 -04:00
Tony Garnock-Jones 9644aa3ad1 Fixes to code-generation in Syndicate/js compiler.
1. Repair .buildSubscription(mode) so it doesn't delete spaces in
   unchanged ES5 code.
2. Avoid ',' between successive translated clauses in a
   FacetStateTransitionBlock.
2016-07-11 12:02:40 -04:00
Tony Garnock-Jones 31ee4cb2cd Broadcast message delivery in Syndicate/js 2016-06-27 14:59:53 -04:00
Tony Garnock-Jones c8f2ea8a56 Supply error-callback and options to watchPosition 2016-06-20 11:02:18 -04:00
Tony Garnock-Jones 95c17a190c Avoid failure when currentLocation not yet initialised 2016-06-20 11:02:18 -04:00
Tony Garnock-Jones 9b2ce64300 Precompile location example. Requires rename location -> locationRecord to avoid window.location clash. 2016-06-11 07:03:39 -04:00
Tony Garnock-Jones ddd67540be Default to wss:// instead of ws:// 2016-06-11 07:02:19 -04:00
Tony Garnock-Jones 03616226e1 Run in-browser translated code in the same context as precompiled code. 2016-06-11 07:01:30 -04:00
Tony Garnock-Jones dcd8819778 Factor out clean-examples and freshen-examples targets 2016-06-11 07:00:41 -04:00
Tony Garnock-Jones 0b964bb1bb Compute `retracted` pattern just once during `during`. Avoids mutation-related bug. 2016-06-11 06:59:59 -04:00
Tony Garnock-Jones f4d1f5c800 Location sharing 2016-06-05 16:42:30 -04:00
Tony Garnock-Jones 02f4f9f89c Allow function declarations 2016-06-05 16:01:24 -04:00
Tony Garnock-Jones dd28b667e8 Special-case "." selector in uiEvents. 2016-06-05 15:53:28 -04:00
Tony Garnock-Jones 56324db6f6 Oops 2016-06-05 14:52:40 -04:00
Tony Garnock-Jones 736c93ea94 Fix typo 2016-06-05 13:14:54 -04:00