4 ms·
Why do you care what the target of the compile is if you're happy with the language you're writing in? That seems like being upset that some code you wrote in a
by bratsche 12y ago
Why do you care what the target of the compile is if you're happy with the language you're writing in? That seems like being upset that some code you wrote in a language you like might be running on some processor you don't like.
- Twirrim 12y agoBecause it requires some really difficult conversion work under the surface. For example, JS has no concept of integers. To shoe-horn other languages in involves a lot of extra work, which by nature is going to be less efficient. Worse, the javascript engine's JIT can't take advantage of some of the semantics of the language being converted, e.g. if the JIT knew for sure that the number was an int, it could take advantage of that in various ways, or make a smarter decision based on the known performance characteristics of the hardware it's running on.
- SiVal 12y agobecause it's inevitably a leaky abstraction
- stplsd 12y agoJesus, the next time I will read phrase 'leaky abstraction' I am going to throw up.