Re: [media-types] Proposal for "script" top-level Media Type

Harald Alvestrand <harald@alvestrand.no> Tue, 03 October 2023 12:24 UTC

Return-Path: <harald@alvestrand.no>
X-Original-To: media-types@ietfa.amsl.com
Delivered-To: media-types@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 2E4CFC19E117 for <media-types@ietfa.amsl.com>; Tue, 3 Oct 2023 05:24:18 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.906
X-Spam-Level:
X-Spam-Status: No, score=-6.906 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6YwhVWTnR4ah for <media-types@ietfa.amsl.com>; Tue, 3 Oct 2023 05:24:14 -0700 (PDT)
Received: from smtp.alvestrand.no (smtp.alvestrand.no [65.21.189.24]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id ED955C193329 for <media-types@ietf.org>; Tue, 3 Oct 2023 05:24:13 -0700 (PDT)
Received: from [192.168.3.110] (unknown [185.71.208.122]) by smtp.alvestrand.no (Postfix) with ESMTPSA id 3828D506BB; Tue, 3 Oct 2023 14:24:10 +0200 (CEST)
Message-ID: <14ba88c9-e068-400f-b8cb-5164bc2f2bcd@alvestrand.no>
Date: Tue, 03 Oct 2023 14:24:09 +0200
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Content-Language: en-US
To: Aaron Franke <arnfranke@yahoo.com>, "media-types@ietf.org" <media-types@ietf.org>
References: <224864559.1510816.1695598488441.ref@mail.yahoo.com> <224864559.1510816.1695598488441@mail.yahoo.com>
From: Harald Alvestrand <harald@alvestrand.no>
Autocrypt: addr=harald@alvestrand.no; keydata= xsFNBF3b3UcBEADG/UxgR81/WWeCrH+wICS5D6Wx85iAIEUSmLaCRVJejO5My90JskUdZkmS rYriW3v2nms1gUrI0QZWweEQ/7LTszT4mvWOsbZOwo+gp+jO0RkPjtfPn+cyvo8VPI4D64w5 czTHv9kfXIrGCxSDC8x7j4dsrJv5VwKC/kRx+SB5nBhFSyGo5GRUfUPt7cBdXa3mDMWLd02N kcMew4DP5t0IMlO+ZaXM+IbmQ8bG1Fyccc/+Q+unniAcoYxL3goNOMtyQU0F7cm4ngz5yjqX I3FHwl3CfWJ6ofcyLbhQUK/x2p3BOfUqeb82KMAH9UTGgeo3Z54T71eu9cfYf8AcKDNcFtRK w4NytEQw4UkxdCFL58H/kKSOYjWA0zgQO0X7dNyTs2UMZVzYcHSU9GcYEM9mwjCvcRIEmXfB Dx3rqbsnzu+8yQiOeJKAFLDNDTWle6wJ1iolONL/D4NDo93sbVtBRu+SroZUEfxUNB+InWLJ 2iEWc7mGtVESNGnitqPs+Ev9gsr60kVxqjTlvE+5rgEIMN0oZzA2tiKnYcyG90rsTiX+9xGn qjimtY7YUBthO4ZQvtlyROaxw91u5O1ch1HaWMmv2SsZecbDPcyQKFVSJBPqV7d3vg5mvFpH BTg2HpOM370VdVvoZFLpwRDNJXkvEFjBx/97jVr1iiZB5DB87wARAQABzS9IYXJhbGQgQWx2 ZXN0cmFuZCAoMjAxOSkgPGhhcmFsZEBhbHZlc3RyYW5kLm5vPsLBlAQTAQoAPhYhBEIWAU2+ Fuo0qTc+8P41XL9VgJnFBQJd3CbsAhsjBQkJZgGABQsJCAcCBhUKCQgLAgQWAgMBAh4BAheA A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4LmuaUHu/Od55 p3o2fVs//BoTFQI=
In-Reply-To: <224864559.1510816.1695598488441@mail.yahoo.com>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: 8bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/media-types/Rfg0dgp9gL7GgD6DcsZ3xxD6AAk>
Subject: Re: [media-types] Proposal for "script" top-level Media Type
X-BeenThere: media-types@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: "IANA mailing list for reviewing Media Type \(MIME Type, Content Type\) registration requests." <media-types.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/media-types>, <mailto:media-types-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/media-types/>
List-Post: <mailto:media-types@ietf.org>
List-Help: <mailto:media-types-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/media-types>, <mailto:media-types-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 03 Oct 2023 12:24:18 -0000

Hello,

what is your definition of "script"?

Your examples seem to roughly correspond to "text that conforms to a 
programming language specification". I'm not sure what the use for such 
a top level type would be - what situations do you foresee where a 
"scropt" top level type would be useful?

Harald

On 9/25/23 01:34, Aaron Franke wrote:
> Hello IETF,
> 
> https://www.iana.org/assignments/media-types/media-types.xhtml 
> <https://www.iana.org/assignments/media-types/media-types.xhtml>
> 
> IETF / IANA currently defines several top-level media types: 
> application, audio, font, example, image, message, model, multipart, 
> text, video, and the proposed haptics.
> 
> However, there is a major category missing: script. Currently scripts 
> are split across the application and text top-level types.
> * Many scripts are text-based, but also many are not (such as visual 
> scripting languages like Scratch or Unreal Blueprints), so not all 
> scripts fit under the text type. Since "application/javascript" has been 
> deprecated in favor of "text/javascript", this suggests that IETF / IANA 
> wants to standardize scripts under "text", but this is not suitable for 
> all types of scripts.
> * Scripts make sense under "application", but that is very broad, while 
> "script" would be much more descriptive. Scripts are unique in that they 
> are intended to be executed somehow, they are not just blobs of 
> application-specific data.
> 
> I propose adding a new "script" top-level Media Type. This may cause 
> confusion in the short term since existing types would still be under 
> "application" or "text", but in the long run it will be much more organized.
> * Note that most scripting and programming languages do not currently 
> have Media Types registered with IETF / IANA, so now is the perfect time 
> to standardize a "script" top-level type. While JavaScript and 
> PostScript have registered Media Types, other languages like Python, 
> Lua, Perl, PHP, C#, C++, Rust, shell scripts, and more do not. It would 
> be great to register "script/python", "script/lua", etc as the Media 
> Types for these formats.
> * Should it exist, I would like to use "script" as the top-level Media 
> Type for the visual scripting language being developed at The Mirror 
> (the company I work at), and I would also like to use it for the 
> GDScript programming language in Godot which currently does not have a 
> registered Media Type (proposed value: "script/gdscript").
> 
> As far as I know, the process for submitting top-level media types has 
> not yet been formalized, so I am writing this email as a proposal. I 
> originally sent this to IANA and was told by Amanda Baber tocontact the 
> mediaman group about this. I have also read though 
> draft-ietf-mediaman-toplevel-03, I do not know how to create a Standards 
> Track RFC but I believe this meets the criteria laid out in the draft, 
> the set of types that can be included under the proposed script type is 
> very large and very straightforward (it's either a script in a 
> programming language, or it's not), security is not a concern because 
> JavaScript is already an example of a scripting language with a media 
> type which shows distributing arbitrary scripts is a secure, valid, 
> common, and desired use case, I as the proposer am able to implement 
> this type in my applications, and it helps human understanding of the 
> types. It does fail the negative criteria of "SHOULD NOT generate 
> aliases for existing widely used types or subtypes" iff JavaScript is 
> desired to be "script/javascript", however that is optional (we can keep 
> it as "text/javascript" if desired). Also I see that this "must be done 
> via standards-track RFC; no other mechanism can be used", so I would 
> appreciate help with creating such an RFC.
> 
> Thank you for your consideration,
> 
> Aaron Franke
> 
> The Mirror Megaverse Inc & Godot Engine
> 
> 
> _______________________________________________
> media-types mailing list
> media-types@ietf.org
> https://www.ietf.org/mailman/listinfo/media-types