Alvin Wan PhD in artificial intelligence at UC Berkeley, focusing on small neural networks in perception for autonomous vehicles. Big fan of cheesecake, corgis, and Disneyland.

Stories by Alvin Wan

scroll link animations right way

How to use scroll-linked animations the right way

Dev

When it comes to scroll-linked animations, here are two takeaway tips: use Javascript observer patterns and CSS where possible.

Alvin Wan
Jun 13, 2021 ⋅ 8 min read
How JavaScript Works: Optimizing for Parsing Efficiency

How JavaScript works: Optimizing for parsing efficiency

Dev

To write JavaScript more efficiently, consider deferring parsing to worker threads or avoiding parsing entirely by maximizing the cache.

Alvin Wan
Dec 10, 2019 ⋅ 5 min read
The V8 Javascript engine can help front-end developers achieve Javascript optimization.

How JavaScript works: Optimizing the V8 compiler for efficiency

Dev

Front-end devs can use Javascript optimization methods to reduce deoptimization and avoid unoptimizable megamorphic functions.

Alvin Wan
Sep 13, 2019 ⋅ 7 min read

When to use HTML5’s canvas

Dev

The HTML5 canvas has the potential to become a staple of the web, enjoying ubiquitous browser and platform support in […]

Alvin Wan
Apr 8, 2019 ⋅ 7 min read

The noob’s guide to 3D transforms with CSS

Dev

Most websites and interfaces are constrained to two dimensions, at most mimicking 3D-esque effects. Take your most common day-to-day interfaces: […]

Alvin Wan
Feb 27, 2019 ⋅ 7 min read