3 ms·
JavaScript and TypeScript yield different results, there could be reasons like backwards compatibility transpilation but that's an option, otherwise code should
by whizzter 4y ago
JavaScript and TypeScript yield different results, there could be reasons like backwards compatibility transpilation but that's an option, otherwise code should be identical if written for performance.
- HoolaBoola 4y agoOne of the JavaScript programs at least was concurrent, whereas the TypeScript equivalent was synchronous. No wonder there's a difference... Haven't looked closely at the other problems, but it's apparent to me that the solutions are not even trying to be similar, so comparing their efficiency is near useless. the problem in question was the k-nucleotide one, IIRC: https://github.com/greensoftwarelab/Energy-Languages/blob/1356528173d6bb07fb2512037c0ed8e2279ce440/JavaScript/k-nucleotide/knucleotide.node-2.node https://github.com/greensoftwarelab/Energy-Languages/blob/13...
- igouy 4y agoMaybe the JavaScript wouldn't type check with TypeScript.