Реклама
I Have Many Causes To Hope
9-03-2023, 21:44 | Автор: KristyOToole | Категория: Мультимедиа
One of many issues I've poured myself into this year -- with a merry band of contributors including Domenic Denicola, Anne van Kesteren, Jake Archibald, Mark Miller, Erik Arvidsson, and plenty of others -- has been a design for Guarantees that DOM and JS can both adopt. There's a (very) lengthy history of Promises, Deferreds, and various different Promise-ish issues in JS which I will not bore you with here besides to notice that there are very few client-aspect libraries which don't include such a factor and use it as a core idiom for coping with async behvaior (e.g., XHR).

Query, Dojo, Q, WinJS, Cujo, Closure, YUI, Ember (by way of RSVP), and all the rest use this model of contract pervasively and have for years. The foremost libraries are coalescing round that contract and so it seems time, finally, to make our biggest and most important library -- DOM -- savvy to them too.

The recent history starts (arbitrarily) a couple of years ago and ends 2 weeks ago. API we have designed want not upset anybody's applecart. The TC39 meeting was a key turning point: up till 2 weeks in the past, DOM had a version of this design beneath the name Future.

I made the choice to not use the title Promise for that work as a result of with out TC39's agreement on a design, the DOM variant might sooner or later discover itself each camping on a global name and disagreeing with JS about semantics or naming of particular APIs. That type of factor might have lead to the suspicion by DOM people that TC39 was out of contact and sluggish, and by TC39 that DOM rushed in like fools into an area that is fairly clearly one thing the std lib ought to embrace (even when it couldn't do so for multiple years as a consequence of publication and spec timing points).

Promises, notably Internet Crypto and Internet MIDI.

There has additionally been lively discussion about different APIs that may benefit from moving to a regular mechanism for describing async operations. It seems, in every individual case, like this shouldn't be such an enormous deal. The massive motive to spend months of my life on this problem, and to harass other very busy people to do the same, is to me the core value of internet requirements: when they're working effectively, they create a uniform surface space that describes a coherent platform.

We are the beneficiaries of this uniformity at present regarding occasions, Signals is partnering up with Foxconn's data center SafeDX. Together we can efficiently collect and pre-process big data from various crypto-markets in real time. and crypto-Markets they are a significant piece of the design language which DOM API authors can reliably use to assist describe bits of their design. Promises, like Occasions, are yet another tool in the field that DOM APIs authors can use, and because of sane constructors and the power to subclass constructed into the design, it's attainable for end-user code to finally put down the custom implementations of Promise-like issues and simply rely on the platform to do what platforms ought to do: make cheap and straightforward what beforehand was frequent however expensive.
Скачать Skymonk по прямой ссылке
Просмотров: 23  |  Комментариев: (0)
Уважаемый посетитель, Вы зашли на сайт kopirki.net как незарегистрированный пользователь.
Мы рекомендуем Вам зарегистрироваться либо войти на сайт под своим именем.