top | item 36261233 (no title) onimishra | 2 years ago Does such a thing exist? I would love something like that, but is it even feasible? Isn’t there a lot more you need to be aware of, to make a translation of say TS’s objects into C? discuss order hn newest danielEM|2 years ago These are far from perfect, but still something:https://github.com/andrei-markeev/ts2c/https://github.com/evanw/thinscriptIf you aim for 32 bit microcontrollers then you can go with assemblyscript to wasm and then with wasm to C transpiller afiori|2 years ago They would likely have to severely restrict the range of supported types, for example `window` is likely impossible to compile meaningfully.
danielEM|2 years ago These are far from perfect, but still something:https://github.com/andrei-markeev/ts2c/https://github.com/evanw/thinscriptIf you aim for 32 bit microcontrollers then you can go with assemblyscript to wasm and then with wasm to C transpiller
afiori|2 years ago They would likely have to severely restrict the range of supported types, for example `window` is likely impossible to compile meaningfully.
danielEM|2 years ago
https://github.com/andrei-markeev/ts2c/
https://github.com/evanw/thinscript
If you aim for 32 bit microcontrollers then you can go with assemblyscript to wasm and then with wasm to C transpiller
afiori|2 years ago