Jeffrey Yasskin

@jyasskin
26 Followers
70 Following
47 Posts
I work on #WebStandards for Chrome, and I'm organizing Google with the #AlphabetWorkersUnion. I miss programming, but now I mostly talk to people. #Urbanist, pedestrian, #YIMBY. White, but trying to check my privilege.
Opinions here are not anyone's but mine.
Githubhttps://github.com/jyasskin
Neglected Websitehttps://jeffrey.yasskin.info/
Twitterhttps://twitter.com/jyasskin
Pronounshe/him
@nolan Is there any chance of reverting the toot.cafe/robots.txt to the default now that there's an "Opt-out of search engine indexing" preference? I suspect your server is my people, but I want my public posts to be public.
Californians, beware of canvassers asking you to sign something to “help minimum wage workers.” It’s actually Starbucks, Chipotle and McDonald’s trying to *overturn* a minimum wage increase. https://perfectunion.us/fast-food-giants-trying-to-overturn-pro-worker-law-in-california/
Fast Food Giants Trying To Overturn New Pro-Worker Law in California

Signature gatherers are lying to voters in an effort to reverse AB 257, according to a formal complaint filed today by SEIU.

More Perfect Union
Let me know what you think, and remember to #TipYourServer. (https://patreon.com/mastodon for mine) 7/7
Get more from Mastodon on Patreon

Creating Mastodon

Patreon
This intentionally ignores wall time details like UTC vs UT1–4 vs TAI and the treatment of leap seconds. It also doesn't yet fix problems with the monotonic clock around how it's affected by time slew and system sleep. We'll also have to rethink it once travel at relativistic speeds becomes common or if our #Spectre mitigations ever get good enough to allow resolutions fine enough to notice that a single computer's CPUs can have different speed clocks. 6/7
Specs have 3 ways to create times: the "current wall time", the "current monotonic time", and the "current relative timestamp". That last is the way to get at the common ms-since-navigation-start measurement that's directly useful to Javascript. The others have to be explicitly converted to a duration (or Date for wall times) before they're given to JS. Check out the full proposal at https://github.com/w3c/hr-time/pull/140. 5/7
editorial: Introduce clocks, instants, and durations by jyasskin · Pull Request #140 · w3c/hr-time

I believe this fixes #139. Preview | Diff

GitHub
Both clocks have their own kind of instant, which has been renamed to "moment" to make a reviewer happy. These can be unsafe and precise or safe-for-#Spectre and coarse. Durations are shared and always coarse, which makes it possible to approximately transfer moments from one clock to another. 4/7
So I rewrote the system by simplifying some lessons I learned discussing the C++ <chrono> library. I suggest we have 2 "clocks" on the web platform: the wall clock, which is what Date uses to match human time, and the monotonic clock, which is what performance measurement and some other uses need to ignore users resetting their clocks and time slew from NTP and leap seconds. 3/7
https://w3c.github.io/hr-time/ currently expresses time in ms-since-something-vague-but-the-Unix-epoch-in-practice or ms-since-navigation-start, both sharing a type of DOMHighResTimeStamp with other durations. Its algorithms for other specs to use are also confusing, reflecting the fact that it grew over time. E.g. the "current high resolution time" is ms-since-navigation-start, but the "shared current time" is ms-since-the-epoch. (They have the same resolution.) 2/7
High Resolution Time

Over the last week, I proposed a more formal way to describe #time in #WebStandards. I started with https://github.com/whatwg/infra/pull/491, proposing the simplest thing that could possibly work: points in time and lengths of time, borrowing terms from the JS Temporal library: Instants and Durations.
The reviewers argued that we should have specs be consistent with the mechanisms in https://w3c.github.io/hr-time/... 1/7
Define instants, durations, the Unix epoch, and now. by jyasskin · Pull Request #491 · whatwg/infra

Fixes #280. I picked "instant" and "duration" to match the Temporal types, but I'd be equally happy with "point in time" and "length of time" or any other choice y'all prefer. Preview | Diff

GitHub

Something us exoplanet astronomers have done over on the bird app is the yearly #ExoCup competition, where the people who run the #ExoCast podcast organize a bracket and polls for us to pick the best #exoplanet

And the contenders for #ExoCup2022 have been announced! Generally these are drawn from the exoplanets that have been the most discussed in scientific papers that year, plus a few wild cards based on the favorites of the organizers.

https://www.exocast.org/exocup2022/

#astrodon #astronomy

ExoCup 2022

COMING SOON

exocast