- From: Peintner, Daniel (ext) <daniel.peintner.ext@siemens.com>
- Date: Tue, 15 Nov 2016 07:58:58 +0000
- To: Takuki Kamiya <tkamiya@us.fujitsu.com>, "public-exi@w3.org" <public-exi@w3.org>
- CC: "member-exi-wg@w3.org" <member-exi-wg@w3.org>
- Message-ID: <D94F68A44EB1954A91DE4AE9659C5A980FF6E46E@DEFTHW99EH1MSX.ww902.siemens.net>
Hi Taki, all, Sorry for the delay. I have been off for some days. > In Java implementation, you use Nashorn to convert JavaScript into AST, > then convert AST into EXI. (JStoEXI.java [1]) > > On the decoder side, you convert EXI into AST. (EXItoJSAST.java [2]) Correct. AST could then be converted to JS again. > I am not sure if Nashorn is available for C language. What is the input > and output of the C language implementation? At the moment the C code works purely on the EXI events. SE(Program) SE(body) ... I think we need to check what browsers use internally for JS code. We can easily map those EXI events to what browsers expect. Does this make sense? Thanks, -- Daniel ________________________________ Von: Takuki Kamiya [tkamiya@us.fujitsu.com] Gesendet: Dienstag, 8. November 2016 01:44 An: Peintner, Daniel (ext) (CT RDA NEC EMB-DE); public-exi@w3.org Cc: member-exi-wg@w3.org Betreff: RE: Efficient representation for Web formats Hi Daniel, In Java implementation, you use Nashorn to convert JavaScript into AST, then convert AST into EXI. (JStoEXI.java [1]) On the decoder side, you convert EXI into AST. (EXItoJSAST.java [2]) I am not sure if Nashorn is available for C language. What is the input and output of the C language implementation? [1] https://github.com/EXIficient/exificient-for-javascript/blob/master/src/main/java/com/siemens/ct/exi/javascript/JStoEXI.java [2] https://github.com/EXIficient/exificient-for-javascript/blob/master/src/main/java/com/siemens/ct/exi/javascript/EXItoJSAST.java Takuki Kamiya Fujitsu Laboratories of America From: Peintner, Daniel (ext) [mailto:daniel.peintner.ext@siemens.com] Sent: Wednesday, November 02, 2016 2:17 AM To: public-exi@w3.org Subject: Efficient representation for Web formats Hi, As Taki recently discussed in [1] the focus of the EXI working group has changed a bit. Besides the work on XML, the working group is also exploring the idea of applying EXI to other Web formats. The WG is making JSON exchange more efficient by applying EXI to JSON [2]. We are recently also exploring the idea of applying EXI to CSS [3] and JavaScript [4]. EXI is a general format that sends an efficient stream of events and can have noticeable, measurable savings in CPU, memory & bandwidth over formats such as minify and/or gzip that require the receiver to reconstitute the original JSON/CSS/JavaScript/... and parse it again. We encourage you to take a look at our exploration of EXI for CSS [3] and EXI for JavaScript [4] and to provide feedback/comments. Thank you, Daniel (for the EXI WG) [1] https://lists.w3.org/Archives/Public/public-exi/2016Oct/0004.html [2] EXI for JSON, https://www.w3.org/TR/exi-for-json/ [3] EXI for CSS, https://github.com/EXIficient/exificient-for-css [4] EXI for JavaScript, https://github.com/EXIficient/exificient-for-javascript/
Received on Tuesday, 15 November 2016 07:59:55 UTC