Craving simplicity, finding it nowhere.
Internetrovert 🏳️🌈 He/him.
I added `builtins.runWasm` to nix, allowing you to call out to Wasm. The Wasm is reset every time, so the functions remain pure. This gives you a (performant?) escape hatch for things that Nix is missing. E.g parsing YAML (here: via Rust)
I added `builtins.runWasm` to nix, allowing you to call out to Wasm. The Wasm is reset every time, so the functions remain pure. This gives you a (performant?) escape hatch for things that Nix is missing. E.g parsing YAML (here: via Rust)
- I asserted it’s an object
- I am using `?.` for property access
www.typescriptlang.org/play/#code/G...
- I asserted it’s an object
- I am using `?.` for property access
www.typescriptlang.org/play/#code/G...
Somehow git ended up tracking its own .git folder and now I can't commit anymore :3
Somehow git ended up tracking its own .git folder and now I can't commit anymore :3
TIL: Substitutions.
`cmd <(cat file)` invokes `cmd` with the first parameter being a named pipe (e.g. `/dev/fd/22`) which contains the contents of `file`.
Example use-case: You wanna diff two files, but they are binary so need disassembling
TIL: Substitutions.
`cmd <(cat file)` invokes `cmd` with the first parameter being a named pipe (e.g. `/dev/fd/22`) which contains the contents of `file`.
Example use-case: You wanna diff two files, but they are binary so need disassembling
xkcd.com/356/
xkcd.com/356/
Went to website and clicked on “Help & Support”. It shows this in response.
10/10 would Lorem Ipsum again.
Went to website and clicked on “Help & Support”. It shows this in response.
10/10 would Lorem Ipsum again.
This ES6 Proxy lets you instantiate any WebAssembly module without having to care about every import it requires. It generates an empty function for the ones you don’t provide.
gist.github.com/surma/da12f7...
This ES6 Proxy lets you instantiate any WebAssembly module without having to care about every import it requires. It generates an empty function for the ones you don’t provide.
gist.github.com/surma/da12f7...
I liked the idea of making it a one-stop-shop for all your bundle analysis needs 😅
wasmphobia.surma.technology
I liked the idea of making it a one-stop-shop for all your bundle analysis needs 😅
wasmphobia.surma.technology
Throw in a .wasm file with DWARF debug symbols, and wasmphobia will generate a flame graph for you, breaking down the module by source file.
wasmphobia.surma.technology
Throw in a .wasm file with DWARF debug symbols, and wasmphobia will generate a flame graph for you, breaking down the module by source file.
wasmphobia.surma.technology
Note that I need to:
- access `controller` from within the listener,
- access `this` in `start()`
- remove the listener in `cancel()`
Note that I need to:
- access `controller` from within the listener,
- access `this` in `start()`
- remove the listener in `cancel()`
https://developer.mozilla.org/en-US/docs/Web/API/Navigation_API
A very modern API. A lot more control. As a trade-off, not as trivial to implement correctly.
First tripwire for me: `navigationEvent.intercept()` commits the new URL.
https://developer.mozilla.org/en-US/docs/Web/API/Navigation_API
A very modern API. A lot more control. As a trade-off, not as trivial to implement correctly.
First tripwire for me: `navigationEvent.intercept()` commits the new URL.