3 ms·
Thanks ! But by compiled I meant compiled to binary, and I guess Typescript don't do it ?
by poulpy123 4y ago
Thanks ! But by compiled I meant compiled to binary, and I guess Typescript don't do it ?
- nicoburns 4y agoIf you want to compile to a binary for ease of distribution, then you can do it with both TypeScript and Python (you just get an interpreter embedded in the binary), although in both cases you'll need to use a 3rd party tool to achieve this. If you want it for the performance then neither are good options, although JS/TS is significantly faster than Python.
- poulpy123 4y agoI indeed explore this solution for python, but it doesn't look mature yet. I will have a look at the TS/JS solution, thanks !
- cassiogo 4y agoI _think_ you can get a binary from typescript code via Deno
- goodoldneon 4y agoYou could use ncc to compile a binary: https://github.com/vercel/ncc https://github.com/vercel/ncc