News for hackers. Stuff that matters.
Re:JavaScript Structs by randomdata on Friday October 11, 2024 @01:54PM (#41811635)
> Go also does not do any sort of "advanced" devirtualization

Depends on the implementation. gc doesn't put a whole lot of effort into optimization, but it isn't the only implementation. In fact, the Go project insists that there must be more than one implementation as part of its mandate.

Re:JavaScript Structs by neonsunset on Friday October 11, 2024 @02:03PM (#41811721)
GoGC is the fastest overall implementation and the one that is being used in >95% cases, with the alternatives not being-up-to-date and producing slower code, aside from select interop scenarios.

Until this changes, the "Depends on the implementation" statement is not going to be true in the context of better performance.