4 ms·
We briefly toyed with the reverse idea; wanted to share some code between web and native, and TypeScript / C++ already look very similar - what if we invented a
by gigel82 5y ago
We briefly toyed with the reverse idea; wanted to share some code between web and native, and TypeScript / C++ already look very similar - what if we invented a subset of TypeScript that can be simply translated into C++ (as long as you stick to static use and types).
Worked ok for a while but broke down real quick once we brought in external npm dependencies.
Now we're just embedding V8 in our native apps and running the TS code through that. Not as interesting, but lets us import any random npm package (which is both good and bad).
- janpaul123 5y agoHah, cool! I agree that for your use case V8 makes more sense :)
- watermelon0 5y agoAre you using V8 heap snapshots to speed up startup time by any chance? IME this can greatly improve cold starts.