InfoQ Homepage JavaScript Content on InfoQ
-
Teaching the Computer to Play the Chrome Dinosaur Game with TensorFlow.js Machine Learning Library
A simple, yet entertaining and useful for educational purposes application of machine learning, was recently made available on Fritz's HeartBeat Medium publication. Google's machine learning TensorFlow.js library is leveraged in the browser to teach the computer to play the Chrome Dinosaur Game.
-
W3C Publishes WebXR Draft Specification for Direct Web Interaction with Immersive Hardware
The World Wide Web Consortium recently published draft specifications for WebXR. The WebXR Device API seeks to provide "the interfaces necessary to enable developers to build compelling, comfortable, and safe immersive applications on the web across a wide variety of hardware form factors".
-
Google Experiments with Key-Value Storage, Built-In Modules in Chrome 74
Google recently announced its intent to ship two new WICG proposals in a future version of Chrome. KV Storage attempts to bring the convenience of LocalStorage, but with better performance. The intent is to deliver this as the first example of a built-in module, leveraging the import maps proposal.
-
Benchmark Ranks 18 Front-End Frameworks Implementation of Medium.com Clone
The RealWorld-based benchmark comparing the implementation by 18 front-end frameworks of a non-trivial full-stack application code-named Conduit recently updated its results. Most (13 out of 18) frameworks obtain a top-tier LightHouse performance score. Svelte, Stencil, AppRun, Dojo, HyperApp and Elm exhibit the lowest payload transferred over the network (< 30 KB).
-
Nest.js 6 Improves GraphQL Integration and Improves Platform Flexibility
Nest.js recently announced the release of version 6 of their TypeScript framework. Nest.js 6 improves support for GraphQL and also decouples the platform-specific portions of their framework to support applications beyond their traditional Express and Node.js based architecture.
-
Ink: React for Interactive Command-Line Apps
Ink.js, self-described as "React for Command Line Interfaces", recently released its second major iteration. Ink enables to build command-line apps by assembling React components. Developers may then leverage their React knowledge, and the React ecosystem.
-
Ts.ED Provides TypeScript Framework Leveraging Express and Decorators
Ts.ED provides a server-side TypeScript framework on top of Node.js and Express. The framework provides classes and decorators to simplify common server-side patterns, and offers integration with many other projects including TypeORM, Swagger, GraphQL, AJV, Passport.js, and Socket.io, among others.
-
NSFW.js: Machine Learning Applied to Indecent Content Detection
With the beta-released NSFW.js, developers can now include in their applications a client-side filter for indecent content. NSFW.js classifies images into one of five categories: Drawing, Hentai, Neutral, Porn, Sexy. Under some benchmarks, NSFW categorizes images with a 90% accuracy rate.
-
React 16.8 Releases React Hooks: Reusable and Composable Logic in React Components
The React team recently released React 16.8 featuring React Hooks. Hooks encapsulate impure logic (such as state, or effects) with a functional syntax that allow hooks to be reused, composed, and tested independently. Developers may additionally define their own Hooks by composition with the predefined Hooks shipped with React 16.8.
-
Emotion 10: CSS-in-JS with Flexible Scoped and Global Styling, and Server-Side Rendering
Emotion 10.0, a CSS-in-JS library, is a massive, long-awaited release with new features, improvements and bug fixes. Components can now be styled with the CSS property in a larger set of contexts, with a more natural syntax allowing access to the theme properties. A new Global component enables dynamic global styling. Those changes in turn made possible zero-configuration server-side rendering.
-
Fastly Open-Sources Lucet, Its WebAssembly Compiler and Runtime
The Fastly edge cloud platform recently open-sourced Lucet, its native WebAssembly compiler and runtime. Lucet enables edge developers to build custom solutions for the edge at scale without limitations imposed by vendors, programming languages, or application programming interfaces (API).
-
Mozilla Announces WASI Initiative to Run Web Assembly on All Devices, Computers, Operating Systems
Mozilla recently announced a new standardization effort aiming at running the same WebAssembly code across all devices, machines and operating systems. The new standard, WebAssembly System Interface (WASI), defines a single conceptual operating system interface, which can be implemented by multiple, actual operating systems. Mozilla and Fastly are already shipping prototypal WASI implementations.
-
Deploying Rust-Generated WASM on Cloudflare Serverless Workers
Recently open-sourced by Cloudfare, Wrangler is a set of CLI tools to build, preview, and publish Cloudfare Workers written in Rust and compiled to WebAssembly.
-
TypeScript 3.4 Supports Incremental Builds and globalThis
The TypeScript team announces the release of TypeScript 3.4, including faster incremental builds, improvements for higher order type inference of generic functions, and support for ES.Next 'globalThis'.
-
Babel 7.3: Smart Pipelines, Private Instance Accessors and More
The recently released Babel 7.3 can now parse and compile private instance accessors and the 'smart' pipeline operator. Babel 7.3 additionally supports named capturing groups in regular expressions, and much more.