Norman Rockwell getting his weekly injection of inspiration.
- 0 Posts
- 4 Comments
Joined 5 months ago
Cake day: February 9th, 2025
You are not logged in. If you use a Fediverse account that is able to follow users, you can follow this user.
Since it needs to be compiled to JavaScript in order to be used, I kind of consider it a different language. Yes, it’s a strict superset of JavaScript, but that makes it different.
It’s much better to make your own function that uses bitwise operations to do addition.
function add(a, b) { while (b !== 0) { // Calculate carry let carry = a & b; // Sum without carry a = a ^ b; // Shift carry to the left b = carry << 1; } return a; }
(For certain definitions of better.)
Nature’s Pop-Rocks