ufo5260987423 / various-program-languages-benchmark

4 stars 3 forks source link

Wrong wording in README.md about tail call optimization in JS #6

Open FlammeShadow opened 1 month ago

FlammeShadow commented 1 month ago

In the notes of benchmark, it is said

For many languages like JavaScript, tail-call optimization is usually not implemented.

However, actually, ECMAScript implementations require proper tail call accroding to here. That is said a JS interpreter need to do tail call optimization to support PTC. Though many implementations don't really implement it.

The "usually" here is not really "usually", for example, TCO's removal from v8 is by design, and Chakra didn't support it due to ABI problems.

ufo5260987423 commented 1 month ago

You may be able to make a patch to README.