News for hackers. Stuff that matters.
Re:WebAssembly is more than the web by klodolph on Friday July 13, 2018 @10:15PM (#17528407)
> For example, say you want to pass a 16-byte struct as an argument: how do you do it? Do you store the struct in memory and pass an int32 pointer to its start address? Or an int64 pointer? Maybe you encode it as two int64s? Once you've made a choice, good luck calling functions generated by a compiler that made a different one!

Sounds like every architecture ever? There’s an architecture specification and then there’s an ABI. It’s common to only support some small number of sizes, x86 is a bit the odd one out these days.

Re:WebAssembly is more than the web by panic on Friday July 13, 2018 @10:45PM (#17528516)
Sure, but there's no standard ABI for WebAssembly yet. I'm basically just saying we need an ABI before we can target it as a platform apart from the web.
Re:WebAssembly is more than the web by white-flame on Saturday July 14, 2018 @03:01AM (#17529198)
It's not really a standalone platform, though. It's a sandbox utility to contain high-speed or highly customized computation, that can be plugged into any other platform. By design, it doesn't seem intended to be limited to a single higher-level (well, higher than assembly language) ABI.
Re:WebAssembly is more than the web by kurtisc on Saturday July 14, 2018 @05:37AM (#17529588)
LLVM IR is interesting in that it's the opposite: it supports from i1 to i(2^23-1)