4 ms·
I'm unreasonably happy that Native Module support is now enabled by default in Firefox, Safari, Chrome, and Edge! My side-projects and experiments (like the We
by mrspeaker 8y ago
I'm unreasonably happy that Native Module support is now enabled by default in Firefox, Safari, Chrome, and Edge!
My side-projects and experiments (like the WebGL2 "minecraft-y" demo - https://mrspeaker.github.io/webgl2-voxels/ https://mrspeaker.github.io/webgl2-voxels/) now work out of the box: no build system, no transpilers, no dot-files. Happy day!
- dtf 8y agoNative modules have brought the fun and immediacy back to development for me. I never quite got used to the delay and boilerplate of build systems, despite their power. But performance seems a little inconsistent in production. For iOS Safari in particular, I've had apps take over a minute to load via modules, versus seconds when bundled. So I stick to rollup for deploy (maybe http2 is supposed to fix this?) (great demo btw!)
- samschooler 8y agoHave you found any good tutorials that are good introductions on how to use native modules?
- ivanfon 8y agoThis Mozilla Hacks article[0] will tell you everything you need to know. For something shorter, the import[1] and export[2] pages on MDN are great. These pages also have some useful related articles linked at the bottom. Unrelated side note: MDN and Mozilla Hacks are doing an incredible job documenting web development and web standards. [0] https://hacks.mozilla.org/2015/08/es6-in-depth-modules/ https://hacks.mozilla.org/2015/08/es6-in-depth-modules/ [1] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe... [2] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/export https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...