7 ms·
If you can implement the new features with polyfills, why do you need io.js in the first place?
by nawitus 12y ago
If you can implement the new features with polyfills, why do you need io.js in the first place?
- deleted 12y ago[deleted]
- munificent 12y agoBetter performance, debugging, and a simpler developer iteration loop for polyfills that require a compilation step.
- nailer 12y agoHaving them used out of the box would make them more robust.
- jessaustin 12y agoNPM dependencies are a very robust method for ensuring that a module has what it needs to function "out of the box". What else are you looking for here?
- nailer 12y agoDo you mean to reply to me? I made a commeny about innovation in the stdlib would be good. and I'm quite happy with io.js supporting npm.
- jessaustin 12y ago>>>>If you can implement the new features with polyfills, why do you need io.js in the first place? >>>Having them used out of the box would make them more robust. >>NPM dependencies are a very robust method... What else are you looking for here? >Do you mean to reply to me? In light of nawitus's comment, I interpreted your comment as an alleged reason IO would be necessary, given the existence of polyfills. This reason didn't make sense to me, because npm dependency installation for node is just as automatic as anything in IO could be, whether it uses npm or not.
- nailer 12y agoio.js is doing new things, they might be polyfillable on top of node, but more people will use new versions of inbuilts like 'process' of 'fs' if they're in io's stdlib than if they're in some optional module people could (but probably won't) install on node.
- venomsnake 12y agoPerformance comes to mind. Robustness too.
- nawitus 12y agoThose are decent points, but I'd think Io.js would have more reasons. First of all, if you implement a polyfill in JavaScript, it'll be translated into pretty fast native code. But even if it didn't, most(?) of Node's core libraries are written in plain JavaScript and presumably are as fast as any module in npm. Take a look: https://github.com/joyent/node/blob/master/lib/buffer.js https://github.com/joyent/node/blob/master/lib/buffer.js And if you really want optimized native code, npm supports that out of the box. I kinda dislike npm modules that require a compilation step, but they're out there. As for robustness, there's nothing stopping one to making robust node modules that are not in the core.
- deleted 12y ago[deleted]