[tech] File extension options

Mansfield <mansfield (a) ondollo.com>

This time it's a short question that I can't find an answer to.

Why not use '.gem' as the file extension? Why the encouragement to support
one or both of gmi / gemini instead of adding a new one?

What I was able to find was, "Current Gemini servers seem to use .gmi or
.gemini extensions for this purpose, and new servers are strongly
encouraged to support one or both of these options instead of adding a new
one to the mix." (from gemini.circumlunar.space/docs/best-practices.gmi)

To be clear: You won't get any argument from me. The only thing swaying me
either way is, to me, '.gem' feels cooler. I'd *really* love to use that...
I'd feel... almost sad to use gmi... and gemini is annoyingly long. So. No
logical argument here. Just looking for some background and trying to get a
feel for how horrible a person I'd be if I went with gem.

Thoughts?

Link to individual message.

Miguel de Luis Espinosa <enteka (a) fastmail.com>


On Thu, Jan 21, 2021, at 5:28 AM, Mansfield wrote:
> This time it's a short question that I can't find an answer to.
> 
> Why not use '.gem' as the file extension? Why the encouragement to 
> support one or both of gmi / gemini instead of adding a new one?
> 
> What I was able to find was, "Current Gemini servers seem to use .gmi 
> or .gemini extensions for this purpose, and new servers are strongly 
> encouraged to support one or both of these options instead of adding a 
> new one to the mix." (from 
> gemini.circumlunar.space/docs/best-practices.gmi)
> 
> To be clear: You won't get any argument from me. The only thing swaying 
> me either way is, to me, '.gem' feels cooler. I'd *really* love to use 
> that... I'd feel... almost sad to use gmi... and gemini is annoyingly 
> long. So. No logical argument here. Just looking for some background 
> and trying to get a feel for how horrible a person I'd be if I went 
> with gem.
> 
> Thoughts?

.gem is for Ruby gem files (sort of libraries)

Link to individual message.

Sean Conner <sean (a) conman.org>

It was thus said that the Great Mansfield once stated:
> This time it's a short question that I can't find an answer to.
> 
> Why not use '.gem' as the file extension? Why the encouragement to support
> one or both of gmi / gemini instead of adding a new one?
> 
> What I was able to find was, "Current Gemini servers seem to use .gmi or
> .gemini extensions for this purpose, and new servers are strongly
> encouraged to support one or both of these options instead of adding a new
> one to the mix." (from gemini.circumlunar.space/docs/best-practices.gmi)
> 
> To be clear: You won't get any argument from me. The only thing swaying me
> either way is, to me, '.gem' feels cooler. I'd *really* love to use that...
> I'd feel... almost sad to use gmi... and gemini is annoyingly long. So. No
> logical argument here. Just looking for some background and trying to get a
> feel for how horrible a person I'd be if I went with gem.
> 
> Thoughts?

  Go for it.  Just make sure the server you use can be configured to use
.gem as the extension.  Clients don't care about extensions because the MIME
type is returned.

  -spc

Link to individual message.

Jason McBrayer <jmcbray (a) carcosa.net>

Mansfield <mansfield at ondollo.com> writes:

> Why not use '.gem' as the file extension? Why the encouragement to
> support one or both of gmi / gemini instead of adding a new one?

You can use whatever extension you want, or no extension, as long as
your server is configured to serve it as text/gemini. I think the main
reason people didn't use .gem originally is because it's already used
for an image file format, and maybe also for Ruby gems.

-- 
Jason McBrayer      | ?Strange is the night where black stars rise,
jmcbray at carcosa.net | and strange moons circle through the skies,
                    | but stranger still is lost Carcosa.?
                    | ? Robert W. Chambers,The King in Yellow

Link to individual message.

Mansfield <mansfield (a) ondollo.com>

On Wed, Jan 20, 2021 at 11:42 PM Miguel de Luis Espinosa <
enteka at fastmail.com> wrote:

>
> On Thu, Jan 21, 2021, at 5:28 AM, Mansfield wrote:
> > This time it's a short question that I can't find an answer to.
> >
> > Why not use '.gem' as the file extension? Why the encouragement to
> > support one or both of gmi / gemini instead of adding a new one?
> >
> > What I was able to find was, "Current Gemini servers seem to use .gmi
> > or .gemini extensions for this purpose, and new servers are strongly
> > encouraged to support one or both of these options instead of adding a
> > new one to the mix." (from
> > gemini.circumlunar.space/docs/best-practices.gmi)
> >
> > To be clear: You won't get any argument from me. The only thing swaying
> > me either way is, to me, '.gem' feels cooler. I'd *really* love to use
> > that... I'd feel... almost sad to use gmi... and gemini is annoyingly
> > long. So. No logical argument here. Just looking for some background
> > and trying to get a feel for how horrible a person I'd be if I went
> > with gem.
> >
> > Thoughts?
>
> .gem is for Ruby gem files (sort of libraries)
>

Ah. Humm... unfortunate.

Thanks!

Link to individual message.

Mansfield <mansfield (a) ondollo.com>

On Wed, Jan 20, 2021 at 11:57 PM Sean Conner <sean at conman.org> wrote:

> It was thus said that the Great Mansfield once stated:
> > This time it's a short question that I can't find an answer to.
> >
> > Why not use '.gem' as the file extension? Why the encouragement to
> support
> > one or both of gmi / gemini instead of adding a new one?
> >
> > What I was able to find was, "Current Gemini servers seem to use .gmi or
> > .gemini extensions for this purpose, and new servers are strongly
> > encouraged to support one or both of these options instead of adding a
> new
> > one to the mix." (from gemini.circumlunar.space/docs/best-practices.gmi)
> >
> > To be clear: You won't get any argument from me. The only thing swaying
> me
> > either way is, to me, '.gem' feels cooler. I'd *really* love to use
> that...
> > I'd feel... almost sad to use gmi... and gemini is annoyingly long. So.
> No
> > logical argument here. Just looking for some background and trying to
> get a
> > feel for how horrible a person I'd be if I went with gem.
> >
> > Thoughts?
>
>   Go for it.  Just make sure the server you use can be configured to use
> .gem as the extension.  Clients don't care about extensions because the
> MIME
> type is returned.
>
>   -spc
>

Good to hear that it's acceptable. I hadn't thought of making it
configurable - I'll add that to the TODO list.

Thanks!

Link to individual message.

Mansfield <mansfield (a) ondollo.com>

On Thu, Jan 21, 2021 at 7:36 AM Jason McBrayer <jmcbray at carcosa.net> wrote:

> Mansfield <mansfield at ondollo.com> writes:
>
> > Why not use '.gem' as the file extension? Why the encouragement to
> > support one or both of gmi / gemini instead of adding a new one?
>
> You can use whatever extension you want, or no extension, as long as
> your server is configured to serve it as text/gemini. I think the main
> reason people didn't use .gem originally is because it's already used
> for an image file format, and maybe also for Ruby gems.
>

Image file format? Huh. Good to know.

I hadn't thought about *no* extension. I'm probably gonna skip that, but
make it configurable.

Thanks!

Link to individual message.

Martin Keegan <martin (a) no.ucant.org>

On Thu, 21 Jan 2021, Sean Conner wrote:

>
>  Go for it.  Just make sure the server you use can be configured to use
> .gem as the extension.  Clients don't care about extensions because the MIME
> type is returned.

At least until Microsoft implements a Gemini client, at which point MIME 
types will be ignored in favour of file extensions.

Mk

-- 
Martin Keegan, @mk270, https://mk.ucant.org/

Link to individual message.

Stephane Bortzmeyer <stephane (a) sources.org>

On Mon, Jan 25, 2021 at 09:58:52AM +0000,
 Martin Keegan <martin at no.ucant.org> wrote 
 a message of 14 lines which said:

> At least until Microsoft implements a Gemini client, at which point MIME
> types will be ignored in favour of file extensions.

Or content sniffing, like Internet Explorer did.

Link to individual message.

---

Previous Thread: Gemini works great for mobile content

Next Thread: Porting Gemini to EMACS GNUS