Patrick Smith

Results 157 issues of Patrick Smith

When running on Deno Deploy I get: `TypeError: process.cwd is not a function` My repo is open source: https://github.com/cool-calm/calculated-world

I have a confession… I don’t like `unless` — I find it confusing as I have to negate an `if` statement in my head. A variation of `unless` that I...

Currently the string constants are just thrown into memory from offset `0xFF`. You must write `Memory.pages(1)` for string constants to even work — this sucks! What we should do is...

Calls are two steps: there's an Elixir wrapper for the natural experience and autocomplete, and there's the call instruction. Tree shaking aka dead code elimination is ideal for keeping the...

Currently it’s just the level of indent as a whitespace string. It should be broader context.

e.g. ```wat (i32.load align=1 (i32.const 0)) (i32.load align=4 (i32.const 0)) (i32.store align=4 (i32.const 0) (i32.const 1)) (i64.store align=8 (i32.const 0) (i64.const 1)) (f32.store align=4 (i32.const 0) (f32.const 1.0)) ``` The...

enhancement

https://webassembly.github.io/spec/core/appendix/algorithm.html#algo-valid

https://developer.mozilla.org/en-US/docs/WebAssembly/Reference/Control_flow/Select ```elixir Orb.Stack.select(1) do i32(42) i32(99) end ``` Probably more useful for when we have `externref`

Orb conveniently converts strings like `"abc"` into an integer “pointer”, and automatically adds an `(data)` entry initialized in memory at that pointer offset. These strings are modelled after C’s strings....

enhancement

Currently Orb only outputs WebAssembly text format (`.wat`). This can run in some libraries like `wasmex` or be converted using `wat2wasm` but it would be best to output `.wasm` directly....

enhancement