Skip to content

Define a MIME type #1682

Closed

Description

@annevk

As mentioned by Maciej in #565, a MIME type needs to be minted as well. Presumably something like application/wgsl or perhaps text/wgsl.

Activity

  1. added
    wgsl
    on Apr 28, 2021
  2. dneto0 commented on Oct 5, 2021

    @dneto0
    Contributor

    I'm really not authoritative on this. But I think it should be application/wgsl in analogy to application/javascript.

  3. litherum commented on Oct 5, 2021

    @litherum
    Contributor

    Do we know what GLSL's mime type is?

  4. kainino0x commented on Oct 6, 2021

    @kainino0x
    Contributor

    There is not one. text/plain is suitable; sometimes people use things like <script type="x-shader/x-vertex">.

  5. annevk commented on Oct 6, 2021

    @annevk
    ContributorAuthor

    Note that JavaScript is text/javascript unlike what is stated above. See HTML and the upcoming https://datatracker.ietf.org/doc/html/draft-ietf-dispatch-javascript-mjs.

  6. dneto0 commented on Oct 6, 2021

    @dneto0
    Contributor

    Thanks for the correction. I'm definitely not an authority on this stuff!

    This is where I found application/javascript: https://www.iana.org/assignments/media-types/media-types.xhtml , where it also says text/javascript is 'javascript - OBSOLETED in favor of application/javascript'

    Both entries point to https://www.rfc-editor.org/rfc/rfc4329.html which is from 2006.

    The https://datatracker.ietf.org/doc/html/draft-ietf-dispatch-javascript-mjs doc is work in progress from summer 2021. Indeed it says in part

    "text/javascript" intended usage is to be moved from OBSOLETE to COMMON.

    So text/wgsl sounds good to me. But it seems the registration needs a bunch of other things, including charset considerations. Maciej had good strong arguments (in #565) for specifying a charset. I'm a newbie to this space and am happy to go with consensus. I've only learning about media type registration (e.g. https://www.iana.org/form/media-types )

  7. kdashg commented on Oct 6, 2021

    @kdashg
    Contributor
    WGSL meeting minutes 2021-10-05
  8. annevk commented on Oct 6, 2021

    @annevk
    ContributorAuthor

    If you want to follow JavaScript, definitely go with text/wgsl. The 2006 RFC will be replaced by the draft I mentioned in due course. Hopefully soon.

    And unlike JavaScript, require everyone use UTF-8 for interchange from the start to avoid pain later.

    Happy to help fill out the template if there's anything unclear. Note that you can attach this to your document (see, e.g., https://html.spec.whatwg.org/#application/microdata+json), but you'll still need to email IANA to make it so.

  9. self-assigned this
    on Jan 11, 2022
  10. added this to the V1.0 milestone on Feb 3, 2022
  11. added
    wgsl resolved
    on Apr 26, 2022
  12. added
    copyediting
    and removed
    wgsl resolved
    on Sep 20, 2022
  13. added a commit that references this issue on Oct 20, 2022
    48791e8
  14. dneto0 commented on Oct 20, 2022

    @dneto0
    Contributor

    Following the procedures in https://datatracker.ietf.org/doc/html/rfc6838, I created a draft of the Media Type Registration, with my best estimation of what should go in it.

    Next steps:

    1. Review by the W3C WebGPU community group
    2. Send the draft to [email protected] for preliminary feedback. This is a strongly recommended step.
    3. After initial review passes, send the registration to [email protected] or file it via the form at https://www.iana.org/form/media-types
  15. 5 remaining items

  16. annevk commented on Nov 3, 2022

    @annevk
    ContributorAuthor

    Note that you can fill out https://www.iana.org/form/media-types as well, but perhaps better to await the results of the email submission now.

  17. dneto0 commented on Dec 6, 2022

    @dneto0
    Contributor

    Update:

  18. dneto0 commented on Dec 6, 2022

    @dneto0
    Contributor

    I've joined the [email protected] mailing list, and sent the request for review again. Hopefully this time it will get through to the list.

  19. mehmetoguzderin commented on Dec 6, 2022

    @mehmetoguzderin
    Member

    @dneto0 The W3C document's suggested mailing list registration link's top says:

    This list has been replaced by [email protected].

    Which can be found https://www.ietf.org/mailman/listinfo/media-types here.

    I am not sure but the domain is ietf.org instead of iana.org compared to the document. Maybe sending to [email protected] email would be more direct?

  20. mehmetoguzderin commented on Dec 6, 2022

    @mehmetoguzderin
    Member

    (and when I check the document provided mailing list archives, there are no updates since 2019, whereas the newer mailing list has very recent updates)

  21. dneto0 commented on Jan 11, 2023

    @dneto0
    Contributor

    I got some reivew feedback..

    Should we add "For privacy considerations, see [WebGPU] Section 2.2 Privacy Considerations" to the end of the security considerations section?

    I'll do that.

  22. added a commit that references this issue on Jan 15, 2023
    8e47b25
  23. added a commit that references this issue on Jan 16, 2023
    8e3be74
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

copyeditingwgsl

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions