WebAssembly data flow - Part 2

In part 1, we looked at handling data flow for primitive atomics. In this part, we will look at primitive arrays.

But before that, some background in C/++ array handling is necessary.

Read more

WebAssembly data flow - Part 1

WebAssembly support is just around the corner. This is a great time to pick up some fundamentals. In this multi-part series, we’ll look at handling data flow to and from JS and C/++ environments.

We can classify the data types as:

  • Primitives - int, char, float etc.
  • User defined - class, struct, enum etc.

Each of these types can be used as:

  • Atomics - int x
  • Arrays - int x[]

The third thing we need to consider is the usage:

  • Immediate consumption - function arguments.
  • Deferred consumption - local or global state.

To keep things simple, we will only handle primitive atomics in this part. Primitive arrays are in part 2.

Read more

The correct blur

In the past week, I learned that the RGB values stored in digital media are not the same as they were recorded. This isn’t some lossy compression algorithm artifact, but rather a clever tactic. The range of all possible intensity values is reduced.

In the days when storage spaces were tiny and these adjustments helped. But the same adjustments can hinder photo editing processes.

Read more

Obfuscation with Protext

Obfuscation is the process of making something obscure, unclear, or unintelligible. Obfuscation techniques, such as markup mangling, work great for deterring people from understanding the codebase. Beyond that, mangling serves no purpose for the end user.

Recently, I came across a new and very unique obfuscation technique. One that focuses on the content rendered on the screen, not the underlying code.

Read more

Switching to Workbox

Writing a good, healthy, bug-free service-worker script and its installer script is a pretty hefty task. There are multiple pitfalls and they aren’t always visible before time. The worst part is, if something goes wrong, things can get out of hand pretty quickly.

Just watch this talk by Alexander Pope - ServiceWorkers Outbreak.

Read more