Patrick Smith
Patrick Smith
Not sure if you may already know some of this, but `NSImage` on macOS is simply a bunch of `NSImageRep`s. The `NSImageRep` is the actual image source and what gets...
As mentioned in the just closed #1491 I think particularly useful would be to have links everywhere. Link from each function/macro to a corresponding guide that lets me learn about...
Aligns could be defined when defining a SilverOrb Arena, and so you know for example that loads/store to your particular arena is 32-bit aligned.
Some progress has been made on this. I just need to decide whether `I32.UnsafePointer` should be aligned by default or not. If it should be aligned perhaps it should be...
This will also mean removing the `Orb.I32.String` module with its functions. Which is great as I’d prefer to have the amount of included boilerplate code to a minimum.
`Orb.I32.String` has been removed.
`Orb.Str` has been added, which is a Custom Type for `(i32 i32)`. The first `i32` is the string’s memory address, and the second is its length in bytes.
Having done a little investigation this looks difficult. We calculate all the constants when compiling the entire module. ```elixir # lib/orb.ex:637 def __wasm_module__() do %{body: body, constants: constants, global_definitions: global_definitions}...
I'm thinking the easiest way to solve this is to have a WebAssembly global store the constant size. Operations like with arenas can just read that global. A small pass...
This is now implemented, and it was much easier than anticipated!