2017-03-16

Coming up: a redesign of 2ality

I’ll soon migrate 2ality to a different hosting solution. This blog post tells you what you need to know.

2017-03-15

Exercise: text as Unicode clock faces

In this blog post, we explore how arbitrary ASCII text can be encoded as Unicode clock faces:

    > clocksToPlain('๐Ÿ•”๐Ÿ•˜๐Ÿ•–๐Ÿ••๐Ÿ•–๐Ÿ•œ๐Ÿ•–๐Ÿ•œ๐Ÿ•–๐Ÿ•Ÿ๐Ÿ•’๐Ÿ•‘')
    'Hello!'

I’m explaining ideas by Maggie Pint and @FakeUnicode.

2017-03-13

Communicating Sequential Processes: an alternative to async generators

In this blog post I present Communicating Sequential Processes (CSP) and how they can be used as an alternative to async generators. In the process, we will also take a look at the ECMAScript proposal that async generators are a part of: “asynchronous iteration

2017-02-28

Feature watch: ECMAScript 2018

This blog post tracks what features may be included in ES2018. I will continually update it.

2017-02-22

babel-preset-env: a preset that configures Babel for you

babel-preset-env is a new preset that lets you specify an environment and automatically enables the necessary plugins.

2017-01-26

ES proposal: Shared memory and atomics

  • Update 2017-02-24: Complete rewrite of Sect. 4, “Atomics: safely accessing shared data”.

The ECMAScript proposal “Shared memory and atomics” by Lars T. Hansen has reached stage 4 this week and will be part of ECMAScript 2017. It introduces a new constructor SharedArrayBuffer and a namespace object Atomics with helper functions. This blog post explains the details.

2017-01-20

Making transpiled ES modules more spec-compliant

In this blog post, you’ll learn:

  • How a proposed “spec mode” for Babel makes transpiled ES modules more spec-compliant. That’s a crucial step in preparing for native ES modules.
  • How ES modules and CommonJS modules will interoperate on Node.js.
  • How far along ES module support is on browsers and Node.js.

2017-01-15

Communicating between Web Workers via MessageChannel

Occasionally, you want Web Workers to communicate with each other. Doing so is not obvious as most Web Worker examples are about communicating between the main thread and a Web Worker. There, one uses postMessage() to send messages directly to the Worker. Alas, that doesn’t work for communicating between two Workers, because you can’t pass references to Workers around.

2017-01-09

ES proposal: import() – dynamically importing ES modules

The ECMAScript proposal “import()” by Domenic Denicola is currently at stage 3. It enables dynamic loading of ECMAScript modules and is explained in this blog post.