sorry, I haven't been very precise:
There are recurring discussions on the usefulness or importance of
`i31ref` on the WebAssembly community group. Some parties are very
reluctant with respect to committing to making `i31ref` a part of the
spec. Some are looking for better solutions that solve the same problem
(efficiently storing integers on the heap).
My goal is to find out if Lisp, not necessarily SBCL, can make use of
the `i31ref` spec of WebAssembly, if that Lisp were to be implemented on
WebAssembly and use WebAssembly's built-in GC.
That the likely route to WASM for SBCL is through LLVM is definitely an
interesting point. I take it that means that SBCL would definitely bring
its own GC to WASM?
For Ocaml, we would very much appreciate a 63-bit efficient integer type
on the WASM GC, as the 31-bit integer type only gives us a
reasonably-efficient 32-bit target on WASM. Efficient 63-bit integers,
however, are extremely unlikely to make it into the specification, as at
least some of the browser engine vendors cannot efficiently implement
that, due to choices in their existing codebase. 31-bit efficient
integers, however, the existing browser engines can support with
reasonable effort.
Lisp as a language is on the Tiobe index. In some people's ears that
makes Lisp's words more important than OCaml's. :)
Best,
Sabine
On 7/2/20 3:06 PM, Douglas Katzman wrote:
> Hi, It's not clear what goal you're trying to achieve. Your email didn't
> say anything like "I would like for SBCL to compile to WASM" or "I would
> like /some/ lisp implementation which compiles to WASM".
> <mailto:Sbcl-...@lists.sourceforge.net>
> https://lists.sourceforge.net/lists/listinfo/sbcl-devel