Giter VIP home page Giter VIP logo

Comments (34)

ljharb avatar ljharb commented on September 25, 2024 9

I continue to encourage them to bring it to TC39; imo that's where it belongs.

from es-observable.

domfarolino avatar domfarolino commented on September 25, 2024 7

@domfarolino So, do u have any future plan to move this (https://github.com/domfarolino/observable) proposal to tc39 from whatwg (maybe after this accepted)

No. We are planning to standardize it in the WHATWG as I said earlier, after moving to WICG as an intermediate step. I'm not going to rule out TC39 ever adopting Observables in the future, if they had the same semantics as in the web platform and wanted to move it there, but that'd likely benefit from some kind of cancelation primitive and event target interface, which ECMAScript doesn't have.

from es-observable.

benjamingr avatar benjamingr commented on September 25, 2024 6

This actually has updates, it's moved to standardize by Google and Ben at https://github.com/domfarolino/observable seeking standardization as part of the web platform and not the language.

from es-observable.

benlesh avatar benlesh commented on September 25, 2024 4

why-not-both

from es-observable.

benjamingr avatar benjamingr commented on September 25, 2024 2

Am just wondering why it cant be language primitive rather than being web platform specific.

@codesculpture those two are not exclusive, also WICG/observable#30 (comment)

from es-observable.

codesculpture avatar codesculpture commented on September 25, 2024 2

Hey i sent u the email and happy to see people like you who are trying to help others. Very thanks @benjamingr

from es-observable.

domfarolino avatar domfarolino commented on September 25, 2024 2

Given the precedent of EventTarget and AbortController in WHATWG DOM, and that Observables are highly motivated by web platform use cases that use those primitives (that exist in the Web platform), I think WHATWG DOM seems like a good place to eventually standardize Observables, personally.

from es-observable.

ljharb avatar ljharb commented on September 25, 2024 2

@domfarolino there's no doubt it'd be useful in the DOM, but completing the fourth quadrant of GTOR seems foundational enough and much broader than the web.

from es-observable.

domfarolino avatar domfarolino commented on September 25, 2024 2

@codesculpture Observables is currently being proposed in https://github.com/domfarolino/observable and will be moved to https://github.com/WICG soon. The goal is to standardize it in the DOM Standard ultimately, so I don't think there's a need to integrate with the Streams Standard.

from es-observable.

ljharb avatar ljharb commented on September 25, 2024 2

@codesculpture if it depends on AbortSignal (which, ftr, I haven't been convinced is necessary) then it couldn't move to tc39 until AbortSignal exists in the language, which it's unlikely to ever do (due to it being shipped in browsers without going through tc39 first)

from es-observable.

duduc avatar duduc commented on September 25, 2024 1

up

from es-observable.

hax avatar hax commented on September 25, 2024 1

It seems this proposal do not have active champions, and never have updates in TC39 meetings in last 5 years.

from es-observable.

ljharb avatar ljharb commented on September 25, 2024 1

What I mean is, if the web has a thing, there's not going to be much appetite to add it to the language.

from es-observable.

benlesh avatar benlesh commented on September 25, 2024 1

FWIW: I'm not an owner of this repository. So I'm not sure what I could provide someone who wanted to work in the TC39 space. My understanding is that this proposal would effectively require sponsorship from a member company, ergo $$$ and time (which is also $$$).

from es-observable.

ljharb avatar ljharb commented on September 25, 2024 1

@benlesh i agree! the best way to get both, tho, is to land it in the language first :-)

from es-observable.

ljharb avatar ljharb commented on September 25, 2024 1

The reverse is true - once it’s in WHATWG, the chances of it landing in tc39 approach zero.

from es-observable.

codesculpture avatar codesculpture commented on September 25, 2024

The language can be considered to be standard if it contains these type of essential classes which are very useful🙂

from es-observable.

codesculpture avatar codesculpture commented on September 25, 2024

This actually has updates, it's moved to standardize by Google and Ben at https://github.com/domfarolino/observable seeking standardization as part of the web platform and not the language.

Am just wondering why it cant be language primitive rather than being web platform specific. Since this is highly related to language specific (i guess). Literally i see that asynchronous classes are the future (now, it was playing major role at library-level only). So in my opinion, it needs to be language primitive

from es-observable.

ljharb avatar ljharb commented on September 25, 2024

If it already exists in the web, it won’t likely reach consensus for being in the language - promises only landed in one spec for that reason.

from es-observable.

codesculpture avatar codesculpture commented on September 25, 2024

Am just wondering why it cant be language primitive rather than being web platform specific.

@codesculpture those two are not exclusive, also WICG/observable#30 (comment)

We are having event emitters in node.js, we can build something better than that using observables, i cant say any existing stuffs which we can replace by observable in node for now. But it totally will be helpful i would say

from es-observable.

codesculpture avatar codesculpture commented on September 25, 2024

If it already exists in the web, it won’t likely reach consensus for being in the language - promises only landed in one spec for that reason.

Can u elaborate this, please?

from es-observable.

codesculpture avatar codesculpture commented on September 25, 2024

Can we expect this to happen or is there anything other we can do it to happen

from es-observable.

benjamingr avatar benjamingr commented on September 25, 2024

For what it's worth promises landed in a WHATWG spec first and then moved to JavaScrip via TC39 (promises are kind of complicate since both specs were based on a third userland spec). So if anything this makes an argument to add it to both since both the language and the platform have APIs that need this sort of thing.

Both can also consume it from each other.

It's been ±10 years so recollection is kind of vague.

from es-observable.

benjamingr avatar benjamingr commented on September 25, 2024

Also:

Can we expect this to happen or is there anything other we can do it to happen

Sure there is a lot of stuff to do observables have been blocked mostly on actual work done. You should reach out to @benlesh with a clear email of what you know and how much time you commit to spend on this.

from es-observable.

codesculpture avatar codesculpture commented on September 25, 2024

Seems scary, isnt there any possible way that this can be happen quickly than a decade. I know my question is dumb. But whatever

from es-observable.

benjamingr avatar benjamingr commented on September 25, 2024

@codesculpture observables and most stuff have always been blocked on someone either funding people to work on it or doing the work themselves.

If you're willing to do either it can progress pretty quickly. Otherwise we can mostly wait.

from es-observable.

codesculpture avatar codesculpture commented on September 25, 2024

I mean i was really interested in bringing this in, but am an amateur (under grad and still studying). But i can put my all time to do this at whatever cost. If u think i can help, can u just navigate me how i can start please?

from es-observable.

benjamingr avatar benjamingr commented on September 25, 2024

Seems scary, isnt there any possible way that this can be happen quickly than a decade.

Sure, nothing in the spec is rocket science - you would email @benlesh with the following email:

Subject: Helping with Observables in the web

Contents:

Hey, my name is XXX. I'm willing to dedicate XXX hours a week for XXX weeks in order to help make native observables a reality. 

I know JavaScript and to do YYY. I've never adde something to the language before so please scope my work accordingly.

Thanks,
Your Name

And I'm sure he can guide you from there. If he doesn't answer let me know and I'll ping him but he's generally a nice guy.

from es-observable.

codesculpture avatar codesculpture commented on September 25, 2024

Seems scary, isnt there any possible way that this can be happen quickly than a decade.

Sure, nothing in the spec is rocket science - you would email @benlesh with the following email:

Subject: Helping with Observables in the web

Contents:

Hey, my name is XXX. I'm willing to dedicate XXX hours a week for XXX weeks in order to help make native observables a reality. 

I know JavaScript and to do YYY. I've never adde something to the language before so please scope my work accordingly.

Thanks,
Your Name

And I'm sure he can guide you from there. If he doesn't answer let me know and I'll ping him but he's generally a nice guy.

Can i get his email?

from es-observable.

benjamingr avatar benjamingr commented on September 25, 2024

Sure, let me ask him. You can also email me at [email protected] and I'll forward it to him

from es-observable.

ljharb avatar ljharb commented on September 25, 2024

@benlesh it needs a champion, for which Google employees are eligible like @domfarolino.

from es-observable.

domfarolino avatar domfarolino commented on September 25, 2024

I'm a little confused what "getting both" means. You can only have Observables in one spec, right? If it's in WHATWG DOM, there's nothing stopping TC39 standardization if the right TC39 groundwork was eventually laid (I'm imagining some event emitting infrastructure and token-based cancellation primitives introduced at that layer). But all that groundwork has already been laid in the web platform, and TC39 seems to not have an issue with that, right?

from es-observable.

codesculpture avatar codesculpture commented on September 25, 2024

Hey guys, i see that whatwg has specific repo for streams (Readable Streams, Writable Stream, Transform Stream)
https://github.com/whatwg/streams

Is that possible that we can propose this "Observable" there. Sorry if my question is dumb. But just want to know if that whatwg's stream repo help this proposal to ship fast.

from es-observable.

codesculpture avatar codesculpture commented on September 25, 2024

@domfarolino So, do u have any future plan to move this (https://github.com/domfarolino/observable) proposal to tc39 from whatwg (maybe after this accepted)

from es-observable.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.