2018.05.07 - Rethinking Web Performance with Service Workers
Ping Xia
Title: 2018.05.07 – Rethinking Web Performance with Service Workers
Industry Conferences
F8‑2018 https://www.f8.com/ – AI at F8 2018: Open frameworks and responsible development (https://code.facebook.com/posts/372833966539527/ai-at-f8-2018-open-frameworks-and-responsible-development/), React 360 replaces React VR for streamlined development focus (https://code.facebook.com/posts/572676549773149/react-360-replaces-react-vr-for-streamlined-development-focus/). Also: Google – Open sourcing Seurat: bringing high‑fidelity scenes to mobile VR (https://opensource.googleblog.com/2018/05/open-sourcing-seurat.html).
Deep Dives
NodeJS 10: The New, The Changed, and the Deprecated
https://auth0.com/blog/nodejs-10-new-changes-deprecations/ – Node.js 10 ships with major performance gains via V8 v6.6 and new experimental features such as the fs promise API and time‑travel debugging. Also: No More Updates for Node 4.x, Node 6.x Now in Maintenance Mode (https://medium.com/the-node-js-collection/april-2018-release-updates-from-the-node-js-project-71687e1f7742), Exploring the New Features of Node.js 10: V8 release 6.6 (https://segmentfault.com/a/1190000014633018), Node.js Africa (https://medium.com/the-node-js-collection/node-js-africa-276f2f1b4f8c).
Adding BigInts to V8
https://v8project.blogspot.com/2018/05/bigint.html – Over the past few months we have added support for BigInts in V8, following the current proposal, for a future ECMAScript version. This post recounts the journey. Also: V8 release v6.7 (https://v8project.blogspot.com/2018/05/v8-release-v67.html), BigInt: arbitrary‑precision integers in JavaScript (https://developers.google.com/web/updates/2018/05/bigint).
Version 6 of Angular Now Available
https://blog.angular.io/version-6-of-angular-now-available-cc56b0efa7a4 – A major release that focuses less on the core framework and more on the toolchain, making it easier to move quickly with Angular. Announcing NGXS 3.0 – A State Management Library for Angular (https://medium.com/@amcdnl/announcing-ngxs-3-0-ee00969292d), The Angular Framework Forces You To Learn More JavaScript, Making You A Better JavaScript Programmer (https://www.bennadel.com/blog/3442-the-angular-framework-forces-you-to-learn-more-javascript-making-you-a-better-javascript-programmer.htm).
Rethinking Web Performance with Service Workers
https://medium.baqend.com/the-technology-behind-fast-websites-2638196fa60a – An overview of the state‑of‑the‑art page‑speed optimizations enabled by Service Workers, summarizing over 30 man‑years of research behind Speed Kit, an easy‑to‑use web‑performance plugin.
You Don’t Need Redux, MobX, RxJS, Cerebral
https://medium.com/@foxdonut00/you-dont-need-redux-mobx-rxjs-cerebral-6a735b150a02 – For state management, try this simple pattern instead of a library. No offense to those libraries—they’re great—but this is a different, unique approach. It’s not another library; it’s just a pattern called Meiosis.
React Suite v3.0 Official Release
http://div.io/topic/2200 – RSUITE (short for React Suite) is a React component library built for back‑office products. Created by the HYPERS front‑end and UX teams, it serves the company’s big‑data product line. After three major version upgrades, it now offers a large collection of components and rich features. Goal: enable every enterprise to customize a component set that matches its own product style.
Full‑Stack Virtual Machine GraalVM First Impressions
https://juejin.im/post/5ad7372f6fb9a045e511b0a4 – Write Node, Ruby, Java, and other languages all in a single file.
Reported Malicious Module: getcookies
https://blog.npmjs.org/post/173526807575/reported-malicious-module-getcookies – On May 2nd, the npm security team received reports about a package pretending to be a cookie‑parsing library but containing a malicious backdoor. The investigation led to three packages and three versions of a fourth package being removed from the npm registry.
A Guide to the State of Print Stylesheets in 2018
https://www.smashingmagazine.com/2018/05/print-stylesheets-in-2018/ – This article explores how to create a good “second experience” for printed pages: how to include print styles, the relevant specifications, browser support, testing methods, and what to do when a print stylesheet isn’t sufficient.
Evolution of Couchbase at LinkedIn
https://engineering.linkedin.com/blog/2018/05/evolution-of-couchbase-at-linkedin – The post tells the story of how LinkedIn’s use of Couchbase and its support model have evolved, discusses scaling and operational challenges, and shares the roadmap for Couchbase’s future at the company.
How Fast Can You Parse JSON?
https://lemire.me/blog/2018/05/03/how-fast-can-you-parse-json/ – In a recent Microsoft paper (Mison: A Fast JSON Parser for Data Analytics, http://www.vldb.org/pvldb/vol10/p1118-li.pdf) the authors report parsing JSON at 0.1–0.2 GB/s with common libraries such as RapidJSON. Using a 3.5 GHz processor, that works out to roughly 8–16 cycles per input byte.
Previewing Elasticsearch 6.3 SQL Feature
https://medium.com/@mustafaakin/previewing-elasticsearch-6-3-sql-feature-2d3a1d60cab4 – Elasticsearch 6.3 will include basic X‑Pack features by default. X‑Pack brings APM, Canvas, and, for many, the most exciting addition: SQL support. Also: TiDB 2.0 is Ready – Faster, Smarter, and Battle‑Tested (https://pingcap.com/blog/tidb-2-0-announcement/), eBay Open Sources “The Accelerator,” a Fast Data Processing Tool (https://www.ebayinc.com/stories/blogs/tech/announcing-the-accelerator-processing-1-000-000-000-lines-per-second-on-a-single-computer/).
Learning from Source Code
https://www.microsoft.com/en-us/research/blog/learning-source-code/ – Historically, program analysis has focused either on formal, machine‑readable semantics or on treating code as a (somewhat odd) form of natural language. The former relies on mathematical logic and heavy engineering; the latter uses NLP tools that handle syntax well but struggle with semantics. A new ICLR 2018 paper from Microsoft Research and Simon Fraser University proposes a hybrid approach that can locate bugs in released software.
Open‑sourcing gVisor, a Sandboxed Container Runtime
[https://cloudplatform.googleblog.com/2018/05/Open-sourcing-gVisor-a-sandboxed-container-runtime.html](https://cloudplatform.googleblog.com/2018/05/Open-sourcing-
*(content truncated)
Originally written by Ping Xia (平侠) and published in Chinese on Web技术周刊 (Web Tech Weekly). Translated and adapted for DriftSeas with permission.
Sources & References
- [1]https://www.f8.com/
- [2]https://code.facebook.com/posts/372833966539527/ai-at-f8-2018-open-frameworks-and-responsible-development/
- [3]https://code.facebook.com/posts/572676549773149/react-360-replaces-react-vr-for-streamlined-development-focus/
- [4]https://opensource.googleblog.com/2018/05/open-sourcing-seurat.html
- [5]https://auth0.com/blog/nodejs-10-new-changes-deprecations/
- [6]https://medium.com/the-node-js-collection/april-2018-release-updates-from-the-node-js-project-71687e1f7742
- [7]https://segmentfault.com/a/1190000014633018
- [8]https://medium.com/the-node-js-collection/node-js-africa-276f2f1b4f8c
- [9]https://v8project.blogspot.com/2018/05/bigint.html
- [10]https://v8project.blogspot.com/2018/05/v8-release-v67.html
- [11]https://developers.google.com/web/updates/2018/05/bigint
- [12]https://blog.angular.io/version-6-of-angular-now-available-cc56b0efa7a4