12:04:42 RRSAgent has joined #wot-script 12:04:46 logging to https://www.w3.org/2023/01/30-wot-script-irc 12:06:22 meeting: WoT Scripting API 12:06:45 present+ Kaz_Ashimura, Cristiano_Aguzzi, Tomoaki_Mizushima 12:08:49 scribenick: kaz 12:08:54 topic: Minutes 12:09:04 dape has joined #wot-script 12:09:35 -> https://www.w3.org/2022/12/05-wot-script-minutes.html Dec-5 12:09:57 present+ Zoltan_Kis 12:11:13 -> https://www.w3.org/2022/12/19-wot-script-minutes.html Dec-19 12:11:24 ca: (goes through both the minutes quickly) 12:11:55 q+ 12:11:58 zkis has joined #wot-script 12:14:56 kaz: note that we should say "co-moderator" instead of "co-chair" 12:15:01 ca: that's true 12:15:07 kaz: just fixed 12:15:30 ca: Zoltan's name within Dec-5 minutes should be also fixed 12:15:33 kaz: fixed 12:15:44 present+ Daniel_Peintner 12:15:53 present+ Jan_Romann 12:16:05 topic: Publication 12:16:37 ca: the draft is not ready yet 12:16:45 ... can we still publish an updated draft? 12:16:48 q+ 12:16:49 kaz: yes, you can 12:16:51 ack k 12:17:08 ... note our current WG Charter has been extended till the end of July 12:17:32 dp: yes, we should publish an updated draft 12:17:53 ... we can deal with the issues for the next Charter later 12:18:22 ack dape 12:18:45 ca: ok 12:18:51 zkis has joined #wot-script 12:19:08 ... we're planning to polish the current version draft focusing on th Discovery API and bug fixes 12:20:22 q? 12:21:25 i|the draft is|-> https://github.com/w3c/wot-scripting-api/issues/433 Issue 433 - New publication within current charter?| 12:22:16 -> https://github.com/w3c/wot/pull/1043 wot PR 1043 - proposal for scripting - next charter 12:22:34 dp: proposed several points on Scripting for the next WG Charter 12:22:39 https://github.com/w3c/wot/blob/main/charters/wot-wg-2023-draft.html 12:23:21 i/draft/... but after the discussion, got that we don't need to too much details into the Charter./ 12:23:38 s/https/-> https/ 12:25:01 s/html/html Draft WG Charter/ 12:25:45 https://github.com/w3c/wot-scripting-api/pull/381 12:25:49 ca: Daniel's proposed changes have not been applied to the draft Charter above 12:26:07 kaz: Daniel's PR was made for the MD files 12:26:24 ... so probably we should make another PR to update the draft Charter HTML 12:26:29 dp: ok. will do 12:26:45 s|https://github.com/w3c/wot-scripting-api/pull/381|| 12:26:50 topic: PRs 12:26:55 subtopic: PR 381 12:27:18 -> https://github.com/w3c/wot-scripting-api/pull/381 feat: reintroduce "local" discovery method 12:27:33 ca: (goes through the proposed changes) 12:27:57 jr: maybe we can close this 12:27:59 q? 12:28:14 ca: maybe should create separate issues? 12:28:21 jr: yeah 12:28:35 ca: any objections? 12:29:06 (none) 12:29:51 jr: will work on the relevant issues 12:30:14 topic: Issues 12:30:24 subtopic: Issue 417 12:30:32 https://github.com/w3c/wot-scripting-api/issues/417 12:30:35 -> https://github.com/w3c/wot-scripting-api/issues/417 Issue 417 - emitPropertyChange does not take low-level event apis into account 12:30:45 ca: long standing issue 12:32:13 q+ 12:33:35 ZK: I made a summary in this comment: https://github.com/w3c/wot-scripting-api/issues/417#issuecomment-1400305844 12:36:02 kaz: clarify our own initial expectation of the level of APIs 12:36:19 ... and Zoltan has been doing so on this issue 12:36:45 ... we don't need to handle all the possible interconnection 12:36:52 ... that should be handled by Binding Templates 12:37:13 q+ 12:37:17 ack k 12:37:22 +1 kaz 12:37:37 zk: the question here is not a problem with the Scripting API itself 12:37:53 ... need broader discussion around Architecture, etc. 12:38:37 s|don't|don't/can't| 12:38:52 s/interconnection/interconnection pattern/ 12:39:43 ... need to clarify which required features came from which use case as well 12:40:05 ca: yeah 12:40:36 ... need more evaluation in terms of use cases and TD spec 12:40:37 q? 12:41:09 dp: wondering where the use case somewhat similar 12:41:35 q+ 12:42:26 ... if big values are problematic, that would applied to events too 12:42:30 ack d 12:42:32 ack z 12:42:32 ack dape 12:43:13 zk: will create an issue on Architecture 12:43:43 ... on the other hand, for now, we could agree possible fix for WebIDL 12:43:50 q? 12:44:05 [[ 12:44:06 partial interface ExposedThing { 12:44:07 Promise emitPropertyChange(DOMString name); 12:44:07 } 12:44:07 ]] 12:44:09 to: 12:44:10 [[ 12:44:19 partial interface ExposedThing { 12:44:20 Promise emitPropertyChange(DOMString name, 12:44:20 optional InteractionInput value); 12:44:20 ]] 12:45:07 ca: ok 12:45:31 ... another issue on interaction with devices? 12:45:35 zk: yeah 12:45:46 ... should be handled separately 12:45:55 kaz: that's my point as well 12:46:30 ca: would close this issue itself, and discuss the new API problem in another dedicated issue 12:46:38 chair: Cristiano 12:47:04 ... think the initial problem is already addressed 12:49:33 -> https://github.com/w3c/wot-scripting-api/issues/417#issuecomment-1408562300 Cristiano's comments 12:50:21 i|https|-> https://github.com/w3c/wot-scripting-api/issues/417#issuecomment-1408558134 Zoltan's comments 12:50:51 proposed API definition: 12:50:52 [[ 12:50:53 partial interface ExposedThing { 12:50:53 Promise emitPropertyChange(DOMString name, InteractionInput value); 12:50:55 } 12:50:57 ]] 12:51:24 ca: I'm fine with having the "optional"to support user-defined values 12:51:58 .... but we should warn the implementers about the shortcoming in this issue 12:52:09 (kept open) 12:52:18 sutopic: Issue 409 12:52:20 https://github.com/w3c/wot-scripting-api/issues/409 12:52:24 s/sutopic/subtopic 12:53:00 s/https/-> https/ 12:53:09 s/409/409 Issue 409 - Harmonize the exposing process/ 12:53:16 ca: (goes through the issue) 12:53:51 dp: we should move this update 12:54:06 ... should try to improve the situation 12:54:09 Questions: https://github.com/w3c/wot-scripting-api/issues/409#issuecomment-1337895782 12:54:47 ca: wait before moving on with the changes 12:54:57 s/wait/wait for improvement/ 12:55:44 zk: probably we need some experiments 12:55:57 ... without duplicating things 12:56:23 [[ 12:56:24 Question 1: should ExposedThing extend ProducedThing, or should the latter be an internal slot to the former (composition)? 12:56:24 My take: an internal slot would be more convenient and maybe more clear as well (no confusions about fake inheritance). 12:56:24 Question 2: Should expose() also start servicing requests right away, or should it just be a factory method to initialize the service for the exposed Thing, and the script would also have additional control on when to actually start the service, i.e. ExposedThing would have a start() method, therefore likely a stop() method, too. If a script also wants to release the resources as well, we could provide a shutdown() (or destroy()) method. 12:56:27 ]] 12:56:59 [[ 12:56:59 Question 3: could we add handlers as dictionary attributes (callbacks) to ProducedThing? Or keep the current methods for adding callbacks? 12:57:00 My take: currently the algorithms for the handlers-adding methods are quite trivial, and they mainly add the callbacks as internal slots, so they could be replaced by attributes as well. However, the algorithms are more flexible than defining getters/setters. So I suggest we keep the methods for now. 12:57:00 Question 4: do we really need to get the partial TD out of ProducedThing? It's kind of confusing at this point. The script already knows all information that would contain. Testing could be done on internal slots. 12:57:02 My take: we don't need it. We can add it when we realize it's needed. :) 12:57:04 Question 5: should we have options to the expose() method? If yes, what? 12:57:06 My take: we can add it when we realize what is needed. I included it in the Web IDL below, but needs not be specified. 12:57:09 ]] 12:57:19 dp: we should finish what we can do now 12:57:32 ... and continue further discussion after that 12:58:47 ca: wouldn't hurt to start reviewing the proposals 12:59:13 ... the review process can be shared for both the stable draft and the new proposals 12:59:34 ... maybe need another publication for the new proposals, though 12:59:39 [adjourned] 12:59:44 rrsagent, make log public 12:59:47 rrsagent, draft minutes 12:59:49 I have made the request to generate https://www.w3.org/2023/01/30-wot-script-minutes.html kaz 13:00:02 s/[adjourned]// 13:00:07 topic: AOB 13:00:19 mizu: there are still many issues remaining 13:00:30 ... should clarify our policy about how to deal with them 13:01:06 ca: let's talk about that next time 13:01:20 q+ 13:01:58 kaz: for that purpose, we should clarify version management as well 13:02:19 ... which features to go for the current version of Scripting API which is compatible with TD 1.1 13:02:32 ... and which to go for the next version which would be compatible with TD 2.0 13:02:38 ca: yes 13:02:45 [adjourned] 13:02:53 rrsagent, draft minutes 13:02:54 I have made the request to generate https://www.w3.org/2023/01/30-wot-script-minutes.html kaz