-
Notifications
You must be signed in to change notification settings - Fork 12
Isomorphism #17
Comments
Huge +1. (Although IMO "isomorphic" is misused here throughout the community as a pretentious way of saying "portable".) I also think TextEncoder/TextDecoder should be candidates, not because they're great APIs, but just for purposes of portability. My work with V8 extras should help, here. With luck enabling some of these will be a simple matter grabbing a few files from Blink and adding a line to the gypfile. (Not Fetch obviously, or console, but the others are potentially doable.) |
Huge +1 too. And @domenic About |
@hax Because of changes in V8, |
+1 for primitives (typed array usage / Blobs, console, url); not sold on file api, fetch, or whatwg streams. |
+1 @bmeck; it may be prudent to be at least somewhat selective with great discussion on this. |
I'm huge +1 for node-code to support API's like this.
I'm using TypeScript for them, because I wanna respect WebIDL interface in whatwg spec, also I can check spec consistency. |
Since we've already started working on WHATWG URL impl in Node.js, it really makes sense to try to have some of the other standard APIs. I'd +1 on @bmeck's scope. |
As discussed on nodejs/node#1716 and nodejs/node#1727
the discussion has some aspects like.
My opinion is core API gets closer to the browser API. (But as a first step, we should discuss what API is core / non-core. Ref: #10 )
isomorphism is so important for us. isomorphic libraries can be easier to learn API and test easily and improve reusability (we can use the library on both browser and server).
Node/io.js is not only server-side, we can use Node/io.js on client application(Electron, NW.js), AWS Lambda, IoT. The usage is increasing. isomorphism is so important.
So, we should get close to the browser API as possible. Of course we should give our opinions to browser API for feedback. I would like to remove the frictions between the browser and Node API.
IMO, The following API should get closer to browser.
console
(https://github.com/DeveloperToolsWG/console-object/blob/master/api.md)url
(https://url.spec.whatwg.org/)stream
(https://streams.spec.whatwg.org/)fetch
(https://fetch.spec.whatwg.org/)Next Generation Node should consider the isomorphic API :)
The text was updated successfully, but these errors were encountered: