if not, why?
Lol
We have a very tight subset of TypeScript to WASM
Because closures and GC?
you know you can have a GC with C. a couple of them even exist
I don't see how this makes sense?
Yes, but you'd essentially have another JS runtime with minor optimisations
that would be even more interesting if someone embeds TCC to compile in memory. that would make it a JIT
or maybe no, you could have the compiler emit actual C from typescript, replacing memory allocs with GC_MALLOC from some GC library like https://www.hboehm.info/gc/
A gc alone wouldn't be enough though
Обсуждают сегодня