00:02 | <rkirsling> | https://github.com/tc39/proposal-temporal/issues/1697 |
18:01 | <jschoi> | Does anyone know of any way to view the most popular NPM packages that depend on a specific NPM package, other than downloading a Gzemnid dataset? (npmjs.com can sort packages by popularity in its name search, and it can list the dependees of a specific package, but it can’t do both at the same time.) |
18:08 | <jschoi> | (Use case: Trying to find maximally impactful real-world examples of a library’s usage in the wild, while writing a proposal explainer.) |
18:11 | <jschoi> | Also, I might be confused, but has https://gzemnid.nodejs.org/datasets/ not been updated since 2019? |
20:14 | <Justin Ridgewell> | Hacker News is linking to a new IETF for UUID formats: https://datatracker.ietf.org/doc/html/draft-peabody-dispatch-new-uuid-format |
20:30 | <ryzokuken> | Looks pretty neat! UUID v6 perhaps? |
20:31 | <ryzokuken> | (in the meantime, I still find 95% or more of UUID usages in the wild being v4) |
20:38 | <ptomato> | is "the integral part of x", where x is a mathematical value, valid ecma262-speak? |
20:39 | <ptomato> | the only instance I can find in the current text is in the prose description of Math.trunc |
20:40 | <ptomato> | similarly, there are no references to "the fractional part of x" |
22:11 | <jmdyck> | ptomato: I think you'd be better off using floor(x) and (x modulo 1), assuming that the semantics for x<0 are what you want. |
22:13 | <jmdyck> | If they're not what you want, then you might have to define it, rather than just saying "the integral/fractional part". |
22:19 | <ptomato> | they are not, which is how I landed on this question |
22:19 | <ptomato> | I've currently got something like "Let y be the mathematical value whose sign is the sign of x and whose magnitude is x modulo 1" |
22:20 | <ptomato> | for the fractional part |
22:20 | <ptomato> | which is a mouthful! |
22:22 | <jmdyck> | I don't even think it's what you want. |
22:23 | <jmdyck> | e.g. -3.1 modulo 1 is 0.9, so you'd be saying that the fractional part of -3.1 is -0.9 |
22:25 | <ptomato> | ah. the magnitude should be abs(x) modulo 1, then |
22:49 | <TabAtkins> | Alternately, "Let y be the mathematical value resulting from x - the integral part of x", or however exactly you spec-ese that. |