Vyacheslav Egorov (2014-07-09T10:44:30.000Z)
domenic at domenicdenicola.com (2014-09-26T04:52:23.638Z)
> Note: my proposal is not limited to 64 bit operations. It can be used to efficiently implement arbitrary precision arithmetic. True, it is easier to arrive to the efficient and clear code with lowered representation. With (lo, hi)-result API compiler will have to figure more things out on it's own. Though I don't see any issues as both APIs are strictly of the same power: ```js Math.imuluh(a, b) === Math.u64mul(a, 0, b, 0).hi ``` But then again the question would be: does it make sense to let people implement say bigints in pure JavaScript or better give them bigints as part of the language. > If you really want such an API, it is not worth proposing a lowered version because division is slow anyway This is also a fair point. But having inconsistent APIs is very weird if you ask me.