Skip to content

Instantly share code, notes, and snippets.

View JobLeonard's full-sized avatar

Job van der Zwan JobLeonard

  • IxD/supporting programmer at Linnarsson Lab
  • Malmö
View GitHub Profile
@JobLeonard
JobLeonard / wasm opcodes.js
Created January 26, 2025 12:19
A tiny script to generate a dictionary/prefix tree to convert wasm opcode names to their bytecode sequences.
/**
* A look-up dictionary for WASM opcodes.
* Will return a (frozen) array with the
* bytecode sequence for a WASM opcode
* name.
*
* Can be accessed with property access
* or by using the whole opcode name as
* a key, e.g. both opcodes.global.get
* and opcodes["global.get"] return
@JobLeonard
JobLeonard / README.md
Last active January 22, 2025 20:27
Generator vs iterable "Duff's Device-based" coroutine, don't benchmark iterator creation

Generator vs iterable "Duff's Device-based" coroutine, don't benchmark iterator creation

view on jsbenchit

@JobLeonard
JobLeonard / README.md
Last active January 22, 2025 20:37
Generator vs iterable "Duff's Device-based" coroutine
@JobLeonard
JobLeonard / README.md
Last active December 16, 2024 14:25
Set.has vs Map.get
@JobLeonard
JobLeonard / README.md
Last active December 10, 2024 13:07
Firefox larger than 128px canvas
@JobLeonard
JobLeonard / README.md
Last active December 10, 2024 13:07
Firefox less than 128px canvas
@JobLeonard
JobLeonard / README.md
Created September 12, 2024 14:24
Bitmask - BigInt64 vs Uint32
@JobLeonard
JobLeonard / README.md
Last active August 8, 2024 12:11
My Test
@JobLeonard
JobLeonard / README.md
Last active March 7, 2025 11:13
isTypedArray - instanceOf vs .constructor checks
@JobLeonard
JobLeonard / README.md
Last active June 27, 2024 13:30
Array and object destructuring