Back

Week 41 - 2018

The weeknote for 10/8 - 10/14.

OSS

denoland/deno

deno is a new TypeScript / JavaScript runtime.

The echo server example (taken from the benchmark script):

import { args, listen, copy } from "deno";
const addr = args[1] || "127.0.0.1:4544";
const listener = listen("tcp", addr);
console.log("listening on", addr);
listener.accept().then(async conn => {
  await copy(conn, conn);
  conn.close();
  listener.close();
});
$ echo "hello
> " | nc localhost 4544
hello

c3js/c3

MyProject

kt3k/buttons

https://github.com/kt3k/buttons

buttons is a web service for recording the daily tasks by creating the buttons for those tasks.

Work

draft-js

react-helmet

const a = {}
const b = { a }
a.a = b

require('deep-equal')(a, b)

This is because a and b has completely and infinitely the same shape but not the same reference at any level of the trees. This overflow error doesn't happen with, for example, assert.deepStrictEqual or lodash.isEqual. They checks the circular reference in the target objects and prevent the infinite recursions.

react-helmet uses deep-equal in shouldComponentUpdate (This decision itself is silly or ignorant). This doesn't cause a problem in most cases, but in some cases, this triggers the infinite recursion of deep-equal and throws an error. I couldn't identify the condition which causes this situation, but when it happens, the props.children seems having the infinite structure and probably that's the problem. When it happens, props.children has _owner property and under it, there seem exiting circular structures.

Math

Category Theory

Reading the category theory textbook of The University of Chicago. https://github.com/kt3k/math-exercises-notes/tree/master/categories

Movie

A Quiet Place


Back

Edit this page

revision: 90a8f3f