by ghssds · 2y ago · 0 comments
1. Only one byte to specify filetype in the protocol, with only a few filetypes being being defined in the protocol, the remaining being unofficial and implementation-dependent. Most filetypes that are defined still are ambiguous.
2. No support for Unicode in the protocol, or even for any character set but ISO-8859-1. Non-europeans can eat shit and die.
3. No support for encryption nor compression in the protocol.
4. Any implementation supporting an above-mentioned feature is operating out of specification.
I consider it a feature.
Compression adds complexity. Not only you have to implement compression itself, but also a way to communicate what type of compression you want. It also makes the protocol less readable though packet dumps and make using simple tools like netcat more complex. Simplicity is a big reason for using Gopher.
Encryption adds a lot of complexity, same argument, but ten times worse.
In addition to complexity, I don't really like the idea of HTTPS-style encryption for a niche like this, for the following reasons:
- HTTPS gives only limited privacy protection, an eavesdropper can still see your IP address and the server you are trying to reach. It is not TOR.
- The signature aspect only ensures you are connecting to the right server, not that the content has been tempered with. It is not PGP.
- Encryption is useful to send secrets, like passwords or credit card numbers. Why would you want use passwords? Isn't the big idea to make information publicly available? Why hide things behind passwords? And why would you want to send a credit card number, do you want e-commerce on your platform? Not having encryption is a way to ensure all information on your small network is freely accessible and stays this way.
And if you disagree with regard to encryption, maybe take a look at Gemini.
1 and 2 are good points.
This is what I've dubbed the "perfect is the enemy of good" fallacy, and it's frustratingly common around here. Technology Connections calls it "but sometimes".
A surprising number of otherwise educated and rational people are entirely prepared to argue that because a solution is partial that means it is useless and we'd be better off without anything at all. It feels weird that I even have to say this, but: sometimes a partial solution covers most of the solution space that actually matters in the real world and it's okay that it's incomplete. I'd rather an attacker see my IP address and the server I'm trying to reach than that they be able to see all of my communications with a server.
And there is an easily overlooked benefit of no encryption for a niche protocol: it's much easier to implement in resource constrained environments, e.g. very old computers. The Web doesn't compete in this area, so it's perfect for a smaller alternative like Gopher.
This is just the goofiest assertion. Old computers have been in the Web since both the Web and those computers were new. You can transfer the same plain text content over HTTP as you can Gopher. It takes very little in the way of resources to handle HTTP 1.1 on the client side.
Are you sure the attacker is not able to see "all of my communications with a server" ?
Do you trust CAs with your data ?
But if I weren't using TLS I would be sure that they definitely could!
This is exactly the type of argument the post you replied to was talking about.
If one option might be vulnerable, and the other is definitely vulnerable, then obviously pick the one that isn't definitely vulnerable.
The “T” in TLS stands for “transport.” It absolutely does guarantee that the content has not been tampered with, unless you don’t trust the website itself (in which case you would trust the PGP key no more or less than you would the website’s certificate).
But regardless, this kind of argument against encryption is just plain bad: there are all kinds of things you might want to do on the Internet that don’t involve passwords or “secret” information that a passive adversary (like a government or ISP) shouldn’t be able to observe. The contents of the political websites you visit, for example. This is especially true on our modern Internet, where observing individual endpoint IPs doesn’t really tell the passive adversary much (thanks to CGNAT and SNI/multiple sites hosted on the same IP).
There's very little downside to making those optional, and significant upside.
Communication technologies without both of those things are no more than toys.
Compression: Microfilm.
Encryption: Well, not encryption exactly, but encryption is just an end to a means, which is privacy of communication. Libraries offer private reading rooms and generally refuse to release lending history to any random person who asks.
I'm sure if Gopher had stuck around there would have been a version 2.0 of the spec that addressed these issues, although that one byte filetype would make for some fun backwards compatibility hacks.
The bigger issue is "what compelling reason would you have to use Gopher instead of HTTP"? What does it do better? Small reductions in overhead aren't generally worth the tradeoff.
On a side note I remember one of the earliest search engines for Gopher was named VERONICA, for Very Easy Rodent Oriented Net-wide Index to Computer Archives, a glorious backronym that came about because they wanted to riff on the FTP search engine being named ARCHIE.
1. With libmagic these days this is sort of not that useful. Type "9" means Item is a binary file. Client must decide what to do with it. Just use type 9 and then determine the filetype using the first few bytes.
2. Screams for an upgrade. Could assume if encryption is used, UTF-8 is the new default charset.
3. Most TCP services are wrappable, eg. over SSL or ssh with compression.
4. Fortunately the once-feared gopher police, famed as both jaw-droppingly vicious and most morally dubious in method, have long since retired to the Bahamas.
2. This would be Gemini. Most people here don't like it either. Also, most gopher sites I visit use UTF-8, and my client (which I wrote---it's not hard) hasn't had an issue with mojibake.
3. It's not as simple as wrapping TLS around the TCP connection. [1]
4. There were once gopher police?
[1] I talk about it here: https://boston.conman.org/2019/03/31.1
Http(s) had at least some back and forth that allowed clients/servers to do protocol negotiation, not perfect, but workable such that normally crashes do not occur...
Although speaking of crashes, if your app is as poorly written to easily crash, perhaps it should be re-written - if e.g. gopher were to come back in a meaningful way, that sounds like ripe pickings for security folk.
A dead end. Just some narcissists' pet project that should never been entertained.
This both explains some of the bizarre (and anti-intellectual) design decisions, and also makes it crystal clear that it shouldn't be used for anything serious (e.g. serving the course website for a class you're teaching).
> Non-europeans can eat shit and die.
A highly inaccurate and emotive way to put it. I appears it provides all characters used by English, Spanish and Portuguese which, while European in origin, are main languages in all the Americas, Australia and New Zealand. On top of that English is widely spoken (often as a first language) in much of Africa and Asia. It also provides full support for Bahasa Indonesia and Afrikaans.
On the other hand, it does not provide any characters for Russian (the language with the most speakers in Europe) or other languages written in Cyrillic letters, or full support for French of German, the next most widely spoken languages in Europe.
Most of the population of Russia lives in Europe - a minority of Russians can be counted as Asians going strictly be geography, and I think Russian would still be the most widely spoken language just counting the number of speakers in Europe.
Irrelevance?
ISO-8859-1 only supports Italian, Spanish, Portuguese, French, German, Dutch, English, Danish, Swedish, Norwegian, and Icelandic. So, about half of Europe.
What's becoming irrelevant about the Web is search. The decline of search - and the whole spider/retrieval model - is a real problem in the post AI-SEO-optimised spam epoch.
The Web is really a giant heap. People stopped usefully linking over a decade ago. By contrast Gopher offers a different way of discovering content because it tends toward structure.
Anyone building a gopherhole can built the exact same structure on a website. Better is anyone can access it because most of the planet carries a web browser in their pocket. If you want to put together structured content on the web no one is stopping you.
Fetishizing gopher is the weirdest thing. You're making arguments about SEO and then talking about a protocol that offers zero discovery unless someone fires up some old Veronica servers. If you're unconcerned about SEO/Google there's no reason to include anything SEO or Google related on a website.
It's fine to dislike how Google has ruined the web. That doesn't make the web itself bad or useless. Today you can use the web the exact same way we did thirty years ago. It has way more capability (even ignoring JavaScript bullshit) than gopher and you can reliably send a link to content to someone that isn't obsessed with a dead protocol.
It's trivially true. But it misses the value of strongly imposed constraints. I know that goes against a prevailing (well USA) culture of "bigger and more is always better".
Sometimes less is more.
> It's fine to dislike how Google has ruined the web. That doesn't make the web itself bad or useless.
It sort of does though. It's like saying; yeah it's bad that loads of drug dealers and thieves moved into the neighbourhood. but that doesn't make the neighbourhood itself bad. For practical purposes it totally does. It may not make the buildings and streets bad, as if a technology in isolation could be "bad", but it makes nobody want to go there.
Websites are not physical neighborhoods. They're not affected by things in physical proximity. A visitor is not affected by anything in physical proximity. A website, like a gopher site only contains the content the owner put up. You can put up a bunch of plain text on a website to show how much of a hipster you are. No one is stopping you.
This is a feature.
And Hungarians...