Charlie Tapping
03/16/2025, 1:48 PMkotlin.Any
upwards, so all the stdlib structures like arrays, lists plus any new types defined in the users program. This leads to some pretty deeply nested type structures. Would it be possible to instead leverage the type ref null any
, which is baked into the gc type system as the root, and that way you can encode multiple trees representing distinct hierarchies rather than one large one? You could replace calls to ref.test
and ref.cast
where you comparing against kotlin.Any
to ref null any
instead?Charlie Tapping
03/16/2025, 1:57 PMbashor
03/16/2025, 8:30 PMbashor
03/16/2025, 8:32 PMbashor
03/16/2025, 8:39 PMbashor
03/16/2025, 9:21 PMkotlin.Any
vs ref null any
I doubt it will help with rec groups, but I thought about it in context of interop (spec with JS) and where it may simplify some things but complicate others, e.g. calling Any’s members (hashCode, equals, toString).Charlie Tapping
03/17/2025, 8:43 AMCharlie Tapping
03/17/2025, 9:02 AM(func $"#func293 main$lambda.invoke" (@name "main$lambda.invoke") (;293;)
and another lacks the name tag (func $main$lambda.invoke (;292;)
bashor
03/17/2025, 1:33 PMCharlie Tapping
03/17/2025, 2:39 PMCharlie Tapping
03/17/2025, 2:40 PMbashor
03/17/2025, 3:58 PMbashor
03/17/2025, 3:59 PM-Xwasm-debug-info
to get them generated, in kotlin gradle plugin the option is always provided.