aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/blog/2022-06-04-gemini/gemini.md25
1 files changed, 12 insertions, 13 deletions
diff --git a/src/blog/2022-06-04-gemini/gemini.md b/src/blog/2022-06-04-gemini/gemini.md
index 6d10112..710dd31 100644
--- a/src/blog/2022-06-04-gemini/gemini.md
+++ b/src/blog/2022-06-04-gemini/gemini.md
@@ -54,7 +54,7 @@ Server: OpenBSD httpd
54 54
55So there is some garbage that you don't care about (your browser does), 55So there is some garbage that you don't care about (your browser does),
56plus the actual content that you want to view. What exact garbage your 56plus the actual content that you want to view. What exact garbage your
57browser and the server should exchange before one ships actual content 57browser and the server should exchange before one ships the actual content
58to the other is exactly what the protocol defines. Calling it "garbage" 58to the other is exactly what the protocol defines. Calling it "garbage"
59is a bit unfair, because there can be some useful information: for example, 59is a bit unfair, because there can be some useful information: for example,
60when the page was last modified, so if your browser has already seen and 60when the page was last modified, so if your browser has already seen and
@@ -82,13 +82,13 @@ exactly your browser is sending and receiving this information. Well, http
82other protocols in turn are on top of other protocols and... basically, 82other protocols in turn are on top of other protocols and... basically,
83[it's protocols all the way down](https://en.wikipedia.org/wiki/Internet_protocol_suite). 83[it's protocols all the way down](https://en.wikipedia.org/wiki/Internet_protocol_suite).
84 84
85(If you are curious where I got the server responses from: the UNIX command 85(*If you are curious where I got the server responses from: the UNIX command
86`curl` and the gemini browser [`gmni`](https://git.sr.ht/~sircmpwn/gmni) 86`curl` and the gemini browser [`gmni`](https://git.sr.ht/~sircmpwn/gmni)
87have a `-i` option that allows to see the messages received from the server.) 87have a `-i` option that allows to see the messages received from the server.*)
88 88
89## The gemtext markup language 89## The gemtext markup language
90 90
91Web pages are usually sent to your browser in 91Web pages are usually written in the
92[HTML](https://en.wikipedia.org/wiki/HTML) format. There are plenty of 92[HTML](https://en.wikipedia.org/wiki/HTML) format. There are plenty of
93resources to learn how HTML works, so I will not explain it here. 93resources to learn how HTML works, so I will not explain it here.
94Very briefly, 94Very briefly,
@@ -114,11 +114,11 @@ Lists:
114 114
115There is however a fundamental difference in how lines are parsed: in gemtext, 115There is however a fundamental difference in how lines are parsed: in gemtext,
116newlines in the code are preserved. This sounds completely normal for anyone 116newlines in the code are preserved. This sounds completely normal for anyone
117used to modern word processors, but it is different from how html, markdown 117used to modern word processors, but it is different from how HTML, Markdown
118and Latex work, just to name a few. In practice, this means that in gemtext 118and LaTeX work, just to name a few. In practice, this means that in gemtext
119you nhave to write your paragraphs as long lines, without inserting line breaks 119you have to write your paragraphs as long lines, without inserting line breaks
120unless you want the line to be broken at that specific point. 120unless you want the line to be broken at that specific point.
121This may be annoying for people used to old-style line-based editors, such as 121This may be annoying for people who use old-style line-based editors, such as
122vi, but it makes parsing a gemtext file much simpler. 122vi, but it makes parsing a gemtext file much simpler.
123 123
124There are only three other things you can do in gemtext: links, block quotes 124There are only three other things you can do in gemtext: links, block quotes
@@ -160,7 +160,7 @@ an external app.
160## Gemini in practice 160## Gemini in practice
161 161
162Gemini is basically a very stripped down version of the Internet. To me it 162Gemini is basically a very stripped down version of the Internet. To me it
163feels like some kind of very nice, underground web. Some *capsules* I like 163feels like some kind of very niche, underground web. Some *capsules* I like
164browsing are [smol.pub](gemini://smol.pub) and 164browsing are [smol.pub](gemini://smol.pub) and
165[midnight.pub](gemini://midnight.pub). I don't have an account there 165[midnight.pub](gemini://midnight.pub). I don't have an account there
166yet, but I think I will make one at some point. I also check the 166yet, but I think I will make one at some point. I also check the
@@ -169,7 +169,7 @@ stuff.
169 169
170Basically, if you like the idea of a small and text-only version 170Basically, if you like the idea of a small and text-only version
171of the internet, you should check out the gemini space. 171of the internet, you should check out the gemini space.
172The page [geminiquickst.art](https://geminiquickst.art) suggests some 172The page [geminiquickst.art](http://geminiquickst.art) suggests some
173browsers - I personally use gmnln, but it is more or less an interactive 173browsers - I personally use gmnln, but it is more or less an interactive
174curl, you probably won't like it. 174curl, you probably won't like it.
175 175
@@ -178,13 +178,12 @@ curl, you probably won't like it.
178I think gemini is an interesting exercise of minimalism, which I like. 178I think gemini is an interesting exercise of minimalism, which I like.
179I am not a networking expert, so I don't know what the pros and cons of using 179I am not a networking expert, so I don't know what the pros and cons of using
180gemini:// rather than http(s):// are, but I quite like gemtext as a markup 180gemini:// rather than http(s):// are, but I quite like gemtext as a markup
181language. I am not too fond of using long lines, because as a terminal editor 181language. I am not too fond of using long lines, but this is not
182user I am used to breaking up lines at 70-80 characters, but this is not
183a deal-breaker. However, I still prefer making use of a few of the extra 182a deal-breaker. However, I still prefer making use of a few of the extra
184features that html offers, such as inline formatting. 183features that html offers, such as inline formatting.
185 184
186I will keep offering this website in gemtext via gemini://, but it will 185I will keep offering this website in gemtext via gemini://, but it will
187stay html-first. This means that inline links will look a bit ugly in gemini 186stay html-first. This means that inline links will look a bit ugly in gemini
188and, more annoyingly for the few gemini users, I am always going to use 187and, more annoyingly for the few gemini users, I am going to use
189http(s) links even when a gemini counterpart is available. 188http(s) links even when a gemini counterpart is available.
190 189

Generated with cgit - Back to sebastiano.tronto.net