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.
- 0 Posts
- 7 Comments
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.)
Quibblekrust@thelemmy.clubto Technology@lemmy.world•Meta and Yandex are de-anonymizing Android users’ web browsing identifiers - Ars TechnicaEnglish5·13 days agoI feel like that’s all you need. You don’t have their apps installed, so the problem is already solved. If you use uBlock Origin to block their trackers, the problem is solved. So you’ve solved it twice.
Quibblekrust@thelemmy.clubto Ask Lemmy@lemmy.world•Why don't the whole planet just use UTC+00:00 / Universal Time without time zones?English2·14 days agoYou know who hates time zones the most? Programmers.
Quibblekrust@thelemmy.clubto Ask Lemmy@lemmy.world•Why don't the whole planet just use UTC+00:00 / Universal Time without time zones?English1·14 days agoSo does this colleague suddenly have to work 9-5
Worst of all, he sees a bit of daylight on the sunrise commute home. Yet I as a +10 would never see the sun.
Everyone who works a daylight job would work a daylight job with Universal Time. We exist under Universal Time right now, and yet you (and the majority of other people in the world) work during the day. Nothing would change.
Everyone would work whatever part of the day they work right now, except the numbers would change. And you’d have to learn what numbers mean “get up”, “lunch”, “dinner”, and “sleep” because they won’t be what you’re used to.
The current clock numbers are entirely arbitrary. (And they repeat!) When you were a kid, you had to learn what the hours meant relative to what part of the day it was. Under universal time, you would simply relearn that. Children learning it now would never know the difference. They would think local time is weird.
I don’t understand why every time this conversation comes up, there are always people who think that it means you’d have to change when you sleep, live, and work relative to the sun. I just don’t get it. It just seems like such an odd conclusion to me.
Quibblekrust@thelemmy.clubto Ask Lemmy@lemmy.world•Why don't the whole planet just use UTC+00:00 / Universal Time without time zones?English1·14 days agoWith global UTC timezone, then you need to ask, which are your work hours?
Which would be beautiful because you’d instantly gain an intuitive understanding of how that overlaps with your own work hours instead of having to do a conversion.
I don’t understand the question. Why wouldn’t you put a space after a question mark? You did so yourself twice in this post.