KhronosGroup / OpenCL-Registry

OpenCL API and Extension Registry.
113 stars 42 forks source link

MIME type for OpenCL source code? #27

Closed aaronpuchert closed 7 years ago

aaronpuchert commented 7 years ago

Recently, OpenCL C source code was registered in freedesktop.org's shared-mime-info as text/x-opencl-src. (The x- prefix makes it a nonstandard extension.) The freedesktop.org project maintains common components shared by all Linux desktops.

Since OpenCL C is based on C, which has type text/x-csrc, we wondered over at KDE if it shouldn't rather be text/x-opencl-csrc. Especially since there is also OpenCL C++. Does Khronos have a position on this?

Text editors and IDEs need a way to recognize the language of a given source code file, and the usual way to do this is via MIME types.

oddhack commented 7 years ago

This isn't 'invalid' in the sense of being a bad question, but it should probably be asked over on the OpenCL-Docs repository where the spec is kept. This repo is only for the content backing the actual registry website and likely isn't monitored by anyone except me. No idea who in Khronos, if anyone, is involved in MIME type registration, though.